Geeks With Blogs

News

This blog has moved to ericnelson.wordpress.com

 Subscribe in a reader

Add to Google Reader or Homepage


Links
View my teams slideshare
These postings are provided "AS IS" with no warranties, and confer no rights.



IUpdateable has moved to ericnelson.wordpress.com Please visit http://ericnelson.wordpress.com

This is one of a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009.

[Initual release 22nd Sept 2009]
[Updated 23rd Sept, with links from Julie Lerman]
[Updated 2nd Oct, with slidedeck section]
[Large Update 15th Dec – including PDC09 content, my new posts and plenty of stuff from Julie L, Tony and others]

This is my attempt to pull together all (ok – most) of the improvements in Entity Framework 4.0 and aggregate useful resources against each. It is very much work in progress – but is hopefully already fairly helpful.

Some of the links are to early posts which came out pre VS2010 Beta 1. These should be treated with caution as a lot changed since they were written – but they often start with a good introduction to the topic and hence I felt they were worth including.

General Resources

Documentation

Overview blog posts/articles

Team Blogs

Community Bloggers

Screencasts and Podcasts

Slidedecks

Misc

Improvements to the Tools/Designer

Persistence Ignorance

You can use your own custom data classes together with your data model without making any modifications to the data classes themselves. This means that you can use "plain old" CLR objects (POCO), such as existing domain objects, with your Entity Framework application. For more information, see Persistence Ignorant Objects (Entity Framework).

And from the community:

Code-only

In NET 4.0 Beta 1 we introduced Model-First which allowed you to begin by creating an entity data model, then use it to create an empty database and classes. The subsequent CTP introduced Code Only.

And from the community:

Deferred Loading of Related Objects (aka Lazy Loading)

With deferred loading, also known as lazy loading, related objects are automatically loaded from the data source when you access a navigation property. For more information, see Shaping Query Results (Entity Framework).

Foreign Key associations

Foreign Keys are now surfaced.

Query Improvements

N-Tier

In Beta 1 we added an improved API for reporting changes: ChangeObjectState, ChangeRelationshipState, ApplyOriginalValues. In the CTP we added Self-tracking entities: serialize changes alongside current state in the object graph

Improving Testability of the Entity Framework

Unit testing EF v1 is tricky (Check out Julies post on this). Things get a lot better with EF 4.0 thanks to a combination of features:

  • POCO  - classes that do not depend on the EF can be easier to test
  • Data Access Guidance and the Repository pattern – work in progress  http://dataguidance.codeplex.com/ 
  • New IObjectSet<T>  interface makes it easier to fake an object
  • Template based code generation – control the code gen 
  • LINQ to Entities improvements make LINQ to Entities and LINQ to Objects closer – which can simplify testing
  • Sneak Preview: Entity Framework 4.0 Testability Improvements
Shout it kick it on DotNetKicks.com Posted on Wednesday, September 23, 2009 3:16 PM Data , Entity Framework , SA2009 | Back to top


Comments on this post: Entity Framework 4.0 Resources – documentation links, best blog posts and more

# re: Entity Framework 4.0 Resources – documentation links, best blog posts and more
Requesting Gravatar...
Nice compilation.

Also - I've got two EF4 articles in Code Mag (www.codemag.com). Part 1 is already in Sept/Oct 2009 issue. Part 2 coming in Nov/Dec issue. I'll let you know when my EF4 article in ASPNETPro magazine comes out.
Left by Julie LErman on Sep 23, 2009 3:58 PM

# re: Entity Framework 4.0 Resources – documentation links, best blog posts and more
Requesting Gravatar...
Thanks Julie. More importantly ... great book!
Left by ericnel on Sep 23, 2009 11:23 PM

# re: Entity Framework 4.0 Resources – documentation links, best blog posts and more
Requesting Gravatar...
Very useful resource, Eric.

I've written a few blog posts about specific issues on EF4 - for example, on how to work around the fact that EF won't support associations defined by Interfaces rather than classes.

Also, please take a look at what we're doing with 'Naked Entities' (see www.nakedobjects.net). I think it's groundbreaking use of EF4, but I'd welcome your views.
Left by Richard Pawson on Oct 08, 2009 5:38 PM

# re: Entity Framework 4.0 Resources – documentation links, best blog posts and more
Requesting Gravatar...
Hmmm ... interesting. I will make some time to check that out. Thanks.
Left by ericnel@hotmail.com on Oct 08, 2009 11:40 PM

# re: Entity Framework 4.0 Resources – documentation links, best blog posts and more
Requesting Gravatar...
Hi!
I have been writing a bit about EF4 Code-only on my blog. I recently also put together a larger article about how you could use it in a business application using WCF, IoC etc.

Read if you want: http://daniel.wertheim.se/2009/12/14/putting-entity-framework-4-to-use-in-a-business-architechture/

//Daniel
Left by Daniel Wertheim on Dec 14, 2009 11:15 PM

# re: Entity Framework 4.0 Resources – documentation links, best blog posts and more
Requesting Gravatar...
Thank you.
Left by Ersoy on Feb 27, 2010 3:07 PM

Your comment:
 (will show your gravatar)
 


Copyright © Eric Nelson | Powered by: GeeksWithBlogs.net | Join free