Sequence contains no matching element - EntityFramework

后端 未结 10 1645
盖世英雄少女心
盖世英雄少女心 2020-12-17 08:43

I\'m using EF 6.1.0 and was creating a WCF Service.

First I created a Class Library containing my entities, Mappers and Context for initializing EF. I\'ve also creat

10条回答
  •  隐瞒了意图╮
    2020-12-17 09:25

    I got the same error message when I had renamed my Member model to Student and I had a navigation property in some other class as:

    public IList Members { get; set; }
    

    I changed that to:

    public IList Students { get; set; }
    

    and the problem was resolved!

提交回复
热议问题