简体   繁体   中英

Invalid Column Name Error Entity Framework

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.

您不能将use用作列名。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM