-
Notifications
You must be signed in to change notification settings - Fork 23
/
readme.html
46 lines (27 loc) · 1.76 KB
/
readme.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<h1>RavenDB LINQPad Driver</h1>
<p>Releases are hosted on Github: https://github.com/ronnieoverby/RavenDB-Linqpad-Driver/releases</p>
<p>The latest release uses RavenDB client build 3599.</p>
<p>Watch the video at http://youtu.be/XgsPvyk0bjM for help getting started.</p>
<hr />
<p>To install:</p>
<p>1) In Linqpad, click "Add connection".</p>
<p>2) In the "Choose Data Context" dialog, press the "View more drivers..." button.</p>
<p>3) In the "Choose a Driver" dialog, find the "RavenDB Driver" and click the "Download & Enabled driver" link.</p>
<p>4) Back in the "Choose Data Context" dialog, select "RavenDB Driver" and click the next button.</p>
<p>5.) In the RavenDB connection dialog, supply your connection information.</p>
<p>6) You're done. You can write some code against your Raven database now. For example:</p>
<p><code>c#
// c# expression
from a in Query<Album>()
where a.Title.StartsWith("Classic")
select a
</code></p>
<p>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:</p>
<p>1) In your project, add a reference to RavenLinqpadDriver.Common.dll (can be found in /Common)</p>
<p>2) Implement ICreateDocumentStore</p>
<p>3) In Linqpad's RavenDB connection properties, reference your project's assembly.</p>
<p>4) When you run queries under that Linqpad connection, you're custom IDocumentStore will be used.</p>
<h3>Thanks</h3>
<p>Special thanks to <a href="http://www.jetbrains.com/">JetBrains</a> for supporting this project by donating a license of <a href="http://www.jetbrains.com/resharper/">ReSharper</a>!</p>