return list with anonymous type in entity framework

后端 未结 6 1512
北恋
北恋 2021-01-02 07:21

How i can return list with anonymous type, because with this code i get

\"The type or namespace name \'T\' could not be found (are you missing a using directive or a

6条回答
  •  抹茶落季
    2021-01-02 08:16

    You can return the type:NameValueCollection or KeyValuePair instead. anonymous type can not be the return type.

提交回复
热议问题