Example #1
0
 public void Add(TEntity item)
 {
     _dbSet.Add(item);
     _context.SaveChanges();
 }
Example #2
0
 public bool Save()
 {
     return(BaseContext.SaveChanges() > 0);
 }
 public void Save()
 {
     _context.SaveChanges();
 }
Example #4
0
 public void Save()
 {
     dbContext.SaveChanges();
 }
Example #5
0
 public void Save()
 {
     //we can implement some custom logic here
     _dbContext.SaveChanges();
 }
 public int SaveChanges()
 {
     return(db.SaveChanges());
 }
Example #7
0
 /// <summary>
 ///     Save changes into database.
 /// </summary>
 /// <returns></returns>
 public int Commit()
 {
     return(_dbContext.SaveChanges());
 }