Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi, I am working with the Asp.Net project and we are using 3-Tier architecture. In Data Access Layer we using "Inline queries" for data manipulation and "Data Reader" for binding into Grid. Is it a Good approach?.. can anyone please suggest me the right approach???
Posted

What is an 'inline query' ? You string mash SQL in your data layer ? So long as you use paramaterised queries so they are safe from injection attacks and put them all in your data layer, that doesn't seem bad to me.

It's a matter of discussion if a datalayer should return a strongly typed list or a data reader type object. I've worked on projects that do both and seen pros and cons of each.
 
Share this answer
 
Comments
Sandeep Mewara 25-Aug-10 13:02pm    
Comment from OP: Instead of Stored Procedures we using inline queries. We can also use Dataset for Projects but we using Data Reader?.. Which one is best?.
Stored Procedures or Inline Queries? DataSet or DataReader?..
I think dataset is the best approach since it provide disconnected architecture.

Hope this may help u.... :)
 
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