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 ToString()
or Contains()
in an integer field in the expression lambda ?