A version updated for Entity Framework 5 is now available here: http://code.msdn.microsoft.com/Entity-Framework-Sample-6a9801d0 Resource Page DescriptionSample 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
|