public static void FillDataSet(DataSet dataSet, string orderBy) { Dal.FillDataSet(dataSet, tableName, orderBy); Position_Dal.FillDataSet(dataSet); DataRelation dataRelationPosition_NomineePosition = new DataRelation( "PositionNominee_Position" , dataSet.Tables[Position_Dal.tableName].Columns["ID"] , dataSet.Tables[tableName].Columns["Position"]); dataSet.Relations.Add(dataRelationPosition_NomineePosition); Nominee_Dal.FillDataSet(dataSet); DataRelation dataRelationPosition_NomineeNominee = new DataRelation( "PositionNominee_Nominee" , dataSet.Tables[Nominee_Dal.tableName].Columns["Id"] , dataSet.Tables[tableName].Columns["Nominee"]); dataSet.Relations.Add(dataRelationPosition_NomineeNominee); }
public static void FillDataSet(DataSet dataSet) { Dal.FillDataSet(dataSet, tableName, "[Position],[Name]"); Position_Dal.FillDataSet(dataSet); DataRelation dataRelationScoreType_Position = new DataRelation( "ScoreType_Position" , dataSet.Tables[Position_Dal.tableName].Columns["Id"] , dataSet.Tables[tableName].Columns["Position"]); dataSet.Relations.Add(dataRelationScoreType_Position); }
public static void FillDataSet(DataSet dataSet) { Dal.FillDataSet(dataSet, tableName, "[DateTime], [Nominee]"); Nominee_Dal.FillDataSet(dataSet); DataRelation dataRelationLogEntryNominee = new DataRelation( "LogEntryNominee" , dataSet.Tables[Nominee_Dal.tableName].Columns["Id"] , dataSet.Tables[tableName].Columns["Nominee"]); dataSet.Relations.Add(dataRelationLogEntryNominee); Position_Dal.FillDataSet(dataSet); }