A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ElasticLINQ/ElasticLINQ/issues/106 below:

Object initializer support for Select · Issue #106 · ElasticLINQ/ElasticLINQ · GitHub

For testing purposes, I made a class with a very minimal subset of WebUser's fields. This projection code throws the same error as the previous GroupBy issue.

            var wu = ctx.Query<WebUser>().Where(x => x.Forename == "Emily").Select(x => new WebUserSummary()
            {
                Id = x.Id,
                Forename = x.Forename,
                Surname = x.Surname,
                Phone = x.Phone,
                Email = x.Email,
                Username = x.Username

            }).ToList();

If this is not immediately repeatable, please let me know so that I can attempt to isolate additional variables.

Thanks in advance.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4