<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Selecting Static Results with Dynamic LINQ</title>
	<atom:link href="http://solutionizing.net/2010/01/23/selecting-static-results-with-dynamic-linq/feed/" rel="self" type="application/rss+xml" />
	<link>http://solutionizing.net/2010/01/23/selecting-static-results-with-dynamic-linq/</link>
	<description>Random thoughts on custom development in SharePoint.</description>
	<lastBuildDate>Sat, 12 May 2012 03:45:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Patrick</title>
		<link>http://solutionizing.net/2010/01/23/selecting-static-results-with-dynamic-linq/#comment-1101</link>
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Mon, 19 Mar 2012 14:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://solutionizing.net/?p=701#comment-1101</guid>
		<description><![CDATA[Sure - here are a few more details:

I have an objectquery that is typed to my POCO - right now we are calling the &quot;where&quot; and &quot;orderby&quot; extensions out of Dynamic Linq on that object query and getting good results.  I then added the code in this thread and attempted to call the new select extension and this is where we are getting the error below.
  The entity or complex type XXX cannot be constructed in a LINQ to Entities query.
The call to the new select method looks like:
  var result = innerQuery.Select(select); // where the select variable is my select list

the interesting part is when looking at the exception being thrown, it says that its trying to construct the actual entity and NOT the POCO object - which is what I&#039;m not understanding because the query is typed to the POCO.

let me know if this helps understanding my issue or if there are specific details I can share - I will also get this out on stackoverflow later today
Thanks!]]></description>
		<content:encoded><![CDATA[<p>Sure &#8211; here are a few more details:</p>
<p>I have an objectquery that is typed to my POCO &#8211; right now we are calling the &#8220;where&#8221; and &#8220;orderby&#8221; extensions out of Dynamic Linq on that object query and getting good results.  I then added the code in this thread and attempted to call the new select extension and this is where we are getting the error below.<br />
  The entity or complex type XXX cannot be constructed in a LINQ to Entities query.<br />
The call to the new select method looks like:<br />
  var result = innerQuery.Select(select); // where the select variable is my select list</p>
<p>the interesting part is when looking at the exception being thrown, it says that its trying to construct the actual entity and NOT the POCO object &#8211; which is what I&#8217;m not understanding because the query is typed to the POCO.</p>
<p>let me know if this helps understanding my issue or if there are specific details I can share &#8211; I will also get this out on stackoverflow later today<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Dahlby</title>
		<link>http://solutionizing.net/2010/01/23/selecting-static-results-with-dynamic-linq/#comment-1099</link>
		<dc:creator><![CDATA[Keith Dahlby]]></dc:creator>
		<pubDate>Sat, 17 Mar 2012 01:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://solutionizing.net/?p=701#comment-1099</guid>
		<description><![CDATA[I haven&#039;t tried this with EF. Feel free to post more details here or on Stack Overflow.]]></description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried this with EF. Feel free to post more details here or on Stack Overflow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://solutionizing.net/2010/01/23/selecting-static-results-with-dynamic-linq/#comment-1098</link>
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Fri, 16 Mar 2012 18:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://solutionizing.net/?p=701#comment-1098</guid>
		<description><![CDATA[Hi,
I have been trying to get this up and running and am having no luck - I&#039;m trying to call into the new select method and sparsely populate a poco with the columns I specify in the select statement.  Each time I call the select, when I try and evaluate the queryable I get the following error:

The entity or complex type XXX cannot be constructed in a LINQ to Entities query.

where &quot;XXX&quot; is the objectset (and not the poco).  Has anyone seen this before or have any advice for getting around this issue?
Thanks for any help!  And let me know if more details are needed.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have been trying to get this up and running and am having no luck &#8211; I&#8217;m trying to call into the new select method and sparsely populate a poco with the columns I specify in the select statement.  Each time I call the select, when I try and evaluate the queryable I get the following error:</p>
<p>The entity or complex type XXX cannot be constructed in a LINQ to Entities query.</p>
<p>where &#8220;XXX&#8221; is the objectset (and not the poco).  Has anyone seen this before or have any advice for getting around this issue?<br />
Thanks for any help!  And let me know if more details are needed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

