示例#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();
 }