ListInit Expression

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
pferreira
Posts: 6
Joined: Fri 12 Dec 2008 10:58

ListInit Expression

Post by pferreira » Wed 04 Mar 2009 16:51

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

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 05 Mar 2009 13:34

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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 26 Mar 2009 12:13

We have added support for such scenario. Look forward to the next build.

pferreira
Posts: 6
Joined: Fri 12 Dec 2008 10:58

Post by pferreira » Thu 26 Mar 2009 12:30

Great!

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

Thanks

Pedro

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Thu 26 Mar 2009 13:04

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).

Post Reply