csharp
using Raven.Client.Documents;
using Raven.Client.ServerWide;
using Raven.Client.ServerWide.Operations;
class Program
{
static void Main()
{
using (var store = new DocumentStore
{
Urls = new[] { "http://localhost:8080" },
Database = "YourDatabaseName"
}.Initialize())
{
}
}
}
csharp
using (var session = store.OpenSession())
{
var document = new { Name = "John", Age = 30 };
session.Store(document);
var result = session.Query<dynamic>().Where(x => x.Name == "John").ToList();
}