1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
command = new MySQLCommand("prc_login", connection);
command.CommandType = CommandType.StoredProcedure;
command.Parameters.Add("param_username", DbType.String);
command.Parameters["param_username"].Direction = ParameterDirection.Input;
command.Parameters["param_username"].Value = username;
command.Parameters.Add("param_password", DbType.String);
command.Parameters["param_password"].Direction = ParameterDirection.Input;
command.Parameters["param_password"].Value = password;
command.Parameters.Add("param_chek", DbType.String);
command.Parameters["param_chek"].Direction = ParameterDirection.Output;
connection.Open();
reader = command.ExecuteReaderEx(); |
Partager