예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 /// <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;
 }