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