RavenDB.Embedded
v7.1.2-rc-71008Pre-release
.NETFramework4.6.1.NETStandard2.0
RavenDB Embedded library to run ravendb in embedded way
Published
Aug 6, 2025
1y ago
Total Downloads
8.4M
8,350,802
Install
dotnet add package RavenDB.Embedded --version 7.1.2-rc-71008
| Product | Versions |
|---|---|
| .NET Standard | |
| Other |
README
RavenDB .NET Embedded Server
You're looking at RavenDB .NET Embedded Server NuGet release.
It lets you to spin-up RavenDB server locally in no-time using 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
Check the runtime prerequisites in our docs and get the latest stable version from NuGet.
Learning resources
- Embedded Server Guide - https://ravendb.net/articles/building-a-beer-vending-machine-program-with-ravendb-embedded-server π£οΈ
- Documentation - https://ravendb.net/docs/article-page/server/embedded π
- 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
EmbeddedServer.Instance.StartServer();
using (var store = EmbeddedServer.Instance.GetDocumentStore("Embedded"))
{
using (var session = store.OpenSession())
{
// Your code here
}
}
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.1/CONTRIBUTING.md
Changes from Previous Version
No structural changes between v7.1.1 and v7.1.2-rc-71008.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.