public MergeQueryObject( IBulkLoader bulkLoader, ExpressionToSql expressionToSql) { _bulkLoader = bulkLoader; _expressionToSql = expressionToSql; }
public DocumentProvider(IBulkLoader <T>?bulkLoader, IDocumentStorage <T> queryOnly, IDocumentStorage <T> lightweight, IDocumentStorage <T> identityMap, IDocumentStorage <T> dirtyTracking) { BulkLoader = bulkLoader; QueryOnly = queryOnly; Lightweight = lightweight; IdentityMap = identityMap; DirtyTracking = dirtyTracking; }
public Watcher(ILog view, IFolderModel model, ILineCounter counter, IBulkLoader loader, string folder, string filter) { _view = view; _model = model; _counter = counter; _counter.FolderPath = folder; _loader = loader; _directory = folder; _filter = filter; }
private async Task loadDocumentsAsync <T>(IReadOnlyCollection <T> documents, IBulkLoader <T> loader, BulkInsertMode mode, NpgsqlConnection conn, CancellationToken cancellation) { if (mode == BulkInsertMode.InsertsOnly) { await loader.LoadAsync(_tenant, Serializer, conn, documents, cancellation).ConfigureAwait(false); } else { await loader.LoadIntoTempTableAsync(_tenant, Serializer, conn, documents, cancellation).ConfigureAwait(false); } }
private void loadDocuments <T>(IEnumerable <T> documents, IBulkLoader <T> loader, BulkInsertMode mode, NpgsqlConnection conn, CharArrayTextWriter writer) { if (mode == BulkInsertMode.InsertsOnly) { loader.Load(_tenant, Serializer, conn, documents, writer); } else { loader.LoadIntoTempTable(_tenant, Serializer, conn, documents, writer); } }
public BulkLoaderContext( IBulkLoader bulkLoader, string tableName, SqlConnection conn, bool keepIdentityColumnValue, IEnumerable <T> dataToInsert, int batchSize) { _withoutMembers = new List <string>(); _renameFields = new Dictionary <string, string>(); _bulkLoader = bulkLoader; _tableName = tableName; _conn = conn; _keepIdentityColumnValue = keepIdentityColumnValue; _dataToInsert = dataToInsert; _batchSize = batchSize; }
public SubClassDocumentStorage(IDocumentStorage parent) { _parent = parent; _parentIdAssignment = _parent.As <IdAssignment <TBase> >(); _parentBulkLoader = _parent.As <IBulkLoader <TBase> >(); }
public SubClassBulkLoader(IBulkLoader <TRoot> inner) { _inner = inner; }