C# Class System.Data.SqlClient.SqlParameter

Inheritance: System.Data.Common.DbParameter, IDbDataParameter, IDataParameter, ICloneable
ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
AssertCachedPropertiesAreValid void
AssertPropertiesAreValid void
BinarySize int
CoerceValue object
FixStreamDataForNonPLP void
GetActualFieldsAndProperties void
GetActualPrecision byte
GetActualScale byte
GetActualSize int
GetCoercedValue object
GetMetaSqlDbTypeOnly SqlDbType
GetMetaTypeOnly MetaType
GetParameterSize int
MetaDataForSmi Microsoft.SqlServer.Server.SmiParameterMetaData
ParseTypeName string[]
Prepare void
PropertyChanging void
PropertyTypeChanging void
SetSqlBuffer void
ShouldSerializePrecision bool
ShouldSerializeScale bool
ShouldSerializeSqlDbType bool
StringSize int
Validate void
ValidateTypeLengths MetaType
ValuePrecision byte
ValueScale byte
ValueSize int

Public Methods

Method Description
ResetDbType ( ) : void
ResetSqlDbType ( ) : void
SqlParameter ( ) : System.Collections.Generic
SqlParameter ( string parameterName, SqlDbType dbType ) : System.Collections.Generic
SqlParameter ( string parameterName, SqlDbType dbType, int size ) : System.Collections.Generic
SqlParameter ( string parameterName, SqlDbType dbType, int size, string sourceColumn ) : System.Collections.Generic
SqlParameter ( string parameterName, object value ) : System.Collections.Generic

Private Methods

Method Description
AssertCachedPropertiesAreValid ( ) : void
AssertPropertiesAreValid ( object value, bool isSqlType = null, bool isDataFeed = null, bool isNull = null ) : void
BinarySize ( object value, bool isSqlType ) : int
CoerceValue ( object value, MetaType destinationType, bool &coercedToDataFeed, bool &typeChanged, bool allowStreaming = true ) : object
FixStreamDataForNonPLP ( ) : void
GetActualFieldsAndProperties ( List &fields, SmiMetaDataPropertyCollection &props, System.Data.SqlClient.ParameterPeekAheadValue &peekAhead ) : void
GetActualPrecision ( ) : byte
GetActualScale ( ) : byte
GetActualSize ( ) : int
GetCoercedValue ( ) : object
GetMetaSqlDbTypeOnly ( ) : SqlDbType
GetMetaTypeOnly ( ) : MetaType
GetParameterSize ( ) : int
MetaDataForSmi ( System.Data.SqlClient.ParameterPeekAheadValue &peekAhead ) : Microsoft.SqlServer.Server.SmiParameterMetaData
ParseTypeName ( string typeName ) : string[]
Prepare ( SqlCommand cmd ) : void
PropertyChanging ( ) : void
PropertyTypeChanging ( ) : void
SetSqlBuffer ( SqlBuffer buff ) : void
ShouldSerializePrecision ( ) : bool
ShouldSerializeScale ( ) : bool
ShouldSerializeSqlDbType ( ) : bool
StringSize ( object value, bool isSqlType ) : int
Validate ( int index, bool isCommandProc ) : void
ValidateTypeLengths ( ) : MetaType
ValuePrecision ( object value ) : byte
ValueScale ( object value ) : byte
ValueSize ( object value ) : int

Method Details

ResetDbType() public method

public ResetDbType ( ) : void
return void

ResetSqlDbType() public method

public ResetSqlDbType ( ) : void
return void

SqlParameter() public method

public SqlParameter ( ) : System.Collections.Generic
return System.Collections.Generic

SqlParameter() public method

public SqlParameter ( string parameterName, SqlDbType dbType ) : System.Collections.Generic
parameterName string
dbType SqlDbType
return System.Collections.Generic

SqlParameter() public method

public SqlParameter ( string parameterName, SqlDbType dbType, int size ) : System.Collections.Generic
parameterName string
dbType SqlDbType
size int
return System.Collections.Generic

SqlParameter() public method

public SqlParameter ( string parameterName, SqlDbType dbType, int size, string sourceColumn ) : System.Collections.Generic
parameterName string
dbType SqlDbType
size int
sourceColumn string
return System.Collections.Generic

SqlParameter() public method

public SqlParameter ( string parameterName, object value ) : System.Collections.Generic
parameterName string
value object
return System.Collections.Generic