Click here to Skip to main content
15,908,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to pass SqldataReader from Data Access Layer to Business Object Layer,business object to presentation layer in asp.net?
Posted
Comments
Member 11166005 18-Feb-15 23:55pm    
http://www.codeproject.com/Articles/493389/Four-ways-of-passing-data-between-layers
Tiwari Avinash 19-Feb-15 0:27am    
Why are you sending a data object reader to your business logic? I think if you have maintained a clear separation between data layer and business layer its not a good idea to send data reader to business layer.
Tomas Takac 19-Feb-15 1:41am    
You don't really explain what's your problem. I'm sure that passing objects around is no issue here. So what's your concern? Separation? Improve your question, explain what problems are you facing, include some code to make it clear.
iamvinod34 19-Feb-15 4:04am    
how to check username is available or not in asp.net using data access layer sir...?
how to pass data access layer to presentation layer?
TheKarateKid 19-Feb-15 11:34am    
May I ask why you want to pass a reader all the way from data access layer to presentation layer? I mean you can convert the sqldatareader to datatable or Generic Collection etc. in Business Object Layer and use the same in presentation layer. I am not sure that you are also making use of Data Transfer Objects or Business Entities, if so you can return the List/Collection or DTO/BE from Business Object Layer and use it in Presentation Layer

1 solution

 
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