Class MongoDbSource<TOutput>
A data flow source for MonogDb.
Inherited Members
Namespace: ETLBox.MongoDb
Assembly: ETLBox.MongoDb.dll
Syntax
public class MongoDbSource<TOutput> : DataFlowExecutableSource<TOutput>, IDataFlowLogging, IDataFlowExecutableSource<TOutput>, IDataFlowSource<TOutput>, IDataFlowExecutableSource, IDataFlowSource, IDataFlowComponent, ILoggableTask
Type Parameters
Name | Description |
---|---|
TOutput | Type of outgoing data. |
Constructors
MongoDbSource()
Declaration
public MongoDbSource()
Fields
DEFAULT_BATCH_SIZE
Default batch size when retrieving documents.
Declaration
public const int DEFAULT_BATCH_SIZE = 1000
Field Value
Type | Description |
---|---|
int |
Properties
CollectionName
Name of the collection to retrieve the documents from.
Declaration
public string CollectionName { get; set; }
Property Value
Type | Description |
---|---|
string |
ConnectionString
If you provide a connection string, this component will create a new MongoClient object to connect with MongoDb. If you already have a client object instantiated in your application, use DbClient instead to pass it directly to the component.
Declaration
public string ConnectionString { get; set; }
Property Value
Type | Description |
---|---|
string |
DatabaseName
The used database.
Declaration
public string DatabaseName { get; set; }
Property Value
Type | Description |
---|---|
string |
DbClient
An existing MongoClient that holds a MongoDb connection.
Declaration
public MongoClient DbClient { get; set; }
Property Value
Type | Description |
---|---|
MongoClient |
Filter
A filter description applied when retrieving the documents from the collection.
Declaration
public FilterDefinition<BsonDocument> Filter { get; set; }
Property Value
Type | Description |
---|---|
FilterDefinition<BsonDocument> |
FindOptions
Additional find options when retrieving the documents from the collection.
Declaration
public FindOptions FindOptions { get; set; }
Property Value
Type | Description |
---|---|
FindOptions |
Methods
CheckParameter()
Declaration
protected override void CheckParameter()
Overrides
CleanUpOnFaulted(Exception)
Declaration
protected override void CleanUpOnFaulted(Exception e)
Parameters
Type | Name | Description |
---|---|---|
Exception | e |
Overrides
CleanUpOnSuccess()
Declaration
protected override void CleanUpOnSuccess()
Overrides
OnExecutionDoAsyncWork()
Declaration
protected override void OnExecutionDoAsyncWork()