"ConnectionStrings": {
"DefaultConnection": "Server=DESKTOP-V4RQQ32SQLEXPRESS;Database=SchoolManagementDB;Trusted_Connection=True;"
},
using System.Data.SqlClient;
SqlConnection conn = new SqlConnection();
conn.ConnectionString =
"Data Source=ServerName;" +
"Initial Catalog=DataBaseName;" +
"User id=UserName;" +
"Password=Secret;";
conn.Open();