예제 #1
0
 public void Add <TEntity>(TEntity item) where TEntity : class
 {
     try
     {
         _db.Add(item);
     }
     catch
     {
         throw;
     }
 }
 public void Add <TEntity>(TEntity entity) where TEntity : class
 {
     try
     {
         _dbContext.Add(entity);
     }
     catch (Exception)
     {
         throw;
     }
 }