Sequence contains more than one element

后端 未结 5 2080
醉酒成梦
醉酒成梦 2020-12-03 02:11

I\'m having some issues with grabbing a list of type \"RhsTruck\" through Linq and getting them to display.

RhsTruck just has properites Make, Model, Serial etc...

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 02:56

    FYI you can also get this error if EF Migrations tries to run with no Db configured, for example in a Test Project.

    Chased this for hours before I figured out that it was erroring on a query, but, not because of the query but because it was when Migrations kicked in to try to create the Db.

提交回复
热议问题