Recently, I am reading about Entity Framework 4. I first searched the dog and found some reference materials for future reference.
"Href =" http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx "target =" _ blank "> Code-First Development with Entity Framework 4
"Href =" http://weblogs.asp.net/scottgu/archive/2010/07/23/entity-framework-4-code-first-custom-database-schema-mapping.aspx "target =" _ blank "> Entity Framework 4" Code-First ": Custom Database Schema Mapping
Entity Framework POCO (EF4): A Simple Mapping
Entity POCO
Part 1-Table per Hierarchy (TPH)
Part 2-Table per Type (TPT)
Part 3-Table per Concrete Type (TPC)
In particular, EF4's custom mappings make me feel like Fluent Nhibernate.
I started to like EF4, so I don't need to introduce a bunch of external dll in the project. EF4 will help you solve it all.