Me and a collegue have been talking about where the best place to put
business logic is.
I think that the best place is where Microsoft suggest - in a seperate
business logic layer. The alternative is to have all the logic in with the
business entity objects, thus eliminating the business logic layer.
The reason that I prefer the seperate layer is because I think its more
flexible.
I was hoping someone might have further insight into this for us
Thanks all
SimonA small addition - business entity objects are unnecessary unless you want
to encapsulate some complex operations on entity data into the business
entity classes.
According to Microsoft, using business entity objects as simple data holders
is not a good practice. More regular means such as DataSets should rather be
used for this purpose.
The business logic classes, therefore, should use these DataSets and perform
the logic itself over data stored there. If there are explicit constraints,
however, these
should be defined by means of the DataSet XSD schema.
"Simon Harvey" <simon.harvey@.the-web-works.co.uk> wrote in message
news:uEumUhoPEHA.308@.TK2MSFTNGP11.phx.gbl...
> Hello Chaps,
> Me and a collegue have been talking about where the best place to put
> business logic is.
> I think that the best place is where Microsoft suggest - in a seperate
> business logic layer. The alternative is to have all the logic in with the
> business entity objects, thus eliminating the business logic layer.
> The reason that I prefer the seperate layer is because I think its more
> flexible.
> I was hoping someone might have further insight into this for us
> Thanks all
> Simon
Hi Dmitriy,
"Dmitriy Lapshin [C# / .NET MVP]" <x-code@.no-spam-please.hotpop.com> wrote
in message news:uLtBH%23wPEHA.644@.tk2msftngp13.phx.gbl...
<snip>
> According to Microsoft, using business entity objects as simple data
holders
> is not a good practice. More regular means such as DataSets should rather
be
> used for this purpose.
<snip
Do you have a reference for this?
Regards,
Daniel
I remember seeing some articles that mentioned this.
One of them was :
http://msdn.microsoft.com/library/d...html/BOAGag.asp
S
0 comments:
Post a Comment