string sql = "UPDATE Blogs SET Url ='new url'";
var objectContext = ((IObjectContextAdapter)context).ObjectContext;
objectContext.ExecuteStoreCommand(sql);
context.SaveChanges();
string sql = "UPDATE Blogs SET Url ='new url'";
var objectContext = ((IObjectContextAdapter)context).ObjectContext;
objectContext.ExecuteStoreCommand(sql);
context.SaveChanges();
© 著作权归作者所有