Property name in a type must be unique

后端 未结 3 1295
情话喂你
情话喂你 2021-02-13 10:45

I am using Entity Framework 5 and I have the following entities:

public class User {
  public Int32 Id { get; set; }
  public String Username { get; set; }    
          


        
3条回答
  •  抹茶落季
    2021-02-13 10:54

    This may happen also when there is a mismatch in the type of the referencing property. For example:

    public string TipId { get; set; }
    

    instead of

    public int TipId { get; set; }
    

提交回复
热议问题