PC Review


Reply
Thread Tools Rate Thread

How to distingusih Business Layer and Data Access Layer requirements

 
 
pratham
Guest
Posts: n/a
 
      30th Aug 2006
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
(E-Mail Removed) .. please

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

Thanks in advance
Praveen

 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      30th Aug 2006

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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> (E-Mail Removed) .. please
>
> some light on buisness entities, business components , business
> processes , business objects , business logic layer.. oh god so many
> terms..
>
> Thanks in advance
> Praveen
>



 
Reply With Quote
 
John Timney \(MVP\)
Guest
Posts: n/a
 
      30th Aug 2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> (E-Mail Removed) .. please
>
> some light on buisness entities, business components , business
> processes , business objects , business logic layer.. oh god so many
> terms..
>
> Thanks in advance
> Praveen
>



 
Reply With Quote
 
ThunderMusic
Guest
Posts: n/a
 
      30th Aug 2006
> 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


 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      31st Aug 2006
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" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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
> (E-Mail Removed) .. please
>
> some light on buisness entities, business components , business
> processes , business objects , business logic layer.. oh god so many
> terms..
>
> Thanks in advance
> Praveen
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft VB .NET 6 20th Dec 2006 02:16 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft C# .NET 2 19th Dec 2006 09:23 AM
business layer, data access layer , presentation layer for asp.net using C#.net Dhananjay Microsoft ASP .NET 1 18th Dec 2006 11:35 PM
Data Access Layer to Business Layer with XML Serialization =?Utf-8?B?UnlhbiBTaGF3?= Microsoft ADO .NET 1 26th Feb 2004 01:07 PM
Data Access Layer and Business Entity Layer =?Utf-8?B?UnlhbiBTaGF3?= Microsoft ADO .NET 0 24th Feb 2004 02:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:29 AM.