protected RepositoryBase(IStorageSession outsideSession) { _outsideSession = outsideSession; ProvidersIndexes.Ensure(((RavenDbSession)outsideSession).Session.Advanced.DocumentStore); }
protected RepositoryBase(IStorage storage) { _storage = storage; ProvidersIndexes.Ensure(((RavenDbStorage)storage).DocumentStore); }