public static bool Delete(HoaDonStatus data) { try { if (data != null) { dbContext.HoaDonStatus.DeleteOnSubmit(data); dbContext.SubmitChanges(); return true; } return false; } catch { } CreateSQlConnection(); return false; }
public static bool Update(HoaDonStatus data) { try { if (data != null) { dbContext.SubmitChanges(); return true; } return false; } catch { return false; } }
partial void DeleteHoaDonStatus(HoaDonStatus instance);
public static bool Insert(HoaDonStatus data) { try { dbContext.HoaDonStatus.InsertOnSubmit(data); dbContext.SubmitChanges(); return true; } catch { return false; } }
partial void UpdateHoaDonStatus(HoaDonStatus instance);
partial void InsertHoaDonStatus(HoaDonStatus instance);
public static bool Update(HoaDonStatus data) { return HoaDonStatusDao.Update(data); }
public static bool Insert(HoaDonStatus data) { return HoaDonStatusDao.Insert(data); }
public static bool Delete(HoaDonStatus data) { return HoaDonStatusDao.Delete(data); }