LINQ subquery “NOT IN” problem

后端 未结 2 1405
庸人自扰
庸人自扰 2021-01-06 10:49

I do not understand why this query fails.

var qTags = from tagsU in _context.ADN_ProductTagsView
where !(from o in _context.ADN_ProductTagsView
        where         


        
2条回答
  •  长情又很酷
    2021-01-06 11:05

    Try .Any

    var qTags = from tagus in _context.ADN_ProductTagsView
                where !tagAux.Any(t=> t== tagus.ProductTagID)
                select tagus ;
    

    btw, did not run the query, so please check the syntax.

提交回复
热议问题