MongoDbSource<TOutput>

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>, IDataFlowExecutableSource<TOutput>, IDataFlowSource<TOutput>, IDataFlowExecutableSource, IDataFlowSource, IDataFlowComponent, ILoggableTask
Type Parameters
NameDescription
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
TypeDescription
int

Properties

CollectionName

Name of the collection to retrieve the documents from.

Declaration
    public string CollectionName { get; set; }
Property Value
TypeDescription
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
TypeDescription
string

DatabaseName

The used database.

Declaration
    public string DatabaseName { get; set; }
Property Value
TypeDescription
string

DbClient

An existing MongoClient that holds a MongoDb connection.

Declaration
    public MongoClient DbClient { get; set; }
Property Value
TypeDescription
MongoClient

Filter

A filter description applied when retrieving the documents from the collection.

Declaration
    public FilterDefinition<BsonDocument> Filter { get; set; }
Property Value
TypeDescription
FilterDefinition<BsonDocument>

FindOptions

Additional find options when retrieving the documents from the collection.

Declaration
    public FindOptions FindOptions { get; set; }
Property Value
TypeDescription
FindOptions

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CleanUpOnFaulted(Exception)

Declaration
    protected override void CleanUpOnFaulted(Exception e)
Parameters
TypeNameDescription
Exceptione
Overrides

CleanUpOnSuccess()

Declaration
    protected override void CleanUpOnSuccess()
Overrides

OnExecutionDoAsyncWork()

Declaration
    protected override void OnExecutionDoAsyncWork()
Overrides

Implements