-
Notifications
You must be signed in to change notification settings - Fork 23
Getting Started
ronnieoverby edited this page Aug 14, 2012
·
10 revisions
- Download the latest driver from the downloads page. Unzip the lpx file.
- In Linqpad: Add Connection, View more drivers, browse for lpx file.
- Complete the connection information form.
- Create a new query using the raven connection that you just defined.
- Press F4 to add references to the assemblies containing your entity types OR create entity classes in Linqpad.
- Code. A DocumentStore and DocumentSession have been created for you.
Access them using the DocStore and Session properties.The query context acts as your IDocumentStore and IDocumentSession, so you access their members directly, as shown below.
Here, I save a new person object and view it's document id.
And here, I load that person object, make a change and save it.
You can see what the Raven client is sending and receiving from the server on the SQL tab:
Here's a demonstration video that I created with an older version of the driver: http://youtu.be/XgsPvyk0bjM Just keep in mind that it's somewhat obsolete because the Session and DocStore properties no longer exist.
Please let me know what you think and if you find any problems.