public EntityPropertyDescription(EntityDescription <TOtherEntity> subEntity, Expression <Func <TEntity, TOtherEntity> > propertySelector, IPropertyGroupDescription assignedGroup) : base(propertySelector, subEntity.DisplayName, CreateValidator(), assignedGroup) { _subEntity = subEntity; }
public BoolPropertyDescription(Expression <Func <TEntity, bool> > propertySelector, string displayName, IValidator <bool> validator, IPropertyGroupDescription assignedGroup) : base(propertySelector, displayName, validator, assignedGroup) { }
public EntityReferencePropertyDescription(Expression <Func <TEntity, EntityReference> > propertySelector, string displayName, IValidator <EntityReference> validator, IPropertyGroupDescription assignedGroup) : base(propertySelector, displayName, validator, assignedGroup) { }
public IntegerPropertyDescription(Expression <Func <TEntity, int> > propertySelector, string displayName, IValidator <int> validator, IPropertyGroupDescription assignedGroup) : base(propertySelector, displayName, validator, assignedGroup) { }
public IntegerPropertyDescription(Expression <Func <TEntity, int> > propertySelector, string displayName, IPropertyGroupDescription assignedGroup) : base(propertySelector, displayName, new EverythingValidValidator <int, TEntity>(), assignedGroup) { }
public PropertyDescription(string displayName, IPropertyGroupDescription assignedGroup) { _displayName = displayName; _group = assignedGroup; }
public StringPropertyDescription(Expression <Func <TEntity, string> > propertySelector, string displayName, IPropertyGroupDescription assignedGroup) : base(propertySelector, displayName, new StringNotEmptyValidator <TEntity>(), assignedGroup) { }
IEnumerable <IPropertyDescription> IEntityDescription.GetPropertiesOf(IPropertyGroupDescription group) { return(GetPropertiesOf(group)); }
public IEnumerable <IPropertyDescription <TEntity> > GetPropertiesOf(IPropertyGroupDescription group) { return(_properties.Where(x => x.Group.Equals(group))); }