本文整理汇总了C#中CollegeERPDBEntities.Entry方法的典型用法代码示例。如果您正苦于以下问题:C# CollegeERPDBEntities.Entry方法的具体用法?C# CollegeERPDBEntities.Entry怎么用?C# CollegeERPDBEntities.Entry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CollegeERPDBEntities
的用法示例。
在下文中一共展示了CollegeERPDBEntities.Entry方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: updatequestion
public void updatequestion(Support_tbl ques)
{
db = new CollegeERPDBEntities();
db.Support_tbl.Attach(ques);
// var progrm = db.Program_tbl.Where(x => x.ID == id).FirstOrDefault();
db.Entry(ques).State = EntityState.Modified;
db.SaveChanges();
Mails_tbl mail = new Mails_tbl { RecieverID =ques.UserID, Date = DateTime.Now.Date, Message =ques.Answer, Status = 0, Subject = "Admin Answer" };
addmail(mail);
}
示例2: updatecourse
public void updatecourse(Courses_tbl updatecrs)
{
db = new CollegeERPDBEntities();
db.Courses_tbl.Attach(updatecrs);
// var progrm = db.Program_tbl.Where(x => x.ID == id).FirstOrDefault();
db.Entry(updatecrs).State = EntityState.Modified;
db.SaveChanges();
}
示例3: UpdateCreditHours
public void UpdateCreditHours(StudentSelectedCredit t)
{
db = new CollegeERPDBEntities();
db.StudentSelectedCredits.Attach(t);
db.Entry(t).State = EntityState.Modified;
db.SaveChanges();
}
示例4: updateRoom
public void updateRoom(HostelRoom_tbl hstl)
{
db = new CollegeERPDBEntities();
db.HostelRoom_tbl.Attach(hstl);
// var progrm = db.Program_tbl.Where(x => x.ID == id).FirstOrDefault();
db.Entry(hstl).State = EntityState.Modified;
db.SaveChanges();
}
示例5: updatepay
public void updatepay(EmployeePay_tbl pay)
{
db = new CollegeERPDBEntities();
db.EmployeePay_tbl.Attach(pay);
// var progrm = db.Program_tbl.Where(x => x.ID == id).FirstOrDefault();
db.Entry(pay).State = EntityState.Modified;
db.SaveChanges();
}
示例6: updatebook
public void updatebook(Book books)
{
db = new CollegeERPDBEntities();
db.Books.Attach(books);
// var progrm = db.Program_tbl.Where(x => x.ID == id).FirstOrDefault();
db.Entry(books).State = EntityState.Modified;
db.SaveChanges();
}