Skip to content

Sirozha1337/Linq2MongoDB.LINQPadDriver

Repository files navigation

This is a LINQPad driver for MongoDB

NuGet Version License

This driver allows you to query MongoDB using LINQPad.

This driver is based on the mkjeff's MongoDB driver for .NET.

Requirement

  • LINQPad 7.x,
  • .net 6.x

Installation

  1. Click Add connection
  2. Click View more drivers...
  3. On LINQPad Nuget Manager window, switch the radio button to Search all drivers
  4. Select package Linq2MongoDB.LINQPadDriver and click install

Setup connection

  1. Add connection, choose Build data context automatically and select MongoDB Driver click Next.
  2. Configure Connection String, Database Name and optionally Display name (otherwise Host + DB names are used)
  3. Make queries to your MongoDB database

Note

  • Collections will be exposed as capitalized names with all non-alphanumeric characters removed, e.g.: 'users-data' will be exposed as 'Usersdata'
  • Collections are exposed as IQueryable, to access the underlying collection use the Collection property, e.g.: Usersdata.Collection
  • To access the underlying MongoDB instance, use Database
  • See examples for more information

About

MongoDB Driver for LINQPad

Topics

Resources

License

Stars

Watchers

Forks

Languages