public CurrentSession(IRavenDbConfiguration config)
 {
     _config = config;
     Session = _config.DocumentStore.OpenSession();
 }
示例#2
0
        public RavenDbContext(IRavenDbConfiguration ravenDbConfiguration)
        {
            _ravenDbConfiguration = ravenDbConfiguration ?? throw new ArgumentNullException(nameof(ravenDbConfiguration));

            Initialize();
        }