3
I have the following expression:
query = query.Where(x => x.MeuCampoInteiro.ToString().Contains(filter));
But an exception is occurring:
System.NotSupportedException: 'The expression [10008].MeuCampoInteiro.ToString() is not supported.'
Is there any way to do the ToString()
or Contains()
in an entire field in the expression lambda?
Related in English: C# Linq Expression in lambda with contains
– Marconi