protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Dad>() .Property(x => x.DayOfBirth).IsRequired(); }
protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Dad>() .Property(x => x.DayOfBirth).IsRequired(); }