예제 #1
0
 public void Intercept(IInvocation invocation)
 {
     using (var context = new BlDbContext())
     {
         invocation.Proceed();
         context.SaveChanges();
     }
 }
예제 #2
0
 public void Add(TEntity entity)
 {
     BaseRepository.Add(entity);
     _dataContext.SaveChanges();
 }