<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.lhotka.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'Business Objects'</title><link>http://forums.lhotka.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Business+Objects&amp;orTags=0</link><description>Search results matching tag 'Business Objects'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP3 (Build: 36.8414)</generator><item><title>Responsibility driven design or database structure?</title><link>http://forums.lhotka.net/forums/p/11983/55478.aspx#55478</link><pubDate>Wed, 15 May 2013 17:42:22 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:55478</guid><dc:creator>c_manboy</dc:creator><description>&lt;p style="margin:0in 0in 8pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;My use case scenario has defined these objects: Employee, User, Client.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;My database is structured similar to inheritance where the base table is named Entity (id, displayname) with a one to one relationship to Person(entityId, firstname, lastname) with a one to one to Employee/User/Client(entityId, &amp;hellip;) tables each containing their unique fields. An Entity can be one or all three of the use case objects.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 8pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;I&amp;rsquo;ve created working business objects using code generation which creates an Entity with child property of Person with child properties for Employee, User and Client.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Everything is fairly straightforward in that binding is done using dot notation like Entity.Person.Employee.HireDate.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I&amp;rsquo;ve also created properties IsEmployee, IsClient, IsUser which checks for null on those properties.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 8pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;In Rocky&amp;rsquo;s book he talks about responsibility driven design which seems to infer that my business objects should be redesigned like Employee(entityId, displayname, firstname, lastname, hiredate).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;But this would create challenges when updating the database.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;(I&amp;rsquo;m using ado for data access).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 8pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;I haven&amp;rsquo;t run into any real problems with my current business object design, but in my desire to understand best practices I am curious if I should redo my business objects, perhaps learning and implementing EF as a my data access?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Sorting SortedBindingList by child object property</title><link>http://forums.lhotka.net/forums/p/11931/55274.aspx#55274</link><pubDate>Wed, 10 Apr 2013 14:29:16 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:55274</guid><dc:creator>scjohnson</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to sort a GridView by a property of a child object. I&amp;#39;m able to successfully set the DataField of a BoundField to the child column (&amp;quot;Application.Name&amp;quot;), but this doesn&amp;#39;t work for sorting. How would I go about accessing this child property in the ApplySort method of a SortedBindingList?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sam Johnson&lt;/p&gt;</description></item><item><title>CSLA 4.5 - Do I need Callback EventHandlers if targeting only .NET 4.5 vs async/await</title><link>http://forums.lhotka.net/forums/p/11785/54578.aspx#54578</link><pubDate>Fri, 11 Jan 2013 21:47:23 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:54578</guid><dc:creator>SMILEMan</dc:creator><description>&lt;p&gt;For new business objects and projects that will be targeted only for .NET Framework 4.5 and beyond and WinRT, do I still need to program my Factory methods (New, Get, etc.)&amp;nbsp;in my business objects with Callback EventHandler options - or can I just use the async/await format&lt;/p&gt;
&lt;p&gt;Ray Klaassen&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Where to start with responsibility-driven design?</title><link>http://forums.lhotka.net/forums/p/11753/54483.aspx#54483</link><pubDate>Mon, 17 Dec 2012 13:22:36 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:54483</guid><dc:creator>es org se</dc:creator><description>&lt;p&gt;Hi, there.&lt;/p&gt;
&lt;p&gt;I read Rockies documentation about&amp;nbsp;responsibility-driven design. I still don&amp;#39;t see the point why we need this. Can anybody give me a good starting point to read from, please. I used google and got some links. I didn&amp;#39;t enlighten me much.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How many do use &amp;nbsp;this design technique? Coding complex CSLA business objects is a lot of work. Using datacentric design we need fewer of these objects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where is the difference between an CSLA object and a&amp;nbsp;
&lt;a href="https://www.google.at/search?hl=en&amp;amp;tbo=d&amp;amp;biw=1920&amp;amp;bih=1075&amp;amp;spell=1&amp;amp;q=collaboration&amp;amp;sa=X&amp;amp;ei=YRzPUJ_VPIub1AXI5oDwDg&amp;amp;ved=0CCsQvwUoAA" class="spell"&gt;&lt;b&gt;&lt;i&gt;collaboration&lt;/i&gt;&lt;/b&gt;&lt;/a&gt;&amp;nbsp;of objects to do a certain job?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please give me your ideas.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ciu&lt;/p&gt;
&lt;p&gt;Manfred&lt;/p&gt;</description></item><item><title>multiple fetches possible?</title><link>http://forums.lhotka.net/forums/p/11583/53695.aspx#53695</link><pubDate>Tue, 18 Sep 2012 18:53:49 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:53695</guid><dc:creator>mtrtm</dc:creator><description>&lt;p&gt;
 
  Normal
  0
  
  
  
  
  false
  false
  false
  
  EN-US
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  
&lt;/p&gt;
&lt;p&gt;
 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 



