473,403 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How to distingusih Business Layer and Data Access Layer requirements

Hi!
I'm making a database application and i heard from a friend that it is
more
proffecional and easy to do this with bussines objects. Can anyone tell
me
where i can find more info on bussines objects and how to implement
them
with c#? I would appreciate any help.

How can i decide that what things go into business layer and what
things go into data access layer .. can some one give me example based
on northwind or pubs or something like Customer, Orders, Products
example..

if some one have nice example to show this please mail it to
pr************@gmail.com .. please

some light on buisness entities, business components , business
processes , business objects , business logic layer.. oh god so many
terms..

Thanks in advance
Praveen

Aug 30 '06 #1
4 2993

Check my blog entry(ies)

http://sholliday.spaces.live.com/ 6/5/2006
5/24/2006

the first one is for 2.0, the second one for 1.1
The example above uses the Northwind database, so it should be a good
platform to bounce off of.
If the site keep crashing your browser .. try a browser besides IE to
download the code.
I'm not sure why, but the latest IE patch, and the spaces.live.com sites
don't like each other.


"pratham" <pr************@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi!
I'm making a database application and i heard from a friend that it is
more
proffecional and easy to do this with bussines objects. Can anyone tell
me
where i can find more info on bussines objects and how to implement
them
with c#? I would appreciate any help.

How can i decide that what things go into business layer and what
things go into data access layer .. can some one give me example based
on northwind or pubs or something like Customer, Orders, Products
example..

if some one have nice example to show this please mail it to
pr************@gmail.com .. please

some light on buisness entities, business components , business
processes , business objects , business logic layer.. oh god so many
terms..

Thanks in advance
Praveen

Aug 30 '06 #2
Tiered applications are not language specific - they are driven by design.
A good place to start are wikipedia's pages on Multi-tiered architcture:

http://en.wikipedia.org/wiki/Multi-tier_architecture

and Microsoft's patterns and practices site:
http://msdn.microsoft.com/practices/...d/default.aspx

If you want a very simple explanation, your business tier handles the
manipulation of data passing between a presentation tier and your data tier
(usually a database of some form). In many systems the data tier does
nothing with the data other than accept manipulated data from the business
tier and stores/retrieves it. Splitting your code between gathering and
validating input (presentation tier), manipulating data (business tier) and
storing/retrieving data (data tier) allows you to easily change a layer
without affecting other layers and gives you objects that are potentially
easily re-used in other applications.

Hope that helps. Unfortunately its a topic you really need to read up on
and can't be easily explained in a sentence or two!
--
Regards

John Timney (MVP)
"pratham" <pr************@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi!
I'm making a database application and i heard from a friend that it is
more
proffecional and easy to do this with bussines objects. Can anyone tell
me
where i can find more info on bussines objects and how to implement
them
with c#? I would appreciate any help.

How can i decide that what things go into business layer and what
things go into data access layer .. can some one give me example based
on northwind or pubs or something like Customer, Orders, Products
example..

if some one have nice example to show this please mail it to
pr************@gmail.com .. please

some light on buisness entities, business components , business
processes , business objects , business logic layer.. oh god so many
terms..

Thanks in advance
Praveen

Aug 30 '06 #3
Splitting your code between gathering and validating input (presentation
tier), manipulating data (business tier) and storing/retrieving data (data
tier) allows you to easily change a layer without affecting other layers
and gives you objects that are potentially easily re-used in other
applications.
a good example of changing a layer is for the Data Layer... let's say today
you have an Access Database because it suits your needs... in 1 year or
two, if access is not good enough for you anymore for any reason, and you
change for SQL Server or even worse (because some sql statements are
completely different, not because I find it,s a bad software) Oracle. Then,
you just have to change the Data Layer and everything else will work as if
it were Access or any other data store type... even indexed files... ;)

If you have 2 data sources, I use 2 Data Access Layer (one for each data
source) and manipulate the data in the business layer... like compare some
data, associate/dissociate data, et al... Let's say you have a client with
it's name, address et al. in one DB and in another DB you have what the
client bought from you, when, where, et al. you can get the data from each
db in your Data Layers, then manipulate them in your business layer... at
least, that's what we did, but maybe it can be better in some case to handle
everything in data layer...

So it requires minimal changes to things that could possibly modify all the
application...
"Unfortunately its a topic you really need to read up on and can't be
easily explained in a sentence or two!"
I second...

I hope it helps clarifying things

ThunderMusic
Aug 30 '06 #4
Pratham,

You can follow all things what are written about busines and data tiers, for
me they are from the Unix time, while they were first (as I did) sometimes
used on mainframes.

Try the standard data process as Microsoft is now using. You can do that
with the Sample NorthWind database. Follow for that what is written on this
page. It can be done with any managed program language and gives beside the
code the same results.

http://www.vb-tips.com/dbpages.aspx?...2-b1ed16424252

You will see that it uses in the created XSD the constrains from the
database.
(You can of course as well set that in the XSD yourself but that is much
more work and they might than not conflict)

Therefore in my idea use that what fits you the most and don't talk about in
fact not standard in Net used old Unix/Mainframe central processing
technique terms anymore.

However just *my* idea.

Cor


"pratham" <pr************@gmail.comschreef in bericht
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi!
I'm making a database application and i heard from a friend that it is
more
proffecional and easy to do this with bussines objects. Can anyone tell
me
where i can find more info on bussines objects and how to implement
them
with c#? I would appreciate any help.

How can i decide that what things go into business layer and what
things go into data access layer .. can some one give me example based
on northwind or pubs or something like Customer, Orders, Products
example..

if some one have nice example to show this please mail it to
pr************@gmail.com .. please

some light on buisness entities, business components , business
processes , business objects , business logic layer.. oh god so many
terms..

Thanks in advance
Praveen

Aug 31 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Stuart Hilditch | last post by:
Hi all, I am hoping that someone with some experience developing nTier apps can give me some advice here. I am writing an nTier web app that began with a Data Access Layer (DAL), Business...
9
by: Hasan O. Zavalsiz | last post by:
Hi , i am trying to figure out which approach is better to use . let me explain the scenario. i am using the "Nortwind" database . in this database i have "Customers " table .The following is the...
2
by: headware | last post by:
I am new to 3-tiered design and am in the process of designing an application that will work with ASP.NET as well as Windows Forms (and possibly with a PDA of some sort down the road). My question...
16
by: MS newsgroup | last post by:
I don't have clear reasons why we need business logic layer and data logic layer instead of having only data logic layer. Are there any good reasons for that?
1
by: Nemisis | last post by:
hi guys, Currently converting an old classic asp system to a OOP asp.net application. We are building the new application using a 3 tier arcitecture and i was wondering about the following. ...
6
by: Dhananjay | last post by:
hello everyone i have got a problem i want to design business layer, data access layer , presentation layer for asp.net using C#.net , can anyone help me to solve this problem. i want some...
25
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as...
8
by: morleyc | last post by:
Hi, until recently i was quite happy to add data sources from mssql database in visual studio and drag the datasets directly onto the form this creating a directly editable form which worked well....
8
by: Charles Law | last post by:
This is a sort of pattern question, but relating to how components are coupled in a three-tier system. I have a presentation layer, business layer and data access layer, the first is the EXE,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.