예제 #1
0
        internal Repository(IDbContextFactory contextFactory, IInterceptorsResolver interceptorsResolver, IDbContextUtilities contextUtilities)
        {
            this.interceptorsResolver = interceptorsResolver;
            this.contextFactory       = contextFactory;

            this.contextBuilder = new DbContextBuilder(contextFactory, interceptorsResolver, this, contextUtilities);
        }
예제 #2
0
        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);
        }