Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is sending business objects to/from data access layer the best option? Or receiving rows from datatable from the dataaccess layer. Which is the best thing to do? And why? Please help me get the understanding. Thanks

What I have tried:

Don’t know which is right and I’m confused with that.
Posted
Updated 28-Feb-18 22:58pm
Comments
#realJSOP 25-Feb-18 9:47am    
We need context as to what you want to do, specifically, what platform and what framework.

1 solution

You can return type of BO from DAL.
Below snippet to be written in DAL:

public SampleClassBO GetPrice(){
//Create object for SampleClassBO
//Some db query execution to get the price from DB
//Set SampleClassBO properties
//Return SampleClassBO object
}
 
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