我有一个动作方法,它会抛出以下错误。
dbcontext.TBL_ADMIN_GROUP_ROLE.Attach(objgrouprole);
var entry = dbcontext.Entry(objgrouprole);
entry.Property(x => x.IsDeleted).IsModified = true;
objgrouprole.IsDeleted = 1;
dbcontext.Entry(objgrouprole).State = EntityState.Modified;
dbcontext.SaveChanges();
return RedirectToAction("ManageGroupRole");