Posts by Category


Entity Framework 6 Refresher: One To One

1 minute read

Often a one-to-one relationship is required. Mapping these in EF is very similar to mapping any other relationships. For this example each person can have...

Entity Framework 6 Refresher: Many To Many

2 minute read

To demonstrate a many to many relationship, we can look at a two-way relationship between Person and Hobby. We start by adding a collection property to each...

Entity Framework 6 Refresher: One To Many

2 minute read

To demonstrate a one-to-many relationship, we can associate Person with Hobby. This means that each hobby will belong to one and only one person (our peopl...

Entity Framework 6 Refresher: Mapping Files

1 minute read

Entity Framework can determine a lot of things about your model on it’s own, but at some point you need to provide some information about your classes that i...

Entity Framework 6 Refresher: Seed Data

less than 1 minute read

“Seed Data” is data that is inserted into the database when migrations are run. Generally, this would be relatively static look-up data such as States or Or...

Entity Framework 6 Refresher: Initial Setup

1 minute read

It has been a long time since I used Entity Framework on anything other than an brownfield project where most work consisted of adding or removing the occasi...

Back to top ↑