/// <summary>
 /// Defines a mapping between a data entity type property and a database column.
 /// </summary>
 /// <param name="expression">The expression to be parsed.</param>
 /// <param name="columnName">The name of the database column.</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> Column(Expression <Func <TEntity, object> > expression,
                                                   string columnName,
                                                   bool force)
 {
     PropertyMapper.Add <TEntity>(expression, columnName, force);
     return(this);
 }
 /// <summary>
 /// Defines a mapping between a data entity type property and a database column (via <see cref="Field"/> object).
 /// </summary>
 /// <param name="field">The instance of <see cref="Field"/> object to be mapped.</param>
 /// <param name="columnName">The name of the database column.</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> Column(Field field,
                                                   string columnName,
                                                   bool force)
 {
     PropertyMapper.Add <TEntity>(field, columnName, force);
     return(this);
 }
Beispiel #3
0
 public IIdentityOptions <T> Column(string column)
 {
     PropertyMapper.Add(m_expression, column);
     return(this);
 }
Beispiel #4
0
 /// <summary>
 /// Maps the equivalent database column of the current primary property.
 /// </summary>
 /// <param name="column">The name of the database column.</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 IPrimaryOptions <TEntity> Column(string column,
                                         bool force)
 {
     PropertyMapper.Add <TEntity>(m_expression, column, force);
     return(this);
 }
Beispiel #5
0
 public IPrimaryOptions <T> Column(string column)
 {
     PropertyMapper.Add <T>(m_expression, column);
     return(this);
 }