private static Marten.DocumentStore GetSharedStore( string connString, DocumentMappableSerializationBinder serializationBinder, IDocumentStoreAssemblyDiscoverer discoverer) { sharedLock.EnterUpgradeableReadLock(); try { if (sharedStore != null && sharedConnection == connString) { return(sharedStore); } sharedLock.EnterWriteLock(); try { var store = CreateNewStore(connString, serializationBinder, discoverer); ScopedDocumentStore.ClearMappedTenancies(); sharedStore = store; sharedConnection = connString; return(store); } finally { sharedLock.ExitWriteLock(); } } finally { sharedLock.ExitUpgradeableReadLock(); } }
public MartenEventCollection(Marten.DocumentStore documentStore) { _DocumentStore = documentStore; }
public ScopedDocumentStore(Marten.DocumentStore store) { this.store = store; }
public AdvancedOptions(DocumentStore store) { _store = store; }
public void BulkInsert(int batchSize, NpgsqlConnection connection, DocumentStore parent) { parent.bulkInsertDocuments <T>(_documents, batchSize, connection); }
internal AdvancedOperations(DocumentStore store) { _store = store; }
public void BulkInsert(int batchSize, NpgsqlConnection connection, DocumentStore parent, BulkInsertMode mode) { parent.bulkInsertDocuments(_documents, batchSize, connection, mode); }