BaseConnect.cs 629 B

123456789101112131415161718192021222324
  1. using Microsoft.Data.SqlClient;
  2. namespace API_development
  3. {
  4. public class BaseConnect
  5. {
  6. public static string SQLConnection
  7. {
  8. get
  9. {
  10. var link = new SqlConnectionStringBuilder
  11. {
  12. DataSource = "sql",
  13. IntegratedSecurity = false,
  14. InitialCatalog = "43П-Коткова-API",
  15. UserID = "23П",
  16. Password = "12357",
  17. TrustServerCertificate = true
  18. };
  19. return link.ToString();
  20. }
  21. }
  22. }
  23. }