Entity Framework SaveChanges does not save data

前端 未结 1 1157
灰色年华
灰色年华 2021-01-14 07:29
using (var db = new dbEntities())
{
    var dbUser = (from u in db.Users
                  where u.Id == Id
                  select u).First();

    dbUser.LastName         


        
相关标签:
1条回答
  • 2021-01-14 08:27

    Look in you bin/debug folder for a copy of the database, it will have the changed data, as you are including the database a content with your app

    0 讨论(0)
提交回复
热议问题