You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: StudentProgramCsharp/Class/CDB.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,9 @@ internal class CDB
16
16
17
17
publicCDB()
18
18
{
19
-
20
-
con=newSqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=""C:\Users\yosef\Documents\Visual Studio 2022\StudentProgramCsharp\StudentProgramCsharp\Database\Database1.mdf"";Integrated Security=True");
19
+
//con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|Database\Database.mdf ;Integrated Security=True");
@@ -104,8 +105,7 @@ public int count_Row (String nameOfTable ,String where = null)
104
105
}
105
106
publicSqlConnection_con()
106
107
{
107
-
108
-
returncon=newSqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=""C:\Users\yosef\Documents\Visual Studio 2022\StudentProgramCsharp\StudentProgramCsharp\Database\Database1.mdf"";Integrated Security=True");;
0 commit comments