ASP .NET Core | Database Connection | Entity Framework Core | Code First | MSSQL



❤️ Repo: ASP.NET Core 2.0/3.0/5.0: https://github.com/shahedbd/DBConnection

❤️ Repo: ASP.NET Core 6.0: https://github.com/shahedbd/DBConnectionDotNet6

🍂 Most database providers require some form of connection string to connect to the database. Sometimes this connection string contains sensitive information that needs to be protected. You may also need to change the connection string as you move your application between environments, such as development, testing, and production.

🍂 In ASP.NET Core the configuration system is very flexible, and the connection string could be stored in appsettings.json, an environment variable, the user secret store, or another configuration source. See the Configuration section of the ASP.NET Core documentation for more details.

🍂 Install Dependencies:
dotnet add package Microsoft.EntityFrameworkCore –version 6.0.5
dotnet add package Microsoft.EntityFrameworkCore.SqlServer –version 6.0.5
dotnet add package Microsoft.EntityFrameworkCore.Tools –version 6.0.5

#ASP.NET Core
#database
#connection
#entityframeworkcore
#codefirst
#mssql

🤝 Music: bensound