internal NestedTenantQuerySession(QuerySession parent, ITenant tenant) : base((DocumentStore)parent.DocumentStore, parent.SessionOptions, parent.Database, tenant)
 {
     Listeners.AddRange(parent.Listeners);
     _parent  = parent;
     Versions = parent.Versions;
     ItemMap  = parent.ItemMap;
 }
        internal NestedTenantQuerySession(QuerySession parent, Tenant tenant) : base((DocumentStore)parent.DocumentStore, parent.SessionOptions, parent._connection)
        {
            Listeners.AddRange(parent.Listeners);
            _parent  = parent;
            Versions = parent.Versions;
            ItemMap  = parent.ItemMap;

            TenantId = tenant.TenantId;
            Database = tenant.Database;
        }
Beispiel #3
0
 public IDocumentStorage Find(QuerySession session)
 {
     return(session.StorageFor <T>());
 }