知道实体主键,可以这样直接删除,不用再读取一遍 Repository target = new Repository(); actual = target.DeleteSave(new News { NewsID = 3 });
转载于:https://www.cnblogs.com/dudu837/archive/2011/03/17/1986833.html
转载于:https://www.cnblogs.com/dudu837/archive/2011/03/17/1986833.html