public ValueArrayPropertySpecification(PropertyInfo property, int position, IValueConverter <TValue> valueConverter, IValueFormatter <TValue> valueFormatter) : base(property, position) { _valueConverter = valueConverter; _valueFormatter = valueFormatter; _sliceFactory = Multiple; }
public ValueListEntityProperty(Type implementationType, string propertyName, int position, ValueListFactory <TValue> valueFactory, ValueSliceFactory valueSliceFactory) { if (implementationType == null) { throw new ArgumentNullException(nameof(implementationType)); } if (propertyName == null) { throw new ArgumentNullException(nameof(propertyName)); } if (valueFactory == null) { throw new ArgumentNullException(nameof(valueFactory)); } if (valueSliceFactory == null) { throw new ArgumentNullException(nameof(valueSliceFactory)); } _position = position; _valueFactory = valueFactory; _valueSliceFactory = valueSliceFactory; _writeProperty = new WriteProperty <TEntity, ValueList <TValue> >(implementationType, propertyName); }
public ValueArrayEntityProperty(Type implementationType, string propertyName, int position, ValueArrayFactory <TValue> valueFactory, ValueSliceFactory valueSliceFactory) { _position = position; _valueFactory = valueFactory; _valueSliceFactory = valueSliceFactory; _writeProperty = new WriteProperty <TEntity, ValueArray <TValue> >(implementationType, propertyName); }
public EntityListPropertySpecification(PropertyInfo property, int position) : base(property, position) { _sliceFactory = Single; }
public EntityArrayPropertySpecification(PropertyInfo property, int position) : base(property, position) { _sliceFactory = Multiple; }
public void SetRange() { _sliceFactory = Range; }
public void SetList() { _sliceFactory = List; }
public void SetSingle() { _sliceFactory = Single; }
public void SetParent() { _sliceFactory = Parent; }
public SetPropertyArrayPropertySpecification(PropertyInfo property, Func <TextSlice, ValueArray <TValue> > valueProvider) : base(property, 0) { _valueProvider = valueProvider; _sliceFactory = Single; }