/// <summary>
 /// Defines a mapping between a .NET CLR type and a <see cref="System.Data.DbType"/> object.
 /// </summary>
 /// <param name="dbType">The <see cref="System.Data.DbType"/> object where to map the .NET CLR type.</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 TypeMapFluentDefinition <TType> DbType(DbType?dbType,
                                               bool force)
 {
     TypeMapper.Add <TType>(dbType, force);
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Maps the equivalent database type of the current target property.
 /// </summary>
 /// <param name="dbType">The target database type.</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 IPropertyOptions <TEntity> DbType(DbType dbType,
                                          bool force)
 {
     TypeMapper.Add <TEntity>(m_expression, dbType, force);
     return(this);
 }
Beispiel #3
0
 public IPrimaryOptions <T> DbType(DbType dbType)
 {
     TypeMapper.Add <T>(m_expression, dbType);
     return(this);
 }