CH.EventStore.EntityFramework
1.1.0
dotnet add package CH.EventStore.EntityFramework --version 1.1.0
NuGet\Install-Package CH.EventStore.EntityFramework -Version 1.1.0
<PackageReference Include="CH.EventStore.EntityFramework" Version="1.1.0" />
paket add CH.EventStore.EntityFramework --version 1.1.0
#r "nuget: CH.EventStore.EntityFramework, 1.1.0"
// Install CH.EventStore.EntityFramework as a Cake Addin #addin nuget:?package=CH.EventStore.EntityFramework&version=1.1.0 // Install CH.EventStore.EntityFramework as a Cake Tool #tool nuget:?package=CH.EventStore.EntityFramework&version=1.1.0
CH - EventStore.EntityFramework
Event store persistence implementation using EFCore 8. Supports in-memory and SQL providers.
Description
The CH - EventStore.EntityFramework
project provides an implementation of an event store using Entity Framework Core 8. This library supports both in-memory and SQL providers, making it flexible for various application environments.
Target Framework
This project targets the following framework:
- .NET 8.0
Installation
To install the CH - EventStore.EntityFramework
package, you can use the following command in the .NET CLI:
dotnet add package CH.EventStore.EntityFramework
Or via the NuGet Package Manager:
Install-Package CH.EventStore.EntityFramework
Usage
To use the event store implementation provided by this library, include the necessary namespaces in your project and configure the Entity Framework Core context to use the desired provider (in-memory or SQL).
Example
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using CH.EventStore.EntityFramework;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Configure EFCore to use In-Memory database
services.AddDbContext<EventStoreDbContext>(options =>
options.UseInMemoryDatabase("EventStore"));
// Or configure EFCore to use SQL Server
services.AddDbContext<EventStoreDbContext>(options =>
options.UseSqlServer("YourConnectionString"));
// Add other services here
}
}
Included Files
- EFEventStore.cs: An implementation of
IEventStore
using Entity Framework. - EFEventStoreSnapshotProvider.cs: Implementation of
IEventStoreSnapshotProvider
using Entity Framework. - EFRetroactiveEventsService: Service to handle applying retroactive events to the event stream.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Repository
For more information, visit the GitHub repository.
Authors
- Charalambos Hadjiantoniou
Version
Current version: 1.1.0
Package Icon
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- CH.Data.Abstractions (>= 1.1.0)
- CH.EventStore.Abstractions (>= 1.1.0)
- Microsoft.EntityFrameworkCore (>= 8.0.12)
- Microsoft.EntityFrameworkCore.InMemory (>= 8.0.12)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.12)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.