예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }