Custom methods on Csla objects and 'Using' relationship #2826
Unanswered
Chicagoan2016
asked this question in
Questions
Replies: 1 comment
-
In current CSLA I think it depends on how the method (because really it sounds like we're talking about a method that calculates a fee) is implemented in your codebase.
I'd probably favor 2 or 3 over 1 these days. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am not sure if I had asked this question in the older forum : )
We are planning to use a 'FeeCalculator' class in our main business object. We keep a copy of Using Csla books around and on page 36 of Creating business objects book @rockfordlhotka has explained the 'Using' relationship.
We are discussing a couple of ways to design this
We are not sure whether to make FeeCalculator a separate object or make it a business rule which will be called from our main business object? right now we are inclined to code it as a separate object.
If we end up with a separate csla object for Fee Calculation, should we have a regular method in our business object or a Csla method?
By regular method I mean something like SetPersonName() on page 36 (Creating business objects book)
and a Csla method would like this
where the values "firstname" and "lastname" are dummy values (according to the older forum lol)
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions