Skip to content

Commit c730a78

Browse files
committed
1 parent 46f2fe8 commit c730a78

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src-console/ConsoleAppEF2.1.1_InMemory/Program.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ static void Main(string[] args)
6363
};
6464
Console.WriteLine("all {0}", JsonConvert.SerializeObject(all, Formatting.Indented));
6565

66+
var anyTest = new []
67+
{
68+
new { id = "1", values =new [] { 1, 2, 3 } },
69+
new { id = "2", values =new [] { 1, 4 } },
70+
new { id = "3", values =new [] { 9, 5 } }
71+
}.AsQueryable();
72+
73+
var any1 = anyTest.Where(x => x.values.Contains(1));
74+
Console.WriteLine("any1 {0}", JsonConvert.SerializeObject(any1, Formatting.Indented));
75+
76+
var any2 = anyTest.Where("values.Contains(1)");
77+
Console.WriteLine("any2 {0}", JsonConvert.SerializeObject(any2, Formatting.Indented));
78+
6679
var config = new ParsingConfig
6780
{
6881
CustomTypeProvider = new C()

0 commit comments

Comments
 (0)