How to use Contains() in my join
Posted
by jrep...
on Stack Overflow
See other posts from Stack Overflow
or by jrep...
Published on 2010-04-02T17:57:14Z
Indexed on
2010/04/02
18:03 UTC
Read the original article
Hit count: 376
I am trying to get my linq query to replicate my t-sql but I am lost.
SELECT *
FROM BaiDetail INNER JOIN
BaiDetailMap ON BaiDetail.DetailText
LIKE '%' + BaiDetailMap.BaiDetailMapSearchText +'%'
This is what I have so far... but no go
from det in Source
from map in Map
where det.DetailText.Contains(map.SearchText)
select new {det, map}
Error Message:
Only arguments that can be evaluated on the client are supported for the String.Contains method.
© Stack Overflow or respective owner