Exemple #1
0
 public void Intercept(IInvocation invocation)
 {
     using (var context = new BlDbContext())
     {
         invocation.Proceed();
         context.SaveChanges();
     }
 }
Exemple #2
0
 public Repository()
 {
     _dataContext   = new BlDbContext();
     BaseRepository = _dataContext.Set <TEntity>();
 }