<?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 : GetEntityGroups fails to find any entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : GetEntityGroups fails to find any entities</description>
  <pubDate>Sat, 11 Apr 2026 22:37:18 -700</pubDate>
  <lastBuildDate>Tue, 16 Jun 2009 08:28:24 -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=1305</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>GetEntityGroups fails to find any entities : I was going to say use the GetEntityTypes()...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4773#4773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1305<br /><strong>Posted:</strong> 16-Jun-2009 at 8:28am<br /><br />I was going to say use the GetEntityTypes() function on the EntityMetadataStore, but see that it's internal for some reason.&nbsp; Oh well, I'll look into that, but you can instead use the undocumented KnownTypeHelper.GetEntityTypes() method.<DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; using IdeaBlade.EntityModel;</DIV><DIV>&nbsp;&nbsp;&nbsp; var entityTypes = KnownTypeHelper.GetEntityTypes();</DIV>]]>
   </description>
   <pubDate>Tue, 16 Jun 2009 08:28:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4773#4773</guid>
  </item> 
  <item>
   <title>GetEntityGroups fails to find any entities : OK, well I was looking at this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4772#4772</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1305<br /><strong>Posted:</strong> 16-Jun-2009 at 8:11am<br /><br />OK, well I was looking at this function to retrieve a list of all of the entity collection types, as we've set up a mini database that we would like to read all records from then serialize out again as a datasource for mocking during unit tests.<br>We can load them one at a time, but a simple loop calling a Linq fetch on each would be ideal.<br>Is there anything in the library that returns a list of all entity objects and/or collections, or do I have to specify them manually?<br><br>Cheers,<br>&nbsp; Jason<br>]]>
   </description>
   <pubDate>Tue, 16 Jun 2009 08:11:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4772#4772</guid>
  </item> 
  <item>
   <title>GetEntityGroups fails to find any entities : We haven&amp;#039;t done a very good...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4715#4715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1305<br /><strong>Posted:</strong> 05-Jun-2009 at 10:31am<br /><br />We haven't done a very good job at documenting the EntityGroup, but it's primarily intended for internal use, with the exception of setting handlers for its events.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>As you've found, GetEntityGroups just returns the existing EntityGroups from the cache, it doesn't create or populate these groups.&nbsp; Each EntityGroup is usually created as data is queried, since the EntityGroup serves as the container for each entity type.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>To make things confusing, the GetEntityGroup&lt;T&gt; and GetEntityGroup(type) methods on the EntityManager will both create the EntityGroup if it doesn't exist.</DIV><DIV>&nbsp;</DIV><DIV>The only time you should need to use the EntityGroup is to set up handlers for the EntityPropertyChanging, EntityPropertyChanged, EntityChanging or EntityChanged events.&nbsp; In most, if not all, other cases there's a better way of doing something than using one of the properties or methods of the EntityGroup.<DIV></DIV><DIV></DIV></DIV>]]>
   </description>
   <pubDate>Fri, 05 Jun 2009 10:31:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4715#4715</guid>
  </item> 
  <item>
   <title>GetEntityGroups fails to find any entities : Hi,I assume the values returned...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4713#4713</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1305<br /><strong>Posted:</strong> 04-Jun-2009 at 6:28pm<br /><br />Hi,<br><br>I assume the values returned by GetEntityGroups are from an internal cache because this returns an empty collection when first called.<br>If you view the DomainModelEntityManager in the VS2008 object watcher, then it becomes populated.<br>It looks like the call needs to check first to see if the collections is empty and populate it if necessary.<br><br>Can you tell me (as a workaround) what property I need to read to force this to be populated the first time?<br><br>Cheers,<br>&nbsp;Jason<br>]]>
   </description>
   <pubDate>Thu, 04 Jun 2009 18:28:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1305&amp;PID=4713#4713</guid>
  </item> 
 </channel>
</rss>