Page 1 of 1

ListInit Expression

Posted: Wed 04 Mar 2009 16:51
by pferreira
Hi,

Is ListInit Expression supported? I tried the following code:

Code: Select all

context.Persons.Select(p => new Dictionary() { { "Name", p.Name } });
but I'm getting an InvalidOperationException: "Unrecognized expression node: ListInit"

If its not implemented yet, when will it be available?

Thanks

Pedro

Posted: Thu 05 Mar 2009 13:34
by AndreyR
This functionality is not supported neither in dotConnect, nor in Microsoft LINQ to SQL.
We will investigate the possibility of implementing this support, but no timeframe is available.

Posted: Thu 26 Mar 2009 12:13
by AndreyR
We have added support for such scenario. Look forward to the next build.

Posted: Thu 26 Mar 2009 12:30
by pferreira
Great!

That's the next stable release right? after the 5.20 beta trial?

Thanks

Pedro

Posted: Thu 26 Mar 2009 13:04
by AndreyR
Not exactly. We plan to release one more build with the old version of Entity Developer and LINQ support, and after that a new build containing bug fixes (and this new functionality).