Exemple #1
0
        public static DataSourceSchema buildTableSchema(string connName, string tableName, string dsId)
        {
            DataSourceSchema ret = DataSourceSchemaBuilder.BuildTableSchema(connName, tableName);

            DataSourceSchemaContainer.Instance().AddItem(dsId, ret);
            return(ret);
        }
Exemple #2
0
 private void loadSchema()
 {
     _ds           = null;
     _fieldColumns = null;
     _pagination   = new PaginationInfo();
     if (DataSourceSchemaContainer.Instance().Contains(name))
     {
         _schema = DataSourceSchemaContainer.Instance().GetItem(name);
         _schema.ChangedEvent += schemaChanged;
         if (_schema.SelectCommand == null)
         {
             throw new XException(Lang.DataSourceNotSelectCommand);
         }
         _isSourceTable = false; //_schema.SelectCommand.CommandType == CommandType.TableDirect;
     }
     else
     {
         _isSourceTable = true;
         _schema        = DataSourceSchemaBuilder.BuildTableSchema(_name);
     }
 }