Click here to Skip to main content
16,014,759 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 5:22
toptone7829-Jul-06 5:22 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 7:11
Ista29-Jul-06 7:11 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 7:24
Ista29-Jul-06 7:24 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 8:50
toptone7829-Jul-06 8:50 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 12:11
toptone7829-Jul-06 12:11 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 15:41
Ista29-Jul-06 15:41 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7830-Jul-06 0:25
toptone7830-Jul-06 0:25 
GeneralRe: Generic query database and sort out returned DataSet? [modified] Pin
Ista31-Jul-06 4:48
Ista31-Jul-06 4:48 
Send me an email to n_i_c_k_5_4_5_4 _at_ hot_mail ( minus the underscores of course )

I have a forum app ( hate php and we needed a forums webite for my world of warcraft guild ) that I did in c# thats easy to understand without too many tricks. It has forums and private mail enabled. If you send an email I can give you a password to it.

Send me an email and I'll send you the project and we can discuss what and how I did it. It doesn't use any ADO calls inside the pages.

-- theories --
But, as far as the DAL and BLL.

The class exists in the BLL.

The DAL will return a populated class.

But, this also depends on who you talk to also.

I come from a Java and C++ background and move towards SOA. So I don't believe in any ADO.NET calls anywhere but the DAL.

But, people that stem from VB or other scripting languages will use ADO.NET calls anywhere ( the UI, BLL, and DAL ) and think it's proper.

But, by definition it says that the business layer does not know about the source of the data. So if you do not know the source of data, then how could you use ADO? That is tied directly to the data.

One solution I have seen before is the create a class that extends the IDBConnection and what not. But, this is just a hack to disobey the rules of abstracting the data source which a DAL implies.

And also, since the DAL could be hitting xml, oracle, sql, excel, text files, and other sources I believe the DAL should query the data and based on the class requested populate what data it can. This way the BLL is never concerned with how it got there, it just knows its there. Which is the definition of an n-tiered application.

If you send me an email, I can write a small prototype demonstrating what I am trying to infer. And add a visio document that visually shows what I'm talking about. Tell me if you have visio in the email. If not the can paste the picture into a word document.

Hope this didnt confuse you.
Nick



-- modified at 10:49 Monday 31st July, 2006

--------------------------------------------------------

1 line of code equals many bugs. So don't write any!!

My mad coder blog

GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone781-Aug-06 4:53
toptone781-Aug-06 4:53 
QuestionWant no postback on imagebutton click Pin
Vijaykumar Rajaram28-Jul-06 7:34
Vijaykumar Rajaram28-Jul-06 7:34 
AnswerRe: Want no postback on imagebutton click Pin
Ista28-Jul-06 8:44
Ista28-Jul-06 8:44 
AnswerRe: Want no postback on imagebutton click Pin
eggsovereasy28-Jul-06 8:51
eggsovereasy28-Jul-06 8:51 
QuestionAccess denied - urgent Pin
dansoft28-Jul-06 6:58
dansoft28-Jul-06 6:58 
AnswerRe: Access denied - urgent Pin
ToddHileHoffer28-Jul-06 7:03
ToddHileHoffer28-Jul-06 7:03 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:16
dansoft28-Jul-06 7:16 
GeneralRe: Access denied - urgent [modified] Pin
ToddHileHoffer28-Jul-06 7:27
ToddHileHoffer28-Jul-06 7:27 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:29
dansoft28-Jul-06 7:29 
GeneralRe: Access denied - urgent Pin
ToddHileHoffer28-Jul-06 7:35
ToddHileHoffer28-Jul-06 7:35 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:40
dansoft28-Jul-06 7:40 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 8:19
dansoft28-Jul-06 8:19 
AnswerRe: Access denied - urgent Pin
Ista28-Jul-06 7:35
Ista28-Jul-06 7:35 
GeneralRe: Access denied - urgent [modified] Pin
dansoft28-Jul-06 7:39
dansoft28-Jul-06 7:39 
GeneralRe: Access denied - urgent Pin
Ista28-Jul-06 7:41
Ista28-Jul-06 7:41 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:46
dansoft28-Jul-06 7:46 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 8:19
dansoft28-Jul-06 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.