dbhelper.cs 516 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Data.SqlClient;
  7. namespace Transportation
  8. {
  9. class dbhelper
  10. {
  11. public static SqlConnection sqlConnection = null;
  12. public static void openConnection(ref SqlConnection a)
  13. {
  14. a = new SqlConnection("Data Source=ngknn.ru;Initial Catalog=Sergeichev_PP;Persist Security Info=True;User ID=31П;Password=12357");
  15. a.Open();
  16. }
  17. }
  18. }