This repository has been archived by the owner on Feb 23, 2021. It is now read-only.
Add support for calling Contains
on a literal array in a Where expression.
#15
Labels
enhancement
New feature or request
Using a local/static/instance variable collection for a
Contains
call in a Where expression works, but constructing a literal array within the expression does not work. The implementation will be complicated by the possibility that the array is not constant, but includes an item from the expression input.Test case:
Invio.QueryProvider.MySql/test/Invio.QueryProvider.MySql.Test/MySqlQueryableTest.cs
Lines 144 to 146 in 03146ab
Expected:
Both
obj => (new[] { 1, 2, 3 }).Contains(obj.Field)
andobj => (new[] { obj.Field1, obj.Field2, obj.Field3 }).Contains(1)
should be functional.The text was updated successfully, but these errors were encountered: