﻿<?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?)  » Business Object listens for its own events?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 30 May 2026 12:26:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Business Object listens for its own events?</title><link>http://forum.strataframe.net/FindPost29645.aspx</link><description>I am studying best practices for C# event coding and handling.&amp;nbsp; I was surprised to find that when the business object mapper creates a business object it creates two stub methods to handle the business object's CheckRulesOnCurrentRow event and the SetDefaultValues event.&amp;nbsp; Based on what I have read, I expected the business object mapper to create&amp;nbsp;override methods for&amp;nbsp;OnCheckRulesOnCurrentRow and OnSetDefaultValues to control the events.&amp;nbsp; Setting up a business object to listen for and handle its own events seems unusual and so I am guessing that there may be some good reason that I am not aware of.&amp;nbsp; Is there some&amp;nbsp;advantage to the way it has been done or is there a disadvantage to using the other approach?&amp;nbsp; I am just trying to learn from the experts.&lt;br/&gt;&lt;br/&gt;Sam Tenney</description><pubDate>Fri, 04 Mar 2011 16:08:21 GMT</pubDate><dc:creator>Sam Tenney</dc:creator></item></channel></rss>