469,898 Members | 1,836 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Business Objects vs. Datasets

What is Microsoft's stance on developing business objects
vs datasets when creating n-tier apps. Is anyone doing
business objects?

It appears that most articles from MS recommend passing
datasets between tiers but this seems to be a poor design
decision in that I need to know about the database
structure in each tier and I can't encapsulate business
rules that apply.

Any thoughts?

Thanks
BK
Jul 21 '05 #1
5 1442
If you expose your business logic thru a webservice, and
you webservice takes datasets as parameters, then
accessing the webservice using java or infopath might be
difficult. Datasets are visual studio only...
-----Original Message-----
What is Microsoft's stance on developing business objects
vs datasets when creating n-tier apps. Is anyone doing
business objects?

It appears that most articles from MS recommend passing
datasets between tiers but this seems to be a poor design
decision in that I need to know about the database
structure in each tier and I can't encapsulate business
rules that apply.

Any thoughts?

Thanks
BK
.

Jul 21 '05 #2
"Brian Kiser" <an*******@discussions.microsoft.com> wrote in
news:05****************************@phx.gbl:
What is Microsoft's stance on developing business objects
vs datasets when creating n-tier apps. Is anyone doing
business objects?

It appears that most articles from MS recommend passing
datasets between tiers but this seems to be a poor design
decision in that I need to know about the database
structure in each tier and I can't encapsulate business
rules that apply.


Microsoft does also recommend n-tier. See their patterns site:

http://msdn.microsoft.com/practices/...se/default.asp

layer pattern:
http://msdn.microsoft.com/practices/...EspPatternsFor
BuildingEnterpriseSolutions/

If you would like samples see the following open source projects:

http://sourceforge.net/projects/dbobjecter
http://sourceforge.net/projects/genadonet

The latest templates for the code 'dbobjecter' generator are the better
ones.

Michael Lang, MCSD
Jul 21 '05 #3
>If you expose your business logic thru a webservice, and
you webservice takes datasets as parameters, then
accessing the webservice using java or infopath might be
difficult. Datasets are visual studio only...

Actually, Datasets get serialized to XML through web services quite nicely. We
have applications in C# and java using the same web services passing datasets
back and forth.

Jul 21 '05 #4
Brian,
In case you don't have it:

Rockford Lhotka has a framework based on .NET that uses Business Objects
that can be local or remote and fully supports databinding.

Check out CSLA.NET at:
http://www.lhotka.net

Both Business objects & Datasets have their own pluses & minuses, which one
to use I think depends on your project requirements.

Hope this helps
Jay
"Brian Kiser" <an*******@discussions.microsoft.com> wrote in message
news:05****************************@phx.gbl...
What is Microsoft's stance on developing business objects
vs datasets when creating n-tier apps. Is anyone doing
business objects?

It appears that most articles from MS recommend passing
datasets between tiers but this seems to be a poor design
decision in that I need to know about the database
structure in each tier and I can't encapsulate business
rules that apply.

Any thoughts?

Thanks
BK

Jul 21 '05 #5
[This followup was posted to microsoft.public.dotnet.general and a copy
was sent to the cited author.]

In article <05****************************@phx.gbl>,
an*******@discussions.microsoft.com says...
What is Microsoft's stance on developing business objects
vs datasets when creating n-tier apps. Is anyone doing
business objects?

It appears that most articles from MS recommend passing
datasets between tiers but this seems to be a poor design
decision in that I need to know about the database
structure in each tier and I can't encapsulate business
rules that apply.

Any thoughts?

Thanks
BK

I believe that there is much to be gained with a fully object oriented
view. However, it appears that Microsoft may have a specific model in
mind that has the layers, WebUi, BusinessRules, Dataset, datalayer. So
how do we fit something like WebUI, View, Controller,
BusinessObjects,datalayer?

Thanks for sharing your views
Fritz Schenk
fr**********@countrywide.com
Jul 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.