Get all entities from DbSet<TEntity> with a property value that is in an IEnumerable
问题 This seems like it would be really simple, but I cannot seem to resolve it. Using EF Core, I have a DbSet<Rule> Rules in my DbContext . public class Rule { public int Id { get; set; } public string Raw { get; set; } } I am trying to write a query where, given an IEnumerable<string> lines , give me all of the Rule s from the DbSet where its Raw value is an element in lines (exact match, not a substring of a value). For some time, I was using something like: private IQueryable<Rule>