'object' does not contain a definition for 'X'

前端 未结 4 1942
旧时难觅i
旧时难觅i 2020-11-29 06:35

I had this problem once before and didn\'t resolve it. I have a list (generated in an MVC3 controller):

ViewBag.Languages = db.Languages
    .Select(x =>         


        
4条回答
  •  甜味超标
    2020-11-29 06:56

    It can happen as well if the name of your class doesn't match the name of the file (I know it's stupid but it might help you)

提交回复
热议问题