&lt;p class="MsoNormal"&gt;Hi all,&lt;/p&gt;
&lt;p class="MsoNormal"&gt;I am working on a project using CSLA generated by codesmith
and due to project considerations we will be re-generating quite often throughout
the lifetime of the project.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Due to these considerations, I am running into a situation
where I want to add my own fetch method in the business object but also want to
keep the generated one.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I would just
like to be able to give my custom written fetch a different name, or optionally
add parameters to change the method signature (I am guessing that wouldn&amp;rsquo;t work
due to serialization concerns), just so I can call multiple implementations of
fetch.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;It seems like having multiple implementations of fetch side
by side should be something easy to do but I can&amp;rsquo;t find anything on it.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Does anyone have any feedback on this?&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Just to point out: I do understand you can have multiple implementations
of fetch all with different criteria, but in most of the scenarios we are going
to be handling I don&amp;rsquo;t need/want different criteria and feel that creating
another class just to get a different method signature seems like a very
undesirable way to make a method call.&lt;/p&gt;
&lt;/p&gt;</description></item><item><title>How to tell if business object was created/fetched async?</title><link>http://forums.lhotka.net/forums/p/11529/53454.aspx#53454</link><pubDate>Wed, 15 Aug 2012 04:09:22 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:53454</guid><dc:creator>jhardman</dc:creator><description>&lt;p&gt;Is there a way to tell if an editable business object was created/fetched async?&amp;nbsp; I am looking into the idea of lazy loading child lists async or sync depending on how the business object was instantiated.&amp;nbsp; At first I thought of using a similar method as running business runs async or sync:&lt;/p&gt;
&lt;pre style="font-family:Consolas;background:white;color:black;font-size:13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&amp;nbsp;(System.Web.&lt;span style="color:#2b91af;"&gt;HttpContext&lt;/span&gt;.Current&amp;nbsp;!=&amp;nbsp;&lt;span style="color:blue;"&gt;null&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsAsync&amp;nbsp;=&amp;nbsp;&lt;span style="color:blue;"&gt;false&lt;/span&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;else&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IsAsync&amp;nbsp;=&amp;nbsp;&lt;span style="color:blue;"&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;However the problem with this logic is that if running in web context then it is sync.&amp;nbsp; What about running in Windows Service?&amp;nbsp; I can&amp;#39;t wait for the lazy loaded child collection to return at some point in the future and set its property since there are no UI bindings.&lt;/p&gt;</description></item><item><title>Adding Object Authorization Rules conditionally</title><link>http://forums.lhotka.net/forums/p/11423/53014.aspx#53014</link><pubDate>Fri, 22 Jun 2012 05:39:50 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:53014</guid><dc:creator>lazaroms</dc:creator><description>&lt;p&gt;Hi CSLAers:&lt;/p&gt;
&lt;p&gt;I have a doubt. Is there a way to add an object authorization rule depending a property value?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working in CSLA 3.6.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to do the following:&lt;/p&gt;
&lt;p&gt;Private Shared Sub AddObjectAuthorizationRules()&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorizationRules.AllowGet(GetType(MyBO), &amp;quot;canget&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorizationRules.AllowCreate(GetType(MyBO), &amp;quot;canadd&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; If MyStatus=Valid then &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorizationRules.AllowEdit(GetType(MyBO), &amp;quot;canupdate&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; else&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorizationRules.DenyEdit(GetType(MyBO), &amp;quot;canupdate&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; endif&lt;br /&gt;&lt;br /&gt;End Sub&lt;/p&gt;
&lt;p&gt;Obviously I&amp;#39;m getting an error because I&amp;#39;m trying to access a property inside a Shared method but I put it here trying to explain what I need.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a way to reach this behavior?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Lazaro Santin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Execute Business rule on child object When Parent property has change.</title><link>http://forums.lhotka.net/forums/p/11224/52190.aspx#52190</link><pubDate>Mon, 12 Mar 2012 08:02:46 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52190</guid><dc:creator>patelravij@gmail.com</dc:creator><description>&lt;p&gt;I have parent root(Mater) object as BusinessBase which has BusinessListBase(ChildList)&amp;nbsp;object as a child.&lt;/p&gt;
&lt;p&gt;Parent&amp;nbsp;(BusinessBase)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Child List&amp;nbsp;(BusinessListBase)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- Child (BusinessBase)&lt;/p&gt;
&lt;p&gt;I have a custom business rule implemented in child object (BusinessBase of ChildList), which&amp;nbsp;depends on&amp;nbsp;parent root(Mater) property. Now when parent root(Mater) property is changed, how to notify child object?&lt;/p&gt;
&lt;p&gt;There is override method OnChildChanged which fires when any child property changed. Is there any way to fires custom rules on child object and show property status when parent property has been changed?&lt;/p&gt;</description></item><item><title>N-Level Undo</title><link>http://forums.lhotka.net/forums/p/10783/50294.aspx#50294</link><pubDate>Tue, 18 Oct 2011 15:52:24 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:50294</guid><dc:creator>tim.davenport</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve come across an odd scenario where a call to any of the N-Level undo related methods, such as BeginEdit(), causes an &amp;#39;object reference not set to an instance of an object&amp;#39; exception. The object that I&amp;#39;m calling BeginEdit() on was built with CSLA 2.1.4 (I have other versions installed in my GAC), and I have a reference to the project that contains this object in a simple win forms app that creates an instance of the object via a standard CSLA factory method and then calls BeginEdit() on it. &lt;/p&gt;
&lt;p&gt;If I build the win forms project with a &amp;nbsp;later version to 2.1.4 from the GAC I get the exception in UndoableBase in the CopyState method when it tries to get a list of fields for the current object. This exception is not being thrown if I reference version 2.1.4 of CSLA. I do realise that I can probably just compile a new version of the old project using the latest version of CSLA and that should solve it, but I was just wondering if anyone had any ideas why this is happening?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Customize Authorization Rules Messages.</title><link>http://forums.lhotka.net/forums/p/10773/50254.aspx#50254</link><pubDate>Fri, 14 Oct 2011 18:40:24 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:50254</guid><dc:creator>omarcusido</dc:creator><description>&lt;p&gt;Hello all. I&amp;#39;m using Authorization Rules in my Business Objects but when any Authorization Rule is broken the message provided on the exception do not fits my needs. I was reviewing the implementation of the DataPortal class and CSLA throws a Security Exception and loads the exception message from a resource. I really wanted to know if there&amp;#39;s a way to change that message to a customized dynamically created message without modify my DataPortal class, I also can&amp;#39;t write directly in the resource file because the message is not always the same.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;OCP.&lt;/p&gt;</description></item></channel></rss>