Welcome to MSDN Blogs Sign in | Join | Help
Colin Meek talks about his EF Extensions

Colin is a super smart colleague of mine, who works as a developer on the Entity Framework.

So it is great to see him start a blog.

His first post is super cool, because he discusses a set of extensions he put together that get around some of mapping limitations of the Entity Framework. 

He does this by writing a custom entity materializer. This custom materializer supports, arbitrary stored procs, multiple recordsets etc... all very cool.

Here is a little snippet that illustrates what is possible:

var results = context

    .CreateStoreCommand("GetCategories", CommandType.StoredProcedure)

    .Materialize<Category>()

    .Bind(categorySet);

What this does is execute the GetCategories stored proc, turning results into Category objects and binds them to the categorySet entityset so that changes can be tracked/managed by the Entity Framework.

How easy is that?

Take a look for more

Posted: Wednesday, March 26, 2008 9:07 PM by AlexJ
Filed under: , , ,

Comments

Diego's Blog said:

When I announced the start of the Entity Framework Toolkits &amp; Extensions section in CodeGallery ,

# March 27, 2008 2:15 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

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

Page view tracker