Browse by Tags

All Tags » C# (RSS)

Associations in EF Code First: Part 6 – Many-valued Associations by mortezam

This is the sixth and last post in a series that explains entity association mappings with EF Code First. I've described these association types so far: Part 1 – Introduction and Basic Concepts Part 2 – Complex Types Part 3 – Shared Primary Key Associations...

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

This is the fourth post in a series that explains entity association mappings with EF Code First. I've described these association types so far: Part 1 – Introduction and Basic Concepts Part 2 – Complex Types Part 3 – Shared Primary Key Associations Part...

Associations in EF Code First: Part 4 – Table Splitting by mortezam

This is the fourth post in a series that explains entity association mappings with EF Code First. This series includes: Part 1 – Introduction and Basic Concepts Part 2 – Complex Types Part 3 – Shared Primary Key Associations Part 4 – Table Splitting Part...

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

This is the third post in a series that explains entity association mappings with EF Code First. This series includes: Part 1 – Introduction and Basic Concepts Part 2 – Complex Types Part 3 – Shared Primary Key Associations Part 4 – Table Splitting Part...

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

This is the second post in a series that explains entity association mappings with EF Code First. This series includes: Part 1 – Introduction and Basic Concepts Part 2 – Complex Types Part 3 – Shared Primary Key Associations Part 4 – Table Splitting Part...

Associations in EF Code First: Part 1 – Introduction and Basic Concepts by mortezam

Earlier this month the data team shipped the Release Candidate of EF 4.1. The most exciting feature of EF 4.1 is Code First , a new development pattern for EF which provides a really elegant and powerful code-centric way to work with data as well as an...

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...
More Posts Next page »