How do I specify ON DELETE NO ACTION Foreign Key Constraint in my model designs?
At present, I have:
public class Status { [Required] public
Put this into your MenuEntities class (class that descend from DbContext):
MenuEntities
DbContext
protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove(); }