The following code in my DbContext class causes an error when I try to add a migration
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<TaskExt>()
.Map<TaskDespatch>(m => { m.Requires("WorkStationID").HasValue(160).HasColumnType("int"); });
base.OnModelCreating(modelBuilder);
}
What am I missing?