/// <summary> /// Use MySQLParameter(string parameterName, DbType type) /// </summary> /// <param name="parameterName">The name of the parameter to map.</param> /// <param name="dbType">One of the DbType values</param> /// <param name="parameterDirection"></param> /// <param name="value">value</param> public MySQLParameter(string parameterName, MySQLDbType dbType, ParameterDirection parameterDirection, object value) { ParameterName = parameterName; _dbType = dbType; Direction = parameterDirection; Value = value; }
/// <summary> /// Use MySQLParameter(string parameterName, DbType type) /// </summary> /// <param name="dbType">One of the DbType values</param> /// <param name="parameterDirection"></param> public MySQLParameter(MySQLDbType dbType, ParameterDirection parameterDirection) { ParameterName = null; _dbType = dbType; Direction = parameterDirection; }
/// <summary> /// Use MySQLParameter(string parameterName, DbType type) /// </summary> /// <param name="parameterName">The name of the parameter to map.</param> /// <param name="dbType">One of the DbType values</param> /// <param name="parameterDirection"></param> public MySQLParameter(string parameterName, MySQLDbType dbType, ParameterDirection parameterDirection) { ParameterName = parameterName; _dbType = dbType; Direction = parameterDirection; }
/// <summary> /// Initializes a new instance of the MySQLParameter class with the parameter name and the data type. /// </summary> /// <param name="parameterName">The name of the parameter to map.</param> /// <param name="type">One of the DbType values.</param> public MySQLParameter(string parameterName, MySQLDbType type) { ParameterName = parameterName; _dbType = type; }