Constans.cs 701 B

12345678910111213141516171819202122232425
  1. using Microsoft.Data.SqlClient;
  2. namespace BelovAPI.BaseConnection
  3. {
  4. public class Constans
  5. {
  6. // Проверка подлинности SQL сервером
  7. public static string SqlConnection
  8. {
  9. get
  10. {
  11. var sc = new SqlConnectionStringBuilder
  12. {
  13. DataSource = "sql.ngknn.local",
  14. IntegratedSecurity = false,
  15. InitialCatalog = "BaseBelovApi",
  16. UserID = "21P",
  17. Password = "12357",
  18. TrustServerCertificate = true
  19. };
  20. return sc.ToString();
  21. }
  22. }
  23. }
  24. }