public void Expression_from_static_method_with_variable() { using (var context = new SimpleModelContext()) { var products = context.Products.Where(StaticExpressions.MethodWithVariable()); Assert.DoesNotThrow(() => products.ToList()); } }
public void Expression_embedded_static_method_with_variable() { using (var context = new SimpleModelContext()) { var products = context.Products .Where(p => context.Products.Where(StaticExpressions.MethodWithVariable()) .Contains(p)); products.ToList(); } }