jason
jason

Reputation: 7164

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.

Upvotes: 0

Views: 408

Answers (1)

cCcik
cCcik

Reputation: 107

You can not use Ğ for column name.

Upvotes: 1

Related Questions