ConnectionString.cs 628 B

123456789101112131415161718192021222324
  1. using System.Data.SqlClient;
  2. namespace API.DBConnection
  3. {
  4. public class ConnectionString
  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 = "Belov_ShoppingListDB",
  15. UserID = "21P",
  16. Password = "12357",
  17. TrustServerCertificate = true
  18. };
  19. return sc.ToString();
  20. }
  21. }
  22. }
  23. }