internal Repository(IDbContextFactory contextFactory, IInterceptorsResolver interceptorsResolver, IDbContextUtilities contextUtilities) { this.interceptorsResolver = interceptorsResolver; this.contextFactory = contextFactory; this.contextBuilder = new DbContextBuilder(contextFactory, interceptorsResolver, this, contextUtilities); }
internal UnitOfWork(IDbContextFactory contextFactory, IInterceptorsResolver interceptorsResolver, IDbContextUtilities contextUtilities, IExceptionHandler exceptionHandler) { this.interceptorsResolver = interceptorsResolver; this.contextUtilities = contextUtilities; this.globalInterceptors = interceptorsResolver.GetGlobalInterceptors(); this.exceptionHandler = exceptionHandler; this.contextBuilder = new DbContextBuilder(contextFactory, interceptorsResolver, this, contextUtilities); }