MVC 5 Code First ApplicationDbContext throws error
In my MVC 5 Code First project I decided to put my domain tables under the out of box ApplicationDbContext
This is because I had not null 2 foreign keys in same table that both reference the primary key in same parent table. This creates 2 conflicting cascade delete paths. The solution is to make one of them nullable. See the source link: