I am trying to search a database to see if a string contains elements of a list of search terms.
var searchTerms = new List { \"car\", \"232\"
You could use the Any function from Linq to see if any term is contained into the data.
var result = context.Data.Where(data => searchTerms.Any(term => data.Name.Contains(term) || searchTerms.Any(term => data.Code.Contains(term));