private void detach_withdrow_money_ts(withdrow_money_t entity) { this.SendPropertyChanging(); entity.personal_info_t = null; }
partial void Deletewithdrow_money_t(withdrow_money_t instance);
partial void Updatewithdrow_money_t(withdrow_money_t instance);
partial void Insertwithdrow_money_t(withdrow_money_t instance);
private void detach_withdrow_money_ts(withdrow_money_t entity) { this.SendPropertyChanging(); entity.global_session_t = null; }
public void InsertWithdrawRecord(double money, string managerName, DateTime withdrawTime) { var db = new dbDataContext(); lock (db) { Table<withdrow_money_t> withdrawMoneyTable = db.GetTable<withdrow_money_t>(); var withdrawMoney = new withdrow_money_t { daily_id = GetLastOpenedGlobalSessionDailyId(), manager = GetUserInfoByName(managerName).person_id, cash_amount = money, transaction_time = withdrawTime }; withdrawMoneyTable.InsertOnSubmit(withdrawMoney); db.SubmitChanges(); } }