Sample ADO.NET Entity Framework Provider - Beta 2

Published 21 September 07 05:31 PM | dpblogs 

We've updated the sample provider to work with Beta 2 of the ADO.NET Entity Framework.  The sample provider is available here.

The sample provider has undergone some minor changes in moving from Beta 1 to Beta 2.

The DbProviderServices class has been enhanced to support returning the mapping file that the EdmGen.exe command-line tool uses to retrieve schema information from the database.  This new approach leverages the Entity Framework's mapping functionality and the provider's SQL-gen layer to map conceptual table, view, column, etc. schema information to the database's actual system tables.  The end result is that EdmGen.exe can retrieve database schema information in a provider agnostic fasion.

Also, the SQL generation layer within the sample provider has been enhanced to support the new canonical function capabilities added in Beta 2 of the ADO.NET Entity Framework.

As with previous builds, the sample provider wraps System.Data.SqlClient and demonstrates the functionality a provider needs to add in order to support the ADO.NET Entity Framework.  The solution that contains the sample provider also includes a modified version of the Entity Framework Query Samples project.  The modified project uses the sample provider rather than System.Data.SqlClient.

If you're writing an ADO.NET provider for Orcas and you're not already in touch with me, please drop me a line at David (dot) Sceppa (at) microsoft (dot) com.  Enjoy!

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Entity Framework, Part 1 - The high level overview | Chris Does Dev said on September 26, 2007 7:43 AM:

PingBack from http://www.chrisdoesdev.com/index.php/archives/49

# Pang Tat Sean said on September 27, 2007 3:53 AM:

I am wondering why the query criteria always prefix with “it.” (it + dot)?

Orders newOrder = new Orders();

newOrder.OrderDate = DateTime.Today;

Customers cust = northwindContext.Customers.Where(

   “it.CustomerID = ‘ALFKI’”).First();

newOrder.Customers = cust;

northwindContext.AddObject(newOrder);

northwindContext.SaveChanges();

Thanks

# Matt said on September 28, 2007 10:50 AM:

the 'it.' is most likely the table alias

# Nima said on October 17, 2007 5:21 AM:

Is there any change to entity framework since beta 2 ?

# Rick Martin said on November 2, 2007 5:08 PM:

Are there any samples out there showing data binding in WPF using Entity Framework?

# rajabb said on November 21, 2007 10:49 AM:

Is there any version of ADO.NET Entity Framework Provider compatiable with Visula Studio Team System (not beta 2).

Having .NET Framework Version 3.5

Thanks,

Raja

# erkansaldir said on November 22, 2007 12:03 PM:

I cant install Ado.Net Entity Beta 2 Provider with Net Framework 3.5 Released Version.When will you publish compatible version?

Leave a Comment

(required) 
(optional)
(required) 
Page view tracker