public static bool Delete(HoaDonType data) { try { if (data != null) { HoaDonType objDb = GetById(data.Id); if (objDb != null) { dbContext.HoaDonTypes.DeleteOnSubmit(objDb); return true; } } } catch { } CreateSQlConnection(); return false; }
public static bool Update(HoaDonType data) { return HoaDonTypeDao.Update(data); }
public static bool Insert(HoaDonType data) { return HoaDonTypeDao.Insert(data); }
public static bool Delete(HoaDonType data) { return HoaDonTypeDao.Delete(data); }
public static bool Update(HoaDonType data) { try { if (data != null) { HoaDonType objDb = GetById(data.Id); objDb.Ten = data.Ten; dbContext.SubmitChanges(); return true; } return false; } catch { return false; } }
public static bool Insert(HoaDonType data) { try { dbContext.HoaDonTypes.InsertOnSubmit(data); dbContext.SubmitChanges(); return true; } catch { return false; } }
partial void DeleteHoaDonType(HoaDonType instance);
partial void UpdateHoaDonType(HoaDonType instance);
partial void InsertHoaDonType(HoaDonType instance);