Beispiel #1
0
 public void Update(Siniflar clss)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = @"UPDATE Classes SET Class=@Class,Lesson=@Lesson";
         dbConnection.Open();
         dbConnection.Execute(sQuery, clss);
     }
 }
Beispiel #2
0
 public void Add(Siniflar clss)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = @"INSERT INTO Classes (FirstName,LastName,Number) VALUES(@FirstName,@LastName,@Number)";
         dbConnection.Open();
         dbConnection.Execute(sQuery, clss);
     }
 }