The model item passed into the dictionary is of type 'System.Data.Entity.Infrastructure.DbQuery', but this dictionary requires a model item of type B

前端 未结 5 1561
太阳男子
太阳男子 2020-12-18 13:16

I been stuck in a situation and I tried finding the solution for it on net but was not successful. I am new to MVC with Entity Framework, and it is throwing the exception wh

5条回答
  •  难免孤独
    2020-12-18 13:54

    The model item passed into the dictionary is of type 'Person.Models.Location', but this dictionary requires a model item of type 'Person.Models.LoginModel'.

提交回复
热议问题