Partager via


Sample ADO.NET Entity Framework Provider - Beta 2

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!

Comments

  • Anonymous
    September 25, 2007
    PingBack from http://www.chrisdoesdev.com/index.php/archives/49

  • Anonymous
    September 26, 2007
    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

  • Anonymous
    September 28, 2007
    the 'it.' is most likely the table alias

  • Anonymous
    October 16, 2007
    Is there any change to entity framework since beta 2 ?

  • Anonymous
    November 02, 2007
    Are there any samples out there showing data binding in WPF using Entity Framework?

  • Anonymous
    November 21, 2007
    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

  • Anonymous
    November 22, 2007
    The comment has been removed