0

When I update with a null value I have this error:

The value for column velocidad_micro in table Partes is DBNull

This is my code:

EnumerableRowCollection<Inventario_MediosDataSet.MedioRow> row_medio = table_medio.GetData().Where(c => c.ns_medio == numero_serie);
    Inventario_MediosDataSetTableAdapters.MedioTableAdapter table_medio = new Inventario_MediosDataSetTableAdapters.MedioTableAdapter();
    table_medio.Update(fecha_alta, null, activo, t, marca, num_serie, row_medio.First().fecha_alta, row_medio.First().fecha_baja, row_medio.First().activo, row_medio.First().id_tipo, row_medio.First().id_marca);
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

0 Answers0