#30MinsLearning Day 4: migrated the first database using entity framework core 9.0 into the SQL database. It turned out the most difficult part was actually write the correct connection string.
Bluesky

Bluesky Social
Here's a document that helped: learn.microsoft.com/dotnet/api/s.... I didn't know that the server name was ".". And trust server certificate to true. #dotnet #sql #database #entityframeworkcore #entityframework

SqlConnection.ConnectionString...
SqlConnection.ConnectionString Property (System.Data.SqlClient)

Gets or sets the string used to open a SQL Server database.

Now if I did everything correct, after kill and restart the sql server container, the data should still be there. Wish me good luck.