﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » ReadOnly Object?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:12:19 GMT</lastBuildDate><ttl>20</ttl><item><title>ReadOnly Object?</title><link>http://forum.strataframe.net/FindPost345.aspx</link><description>&lt;P class=MsoBodyText style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Arial color=#000000&gt;Unlike some other frameworks, StrataFrame, uses a single business object type and I’m wondering what would be the best way handle the following situation where a read only object would be helpful.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Using the sample application I’m emulating a publisher/subscriber pattern using events.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;On the OrderEntry form the CustomerBO would not normally be updated. However since I’ve added an event handler to display any changes to Customer made on the CustomerMaint form it does get updated and IsDirty is set to True. However I don’t want to save the changes, since they were already saved by the CustomerMaint form.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In CSLA I would have used a ReadOnly CustomerBO on the OrderEntry Form. One solution would be to add a ReadOnly property to the base BO so that IsDirty would not be set to True no matter what changes&amp;nbsp;were made.&lt;/FONT&gt;</description><pubDate>Tue, 20 Dec 2005 12:52:23 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: ReadOnly Object?</title><link>http://forum.strataframe.net/FindPost351.aspx</link><description>Having IsDirty always return False for a ReadOnly object would make it much easier to achieve the functionality I'm looking for. Thanks!</description><pubDate>Tue, 20 Dec 2005 12:52:23 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: ReadOnly Object?</title><link>http://forum.strataframe.net/FindPost348.aspx</link><description>Having a ReadOnly property would be nice.  At the top of the Save(), we bail out if the business object is not dirty, so we could configure the IsDirty property to always return false on a ReadOnly business object.  I would tell you to just ignore the changes and not save the business object, but when you call Save() on the form, it saves all of the business objects no matter what, so, I'll look into this.&lt;br&gt;
&lt;br&gt;
ED: I'll do my best to get this included along with the warnings implementation in the next version.</description><pubDate>Tue, 20 Dec 2005 12:25:40 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>