Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Stored Procedure with two parameters
Message
De
12/10/2010 16:11:25
 
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01485066
Message ID:
01485098
Vues:
33
>>>>>Can you post the line to call a method as the above was the one I posted.
>>>>
>>>>Whoever posted it, that is what worked
>>>
>>>Ok, just wanted to be sure. How many parameters does this method have?
>>
>>I'm not sure why you are interested as I have solved my problem, but there are 5 overrides for this method:
>>
>>ExecSprocScalar(string)
>>ExecSprocScalar(string, out System.Data.IDbCommand, params System.Data.IDbDataParameter[])
>>ExecSprocScalar(string, params System.Data.IDbDataParameter[])
>>ExecSprocScalar(string, string, out System.Data.IDbCommand, params System.Data.IDbDataParameter[])
>>ExecSprocScalar(string, string, params System.Data.IDbDataParameter[])
>
>I'm not sure I understand exactly, that's why I'm asking. We're using 2nd overload (I guess), but we're passing 4 parameters. How does it exactly work, e.g. why
>
>param1, param2 is the same as params IDbDataParameter[] ?
>
>E.g. how does C# understand it (as I know the same works for main program).

Sorry, I don't have a clue. At my stage in C# I am not questioning why things work yet, I'm just glad to get something to work :)
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform