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

Issues/59 database context #70

Merged
merged 14 commits into from Jun 14, 2022
Merged

Issues/59 database context #70

merged 14 commits into from Jun 14, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jun 14, 2022

In this PR, I created a DataContext and added methods to the Controller class to allow getting, creating and deleting of boards.

@ghost ghost marked this pull request as ready for review June 14, 2022 10:39
@ghost ghost linked an issue Jun 14, 2022 that may be closed by this pull request
@@ -1,4 +1,7 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=DESKTOP-5ED6RRO\\SQLEXPRESS;Database=Conway;Trusted_Connection=True;MultipleActiveResultSets=true"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should not commit this string containing details of your machine. We should possibly add another configuration source that is more secure.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, however, as this code is throwaway and your machine and accounts will be removed at the end of the exercise, we can let this slides for now. I will add an Issue to put in a new configuration source.

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 this pull request may close these issues.

Add EF Core database context to Web API
2 participants