469,339 Members | 8,437 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Is this a good application Design?

Hello,

Currently my application has three tiers-

1. Presentation Layer (Asp.Net / Win Forms/ Pocket PC UI.)
This predominantly contains User Controls, Custom Controls and Win/Web
Forms.
I have one base form and I inherit from that form.
All validation is done in this tier. There is zero Data Access code in this
tier. This tier exclusively gets DataViews/ Arays/Lists as input. Outputs
are string objects with SQL Statements or just paremeters with
dataconnection key.

2. Business Layer.
Currently this is just a Library residing in the same machine as
Presentation layer. Eventually I plan to use WebServices if application
needs physical seperation.
Most of Business Logic are implemented in this layer. There is absolutely no
UI code here.
These are all bunch of static methods which perform CRUD functionality.
All methods are atomic in nature. I dont rely on Static Variables. There is
just one DatabaseGateway class which does all the functionality.

3. Data Layer. (SQL Server)
I dont use stored procedures. predominantly use Views.
I have been reading up on Rockford Lhotka's business objects and I just feel
that his framework is unnecessarily complex. I just dont see the need to
hold these intermediate Business Objects.

Thanks for your responses.

--
Jay Balapa
Director Of Software Engineering
www.atginc.com

Nov 19 '05
50 2194
"=?Utf-8?B?VG9ueSBQaGlsbGlwcw==?=" <Tony
Ph******@discussions.microsoft.com> wrote in
news:A0**********************************@microsof t.com:
I agree. I am don't believe in putting business logic inside of the
database. Business logic belongs in the Business Logic Layer (BLL).
In addition, SQL commands and data access code do not belong in the
BLL. A entity should never know how to persist itself in the
database. This is why I am not a fan of Lhotka's CSLA framework.
This breaks classic object oriented programming rules.


For differing views (ones I dont agree with, but you should always consider alternate views and
make your own choices)

Subject: Re: n-Tier Business App - Complex Logic
Newsgroups: microsoft.public.dotnet.distributed_apps

--
Chad Z. Hower (a.k.a. Kudzu)
"Programming is an art form that fights back"

Stuff: http://www.KudzuWorld.com
Blogs: http://www.KudzuWorld.com/blogs
Nov 19 '05 #51

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Erik De Keyser | last post: by
45 posts views Thread by Brett | last post: by
4 posts views Thread by Bob | last post: by
1 post views Thread by GS | last post: by
2 posts views Thread by dotnet dude | last post: by
7 posts views Thread by TAVOSOFT | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.