Ejemplo n.º 1
0
 public void Update(Dersler less)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = @"UPDATE Lessons SET Class=@Class,LessonName=@LessonName";
         dbConnection.Open();
         dbConnection.Execute(sQuery, less);
     }
 }
Ejemplo n.º 2
0
 public void Add(Dersler less)
 {
     using (IDbConnection dbConnection = Connection)
     {
         string sQuery = @"INSERT INTO Lessons (FirstName,LastName,Number) VALUES(@FirstName,@LastName,@Number)";
         dbConnection.Open();
         dbConnection.Execute(sQuery, less);
     }
 }