示例#1
0
 public void Save(Book book)
 {
     session.Store(book);
     session.SaveChanges();
 }
示例#2
0
 public void Delete(Book book)
 {
     session.Delete(book);
     session.SaveChanges();
 }