<?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 : Add new objects to a ReadOnlyEntityList ...</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Add new objects to a ReadOnlyEntityList ...</description>
  <pubDate>Wed, 10 Jun 2026 18:48:07 -700</pubDate>
  <lastBuildDate>Fri, 06 Feb 2009 11:08:34 -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=1081</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>Add new objects to a ReadOnlyEntityList ... : Maximiliano,   In DevForce Classic,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1081&amp;PID=3887#3887</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> 1081<br /><strong>Posted:</strong> 06-Feb-2009 at 11:08am<br /><br />Maximiliano, <DIV>&nbsp;</DIV><DIV>In DevForce Classic, you can't directly add or remove items from the list returned by a&nbsp;navigation property.&nbsp; Fortunately, this ReadOnlyEntityList is actually a "live" list and will effectively monitor actions on the PersistenceManager for items to be added or removed.&nbsp; In your case, you should see&nbsp;new items in the User.Roles list when you create a new "UserRole" entity (and add it to the PM).&nbsp; I'm&nbsp;assuming that you have some sort of "UserRole" linking entity which contains foreign keys to the "User" and "Role" objects - so to add a specific role to a user you create a new "UserRole" object for that user.</DIV>]]>
   </description>
   <pubDate>Fri, 06 Feb 2009 11:08:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1081&amp;PID=3887#3887</guid>
  </item> 
  <item>
   <title>Add new objects to a ReadOnlyEntityList ... : You can&amp;#039;t modify a ReadOnlyEntityList...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1081&amp;PID=3871#3871</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1081<br /><strong>Posted:</strong> 04-Feb-2009 at 8:31pm<br /><br />You can't modify a ReadOnlyEntityList (that's why it is a "ReadOnlyEntityList"), but usually you &nbsp;can create a new ReadOnlyEntityList.&nbsp; For example, here is how I might modify the Cache strategy for Orders, a ReadOnlyEntityList&lt;Order&gt;<DIV><FONT size=2><P>public override ReadOnlyEntityList&lt;Order&gt; Orders {</P><P>get {</P><P>return new ReadOnlyEntityList&lt;Order&gt;(this.PersistenceManager.GetChildren&lt;Order&gt;(this, EntityRelations.Employee_Order, QueryStrategy.DataSourceThenCache, true));</P><P>}</P><P>}</P></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 20:31:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1081&amp;PID=3871#3871</guid>
  </item> 
  <item>
   <title>Add new objects to a ReadOnlyEntityList ... : Hi, I&amp;#039;m evaluating the product...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1081&amp;PID=3860#3860</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=443" rel="nofollow">msosa</a><br /><strong>Subject:</strong> 1081<br /><strong>Posted:</strong> 04-Feb-2009 at 7:21am<br /><br /><P>Hi, I'm evaluating the product and so far it very good. The issue I'm dealing with is as folows: I have an User object that has an Roles property, witch is a relation with Rol object; so, an give user can have several roles. I want the administrator to be able to select those roles form a checkedlistbox. What I need to know is how to add those selected roles to the Roles property (a ReadOnlyEntityList) of the User object.</P><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>Maximiliano.</DIV><span style="font-size:10px"><br /><br />Edited by msosa - 04-Feb-2009 at 7:21am</span>]]>
   </description>
   <pubDate>Wed, 04 Feb 2009 07:21:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1081&amp;PID=3860#3860</guid>
  </item> 
 </channel>
</rss>