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
serverAddressstringServer address of MongoDB server
databaseNamestringName of the database
usernamestringUsername to connect to the MongoDB server
passwordstringpassword to connect to the MongoDB server
portstringPort 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
Tables
Gets the collection of tables available in the provider.
public ReadOnlyCollection<ITable> Tables { get; }