0
I made a column change in my SQL BD in my ASP.NET MVC project.
I changed a column of Cliente_RG (INT)
for Cliente_Bairro (String)
. In SQL the change was OK. In the project, in all tables (think) the associations were changed.
When I fill out the fields in my MVC project when saving to the BD results in error saying that the column was not found Cliente_RG
. Yes, it was not found because I made a change to the table. How I make this change makes my ASP.NET MVC project understand the new column name?
Displays the following error message when running db.Estacionamento_Cliente.Add(model);
:
Schema specified is not Valid. Errors: r nThe Relationship 'Stationmentevents_hommodel.Fk_comprovante_cliente_id_client' was not Loaded because the type 'Stationmentevents_hommodel.Stationment_client' is not available. r nThe following information may be Useful in resolving the Previous error: r nThe required Property 'Cliente_rg' does not exist on the type 'Parking.Models.Parking'. r n r n r nThe Relationship 'Stationingevents_hommodel.Fk_reserva_cliente_id_client' was not Loaded because the type 'Stationingevents_hommodel.Stationment_client' is not available. r nThe following information may be Useful in resolving the Previous error: r nThe required Property 'Cliente_rg' does not exist on the type 'Parking.Models.Parking'. r n r n r nThe Relationship 'Stationingevents_hommodel.Fk_veiculo_cliente_id_client' was not Loaded because the type 'Stationingevents_hommodel.Stationment_client' is not available. r nThe following information may be Useful in resolving the Previous error: r nThe required Property 'Cliente_rg' does not exist on the type 'Parking.Models.Parking'. r n r n