Exemplo n.º 1
0
 public ParameterMeta(string strParamName,
                      DataTypeEnum enumDataType,
                      ParameterDirectionEnum enumDirection,
                      IDataTypeDictionary typeMap)
     : base(strParamName, enumDataType, typeMap)
 {
     _eDirection = enumDirection;
 }
Exemplo n.º 2
0
        public SchemaBuilder(DBMSPlatformEnum dbmsPlatform, IDataTypeDictionary dtMap)
        {
            _dbmsPlatform = dbmsPlatform;
            _dtMap        = dtMap;
            _LowVersion   = Version.MINVERSION; // no version filter by default
            _HighVersion  = Version.MAXVERSION;

            _context = new SchemaContext();
        }
Exemplo n.º 3
0
        // typeMap: platform dependent data type dictionary. Used when building DDL.
        public DataTypeMeta(string strName, DataTypeEnum enumDataType, IDataTypeDictionary typeMap)
        {
            _dbDataType          = new DBDataType();
            _dbDataType.TypeEnum = enumDataType;

            _strName = strName;
            _typeMap = typeMap;

            _strDefaultValue = null;
        }
Exemplo n.º 4
0
        public string ToString(IDataTypeDictionary typeMap)
        {
            string strTypeDDL = typeMap.ToString(_dataType) + " ";

            Debug.Assert((_stringLength == 0) || (_precision == 0));

            if (_stringLength > 0)
            {
                strTypeDDL += "( " + _stringLength.ToString() + " ) ";
            }
            if (_precision > 0)
            {
                strTypeDDL += "( " + _precision.ToString() + ", " + _scale.ToString() + " ) ";
            }

            return(strTypeDDL);
        }
Exemplo n.º 5
0
 public ColumnMeta(string strColName, DataTypeEnum enumDataType, IDataTypeDictionary typeMap)
     : base(strColName, enumDataType, typeMap)
 {
 }