< All Topics
Print

How to Connect to MongoDB

The WinForms Designer allows you to connect to MongoDB in the Data Source Wizard.

Follow the steps below to establish a database connection:

  1. Click the New Data Source button in the Data Source ribbon tab.

On the first page of the invoked Data Source Wizard dialog, select MongoDB and click Next.

Specify connection parameters on the next page

 

Pass an entire string.

Enter connection fields individually.

The following page allows you to configure queries.

 

Select databases and collections that you want to load from the MongoDB instance.

 

A string stored in a query's Collection column is the default name for the query. The names of MongoDB queries should be unique. You can use the Alias column to set unique names for queries in the same collection. To filter queries, add a filter string to the Filter column.

Table of Contents