0
In a database table with the fields Productoid, Description, Unit price and some others. I have a screen that only allows updating the Unit Price field, at the time of re-recording the record in the database as should be the routine to re-record. I did the following routine, but the Description field and others in the table were rewritten without content.
ProdutoRepositorio app = new ProdutoRepositorio();
Produto produto = new Produto();
produto.ProdutoId = codigo;
produto.PrecoUnitatio = decimal.Parse(txtPrecoUnitario.Text);
app.Atualizar(produto);
app.SalvarTodos();
Perfect Cassio, it worked. Thanks. Thank you very much.
– Gilberto V. Gonçalves
I’m glad it worked out
– Cassio Alves
Gilberto, mark as answer
– Cassio Alves
Forgive me ignorance. How to mark as useful answer. I searched but did not find. Thank you.
– Gilberto V. Gonçalves