Table of Contents

Class MongoDBDataProvider

Namespace
combit.Reporting.DataProviders
Assembly
combit.ListLabel31.CrossPlatform.MongoDBDataProvider.dll

Provider for MongoDB, requires MongoDB Inc. NuGet packages

public sealed class MongoDBDataProvider : IDataProvider, ICanHandleUsedIdentifiers, ISupportsLogger, ISupplyBaseTables
Inheritance
MongoDBDataProvider
Implements
Inherited Members

Constructors

MongoDBDataProvider(string, string, string, string, string)

Constractor of MongoDB data provider for ListLabel

public MongoDBDataProvider(string serverAddress, string databaseName, string username, string password, string port = "27017")

Parameters

serverAddress string

Server address of MongoDB server

databaseName string

Name of the database

username string

Username to connect to the MongoDB server

password string

password to connect to the MongoDB server

port string

Port of the MongoDB server. Default MongoDB port is 27017, so just change it if another port number is explicitly defined in MongoDB server

Fields

Database

public IMongoDatabase Database

Field Value

IMongoDatabase

Properties

Client

public MongoClient Client { get; set; }

Property Value

MongoClient

SupportCount

public bool SupportCount { get; set; }

Property Value

bool

Tables

Gets the collection of tables available in the provider.

public ReadOnlyCollection<ITable> Tables { get; }

Property Value

ReadOnlyCollection<ITable>