src/openSourceC.DotNetLibrary.Data/Data/DbParamsBase.cs
/// <summary>
///		Add a parameter representing a <typeparamref name="TEnum"/> type to the command
///		object.
/// </summary>
/// <typeparam name="TEnum">The type of the enum.</typeparam>
///	<param name="parameterName">The name of the parameter.</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>Returns a <typeparamref name="TDbParameter"/> object.</returns>
Add a parameter representing a  type to the command
object.
Add a parameter representing a type to the command object .
public TDbParameter AddEnum<TEnum>(string parameterName, bool isNullable, TEnum value, ParameterDirection direction = ParameterDirection.Input)
			where TEnum : struct, Enum
		{
			DbType dbType = GetEnumDbType(typeof(TEnum));
			return CreateParameter(dbType, parameterName, isNullable, value, direction);
		}
public TDbParameter AddEnum < TEnum > ( string parameterName , bool isNullable , TEnum value , ParameterDirection direction = ParameterDirection . Input ) where TEnum : struct , Enum { DbType dbType = GetEnumDbType ( typeof ( TEnum ) ) ; return CreateParameter ( dbType , parameterName , isNullable , value , direction ) ; }
Add a parameter representing a  type to the command
object.
Add a parameter representing a type to the command object .
Returns a  object.
Returns a object .
parameterName
string
The name of the parameter.
The name of the parameter .
isNullable
bool
Indicates whether the parameter accepts null values.
Indicates whether the parameter accepts null values .
value
TEnum
The value of the parameter.
The value of the parameter .
direction
ParameterDirection
The parameter direction. (optional)
The parameter direction . ( optional )
typeparam
The type of the enum.
The type of the enum .