Ejemplo n.º 1
0
 public DBType(DBType parmDBType)
 {
     m_Type    = parmDBType.Type;
     m_Length  = parmDBType.Length;
     m_Decimal = parmDBType.Decimal;
     m_Sign    = parmDBType.Sign;
 }
Ejemplo n.º 2
0
        public SqlColumnCondition(string fieldName, EDBType dbtype)
        {
            if (fieldName == string.Empty || fieldName == null)
            {
                throw new ArgumentNullException("字段名不能为空!");
            }

            this.fieldName = fieldName;
            this.dbtype    = dbtype;
        }
Ejemplo n.º 3
0
        public BasicDataTypeInfo(EDBType type, string name, int length, int decimals, bool signed, bool allowLength, bool allowDecimals, bool allowSign)
        {
            Type          = type;
            Name          = name;
            Description   = name;
            AllowLength   = allowLength;
            AllowDecimals = allowDecimals;
            AllowSign     = allowSign;

            m_Length   = length;
            m_Decimals = decimals;
            m_Signed   = false;
        }
Ejemplo n.º 4
0
 public static bool IsStandardType(EDBType type)
 {
     return(type == EDBType.BINARY ||
            type == EDBType.CHARACTER ||
            type == EDBType.DATE ||
            type == EDBType.DATETIME ||
            type == EDBType.GUID ||
            type == EDBType.INT ||
            type == EDBType.LONGVARCHAR ||
            type == EDBType.NUMERIC ||
            type == EDBType.PACKED ||
            type == EDBType.VARCHAR ||
            type == EDBType.ZONED ||
            type == EDBType.BITMAP ||
            type == EDBType.Boolean ||
            type == EDBType.VIDEO ||
            type == EDBType.AUDIO ||
            type == EDBType.BINARYFILE ||
            type == EDBType.GEOGRAPHY ||
            type == EDBType.GEOPOINT ||
            type == EDBType.GEOLINE ||
            type == EDBType.GEOPOLYGON
            );
 }
Ejemplo n.º 5
0
 public BasicDataTypeInfo(EDBType type, string name, int length, int decimals, bool signed, bool allowLength)
     : this(type, name, length, decimals, signed, allowLength, false, false)
 {
 }
Ejemplo n.º 6
0
 public static bool IsString(EDBType dbtype)
 {
     return(CHARACTER_TYPES.Contains(dbtype));
 }