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; }
public DapperRepository() { _dapperImplementor = new DapperImplementor(new SqlGeneratorImpl(DapperConfiguration.Instance)); _sessionContext = new DapperSessionContext(); session = _sessionContext.GetSession <T>(); }
public DapperRepository(IDapperSessionContext sessionContext, IDapperImplementor dapperImplementor) { _dapperImplementor = dapperImplementor; _sessionContext = sessionContext; }