C# Class Contrive.Common.Data.AddDbParameterExtensions

Exibir arquivo Open project: alanstevens/Contrive

Public Methods

Method Description
AddOutputParameter ( this command, string name, DbType paramType, int size ) : IDbCommand
AddParameter ( this command, string name, DbType type ) : IDbCommand
AddParameter ( this command, string name, DbType type, object value ) : IDbCommand
AddParameter ( this command, string name, DbType type, object value, int size ) : IDbCommand
AddParameter ( this command, string name, DbType type, object value, int size, ParameterDirection direction ) : IDbCommand

Private Methods

Method Description
NewParameter ( this command, string name, DbType type, ParameterDirection direction, object value = null, int size, byte precision = (byte)0, byte scale = (byte)0 ) : IDataParameter

Method Details

AddOutputParameter() public static method

public static AddOutputParameter ( this command, string name, DbType paramType, int size ) : IDbCommand
command this
name string
paramType DbType
size int
return IDbCommand

AddParameter() public static method

public static AddParameter ( this command, string name, DbType type ) : IDbCommand
command this
name string
type DbType
return IDbCommand

AddParameter() public static method

public static AddParameter ( this command, string name, DbType type, object value ) : IDbCommand
command this
name string
type DbType
value object
return IDbCommand

AddParameter() public static method

public static AddParameter ( this command, string name, DbType type, object value, int size ) : IDbCommand
command this
name string
type DbType
value object
size int
return IDbCommand

AddParameter() public static method

public static AddParameter ( this command, string name, DbType type, object value, int size, ParameterDirection direction ) : IDbCommand
command this
name string
type DbType
value object
size int
direction ParameterDirection
return IDbCommand