I am trying to filter data from db using two columns.
The thing is that the user only posts a single field, and I will use that field to check if there is any record on database that concatenating both columns values exist.
At the moment I have the following:
query
.Where(x => string
.Concat(x.Field1, " ", x.Field2)
.Contains(parameter.MyValue, StringComparison.InvariantCultureIgnoreCase));
My problem is that the data is not being filtered this is weird, does anyone knows what is happening? thank you!