Exemple #1
0
 public ColumnTypeMapping(string columnTypeName, DbTypeMapping dbTypeMapping, IEnumerable <ColumnType> columnTypes,
                          bool unsigned = false,
                          bool binary   = false,
                          int length    = 0
                          )
 {
     ColumnTypeName = columnTypeName;
     DbTypeMapping  = dbTypeMapping;
     Unsigned       = unsigned;
     Binary         = binary;
     Length         = length;
 }
Exemple #2
0
        private DbTypeMapping AddDbTypeMapping(DbTypeMapping dbTypeMapping)
        {
            m_dbTypeMappingsByClrType[dbTypeMapping.ClrType] = dbTypeMapping;

            if (dbTypeMapping.DbTypes != null)
            {
                foreach (var dbType in dbTypeMapping.DbTypes)
                {
                    m_dbTypeMappingsByDbType[dbType] = dbTypeMapping;
                }
            }

            return(dbTypeMapping);
        }