public void Test_DeleteVagonsToInsertMT() { RC_VagonsOperations vo = new RC_VagonsOperations(); VAGON_OPERATIONS vo1 = new VAGON_OPERATIONS() { id_oper = 0, dt_amkr = DateTime.Now, n_natur = -777, id_vagon = 889213, id_stat = 4, dt_from_stat = null, dt_on_stat = DateTime.Now, id_way = 51, dt_from_way = null, dt_on_way = DateTime.Now, num_vag_on_way = 0, is_present = 0, id_locom = null, id_locom2 = null, id_cond2 = null, id_gruz = null, id_gruz_amkr = null, id_shop_gruz_for = null, weight_gruz = null, id_tupik = null, id_nazn_country = null, id_gdstait = null, id_cond = null, note = null, is_hist = 0, id_oracle = null, lock_id_way = null, lock_order = null, lock_side = null, lock_id_locom = null, st_lock_id_stat = null, st_lock_order = null, st_lock_train = null, st_lock_side = null, st_gruz_front = null, st_shop = null, oracle_k_st = null, st_lock_locom1 = null, st_lock_locom2 = null, id_oper_parent = null, grvu_SAP = null, ngru_SAP = null, id_ora_23_temp = null, edit_user = null, edit_dt = null, IDSostav = 0, }; int res_ov1 = vo.SaveVagonsOperations(vo1); Test_RC_VagonsOperations(res_ov1); VAGON_OPERATIONS vo2 = new VAGON_OPERATIONS() { id_oper = 0, dt_amkr = DateTime.Now, n_natur = -888, id_vagon = 889213, id_stat = 4, dt_from_stat = null, dt_on_stat = DateTime.Now, id_way = 51, dt_from_way = null, dt_on_way = DateTime.Now, num_vag_on_way = 0, is_present = 0, id_locom = null, id_locom2 = null, id_cond2 = null, id_gruz = null, id_gruz_amkr = null, id_shop_gruz_for = null, weight_gruz = null, id_tupik = null, id_nazn_country = null, id_gdstait = null, id_cond = null, note = null, is_hist = 0, id_oracle = null, lock_id_way = null, lock_order = null, lock_side = null, lock_id_locom = null, st_lock_id_stat = null, st_lock_order = null, st_lock_train = null, st_lock_side = null, st_gruz_front = null, st_shop = null, oracle_k_st = null, st_lock_locom1 = null, st_lock_locom2 = null, id_oper_parent = null, grvu_SAP = null, ngru_SAP = null, id_ora_23_temp = null, edit_user = null, edit_dt = null, IDSostav = 0, }; int res_ov2 = vo.SaveVagonsOperations(vo2); Test_RC_VagonsOperations(res_ov2); Console.WriteLine("Удалено : {0}", vo.DeleteVagonsToInsertMT(0)); }
public void Test_RC_VagonsOperations_DelseteIDSostav() { RC_VagonsOperations vo = new RC_VagonsOperations(); Console.WriteLine("Количество строк: {0}", vo.DeleteVagonsToInsertMT(4231)); }