示例#1
0
        // Methods
        internal SqlTableInfo(SqlMetaInfo infoRoot, DataRow row)
        {
            this.InfoRoot = infoRoot;
            this.Qualifier = (string)row["TABLE_QUALIFIER"];
            this.Owner = (string)row["TABLE_OWNER"];
            this.Name = (string)row["TABLE_NAME"];
            switch (((string)row["TABLE_TYPE"]).ToLower().Trim())
            {
              case "table":
            this.Type = TableType.Table;
            goto Label_00BA;

              case "system table":
            this.Type = TableType.SystemTable;
            break;

              case "view":
            this.Type = TableType.View;
            break;
            }
              Label_00BA:
            this.Reload();
        }
示例#2
0
 // Methods
 internal SqlSpInfo(SqlMetaInfo infoRoot, DataRow row)
 {
     this.InfoRoot = infoRoot;
     this.Qualifier = (string)row["PROCEDURE_QUALIFIER"];
     this.Owner = (string)row["PROCEDURE_OWNER"];
     string str = (string)row["PROCEDURE_NAME"];
     this.Name = str.Substring(0, str.IndexOf(";"));
     this.Reload();
 }