コード例 #1
0
 // Adding new items/records
 public bool SaveChanges()
 {
     // this methods need to be called
     // to actually save data to databse
     // probably because possible rollbacks
     return(_context.SaveChanges() >= 0);
 }
コード例 #2
0
 public bool SaveChanges()
 {
     return(_context.SaveChanges() >= 0);
 }