Forum Discussion
apenaranda
Sep 08, 2022Copper Contributor
Create database connectionStrings ASP.NET
Summarizing a little what I have, the app creates a sql database, if it is already created, it deletes it and recreates it. I would like to understand the part of the code where it does this, which ...
apenaranda
Sep 09, 2022Copper Contributor
Hello, indeed the code works perfectly, what I would be interested in knowing is precisely what you are asking, where is it told to delete and create the database again? In the end, the problem I have is that I don't always want to create the database again, just update it.
apenaranda
Sep 14, 2022Copper Contributor
In another forum I got the following link:
https://www.entityframeworktutorial.net/code-first/database-initialization-strategy-in-code-first.aspx
https://www.entityframeworktutorial.net/code-first/database-initialization-strategy-in-code-first.aspx