private static PrepareCommand ( SqlCommand command, SqlConnection connection, SqlTransaction transaction, CommandType commandType, string commandText, SqlParameter commandParameters ) : void | ||
command | SqlCommand | the SqlCommand to be prepared |
connection | SqlConnection | a valid SqlConnection, on which to execute this command |
transaction | SqlTransaction | a valid SqlTransaction, or 'null' |
commandType | CommandType | the CommandType (stored procedure, text, etc.) |
commandText | string | the stored procedure name or T-SQL command |
commandParameters | SqlParameter | an array of SqlParameters to be associated with the command or 'null' if no parameters are required |
Результат | void |