Sergey Stronchinskiy created IGNITE-19260:
---------------------------------------------

             Summary: .NET: Thin 3.0: Support nested MemberInit projections in 
LINQ
                 Key: IGNITE-19260
                 URL: https://issues.apache.org/jira/browse/IGNITE-19260
             Project: Ignite
          Issue Type: Improvement
          Components: platforms
            Reporter: Sergey Stronchinskiy
            Assignee: Sergey Stronchinskiy


Support nested member init projections:

```csharp
[Test]
public void TestSelectMemberInitSupportsFields1()
{
        var res = PocoView.AsQueryable()
                .Where(x => x.Key == 2)
                .Select(x => new MyClass1
                {
                        Key = x.Key,
                        Class2Field = new MyClass2
                        {
                                Value = x.Val
                        }
                })
                .ToArray();

        Assert.AreEqual(1, res.Length);
        var resRow = res[0];
}

private class MyClass1
{
        public long Key { get; set; }

        public MyClass2 Class2Field { get; set; } = null!;
}

private class MyClass2
{
        public string? Value { get; set; }
}
```

Also check possibility to combine with anonymous types.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to