public UtlMetaData(string name, UtlSqlType dbType) { if (name == null) { throw new ArgumentNullException(); } if ((((dbType != UtlSqlType.TinyInt) && (dbType != UtlSqlType.SmallInt)) && ((dbType != UtlSqlType.Int) && (dbType != UtlSqlType.BigInt))) && (((dbType != UtlSqlType.TimeStamp) && (dbType != UtlSqlType.Boolean)) && ((dbType != UtlSqlType.Decimal) && (dbType != UtlSqlType.Float)))) { throw new ArgumentException(); } this._name = name; this._utlDbType = dbType; }
public UtlMetaData(string name, UtlSqlType dbType, int maxLength) { if (name == null) { throw new ArgumentNullException(); } if ((((dbType != UtlSqlType.Binary) && (dbType != UtlSqlType.VarBinary)) && ((dbType != UtlSqlType.VarChar) && (dbType != UtlSqlType.Char))) && ((dbType != UtlSqlType.Blob) && (dbType != UtlSqlType.Clob))) { throw new ArgumentException(); } this._name = name; this._utlDbType = dbType; this._precision = maxLength; }
public UtlMetaData(string name, UtlSqlType dbType, byte precision, byte scale) { if (name == null) { throw new ArgumentNullException(); } if (dbType != UtlSqlType.Decimal) { throw new ArgumentException(); } this._name = name; this._utlDbType = dbType; this._precision = precision; this._scale = scale; }