Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

BusinessBase or CommandBase...

$
0
0

I have a situation have not encountered in 7 years of CSLA development. I'm not sure why it's not come up until now but I have a need for a Calculation Object that Executes remotely and returns the data back.

Basically I have what amounts to a BB that I need to call Execute on. It is a large calculator for loans that has dozens of fields. Once filled in, we need to call Execute or Process or Whatever and have it go out to a Web Service and compute a result set and fill in the results on the BB. the CRUD operation of BB.Save() does not seem to fit.

But the Execute of Command does not seem to be rich enough... Unless I'm doing it wrong.

What I'd like is this...

MyBBOrCommandObj obj = MyBBOrCommandObj.Create();

obj.Properties = ...

obj = obj.Execute();

What would be the correct way of doing this? Can I do what I'm proposing now?

P.S. This is all in 4.5.601.

 


Viewing all articles
Browse latest Browse all 764

Trending Articles