Пример #1
0
        internal QTable(QColumnFactoryBase columnFactory, QRecordFactoryBase recordFactory, IQApplication application, string tableName, string pNoun)
        {
            var createTable = new CreateTable.Builder(application.Client.Ticket, application.Token, application.Client.AccountDomain, application.ApplicationId)
                              .SetTName(tableName)
                              .SetPNoun(pNoun)
                              .Build();
            var xml     = createTable.Post().CreateNavigator();
            var tableId = xml.SelectSingleNode("/qdbapi/newdbid").Value;

            TableName   = tableName;
            RecordNames = pNoun;
            CommonConstruction(columnFactory, recordFactory, application, tableId);
        }
Пример #2
0
        internal QTable(QColumnFactoryBase columnFactory, QRecordFactoryBase recordFactory, IQApplication application, string tableName, string pNoun)
        {
            var createTable = new CreateTable.Builder(application.Client.Ticket, application.Token, application.Client.AccountDomain, application.ApplicationId)
                              .SetTName(tableName)
                              .SetPNoun(pNoun)
                              .Build();
            var xml     = createTable.Post();
            var tableId = xml.Element("newdbid").Value;

            TableName   = tableName;
            RecordNames = pNoun;
            CommonConstruction(columnFactory, recordFactory, application, tableId);
            RefreshColumns(); //grab basic columns that QB automatically makes
            IsLoaded = true;
        }