Invalid column in MVC


Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'EvaluationHeaderId'.

Solution is here:
put this code to your class as navigation property in my case i need put this code to "Hotel class"

[ForeignKey("HotelId")]
public virtual EvaluationHeader EvaluationHeaders { get; set; }

No comments:

Post a Comment