Code Monkey home page Code Monkey logo

winforms-reporting-bind-report-mongodb-instance's Introduction

Reporting for WinForms - Bind a Report to a MongoDB Instance

Create and set up a MongoDBDataSource object to bind a report to a MongoDB instance in code.

  • Specify connection parameters to connect to a MongoDB instance. You can create a MongoDBConnectionParameters class instance and specify connection parameters individually, such as a hostname and port. If you want to use a connection string, you can create a MongoDBCustomConnectionParameters object and assign this string to the object's ConnectionString property. Assign the created connection parameters to the MongoDB data source's ConnectionParameter property.

  • Create queries to retrieve data from database collections of a MongoDB instance. An object of a MongoDBQuery class corresponds to one query. Set the query's DatabaseName and CollectionName properties to the name of a database and collection from which you want to load data. You can also filter the collection's items. For this, assign a filter condition to the query's FilterString property. Add the created queries to the MongoDB data source's Queries collection.

Note

This example uses the following connection string to connect to a MongoDB instance: mongodb://localhost:27017. The example also specifies queries to load data from the collections of the Northwind database. Before you run this example, specify a connection string and data queries to a configured MongoDB instance.

Files to Review

Documentation

winforms-reporting-bind-report-mongodb-instance's People

Contributors

andreylepikhov avatar devexpressexamplebot avatar pollyndos avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.