-
EF4 Part 4: Calculated Properties and Model-Defined Functions
It is fairly common to require ‘calculated properties’ on a business object, but have found this seemingly simple requirement to be quite interesting in practice with EF4...
-
EF4 Part 3: TPT Inheritance Pains
Entity Framework 4 (EF4) currently supports three inheritance models: Table per Type (TPT), Table per Hierarchy (TPH), and Table per Concrete Type. Given that the existing database schema I am working with mainly implements TPT, we’ll take a look at some of the issues you may experience when trying to map this to your model...
-
EF4 Part 2: EDM Inheritance Pains
With Entity Framework 4 (EF4), when we are defining our Entity data model (EDM) we can make use of inheritance and abstract classes rather than the simple mapping that you get when using the DBML designer we get with LINQ-SQL. However, it is not without its limitations…
-
EF4 Part 1: Out with the old, in with the new
When the first version of Entity Framework came out, I really liked the concept but felt that it lacked too much to be a real-world solution. However, with the relatively recent release of Entity Framework 4 (EF4) I think it has reached a point where serious consideration should be paid to using it as an object-relational mapping (ORM) framework for your applications...