Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 protected virtual DataSet GetDataSet(Section.SectionType sectionType)
 {
     string[] tableNames = testCase.GetSection(sectionType).TableNames.ToArray();
     tempObjectFactory.SectionType = sectionType;
     return(tempObjectFactory.GetObject <DataSet>(tableNames));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 指定されたタイプのセクションを取得する。
 /// </summary>
 /// <param name="sectionType">セクションタイプ</param>
 /// <returns>セクション</returns>
 public Section GetSection(Section.SectionType sectionType)
 {
     return(GetSection((int)sectionType));
 }
Ejemplo n.º 6
0
 protected ObjectOperatorBase(Section.SectionType sectiontype)
 {
     this.sectiontype = sectiontype;
 }
Ejemplo n.º 7
0
 protected ObjectOperatorBase(Section.SectionType sectiontype)
 {
     this.sectiontype = sectiontype;
 }