How do I remove underscore of foreign key fields in code first by convention

前端 未结 7 938
傲寒
傲寒 2020-11-30 01:20

I\'ve got multiple classes (including TPT) in my project. Each POCO has a BaseClass, which has a GUID (called GlobalKey) as primary ke

7条回答
  •  迷失自我
    2020-11-30 01:48

    I have also seen the same problem when the type of the field is off. Double check the type of the field Ex:

    public string StateId {get;set;}
    

    pointing to a domain object with int as the State.Id type. Make sure that your types are same.

提交回复
热议问题