IN EF can I add a check constraint so if my CustomerNotes entity has a boolean \"FollowUpRequired\" property I force user to enter a valid future date in the \"FollowUpDate\
EF Core 3.0 supports entity.HasCheckConstraint() now.
entity.HasCheckConstraint()
To take Ryan's example:
protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity(entity => entity.HasCheckConstraint("CK_SomeTable_SomeColumn", "[SomeColumn] >= X"); }