예제 #1
0
 public bool Save()
 {
     return(_dbContext.SaveChanges() > 0);
 }
예제 #2
0
 public int Add(Product product)
 {
     _context.Products.Add(product);
     return(_context.SaveChanges());
 }
예제 #3
0
 public bool Commit()
 {
     return(_context.SaveChanges() > 0);
 }
예제 #4
0
 public int SaveChanges()
 {
     return(Db.SaveChanges());
 }