コード例 #1
0
ファイル: PerCallContainer.cs プロジェクト: xsysfan/Routines
 public PerCallContainer(
     RoutineClosure <TUserContext> closure,
     ApplicationSettings applicationSettings,
     Func <TUserContext, string> getAuditStamp)
 {
     this.closure             = closure;
     this.applicationSettings = applicationSettings;
     this.getAuditStamp       = getAuditStamp;
 }
コード例 #2
0
 internal IndependentRepositoryHandler(
     RoutineClosure <TUserContext> closure,
     Func <TDbContext> dbContextFactory,
     Func <TDbContext, IRepository <TEntity> > createRepository
     )
 {
     this.closure          = closure;
     this.dbContextFactory = dbContextFactory;
     this.createRepository = createRepository;
 }
コード例 #3
0
 public LoggingDomDataAccessEfCoreException(string message, RoutineClosure <UserContext> closure, Exception ex, string code = "USER") : base(message, ex, code) =>
     this.closure = closure;
コード例 #4
0
        public IIndependentRepositoryHandler <TUserContext, TEntity> Create <TEntity>(RoutineClosure <TUserContext> closure, bool noTracking) where TEntity : class
        {
            var createRepository  = repositoryGFactory.ResolveCreateRepository <TEntity>();
            var repositoryHandler = new IndependentRepositoryHandler <TUserContext, TDbContext, TEntity>(closure, dbContextFactory, (dbContext) => createRepository(dbContext, noTracking));

            return(repositoryHandler);
        }