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 ...
Nathan_Hobbs
Sep 08, 2022Copper Contributor
Hi, apenaranda thank you for sharing such amazing info. this code is work perfectly but I have one question how do we insert the delete the database again with the same name or the same file in SQL?
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.
- apenarandaSep 14, 2022Copper ContributorIn another forum I got the following link:
https://www.entityframeworktutorial.net/code-first/database-initialization-strategy-in-code-first.aspx