private void initDutyTable(string id) { DataClassesDataContext db = new DataClassesDataContext(); FillTable ft = new FillTable(10, 7); ft.creatDataArray(db.Duty.Where(dutys=>dutys.assistantID==id).ToList()); ft.fillDataArrayToTable(DutyTable,NoValueDisplay.Nothing); }
private void initDutyTable() { DataClassesDataContext db = new DataClassesDataContext(); FillTable ft = new FillTable(10, 7); ft.creatDataArray(db.Duty.ToList()); ft.fillDataArrayToTable(DutyTable,NoValueDisplay.NoValueString); }
private void initDutyTable() { DataClassesDataContext db = new DataClassesDataContext(); FillTable ft = new FillTable(10, 7); ft.creatDataArray(db.Duty.ToList()); ft.fillDataArrayToTable(DutyTable, NoValueDisplay.NoValueString); }
private void initDutyTable(string id) { DataClassesDataContext db = new DataClassesDataContext(); FillTable ft = new FillTable(10, 7); ft.creatDataArray(db.Duty.Where(dutys => dutys.assistantID == id).ToList()); ft.fillDataArrayToTable(DutyTable, NoValueDisplay.Nothing); }
public void fillDataArrayToTableTest() { DataClassesDataContext db = new DataClassesDataContext("Data Source=FIREFLY-PC;Initial Catalog=LASDB;Integrated Security=True"); FillTable ft = new FillTable(10, 7); Table table = new Table(); ft.creatDataArray(db.Duty.ToList()); ft.fillDataArrayToTable(table, NoValueDisplay.NoValueString); Assert.IsNotNull(table); }