Advertisement
LusienGG

SqlConnectionStringBuilder

Feb 23rd, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder
  2.             {
  3.                 ["Data Source"] = "(local)",
  4.                 ["Initial Catalog"] = "Softuni",
  5.                 ["integrated Security"] = true
  6.             };
  7.  
  8. SqlConnection connection = new SqlConnection(builder.ToString());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement