I am trying to know if a property of an entity contains any of the string in a list of strings.
I am trying to do this:
List<string> miLstStrings; // it is populated with some strings.
List<Data> miLstResultDb = await miDbContext.Data
.Where(x => miLstStrings.Any(y => x.StringProperty.Contains(y)))
.ToListAsync()
.ConfigureAwait(false);
But I get an error telling me that the query can't be translated.
Thanks.