public override void guardar(Envio obj)
 {
     OleDbConnection conexion = crearConexion();
     OleDbCommand cmdInsert = new OleDbCommand("insert into Emails (email, fecha_envio, concepto, estado) values (@em, @fec, @con, @es)", conexion);
     cmdInsert.Parameters.AddWithValue("@em", obj.Email);
     cmdInsert.Parameters.AddWithValue("@fec", obj.FechaEnvio);
     cmdInsert.Parameters.AddWithValue("@con", obj.Concepto);
     cmdInsert.Parameters.AddWithValue("@es", obj.Estado);
     cmdInsert.ExecuteNonQuery();
 }
 public abstract void guardar(Envio obj);
Exemple #3
0
 public static void guardar(Envio obj)
 {
     persist.guardar(obj);
 }