Can a LINQ to SQL IQueryable be unexpectedly evaluated?
问题 I am writing some code that takes a LINQ to SQL IQueryable<T> and adds further dynamically generated Where clauses. For example here is the skeleton of one of the methods: IQueryable<T> ApplyContains(IQueryable<T> source, string field, string value) { Expression<Func<T, bool>> lambda; ... dynamically generate lambda for p => p.<field>.Contains(value) ... return source.Where(lambda); } I might chain several of these methods together and finish off with a Skip/Take page. Am I correct in