#RavenDB LINQPad Driver
Releases are hosted on Github: https://github.com/ronnieoverby/RavenDB-Linqpad-Driver/releases
The latest release uses RavenDB client build 3690.
Watch the video at http://youtu.be/XgsPvyk0bjM for help getting started.
To install:
-
In Linqpad, click "Add connection".
-
In the "Choose Data Context" dialog, press the "View more drivers..." button.
-
In the "Choose a Driver" dialog, find the "RavenDB Driver" and click the "Download & Enabled driver" link.
-
Back in the "Choose Data Context" dialog, select "RavenDB Driver" and click the next button.
5.) In the RavenDB connection dialog, supply your connection information.
- You're done. You can write some code against your Raven database now. For example:
// c# expression
from a in Query<Album>()
where a.Title.StartsWith("Classic")
select a
The RavenDB Linqpad Driver will create a DocumentStore for you to use to connect to RavenDB. It uses the details that you supply in the connection properties window inside Linqpad. If you need to fully control the creation of the IDocumentStore (for sharding, etc) you can do it:
-
In your project, add a reference to RavenLinqpadDriver.Common.dll (can be found in /Common)
-
Implement ICreateDocumentStore
-
In Linqpad's RavenDB connection properties, reference your project's assembly.
-
When you run queries under that Linqpad connection, you're custom IDocumentStore will be used.
Special thanks to JetBrains for supporting this project by donating a license of ReSharper!