Ejemplo n.º 1
0
        private DataTable GetSchema(SchemaTypeEnum SchemaType, string ObjectName, bool FullData)
        {
            DataTable objReturn = null;

            this.InitializeSchema(ref objReturn, SchemaType, ObjectName, FullData);
            return(objReturn);
        }
Ejemplo n.º 2
0
        public Schema(string parameter)
        {
            AssertParametersAreNoEmpty(parameter);
            Key = parameter[0];

            var stringType = (parameter.Length > 1) ? parameter.Substring(1) : "";

            AssertParameterIsValid(stringType);
            Type = _strategyType[stringType];
        }
Ejemplo n.º 3
0
        public Version InspectSchema(SchemaTypeEnum schemaType, ref string strErrorMsg)
        {
            //string strDDL = "SELECT MajorVer, MinorVer FROM ";
            //if (schemaType == SchemaTypeEnum.CASE)
            //    strDDL += "[dbo].[SLT_CoreSchemaVersion] " + KWD.SQLSVR_BD;
            //else if (schemaType == SchemaTypeEnum.ULM)
            //    strDDL += "[dbo].[SLT_LIC_SchemaVersion] " + KWD.SQLSVR_BD;

            //TableRowSet resultRow = new TableRowSet();
            //if (!RunSQL(strDDL, ref resultRow, ref strErrorMsg))
            //    return Version.INVALID;

            //Version ver = new Version(Convert.ToInt32(resultRow.At(0, 0).ToString()), Convert.ToInt32(resultRow.At(0, 1).ToString()));
            //return ver;
            return(null);
        }
        void ProcessSchema()
        {
            _listView.Items.Clear();
            if (_schema != null)
            {
                _schema.Fields.ToList().ForEach(s =>
                {
                    SchemaTypeEnum type = SchemaTypeEnum.unknown;
                    Enum.TryParse <SchemaTypeEnum>(s.FieldType, true, out type);

                    _listView.Items.Add(new KmlSchemaWithValueDto()
                    {
                        Name = s.Name,
                        Type = type
                    });
                });
            }
        }
Ejemplo n.º 5
0
        public SchemaType(int typeId, int typeIdWithPrimaryKey)
        {
            TypeId = typeId;
            TypeIdWithPrimaryKey = typeIdWithPrimaryKey;

            switch (typeId)
            {
            case ObjectSchemaTypeId:
                Type = SchemaTypeEnum.ObjectSchemaTypeId;
                break;

            case SetSchemaTypeId:
                Type = SchemaTypeEnum.SetSchemaTypeId;
                break;

            case ListSchemaTypeId:
                Type = SchemaTypeEnum.ListSchemaTypeId;
                break;

            case MapSchemaTypeId:
                Type = SchemaTypeEnum.MapSchemaTypeId;
                break;
            }
        }
Ejemplo n.º 6
0
 private void Base_InitializeSchema(ref DataTable Value, SchemaTypeEnum SchemaType, string ObjectName, bool FullData)
 {
     this.InitializeSchema(ref Value, SchemaType, ObjectName, FullData);
 }