Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# 2.0 Return DataReader object
Message
De
09/03/2012 14:41:40
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01537785
Message ID:
01537811
Vues:
28
J'aime (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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform