Pemvedr.Common.RavenDb 0.2.20241030.1
#Pemvedr.Common.RavenDb
Structure
| Name | Description |
|---|---|
| IRavenSessionProvider | Abstracts the concept of a database. |
| It should be implemented by the consumer. | |
| It should use the IDocumentstore to open a session to the specified database | |
| RavenDbDocumentStore | Implementation of a documentstore which sets up the location and logs queries for debug |
| IRavenDbLocation | Abstract the configuration for ravendb |
| It should be implemented by the consumer. |
Missing link is a Repository which uses the RavenSessionProvider to manipulate the data in the database. Inherit Pemvedr.Common.Projections.RavenDb.GenericProjectionRepository or use as sample to create a custom repository
Examples
A SessionProvider to select the database
public class ArtikelSessionProvider : IRavenSessionProvider
{
private const string DatabaseName = "Boodschap.Artikel.QueryStack";
private readonly IDocumentStore _store;
public ArtikelSessionProvider(IDocumentStore store)
{
_store = store;
}
public IAsyncDocumentSession OpenSession() => _store.OpenAsyncSession(DatabaseName);
}
Development hints
none
See also
Showing the top 20 packages that depend on Pemvedr.Common.RavenDb.
| Packages | Downloads |
|---|---|
|
Pemvedr.Common.Eventlog.SharedRavenDb
»
|
10 |
|
Pemvedr.Common.Projections.RavenDb
»
|
10 |
|
Pemvedr.Common.Eventlog.SharedRavenDb
Package Description
|
8 |
|
Pemvedr.Common.Eventlog.SharedRavenDb
»
|
8 |
|
Pemvedr.Common.Projections.RavenDb
»
|
7 |
|
Pemvedr.Common.Eventlog.SharedRavenDb
»
|
7 |
|
Pemvedr.Common.Eventlog.SharedRavenDb
Package Description
|
7 |
|
Pemvedr.Common.Projections.RavenDb
Package Description
|
6 |
|
Pemvedr.Common.Projections.RavenDb
»
|
6 |
.NET 8.0
- Pemvedr.Common.DomainDriven (>= 0.2.20241030.1)
- Pemvedr.Common.ExtensionMethods (>= 0.6.20240401.1)
- Pemvedr.Common.Ioc (>= 0.10.20240903.1)
- Pemvedr.Common.Logging (>= 0.1.20240401.1)
- Pemvedr.Common.Utilities (>= 0.5.20241030.1)
- FSharp.Core (>= 8.0.401)
- RavenDB.Client (>= 6.2.1)
| Version | Downloads | Last updated |
|---|---|---|
| 0.2.20241101.1 | 5 | 11/01/2024 |
| 0.2.20241031.2 | 5 | 10/31/2024 |
| 0.2.20241031.1 | 5 | 10/31/2024 |
| 0.2.20241030.1 | 5 | 10/30/2024 |
| 0.2.20240903.1 | 5 | 09/02/2024 |
| 0.2.20240629.1 | 5 | 06/29/2024 |
| 0.2.20240602.1 | 5 | 06/02/2024 |
| 0.2.20240401.1 | 5 | 04/01/2024 |
| 0.2.20230313.1 | 7 | 03/13/2023 |
| 0.2.20220430.1 | 10 | 05/15/2022 |
| 0.2.20220429.2 | 7 | 05/15/2022 |
| 0.2.20220327.1 | 5 | 05/15/2022 |
| 0.2.20210224.3 | 7 | 05/15/2022 |
| 0.2.20210224.2 | 5 | 05/15/2022 |
| 0.2.20201220.1 | 6 | 05/15/2022 |
| 0.2.20201213.1 | 5 | 05/15/2022 |
| 0.2.20201212.1 | 5 | 05/15/2022 |
| 0.2.20201211.1 | 5 | 05/15/2022 |
| 0.2.20201207.1 | 5 | 05/15/2022 |
| 0.2.20201206.1 | 6 | 05/15/2022 |
| 0.2.20201105.3 | 5 | 05/15/2022 |
| 0.2.20201103.14 | 6 | 05/15/2022 |
| 0.1.20049.1 | 5 | 05/15/2022 |
| 0.1.20038.1 | 5 | 05/15/2022 |
| 0.1.20027.1 | 5 | 05/15/2022 |
| 0.1.19257.1 | 5 | 05/15/2022 |
| 0.1.19254.3 | 6 | 05/15/2022 |
| 0.1.19252.2 | 5 | 05/15/2022 |
| 0.1.19246.2 | 6 | 05/15/2022 |
| 0.1.19183.4 | 6 | 05/15/2022 |
| 0.1.19171.3 | 5 | 05/15/2022 |
| 0.1.19157.8 | 6 | 05/15/2022 |
| 0.1.19157.5 | 6 | 05/15/2022 |