Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Stored procedure from .NET: MySQLParameters without names (1 reply)

$
0
0
Hello!

Is it possible to call a stored procedure from .NET sending in parameters with no names?

Example:

Do this:
object name = "carlos";
command.Parameters.Add(name);
object pass= "1234";
command.Parameters.Add(pass);


Instead of this:
object name = "carlos";
command.Parameters.Add("username",name);
object pass= "1234";
command.Parameters.Add("password",pass);

The reason behind this, is that I don't want to specify the parameters names but to pass them in order according to the command.Parameters.Add() sentences. So 'name' would be the first param, and 'pass' the second, and so on...

Am I forced to specify names?

Thanks!

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>