public InQuantExceptionFilter(IHostingEnvironment hostingEnvironment,
                               IStringLocalizer <InQuantExceptionFilter> localizer,
                               IDapperSessionContext dapperSessionContext,
                               ILogger <InQuantExceptionFilter> logger)
 {
     _logger               = logger;
     _localizer            = localizer;
     _hostingEnvironment   = hostingEnvironment;
     _dapperSessionContext = dapperSessionContext;
 }
 public DapperRepository(IDapperSessionContext sessionContext)
 {
     SessionContext = sessionContext;
 }
Пример #3
0
 public DapperRepository()
 {
     _dapperImplementor = new DapperImplementor(new SqlGeneratorImpl(DapperConfiguration.Instance));
     _sessionContext    = new DapperSessionContext();
     session            = _sessionContext.GetSession <T>();
 }
Пример #4
0
 public DapperRepository(IDapperSessionContext sessionContext, IDapperImplementor dapperImplementor)
 {
     _dapperImplementor = dapperImplementor;
     _sessionContext    = sessionContext;
 }