src/openSourceC.DotNetLibrary.Data/Data/DbParamsBase.cs
/// <summary>
///		Create and returns a <typeparamref name="TDbParameter"/> object.
/// </summary>
/// <param name="dbType">The <see cref="DbType"/>.</param>
///	<param name="parameterName">The name of the parameter to create.</param>
///	<param name="isNullable">Indicates whether the parameter accepts null values.</param>
///	<param name="value">The value of the parameter.</param>
///	<param name="direction">The parameter direction. (optional)</param>
/// <returns>
///		A <typeparamref name="TDbParameter"/> object.
/// </returns>
Create and returns a  object.
Create and returns a object .
protected TDbParameter CreateParameter(DbType? dbType, string parameterName, bool isNullable, object? value, ParameterDirection direction = ParameterDirection.Input)
		{
			TDbParameter prm = (TDbParameter)_cmd.CreateParameter();
			prm.ParameterName = NormalizeParameterName(parameterName);
			if (dbType.HasValue)
			{
				prm.DbType = dbType.Value;
			}
			prm.IsNullable = (isNullable | direction == ParameterDirection.Output | direction == ParameterDirection.ReturnValue);
			prm.Direction = direction;
			prm.Value = (value ?? DBNull.Value);
			_cmd.Parameters.Add(prm);
			return prm;
		}
protected TDbParameter CreateParameter ( DbType ? dbType , string parameterName , bool isNullable , object ? value , ParameterDirection direction = ParameterDirection . Input ) { TDbParameter prm = ( TDbParameter ) _cmd . CreateParameter ( ) ; prm . ParameterName = NormalizeParameterName ( parameterName ) ; if ( dbType . HasValue ) { prm . DbType = dbType . Value ; } prm . IsNullable = ( isNullable | direction == ParameterDirection . Output | direction == ParameterDirection . ReturnValue ) ; prm . Direction = direction ; prm . Value = ( value ?? DBNull . Value ) ; _cmd . Parameters . Add ( prm ) ; return prm ; }
Create and returns a  object.
Create and returns a object .
None
dbType
DbType?
None
parameterName
string
The name of the parameter to create.
The name of the parameter to create .
isNullable
bool
Indicates whether the parameter accepts null values.
Indicates whether the parameter accepts null values .
value
object?
The value of the parameter.
The value of the parameter .
direction
ParameterDirection
The parameter direction. (optional)
The parameter direction . ( optional )