DbSet doesn't contain definition for FirstOrDefault?

前端 未结 3 1120
攒了一身酷
攒了一身酷 2021-01-05 08:35

I recently migrated an existing project to .net 4.5 and changed out what this project was using for data access (switching to Entity Framework).

For some reason any

3条回答
  •  时光说笑
    2021-01-05 09:25

    This question already has an answer but I had a different cause.

    I also needed to have a reference to System before First or Default would show up...

提交回复
热议问题