Add a persistence layer for EventStoreDB to persist models.
EventStoreRepository.cs: Add a new class EventStoreRepository to handle persistence with EventStoreDB. Implement methods for saving and retrieving events using EventStoreDB client.
EventStoreConfiguration.cs: Add a new class EventStoreConfiguration to configure EventStoreDB. Include connection settings and initialization logic.
WorkoutRecords.Infrastructure.csproj: Add a new project file for the infrastructure layer. Include the latest version of the EventStoreDB client package.
workout-records.sln: Add the new WorkoutRecords.Infrastructure project to the solution and update the solution file to include the new project reference.
CRUD Models: Delete the CRUD models Movement.cs, Workout.cs, WorkoutMovement.cs, and WorkoutRecord.cs from the src/WorkoutRecords.Domain/CRUD directory.
Fixes #16
Add a persistence layer for EventStoreDB to persist models.
EventStoreRepository
to handle persistence with EventStoreDB. Implement methods for saving and retrieving events using EventStoreDB client.EventStoreConfiguration
to configure EventStoreDB. Include connection settings and initialization logic.WorkoutRecords.Infrastructure
project to the solution and update the solution file to include the new project reference.Movement.cs
,Workout.cs
,WorkoutMovement.cs
, andWorkoutRecord.cs
from thesrc/WorkoutRecords.Domain/CRUD
directory.For more details, open the Copilot Workspace session.