Class MongoDBOptions
- Namespace
- Cratis.Applications.MongoDB
- Assembly
- Cratis.Applications.MongoDB.dll
Represents the configuration for MongoDB.
public class MongoDBOptions
- Inheritance
-
MongoDBOptions
- Inherited Members
Constructors
MongoDBOptions()
public MongoDBOptions()
Properties
Database
The database name.
[Required]
public string Database { get; set; }
Property Value
DirectConnection
Gets whether or use the direct connection option for MongoDB. Defaults to true.
public bool DirectConnection { get; set; }
Property Value
Server
The server url.
[Required]
public string Server { get; set; }