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;
            }
        }
Exemple #3
0
 partial void DeleteHoaDonStatus(HoaDonStatus instance);
        public static bool Insert(HoaDonStatus data)
        {
            try
            {
                dbContext.HoaDonStatus.InsertOnSubmit(data);
                dbContext.SubmitChanges();

                return true;
            }
            catch
            {
                return false;
            }
        }
Exemple #5
0
 partial void UpdateHoaDonStatus(HoaDonStatus instance);
Exemple #6
0
 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);
 }