public void borrar(ClaseEntidad habitante) { conec.Open(); cmd = new SqlCommand("delete from condomine where cedula='{ habitante.cedula}'", conec); cmd.ExecuteNonQuery(); conec.Close(); }
public void editar(ClaseEntidad habitante) { cmd = new SqlCommand("actu", conec); cmd.CommandType = CommandType.StoredProcedure; conec.Open(); cmd.Parameters.AddWithValue("@cedula", habitante.cedula); cmd.Parameters.AddWithValue("@nombre", habitante.Nombre); cmd.Parameters.AddWithValue("@manzana", habitante.Manzana); cmd.Parameters.AddWithValue("@edificio", habitante.Edificio); cmd.Parameters.AddWithValue("@apart", habitante.Apartamento); cmd.ExecuteNonQuery(); cmd.Parameters.Clear(); conec.Close(); }
public void borrar(ClaseEntidad habitante) { ejec.borrar(habitante); }
public void editar(ClaseEntidad habitante) { ejec.editar(habitante); }
public void agregar(ClaseEntidad habitante) { ejec.agregar(habitante); }