Ejemplo n.º 1
0
 // ---------------------------------------------------------------------
 // Update
 // ---------------------------------------------------------------------
 public void Update <T>(T model, String statement, IUpdateable <T> traits)
 {
     using (IDbCommand command = m_connection.CreateCommand())
     {
         command.CommandText = statement;
         traits.ApplyUpdate(model, command);
         command.ExecuteNonQuery();
     }
 }