예제 #1
0
 public DapperSessionContext(IDapperSessionFactory factory, IDapperConfiguration configuration, ILogger <DapperSessionContext> logger)
 {
     _factory       = factory;
     _logger        = logger;
     _configuration = configuration;
     IsolationLevel = IsolationLevel.ReadCommitted;
     _sessionMap    = new Lazy <ConcurrentDictionary <string, IDapperSession> >(() => new ConcurrentDictionary <string, IDapperSession>());
 }
예제 #2
0
 public DapperSessionContext(IDapperSessionFactory factory)
 {
     _factory = factory;
     Bind();
 }