p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual Studio 2008 (http://p2p.wrox.com/forumdisplay.php?f=356)
-   -   Layered architecture (http://p2p.wrox.com/showthread.php?t=82469)

ajinkyaraj78 February 3rd, 2011 02:50 AM

Layered architecture
Hello everyone. I'm learning asp.net right now, my professor asked me to do any application using layered architecure. She said application should have 3 layers 1.UI
2.Business Logic Layer and
3.Data Access Layer.... but honestly I dont have any idea about this .. kindly help me out please...

melvik February 3rd, 2011 09:40 AM

well, usually in advance software design we use laying to apart software tasks where application works independently in layers. It's contains of min 2-N layers (Microsoft has 4)
but usually 3 as u mentioned.
1. UI = User Interface
2. BL = Business Layer or Logic
3. DA = Data Access

let me explain u in an instance:
u have a ASP.NET page where users register.
u have some rules like checking if user is able to register according to her/his birthday & ...
1.ur ASPX file is ur UI where ppl see.
2. u use some classes & functions to check the rules (age story) its a separate project or at least another file
3. u have a different project who is the only responsible for ur Data part.

its like this:
1- user see the page & enter some data & PUSH REGISTER BUTTON
2- ur page sends user entered data to BL & it checks some rule like age, & if it was ok, calls the DL methods to add data to DB, or if its not ok, doesnt send & may gives a report back to user in UI ...
3- ur DA is only doing CRUD operations such as making connection & executing some T-SQL commands.

Its a long story u should go for, not too simple to reply u here, but not as hard as u cant...

ajinkyaraj78 February 4th, 2011 02:11 AM

thank you
well thank you very much for your response, but actually I'm a beginner to ASP.net so whatever you've explained I didn't get any of it...... will you please elaborate....

Imar February 4th, 2011 02:55 AM

Hi there,

You may want to take a look at this: http://imar.spaanjaars.com/476/n-lay...l-introduction

It's quite a long read and requires some background in ASP.NET and C#, but it may help you grasp the concepts of N-Layer design.



All times are GMT -4. The time now is 12:56 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.