You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not at the moment, that would indeed be a useful feature...
You could translate StartsWith(), EndWith() and EF.Functions.Like() for full-fledged patterns. The last one will probably be easiest since IIRC StartsWith() and EndsWith() are a bit more complicated than they look - see the relevant translators.
It was not obvious to me that I could do source.Where(x => collection.Any(y => EF.Functions.Like(x.SomeString, y)));. Beautifully solved, thou I am a bit sad it took me 1-2 hours finding this issue and digging into the pull request to realise how it was possible. : P
Reacted by Yoh Deadfall, Mike Gold and Andrew Camilleri
Activity
roji commentedon May 23, 2018
Not at the moment, that would indeed be a useful feature...
You could translate
StartsWith(),EndWith()andEF.Functions.Like()for full-fledged patterns. The last one will probably be easiest since IIRCStartsWith()andEndsWith()are a bit more complicated than they look - see the relevant translators.austindrenski commentedon May 23, 2018
Sounds good. I'll open a PR and see what I can do with the translation.
roji commentedon May 29, 2018
Thanks @austindrenski, merged your contribution for
LIKE ANYandLIKE ALL. I've opened #436 for{Starts,Ends}With()support.Andrioden commentedon Jan 8, 2019
@roji : I think you should document this.
It was not obvious to me that I could do
source.Where(x => collection.Any(y => EF.Functions.Like(x.SomeString, y)));. Beautifully solved, thou I am a bit sad it took me 1-2 hours finding this issue and digging into the pull request to realise how it was possible. : P