A quick tip I stumbled upon while working on an MVC application using Entity Framework Code First.

In order to Seed Related Data when using Entity Framework Code First, it’s important to give items temporary ID’s before calling the seed method. Otherwise, when the database is seeded you will end up with Conflicted Inserts

By |2017-07-24T08:33:17+01:00July 27th, 2013|.Net Framework, Data, Entity Framework, Tips|0 Comments

About the Author:

Leave A Comment