Home
Options

Connection to MongoDB

I'm new to LinqPad. Has anyone successfully made connection to MondoDb?

Comments

  • Options

    There's a third-party MongoDB driver available for LINQPad 6. Go to Add Connection, View More Drivers. Have you tried that?

  • Options

    Yes, I have the driver and created an assembly for the types. The driver lists my two types available but if I try to query anything all I get is this message and I cannot figure out what I'm doing wrong.

    CS1061 'IMongoCollection' does not contain a definition for 'Take' and no accessible extension method 'Take' accepting a first argument of type 'IMongoCollection' could be found (press F4 to add an assembly reference or import a namespace)

  • Options
    JoeJoe
    edited December 2022

    The default install does not work for this driver. However choosing using specific version and chose the latest did install

Sign In or Register to comment.