LinqPad for NDatabase sample


Prerequisites

Install static driver

  • Open LinqPad, then click “Add Connection”, the following dialog appears:
linqpad_drivers.png
  • Clicks “View More Drivers”, the following dialog appears:
linqpad_more_drivers.png
  • Click the “Browse" button and import a ndatabaselinqpaddriver_3.lpx file. Once clicked, the driver will become visible in the previous dialog, and you can create new NDatabase connection.
ndatabase_driver.png

Configure sample

  • Unpack somewhere NDatabase_LinqPad_Northwind_Sample.zip
  • NDatabase.Northwind.Domain.dll contains schema classes, which were used to store objects and additionally, it contains typed data context NDatabase.Northwind.Domain.NDatabaseNorthwindDataContext which will allow LinqPad to query NDatabase norhtwind db
  • Set in NDatabase.Northwind.Domain.dll.config path to northwind.ndb (full path is needed)

Add new connection

  • Open LinqPad, then click “Add Connection”
  • Choose NDatabase static driver
  • Click "Next", and use below settings:
    • set path to NDatabase.Northwind.Domain.dll
    • choose NDatabase.Northwind.Domain.NDatabaseNorthwindDataContext type
    • set path to NDatabase.Northwind.Domain.dll.config
ndatabase_connection.png
  • After clicking "OK", connection is ready to use

Run queries

  • Run the command from screen. You can replace "Names" with any value from the below result
run_query.png

Last edited Dec 29, 2012 at 8:30 AM by jacek, version 12

Comments

jhayes2118 Feb 26, 2014 at 8:03 AM 
Just FYI. None of the links at the top actually contain the required .lpx file.