Reputation: 7164
Firstly, I checked other answers in the website, but I couldn't find a solution. I have an ASP.NET MVC 5 project which is EF code first. I have Is class, in this class I have this :
[UIHint("YerGorme")]
public virtual YerGorme IliskiliYerGorme { get; set; }
And in YerGorme class I have this :
[Display(ResourceType = typeof(Resources), Name = "YerGorme_MahalindekiDegerlemeCinsi_Mahalindeki_Değerleme_Cinsi")]
public int MahalindekiCinsi { get; set; }
When I run the code I get this exception:
Invalid column name 'MahalindekiCinsi'.
Can you tell me what to do to get rid of this exception? Thanks.
Upvotes: 0
Views: 408