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