Constans.cs 633 B

123456789101112131415161718192021222324
  1. using Microsoft.Data.SqlClient;
  2. namespace ApiMobileBelov.BaseConnection
  3. {
  4. public class Constans
  5. {
  6. public static string SqlConnection
  7. {
  8. get
  9. {
  10. var sc = new SqlConnectionStringBuilder
  11. {
  12. DataSource = "ngknn.ru",
  13. IntegratedSecurity = false,
  14. InitialCatalog = "BelovMobileAppAPI",
  15. UserID = "21P",
  16. Password = "12357",
  17. TrustServerCertificate = true
  18. };
  19. return sc.ToString();
  20. }
  21. }
  22. }
  23. }