Well, that would translate into
LIKE "%Word1 Word2%"
which is probably not the one you want ... If you write your query as follows:
where t.Field.Contains("Word1") && t.Field.Contains("Word2")
It will generate the following SQL:
DECLARE @p0 VarChar(4) SET @p0 = '%ab%' DECLARE @p1 VarChar(4) SET @p1 = '%cd%' .... SELECT ... WHERE ([t0].[Field] LIKE @p0) AND ([t0].[Field] LIKE @p1)
StΓ©phane
source share