public bool?Validate <TValue>(Expression <Func <TEntity, TValue> > property)
 {
     // make sure it will be validated
     _editContext.NotifyPropertyIncludedInForm(GetMetadata(property));
     return(IsValid(property));
 }
 public Task <bool?> ValidateAsync <TValue>(Expression <Func <TEntity, TValue> > property)
 {
     // make sure it will be validated
     _editContext.NotifyPropertyIncludedInForm(GetMetadata(property));
     return(Task.FromResult(IsValid(property)));
 }