-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Getting fixed functionality
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.
1 task
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
This is for better orginization, and because it cant create directory but only file when creating connection
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
approved these changes
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added ChirpDbContext class that implements DbContext interface to enable ORM. ChirpDbContext registered with web application builder.