using Microsoft.Data.SqlClient; namespace BelovAPI.BaseConnection { public class Constans { // Проверка подлинности SQL сервером public static string SqlConnection { get { var sc = new SqlConnectionStringBuilder { DataSource = "sql.ngknn.local", IntegratedSecurity = false, InitialCatalog = "BaseBelovApi", UserID = "21P", Password = "12357", TrustServerCertificate = true }; return sc.ToString(); } } } }