Click here to Skip to main content
16,009,391 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am trying to develop the three tier architecture in asp.net application

i want to create the structure where i will be returning object only from the Data Access layer no data set , no reader so that if i change data base later it wont effect other layers.

the kind of architecture i am following

1) Presentation Layer
2) Business access layer
3) Data Access layer

Now i will have user info class in BAL and presentation layer will have the reference of BAL i will fill this object and send it to BAL Now

i want this object to sent to DAL and DAL should return the userinfo object

Note : i don't want to pass any parameter in function.

can you suggest a solution the below thing i already tried

1) create same class in DAL which is there in BAL while passing value it will give error not able convert from BAL object to DAL object

2) i also tried to use object class also

Regards,
Amit Patele
Posted

You have to create "Entity" classes also and pass them around in your application.

If you aren't going to use parameters in your methods then you will have to put them in the entities you pass around.
 
Share this answer
 
Hi,

declare That userinfo class in global classes files.whereas stored in App_Code

Then you can use that class object in your entire application .

All the Best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900