Updating the SQL database in the MVC project

0

I made a column change in my BD SQL in my ASP.NET MVC project.

I changed a column from Cliente_RG (INT) to Cliente_Bairro (String) . In SQL it was OK to change. In the project, in all tables (I think) the associations were changed.

When I fill in the fields in my MVC project at save time in DB it gives an error saying that the Cliente_RG column was not found. Yes, it was not found because I made the change in the table. How do I make this change so that my ASP.NET MVC project understands the new column name?

You receive the following error message when running db.Estacionamento_Cliente.Add(model); :

  

Schema specified is not valid. Errors: \ r \ nThe relationship 'ParkingEvents_HOMModel.FK_Company_Customer_Identifier' was not loaded because the type 'ParkingEventos_HOMModel.Customer Parking' is not available. \ R \ nThe following information may be useful in resolving the previous error: \ r \ '\ r \ n \ r \ nThe relationship' ParkingEventos_HOMModel.FK_Reserve_Client_Indicator 'was not loaded because the type' ParkingEventos_HOMModel.Customer Parking 'is not available. \ r \ r \ nThe following information may be useful in resolving the previous error: \ r \ nThe required property 'CustomerRG' does not exist on the type 'Parking.Models.Customer Storage'. The relationship ' ParkingEventos_HOMModel.FK_Veiculo_Cliente_Client_Client 'was not loaded because the type' ParkingEventos_HOMModel.Customer Parking 'is not available. \ R \ nThe following informati \ r \ n \ r \ n \ r \ n \ r \ n \ r \ n \ r \ n \ r \ n \ r \ n \ r \ n

    
asked by anonymous 06.05.2017 / 15:33

1 answer

0

Solved. It was the .EDMX file extension. After updating it everything worked.

    
06.05.2017 / 17:55