<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : CodeDom generated query</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : CodeDom generated query</description>
  <pubDate>Fri, 10 Apr 2026 22:31:14 -700</pubDate>
  <lastBuildDate>Tue, 25 Mar 2014 20:10:27 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=4659</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>CodeDom generated query : Do you have an email address where...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17432#17432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 25-Mar-2014 at 8:10pm<br /><br />Do you have an email address where we can continue this conversation, and possibly exchange information on access to source code?]]>
   </description>
   <pubDate>Tue, 25 Mar 2014 20:10:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17432#17432</guid>
  </item> 
  <item>
   <title>CodeDom generated query : Based on the exception, it looks...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17431#17431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 25-Mar-2014 at 3:57pm<br /><br />Based on the exception, it looks like the entity type returned by the query is not being found.<div>Hard to tell why by looking at your snippet.</div><div>A repro solution will help to determine why this is happening.</div>]]>
   </description>
   <pubDate>Tue, 25 Mar 2014 15:57:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17431#17431</guid>
  </item> 
  <item>
   <title>CodeDom generated query : I&amp;#039;ll try and get to that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17430#17430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 25-Mar-2014 at 3:45pm<br /><br />I'll try and get to that soon, but in the meantime is there any documentation on the exception in the original posting that you could pass along to me?]]>
   </description>
   <pubDate>Tue, 25 Mar 2014 15:45:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17430#17430</guid>
  </item> 
  <item>
   <title>CodeDom generated query : Chuck,I can&amp;#039;t reproduce this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17429#17429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 25-Mar-2014 at 3:42pm<br /><br />Chuck,<div><br></div><div>I can't reproduce this issue here.</div><div>Please provide a small solution reproducing the issue.</div><div>Please target NorthwindIB in the repro solution.</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 25 Mar 2014 15:42:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17429#17429</guid>
  </item> 
  <item>
   <title>CodeDom generated query : Hi Chuck,I&amp;#039;m working on a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17428#17428</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 25-Mar-2014 at 3:15pm<br /><br />Hi Chuck,<div><br></div><div>I'm working on a repro and will follow up shortly.</div>]]>
   </description>
   <pubDate>Tue, 25 Mar 2014 15:15:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17428#17428</guid>
  </item> 
  <item>
   <title>CodeDom generated query : Hello out there?Anybody at IdeabBlade...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17417#17417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 22-Mar-2014 at 8:32am<br /><br />Hello out there?<div><br></div><div>Anybody at IdeabBlade have some insight as to where this&nbsp;<span style=": rgb251, 251, 253; line-height: 1.4;">IdeaBlade.EntityModel.EntityServerException is coming from? &nbsp;Any documentation on the exception?&nbsp;</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">Thanks!&nbsp;</span></div>]]>
   </description>
   <pubDate>Sat, 22 Mar 2014 08:32:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17417#17417</guid>
  </item> 
  <item>
   <title>CodeDom generated query : I am using CodeDom to create and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17410#17410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 4659<br /><strong>Posted:</strong> 18-Mar-2014 at 6:57am<br /><br />I am using CodeDom to create and execute runtime specified full LINQ queries, which is working nicely.  However, I am now trying to add support for IncludePaths and am getting the below exception that I can't find any documentation on.<br /><br />Below is the full text of the generated code, which works properly until I add the line <br />query = query.Include("SourcePolicyPeriod.Certificates");<br /><br />The same query - with the Include - works properly in the main project environment.  <br />__________________________________________________________________<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using System;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using System.Collections;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using System.Collections.Generic;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using System.Linq;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using System.Text;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using IdeaBlade.EntityModel;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  using iCatalyst.DomainModel;<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  public class LinqTextQueryGeneratedClass <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private EntityQuery&lt;Quote&gt; source;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public LinqTextQueryGeneratedClass( EntityQuery&lt;Quote&gt; parmSource )<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;source = parmSource;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public IList Query()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var query = from Quote e in source where e.Name != null && e.SourcePolicyPeriod.Certificates.Any(x=&gt;x.Provider.Person.FirstName.StartsWith("A"))<br /> select new { __root=e, __item1 = new object(), __item2 = new object() };<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query = query.Include("SourcePolicyPeriod.Certificates");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return query.ToList();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br />_______________________________________________________________<br /><br />Exception and stack trace:<br /><br />System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; IdeaBlade.EntityModel.EntityServerException: IncludePaths can only be added to a queries that return an entity or a collection of entities ---&gt; System.Exception: IncludePaths can only be added to a queries that return an entity or a collection of entities<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityServerProxy.CheckConnection(Exception e)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityServerProxy.ExecFunc&#091;T&#093;(Func`1 func, Boolean funcWillHandleException)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityServerProxy.ExecuteOnServer&#091;T&#093;(Func`1 func, Boolean funcWillHandleException)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityServerProxy.Fetch(SessionBundle bundle, IEntityQuerySurrogate query)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteServerQuery(IEntityQuerySurrogate entityQuery)<br />&nbsp;&nbsp;&nbsp;--- End of inner exception stack trace ---<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception ex, Boolean tryToHandle, PersistenceOperation operation, Boolean throwOnError)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteServerQuery(IEntityQuerySurrogate entityQuery)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityQueryFinder.Execute()<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery`1 query)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityQueryExtensions.Execute&#091;T&#093;(IEntityQuery`1 query)<br />&nbsp;&nbsp;&nbsp;at IdeaBlade.EntityModel.EntityQuery`1.GetEnumerator()<br />&nbsp;&nbsp;&nbsp;at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)<br />&nbsp;&nbsp;&nbsp;at System.Linq.Enumerable.ToList&#091;TSource&#093;(IEnumerable`1 source)<br />&nbsp;&nbsp;&nbsp;at LinqTextQueryGeneratedClass.Query()<br />&nbsp;&nbsp;&nbsp;--- End of inner exception stack trace ---<br />&nbsp;&nbsp;&nbsp;at System.RuntimeMethodHandle.InvokeMethod(Object target, Object&#091;&#093; arguments, Signature sig, Boolean constructor)<br />&nbsp;&nbsp;&nbsp;at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object&#091;&#093; parameters, Object&#091;&#093; arguments)<br />&nbsp;&nbsp;&nbsp;at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object&#091;&#093; parameters, CultureInfo culture)<br />&nbsp;&nbsp;&nbsp;at System.Reflection.MethodBase.Invoke(Object obj, Object&#091;&#093; parameters)<br />&nbsp;&nbsp;&nbsp;at iCatalyst.LinqTextQuery.LinqTextQueryRuntime`1.ExecuteQuery(TSource source) in c:\ActiveProjects\icatERP2_MoDocs\iCatalyst\trunk\iCatalyst.LinqTextQuery\LinqTextQueryRuntime.cs:line 157<br />&nbsp;&nbsp;&nbsp;at iCatalyst.LinqTextQuery.LinqTextQueryBuilder`1.Query(String queryText, String includeText) in c:\ActiveProjects\icatERP2_MoDocs\iCatalyst\trunk\iCatalyst.LinqTextQuery\LinqTextQueryBuilder.cs:line 73<br />&nbsp;&nbsp;&nbsp;at iCatalyst.DataBrowser.QueryGenerator.Query(Type type, String expression, String displayList, String includeEntities) in c:\ActiveProjects\icatERP2_MoDocs\iCatalyst\trunk\iCatalyst.DataBrowser\QueryGenerator.cs:line 130]]>
   </description>
   <pubDate>Tue, 18 Mar 2014 06:57:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4659&amp;PID=17410#17410</guid>
  </item> 
 </channel>
</rss>