Browse by Tags

All Tags » Entity Framework (RSS)

Associations in EF Code First CTP5: Part 3 – One-to-One Foreign Key Associations by mortezam

This is the third post in a series that explains entity association mappings with EF Code First. I've described these association types so far: Part 1 – Complex Types Part 2 – Shared Primary Key Associations In the previous blog post we saw the limitations...

Inheritance with EF Code First: Part 3 – Table per Concrete Type (TPC) by mortezam

This is the third (and last) post in a series that explains different approaches to map an inheritance hierarchy with EF Code First. I've described these strategies in previous posts: Part 1 – Table per Hierarchy (TPH) Part 2 – Table per Type (TPT) In...

Inheritance with EF Code First: Part 2 – Table per Type (TPT) by mortezam

In the previous blog post you saw that there are three different approaches to representing an inheritance hierarchy and I explained Table per Hierarchy (TPH) as the default mapping strategy in EF Code First. We argued that the disadvantages of TPH may...

Inheritance with EF Code First: Part 1 – Table per Hierarchy (TPH) by mortezam

A simple strategy for mapping classes to database tables might be “one table for every entity persistent class.” This approach sounds simple enough and, indeed, works well until we encounter inheritance. Inheritance is such a visible structural mismatch...

Associations in EF Code First CTP5: Part 2 – Shared Primary Key Associations by mortezam

In the previous blog post I demonstrated how to map a special kind of one-to-one association—a composition with complex types as the first post in a series about entity association mapping with EF Code First. We argued that the relationships between User...

Associations in EF Code First CTP5: Part 1 – Complex Types by mortezam

Last week the CTP5 build of the new Entity Framework Code First has been released by data team at Microsoft. Entity Framework Code-First provides a pretty powerful code-centric way to work with the databases. When it comes to associations, it brings ultimate...
More Posts