LinqToEntities中,如何删除一个Repository对象()
A.
db.Repositories.Remove(repository);db.SaveChanges();
B.
db.Repositories.Delete (repository);db.SaveChanges();
C.
db.Repositories.Deleted (repository);db.SaveChanges();
D.
db.Repositories.Removed(repository);db.SaveChanges();