Search Wiki:
The ADO.NET Entity Framework Extensions library includes utilities that make querying stored procedures, creating typed results from DB data readers and state tracking external data much easier in the Entity Framework. A sample application demonstrates several patterns using these utilities, including stored procedures with multiple result sets, materialization of CLR types, and registering entities in the Entity Framework state manager.

Overview


Utilities are included to simplify:

  • Execution of store commands via the ObjectContext.
  • Connection lifetime management.
  • State management of entities from external sources.
  • Materialization of arbitrary CLR types given a data reader or DB command.
  • Stored procedure mapping:
    • Multiple result sets.
    • Column renames, polymorphic results and nested structures via the materialization service.
  • Getting and setting key values for entity references.
  • Rewrite InvocationExpressions in LINQ queries and expressions.

This updated version of the extensions library targets Visual Studio 2010. Changes include:

  • Removal of the EntitySet<T> class since its functionality is mostly subsumed by the shipping ObjectSet<T> class. The FindOrAttach and GetTrackedEntities instance methods have been rewritten as extension methods.
  • Removal of the Zip helper method which is now included in the standard LINQ library (System.Linq.Enumerable class).
  • Removal of the ExpressionVisitor class which is now included in the standard LINQ library (System.Linq.Expressions namespace).

Requirements


Visual Studio 2010 is required for the current release of EFExtensions
Click on All Releases to find a version that will work with VS 2008 SP1

http://msdn.microsoft.com/en-us/vsts2008/products/cc533447.aspx

Other resources


The following post introduces the EFExtensions API and includes a walkthrough of the sample application:

http://blogs.msdn.com/meek/archive/2008/03/26/ado-entity-framework-stored-procedure-customization.aspx

For additional information on multiple result sets and relationships, see:

http://blogs.msdn.com/meek/archive/2008/12/07/stored-procedures-and-first-class-relationships-in-the-entity-framework.aspx

For additional information on InvocationExpression rewriting, see:

http://blogs.msdn.com/meek/archive/2008/12/07/invocationexpression-and-linq-to-entities.aspx
Last edited Jun 7 2010 at 11:47 PM  by JonathanAneja, version 14
Comments
joy_live wrote  Sep 20 2010 at 11:48 AM  
Broken Link
Please fix it.

Updating...
Page view tracker