-
Notifications
You must be signed in to change notification settings - Fork 9
Configure CxMongoConnection
Nathan Leach edited this page Apr 19, 2021
·
2 revisions
This configuration element has only one attribute named ConnectionString. This is a connection string using the MongoDB URI Format.
Note that at the first run of the program, this element is encrypted on platforms that support configuration section encryption.
Configuration values provided for this section can embed a reference to an environment variable by delimiting the name of the variable with %. While this is typically a construct used on Windows, this applies to all platforms. Example:
<CxMongoConnection ConnectionString="mongodb://%COMPUTERNAME%:27017/%DBNAME%" />
Special characters in the connection URL should be URL Encoded.