Пример #1
0
        internal virtual void UpdateColumnTypes(Database database, Section.SectionType sectionType)
        {
            Section section = testCase.GetSection(sectionType);

            foreach (string tableName in section.TableNames)
            {
                Table table = section.GetTable(tableName);
                UpdateColumnTypes(database, table);
            }
        }
Пример #2
0
        private string GetTableName(int index, Section.SectionType sectionType)
        {
            Section section = testCase.GetSection(sectionType);

            if (section == null)
            {
                throw new ConfigException("M_Fixture_FixtureBook_GetSection_" + sectionType, testCase);
            }

            if (!section.HasTable(index))
            {
                throw new ConfigException("M_Fixture_FixtureBook_GetTable_" + sectionType, index + 1, section);
            }
            return(section.GetTable(index).Name);
        }
Пример #3
0
        private string GetTableName(int index, Section.SectionType sectionType, Type type)
        {
            Section section = testCase.GetSection(sectionType);

            if (section == null)
            {
                throw new ConfigException("M_Fixture_FixtureBook_GetSection_" + sectionType, testCase);
            }

            if (!section.HasTable(index))
            {
                if (index == 0 && typeof(DataSet).IsAssignableFrom(type))
                {
                    return(null);
                }
                throw new ConfigException("M_Fixture_FixtureBook_GetTable_" + sectionType, index + 1, section);
            }
            return(section.GetTable(index).Name);
        }
Пример #4
0
 protected virtual DataSet GetDataSet(Section.SectionType sectionType)
 {
     string[] tableNames = testCase.GetSection(sectionType).TableNames.ToArray();
     tempObjectFactory.SectionType = sectionType;
     return(tempObjectFactory.GetObject <DataSet>(tableNames));
 }
Пример #5
0
 /// <summary>
 /// 指定されたタイプのセクションを取得する。
 /// </summary>
 /// <param name="sectionType">セクションタイプ</param>
 /// <returns>セクション</returns>
 public Section GetSection(Section.SectionType sectionType)
 {
     return(GetSection((int)sectionType));
 }
Пример #6
0
 protected ObjectOperatorBase(Section.SectionType sectiontype)
 {
     this.sectiontype = sectiontype;
 }
Пример #7
0
 protected ObjectOperatorBase(Section.SectionType sectiontype)
 {
     this.sectiontype = sectiontype;
 }