Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist data with event store db #16

Open
jhiben opened this issue Oct 21, 2023 · 1 comment · May be fixed by #51
Open

Persist data with event store db #16

jhiben opened this issue Oct 21, 2023 · 1 comment · May be fixed by #51
Assignees

Comments

@jhiben
Copy link
Owner

jhiben commented Oct 21, 2023

I want to be able to persist the models in the database EventStoreDB.
A persistence layer should be added.
The models should be updated to be event sourced.

@jhiben jhiben self-assigned this Oct 21, 2023
@jhiben
Copy link
Owner Author

jhiben commented Oct 17, 2024

The CRUD models should be ignored.

jhiben added a commit that referenced this issue Oct 17, 2024
Fixes #16

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.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jhiben/workout-records-api-dotnet/issues/16?shareId=XXXX-XXXX-XXXX-XXXX).
@jhiben jhiben linked a pull request Oct 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant