Comparison operators not supported for type 'System.String[]'

后端 未结 5 2127
渐次进展
渐次进展 2020-12-11 22:20

why this line:

var category = _dataContext.Categories.Where(p => p.Keywords.Split(\' \').Contains(context.Request.QueryStrin         


        
5条回答
  •  情话喂你
    2020-12-11 23:07

    1) ToList() your var query

    2) In generated list in 1 step write your contain and split query: it execute correctly

    good luck

提交回复
热议问题