<?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 : Protected Properties cannot be set in 5.2.2</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Protected Properties cannot be set in 5.2.2</description>
  <pubDate>Sat, 11 Apr 2026 06:09:11 -700</pubDate>
  <lastBuildDate>Tue, 22 Sep 2009 15:22:59 -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=1487</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>Protected Properties cannot be set in 5.2.2 : This was not expected or intentional...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1487&amp;PID=5459#5459</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> 1487<br /><strong>Posted:</strong> 22-Sep-2009 at 3:22pm<br /><br />This was not expected or intentional in v 5.2.2, and has been fixed in current bits (v5.2.3 is coming in mid October).]]>
   </description>
   <pubDate>Tue, 22 Sep 2009 15:22:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1487&amp;PID=5459#5459</guid>
  </item> 
  <item>
   <title>Protected Properties cannot be set in 5.2.2 : Hi,  I have a protected propertyand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1487&amp;PID=5444#5444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=370" rel="nofollow">sebma</a><br /><strong>Subject:</strong> 1487<br /><strong>Posted:</strong> 21-Sep-2009 at 11:45pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have a protected property&nbsp;and a protected navigation property.</DIV><DIV>The idea of making them protected is to disallow any direct modifications from other assemblies, like from the UI.</DIV><DIV>This has always been working in 5.1.0, I am able to set them from within the DomainModel partial class.</DIV><DIV>&nbsp;</DIV><DIV>After porting to&nbsp;5.2.2, I have exceptions because even my DomainModel partial class cannot set its protected member data.</DIV><DIV>&nbsp;</DIV><DIV>The DomainModel....Designer.cs shows the following property:</DIV><DIV>&nbsp;&nbsp;&nbsp; #region SomeProtectedName<BR>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;Gets or sets the SomeProtectedName.&lt;/summary&gt;<BR>&nbsp;&nbsp;&nbsp; &#091;Bindable(true, BindingDirection.TwoWay)&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;Editable(true)&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;Display(Name="SomeProtectedName", AutoGenerateField=true)&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;IbVal.ValidateProperty&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;IbCore.DBDataType(typeof(String))&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;MsSer.DataMember&#093;<BR>&nbsp;&nbsp;&nbsp; public String SomeProtectedName {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return SomeProtectedNameEntityProperty.GetValue(this); }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;global::System.Diagnostics.DebuggerNonUserCode&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected set { SomeProtectedNameEntityProperty.SetValue(this, value); }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; #endregion SomeProtectedName</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>Exception "Cannot set property: Password.&nbsp; It is a readonly property" will be thrown if you attempt to assign it in DomainModel partial class.</FONT></DIV><DIV>&nbsp;</DIV><DIV>The DomainModel....Designer.cs shows the following Navigation property:</DIV><DIV>&nbsp;&nbsp;&nbsp; #region HeadPerson<BR>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;Gets or sets the HeadPerson.&lt;/summary&gt;<BR>&nbsp;&nbsp;&nbsp; &#091;Bindable(false)&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;Display(AutoGenerateField=false)&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;MsSer.DataMember&#093;<BR>&nbsp;&nbsp;&nbsp; &#091;IbEm.RelationProperty("FK_Organisation_HeadPerson", IbEm.QueryDirection.ToRole1)&#093;<BR>&nbsp;&nbsp;&nbsp; public Person HeadPerson {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return HeadPersonEntityProperty.GetValue(this); }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;global::System.Diagnostics.DebuggerNonUserCode&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected set { HeadPersonEntityProperty.SetValue(this, value); }<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; #endregion HeadPerson</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>A null reference exception will be thrown if you attempt to assign it in DomainModel partial class.</FONT></DIV><DIV>&nbsp;</DIV><DIV>Is this expected in 5.2.2 ?</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>Sebastian</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 21 Sep 2009 23:45:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1487&amp;PID=5444#5444</guid>
  </item> 
 </channel>
</rss>