John Papa [MVP C#]

Sponsors

The Lounge

Wicked Cool Jobs

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Entity Framework and Object Services Primer

As I am sure you have read by now, the Entity Framework is a huge leap forward in the next iteration of ADO.NET in Orcas.  Currently the implementation has a conceptual layer represented by a CSDL file. This CSDL file contains the XML that represents conceptual model (the objects). The conceptual layer is mapped to the database through a series of lower layers (the Mapping and the Source). The Source is represented by a SSDL file which contains XML that represents the database schema. The MSL file contains the XML that maps the CSDL to the SSDL. All 3 of these files can be generated using the EDM Model Wizard in the Orcas Feb/March CTP.

Once the model has been generated (or created by hand), the data can be manipulated and interrogated through the conceptual model. Thus a level of abstraction is created where an application can interact with data through an object model that is mapped to the underlying data source. LINQ to Entities or Entity SQL can be used to interact with the EDM. LINQ to Entities is great when you can define your query expressions at design time and enhance them with parameters. Entity SQL can also be sued to achieve the same goals, however since Entity SQL is string based it can support more dynamic queries where queries can be built on the fly.

There is quite a bit to chew with the Entity Framework, more than enough for a entire series of articles. And I have not even touched on the other ADO.NET components such as LINQ to SQL or LINQ to DataSets, much less the designers, LINQ to objects, LINQ to XML, EntityClient and much much more.

It is an exciting time to be involved with data access technologies! And some unforeseen changes are yet to come as many have already experienced the changes through the CTP’s of LINQ and Orcas. But it seems evident that the data access team is making its biggest change to data access in a very long time.

Entity Framework


Posted Mon, Mar 5 2007 10:32 PM by John Papa
Filed under: , ,

[Advertisement]

Comments

Ayende @ Rahien wrote Handling Dynamic Queries with the Entity Framework
on Mon, Mar 5 2007 11:41 PM

Handling Dynamic Queries with the Entity Framework

John Papa [MVP C#] wrote LINQ to Entity Samples added to 101 Samples!
on Mon, Mar 12 2007 9:03 AM

Earlier in March I posted that some samples intended for use with the March CTP of Orcas were available

John Papa [MVP C#] wrote Stored Procedures and CUD (minus the R) in the Entity Framework
on Wed, Mar 14 2007 9:27 PM

The Data Access Team published a great post and that has some superb explanations on how to make the

Devlicio.us