Back to Devexpress

IDataSourceWizardMongoDBConnectionStringsProvider Interface

corelibraries-devexpress-dot-dataaccess-dot-web-52c94128.md

latest2.7 KB
Original Source

IDataSourceWizardMongoDBConnectionStringsProvider Interface

Allows you to manage MongoDB data connections available in the Data Source Wizard and Report Wizard.

Namespace : DevExpress.DataAccess.Web

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
public interface IDataSourceWizardMongoDBConnectionStringsProvider :
    IDataSourceWizardConnectionStringsProvider
vb
Public Interface IDataSourceWizardMongoDBConnectionStringsProvider
    Inherits IDataSourceWizardConnectionStringsProvider

Remarks

A custom connection provider allows you to manage MongoDB connections accessible to users:

  • Modify connections at runtime (for example, depending on the user)
  • Allow users to create new connections
  • Validate connections and keep them in a separate storage
  • Store credentials securely

To use a custom MongoDB connection strings provider, follow the steps below:

  1. Implement the IDataSourceWizardMongoDBConnectionStringsProvider interface. The following code snippet shows a sample implementation:

  2. Call the RegisterDataSourceWizardMongoDBConnectionStringsProvider<T>() method at application start to register the custom connection strings provider:

For additional information on MongoDB data connections in the Web Report Designer, refer to the following help topics:

See Also

IDataSourceWizardMongoDBConnectionStringsProvider Members

DevExpress.DataAccess.Web Namespace