我正在尝试使用此代码从表中删除行。但是得到了错误。_er.results.Remove(lop); _er.SaveChanges();在_er.results.Remove上获取以下错误(Lop);
ex = {"The object cannot be deleted because it was not found in the ObjectStateManager
我正在尝试从我的AspNetRoles表中删除一个扩展如下的项目:{
public AspApplicationRoles我使用Get函数并输入其ID来获取项目并尝试删除它。但是,我在manager.Delete:{"The object cannot be deleted because it was not found in the ObjectStateManager."}上