Search Wiki:
A version updated for Entity Framework 5 is now available here: http://code.msdn.microsoft.com/Entity-Framework-Sample-6a9801d0

Resource Page Description
Sample ADO.NET Provider for Entity Framework


This is a sample Entity Framework ADO.NET provider for SQL Server that demonstrates:

  • Provider Manifest
  • EDM Mapping for Schema Information
  • SQL Generation

Sample Provider is implemented as a wrapper on top of System.Data.SqlClient ADO.NET 2.0 Data Provider.

Changes in the provider for EF4 in .NET Framework 4.0 include:

  • Support for the canonical functions added in .NET 4
  • Support for DDL Generation in order to support ObjectContext.CreateDatabase / ObjectContext.DeleteDatabase / ObjectContext.DatabaseExists
  • Addition of FunctionStubGenerator to easily generate function stubs to expose the provider store functions via LINQ
  • Translation of String.StartsWith, String.EndsWith and String.Contains to use LIKE operator
  • Support for SQL Server 2008
Last edited May 7 at 11:40 PM  by moozzyk, version 9
Comments
sandigul wrote  Jun 30 2008 at 7:59 PM  
Very nice code especially Utility class.

Sandeep
http://www.cityhuntonline.com

rrv wrote  Oct 2 2010 at 6:37 PM  
Hi, Anyway to get a VB version of the code targetting .NET4? Given code(CS) does'nt compile (2 errors) if converted to .NET4. If every file is converted to VB, ended up with numerous errors. Please provide a VB version to work in VS2010 (Ultimate).
Thanks

rockyyad wrote  Apr 9 at 11:39 AM  
nice code......

Updating...
Page view tracker