Ejemplo n.º 1
0
        public SchemaColumn(Schema schema, string name, DbType dbType, bool isIdentity, bool isKey, SchemaIndexType indexType, IRelationType relationType, int?size, int?precision, int?scale)
        {
            this.Name          = name.ToLowerInvariant();
            this.StatementName = schema.EscapeIfReserved(this.Name);
            this.Param         = schema.CreateParameter(name, dbType);

            this.IsKey      = isKey;
            this.IsIdentity = isIdentity;
            this.IndexType  = indexType;

            this.Size      = size;
            this.Precision = precision;
            this.Scale     = scale;

            this.DbType = dbType;

            this.RelationType = relationType;
        }
Ejemplo n.º 2
0
 public SchemaColumn(Schema schema, string name, DbType dbType, bool isIdentity, bool isKey, SchemaIndexType indexType, IRelationType relationType)
     : this(schema, name, dbType, isIdentity, isKey, indexType, relationType, null, null, null)
 {
 }