public void Update(DetailsOfBill detailsOfBill)
        {
            var entry = db.Entry(detailsOfBill);   //provides information, ability to perform actions on the entity

            entry.State = EntityState.Modified;
            db.SaveChanges();
        }
示例#2
0
        public void Update(Area area)
        {
            var entry = db.Entry(area);   //provides information, ability to perform actions on the entity

            entry.State = EntityState.Modified;
            db.SaveChanges();
        }
示例#3
0
        //public IEnumerable<Invoice> GetAll()
        //{
        //    return from r in db.Invoices
        //           orderby r.Id
        //           select r;
        //}

        public void Update(User_Authorize user_authorize)
        {
            var entry = db.Entry(user_authorize);   //provides information, ability to perform actions on the entity

            entry.State = EntityState.Modified;
            db.SaveChanges();
        }