Entity Framework如何实现改数据???
BooksEntitiesdb=newBooksEntities();BookoldBook=db.Books.Where(e=>e.Id==Id).Select(e=>...
BooksEntities db = new BooksEntities();
Book oldBook = db.Books.Where(e => e.Id == Id).Select(e => e).Single();
例如更改oldBook的Id 展开
Book oldBook = db.Books.Where(e => e.Id == Id).Select(e => e).Single();
例如更改oldBook的Id 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询