connection string entity framework core code first code example
Example 1: c# entity framework code first connection string
<connectionStrings>
<add name="SchoolDB"
connectionString="Data Source=Your Server Name ;Initial Catalog=SchoolDB;Integrated Security=false ; user id =sa ; password =*** "
providerName="System.Data.SqlClient"/>
</connectionStrings>
Example 2: ef core connection string
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="BloggingDatabase"
connectionString="Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" />
</connectionStrings>
</configuration>