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

DbContext for EF core added #152

Merged
merged 36 commits into from
Oct 8, 2024
Merged

DbContext for EF core added #152

merged 36 commits into from
Oct 8, 2024

Conversation

brycerkr
Copy link
Collaborator

@brycerkr brycerkr commented Oct 6, 2024

Added ChirpDbContext class that implements DbContext interface to enable ORM. ChirpDbContext registered with web application builder.

stoftot and others added 4 commits October 3, 2024 13:15
Co-authored-by: Christoffer <gryn@itu.dk>
Co-authored-by: Anthon <acah@itu.dk>
Co-authored-by: Alex <alext@itu.dk>
Co-authored-by: Christoffer <gryn@itu.dk>
Co-authored-by: Anthon <acah@itu.dk>
Co-authored-by: Alex <alext@itu.dk>
Added ChirpDbContext class that implements DbContext interface to enable ORM.
ChirpDbContext registered with web application builder.
@stoftot stoftot linked an issue Oct 7, 2024 that may be closed by this pull request
1 task
stoftot and others added 25 commits October 7, 2024 16:40
To establish relation
Co-authored-by: Helge <ropf@itu.dk>
This is because DbContect dosent work with Singletons, only DbContextFactory does.
And to my understanding it works kinda the same way as a singelton except the scope of it is only on HTTP request, meaning it gets desposed when its done and a new one is created when accseing a new endpoint
@stoftot stoftot added the refactor Refactoring the code label Oct 8, 2024
stoftot and others added 2 commits October 8, 2024 13:54
Co-authored-by: Alex <alext@itu.dk>
Co-authored-by: Anthon <acah@itu.dk>
Co-authored-by: Bryce <brka@itu.dk>
Co-authored-by: Rasmus <rarl@itu.dk>
Co-authored-by: Mathias <mlao@itu.dk>
@stoftot stoftot merged commit c5f3bcc into main Oct 8, 2024
2 checks passed
@RasmusLarsen02 RasmusLarsen02 deleted the add-db-context branch October 8, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring the code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

As a developer, I want to add a DBContext for cheep
3 participants