-
My use case scenario has defined these objects: Employee, User, Client. 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, …...
-
Hello, I'm trying to sort a GridView by a property of a child object. I'm able to successfully set the DataField of a BoundField to the child column ("Application.Name"), but this doesn't work for sorting. How would I go about accessing this child property in the ApplySort method...
-
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.) in my business objects with Callback EventHandler options - or can I just use the async/await format Ray Klaassen
-
Hi, there. I read Rockies documentation about responsibility-driven design. I still don'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't enlighten me much. How many do use this design technique? Coding...
-
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 Hi all, 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. Due to these considerations, I am running into a...
-
Is there a way to tell if an editable business object was created/fetched async? I am looking into the idea of lazy loading child lists async or sync depending on how the business object was instantiated. At first I thought of using a similar method as running business runs async or sync: if (System...
-
Hi CSLAers: I have a doubt. Is there a way to add an object authorization rule depending a property value? I'm working in CSLA 3.6. I'm trying to do the following: Private Shared Sub AddObjectAuthorizationRules() AuthorizationRules.AllowGet(GetType(MyBO), "canget") AuthorizationRules...
-
I have parent root(Mater) object as BusinessBase which has BusinessListBase(ChildList) object as a child. Parent (BusinessBase) - Child List (BusinessListBase) - Child (BusinessBase) I have a custom business rule implemented in child object (BusinessBase of ChildList), which depends on parent root(Mater...
-
Hi, I've come across an odd scenario where a call to any of the N-Level undo related methods, such as BeginEdit(), causes an 'object reference not set to an instance of an object' exception. The object that I'm calling BeginEdit() on was built with CSLA 2.1.4 (I have other versions installed...
-
Hello all. I'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...
-
Hello, after reading the CSLA4 books I am not sure how to implement the following scenario: given the following classes to build up a simple contact management: class Contact { IEnumerable<ContactRelation> RelatedContacts; } class ContactRelation { string RelationType; Contact RelatedContact; ...
-
I need a little help with designing a test application that I am writing. I have created a "Policy" object that handles all of the CRUD operations for a policy. Now I want to add the ability to Transact a policy, and I'm not sure how to design this. The first thought is to just add a few...
-
Rocky, Have you yet expanded within your new book on the Subject of Units of Measure? I recall what you have indicated before and was wondering if you touched on the subject in your book.
-
Hello, I've a Custom Rules that checks if the user entered a valid numerical value (Double.TryParse) I override the AddBusinessRules Method and added the rule like this: BusinessRules.AddRule(new Business.CustomRules.Numerical(PreislistePos.PreisNormalProperty)); It works fine, as long as the user...
-
I wrote this in my blog , hopefully it will help somebody :-)
-
Hi I know this is an old posting, but I'm looking into using the Localization in my custom Validation rules. Would it be possible to get an example on how it would be done. I've created my custom Validation rules ok and they work fine. I using windows form (vb.net 2005 with CSLA 2.0), and my...
-
I’ve been using CSLA for a while now but am now just starting to build Silverlight applications using it. I am having a problem with asynchronous rule methods that update the UI. I am using CSLA 4.1 and have the following objects: BannedCarrier – Child Business Base Object BannedCarriers...
-
Hi, I wonder if someone can tell me where I am going wrong please... ? I have a simple scenario, i.e. a parent business object based on BusinessBase which in turn contains a child collection based on BusinessListBase which in turn contains a collection of business objects again based on BusinessBase...
-
Hi Guys, Perhaps CSLA should leave support for data virtualization up to the data access layer and include the specification of ranges into the FetchCriteria objects but I was just wondering if CSLA has any more support for data virtualization or is support planned for the future? Regards, Alistair
-
Howdy, (using csla 4.0.1 w/ silverlight) I am creating a helper struct (DomainUserName) to keep a value for a Domain\Username. I want to have the ability to get and set the individual parts (DomainName and UserName) as well as get and set the fully composed value; What should be implemented on this struct...