/// <summary> /// Defines the class property parameter value attributes (via property name). /// </summary> /// <param name="propertyName">The name of the class property to be mapped.</param> /// <param name="attributes">The list of property value attributes to be mapped.</param> /// <param name="force">A value that indicates whether to force the mapping. If one is already exists, then it will be overwritten.</param> /// <returns>The current instance.</returns> public EntityMapFluentDefinition <TEntity> PropertyValueAttributes(string propertyName, IEnumerable <PropertyValueAttribute> attributes, bool force) { PropertyValueAttributeMapper.Add <TEntity>(propertyName, attributes, force); return(this); }
/// <summary> /// Defines the class property parameter value attributes (via <see cref="Field"/> object). /// </summary> /// <param name="field">The instance of <see cref="Field"/> object to be mapped.</param> /// <param name="attributes">The list of property value attributes to be mapped.</param> /// <param name="force">A value that indicates whether to force the mapping. If one is already exists, then it will be overwritten.</param> /// <returns>The current instance.</returns> public EntityMapFluentDefinition <TEntity> PropertyValueAttributes(Field field, IEnumerable <PropertyValueAttribute> attributes, bool force) { PropertyValueAttributeMapper.Add <TEntity>(field, attributes, force); return(this); }
/// <summary> /// Defines the class property parameter value attributes. /// </summary> /// <param name="expression">The expression to be parsed.</param> /// <param name="attributes">The list of property value attributes to be mapped.</param> /// <param name="force">A value that indicates whether to force the mapping. If one is already exists, then it will be overwritten.</param> /// <returns>The current instance.</returns> public EntityMapFluentDefinition <TEntity> PropertyValueAttributes(Expression <Func <TEntity, object> > expression, IEnumerable <PropertyValueAttribute> attributes, bool force) { PropertyValueAttributeMapper.Add <TEntity>(expression, attributes, force); return(this); }