public static void AddObject(TimeTable entity) { MoneyPacificDataContext mpdb = new MoneyPacificDataContext(); mpdb.TimeTables.InsertOnSubmit(entity); mpdb.SubmitChanges(); mpdb.Connection.Close(); }
public static bool Update(TimeTable entity) { throw new Exception("chua lam!..."); }
private void detach_TimeTables(TimeTable entity) { this.SendPropertyChanging(); entity.TimeItem = null; }
private void attach_TimeTables(TimeTable entity) { this.SendPropertyChanging(); entity.TimeItem = this; }
private void detach_TimeTables(TimeTable entity) { this.SendPropertyChanging(); entity.StoreManager = null; }
partial void DeleteTimeTable(TimeTable instance);
partial void UpdateTimeTable(TimeTable instance);
partial void InsertTimeTable(TimeTable instance);