RavenDB.Client
7.2.6
Prefix Reserved
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package RavenDB.Client --version 7.2.6
NuGet\Install-Package RavenDB.Client -Version 7.2.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RavenDB.Client" Version="7.2.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RavenDB.Client" Version="7.2.6" />
<PackageReference Include="RavenDB.Client" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RavenDB.Client --version 7.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RavenDB.Client, 7.2.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RavenDB.Client@7.2.6
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RavenDB.Client&version=7.2.6
#tool nuget:?package=RavenDB.Client&version=7.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RavenDB .NET Client
You're looking at RavenDB .NET Client (SDK) NuGet release.
It makes it easy for you to communicate with your RavenDB instance, letting you perform any database operations with friendly API.
RavenDB is a NoSQL database that fuses extreme performance with ease-of-use, offering above the roof developer experience.
Learn more at https://ravendb.net or visit our GitHub repository.
Installation
Get the latest stable version from NuGet.
Learning resources
- Documentation - https://ravendb.net/docs 🎒
- Code Samples - https://demo.ravendb.net/ 🧑💻
Community
- RavenDB's Discord - https://discord.gg/ravendb 🍻
- Articles & guides - https://ravendb.net/articles 📰
- YouTube - https://www.youtube.com/@ravendb_net 🍿
- Blog - https://ayende.com/blog/ 🧑💻
Getting started
Initialize
using (IDocumentStore store = new DocumentStore
{
Urls = new[] // URL to the Server,
{ // or list of URLs
"http://live-test.ravendb.net" // to all Cluster Servers (Nodes)
},
Database = "Northwind", // Default database that DocumentStore will interact with
Conventions = { } // DocumentStore customizations
})
{
store.Initialize(); // Each DocumentStore needs to be initialized before use.
// This process establishes the connection with the Server
// and downloads various configurations
// e.g. cluster topology or client configuration
}
Store documents
using (IDocumentSession session = store.OpenSession()) // Open a session for a default 'Database'
{
Category category = new Category
{
Name = "Database Category"
};
session.Store(category); // Assign an 'Id' and collection (Categories)
// and start tracking an entity
Product product = new Product
{
Name = "RavenDB Database",
Category = category.Id,
UnitsInStock = 10
};
session.Store(product); // Assign an 'Id' and collection (Products)
// and start tracking an entity
session.SaveChanges(); // Send to the Server
// one request processed in one transaction
}
Query
using (IDocumentSession session = store.OpenSession()) // Open a session for a default 'Database'
{
List<string> productNames = session
.Query<Product>() // Query for Products
.Where(x => x.UnitsInStock > 5) // Filter
.Skip(0).Take(10) // Page
.Select(x => x.Name) // Project
.ToList(); // Materialize query
}
Contributing
- Submit an issue - https://github.com/ravendb/ravendb/issues
- GitHub Discussions - https://github.com/ravendb/ravendb/discussions
- Contributing rules - https://github.com/ravendb/ravendb/blob/v7.2/CONTRIBUTING.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Lambda2Js.Signed (>= 3.1.4)
- Microsoft.AspNetCore.JsonPatch (>= 10.0.11)
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.11)
- Microsoft.Bcl.HashCode (>= 6.0.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
- Nito.AsyncEx.Coordination (>= 5.1.2)
- System.Buffers (>= 4.6.1)
- System.Collections.Immutable (>= 10.0.11)
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.1
- Lambda2Js.Signed (>= 3.1.4)
- Microsoft.AspNetCore.JsonPatch (>= 10.0.11)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
- Nito.AsyncEx.Coordination (>= 5.1.2)
- System.Collections.Immutable (>= 10.0.11)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
-
net10.0
- Lambda2Js.Signed (>= 3.1.4)
- Microsoft.AspNetCore.JsonPatch (>= 10.0.11)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
- Nito.AsyncEx.Coordination (>= 5.1.2)
-
net8.0
- Lambda2Js.Signed (>= 3.1.4)
- Microsoft.AspNetCore.JsonPatch (>= 10.0.11)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
- Nito.AsyncEx.Coordination