예제 #1
0
        public T Add(T entity)
        {
            _dbContext.Set <T>().Add(entity);
            _dbContext.SaveChanges();

            return(entity);
        }
예제 #2
0
 public int Complete()
 {
     return(_context.SaveChanges());
 }