Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# 2.0 Return DataReader object
Message
From
09/03/2012 14:41:40
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01537785
Message ID:
01537811
Views:
30
Likes (1)
>I understand. We work in different languages (C# and VB.NET). But in your case, if I understand correctly the "As Boolean" means that your method returns the Boolean type, right? So my understanding is that if I apply your code (in the previous message) you method declaration would be like:
>
>
>public Function MethodName( parameters) as oDataRead
>
>
>But now that I look at it does not sound/look right. I need to read on this more.

The boolean is simply the success of the operation. Each method returns True or False. True means everything went as expected.

I still believe that the only parameter should be the SQL command, such as lcSQL. Then, your class should handle it all. Basically, you need to focus on the client side not being affected if you change your backend. Thus, in your class, I assume this is an external DLL to your client application, such as a framework, you will isolate all the required backend code in it and the related components so you wouldn't have to deal with that at all even if you change the backend.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform