public ValidationManager <TProperty> ConfigureEntityProperty <TProperty>(Expression <Func <T, TProperty> > property) where TProperty : class, INotifyPropertyChanged { var propertyName = ExpressionUtilities.GetPropertyName(property); if (!TryGetConfiguration <EntityPropertyConfiguration <T, TProperty> >(propertyName, out var config)) { config = new EntityPropertyConfiguration <T, TProperty>(property.Compile()); } Configurations.Add(propertyName, config); return(config.ValidationManager); }
public EntityPropertyConfigBuilder(EntityPropertyConfiguration <TDb, TKey> propertyConfig, IDataSetConfigBuilder <TDb, TKey, TEntity> parentBuilder) { _propertyConfig = propertyConfig; _parentBuilder = parentBuilder; }