C# Class System.Data.Common.DataStorage

Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CopyValueInternal void
DetermineIfValueType bool
GetEmptyStorageInternal object
GetQualifiedName string
GetStorageType StorageType
GetType System.Type
GetTypeStorage System.Type
ImplementsINullableValue bool
ImplementsInterfaces void
InspectTypeForInterfaces Tuple
IsSqlType bool
IsTypeCustomType bool
IsTypeCustomType bool
SetStorageInternal void

Public Methods

Method Description
Aggregate ( int recordNos, AggregateType kind ) : object
AggregateCount ( int recordNos ) : object
Compare ( int recordNo1, int recordNo2 ) : int
CompareValueTo ( int recordNo1, object value ) : int
ConvertObjectToXml ( object value ) : string
ConvertObjectToXml ( object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib ) : void
ConvertValue ( object value ) : object
ConvertXmlToObject ( XmlReader xmlReader, XmlRootAttribute xmlAttrib ) : object
ConvertXmlToObject ( string s ) : object
Copy ( int recordNo1, int recordNo2 ) : void
CreateStorage ( DataColumn column, Type dataType, StorageType typeCode ) : DataStorage
Get ( int recordNo ) : object
GetStringLength ( int record ) : int
IsNull ( int recordNo ) : bool
IsObjectNull ( object value ) : bool
IsObjectSqlNull ( object value ) : bool
IsSqlType ( Type dataType ) : bool
Set ( int recordNo, object value ) : void
SetCapacity ( int capacity ) : void

Protected Methods

Method Description
CompareBits ( int recordNo1, int recordNo2 ) : int
CopyBits ( int srcRecordNo, int dstRecordNo ) : void
CopyValue ( int record, object store, BitArray nullbits, int storeIndex ) : void
DataStorage ( DataColumn column, Type type, object defaultValue, StorageType storageType ) : System.Collections
DataStorage ( DataColumn column, Type type, object defaultValue, object nullValue, StorageType storageType ) : System.Collections
DataStorage ( DataColumn column, Type type, object defaultValue, object nullValue, bool isICloneable, StorageType storageType ) : System.Collections
GetBits ( int recordNo ) : object
GetEmptyStorage ( int recordCount ) : object
HasValue ( int recordNo ) : bool
SetNullBit ( int recordNo, bool flag ) : void
SetNullStorage ( BitArray nullbits ) : void
SetStorage ( object store, BitArray nullbits ) : void

Private Methods

Method Description
CopyValueInternal ( int record, object store, BitArray nullbits, int storeIndex ) : void
DetermineIfValueType ( StorageType typeCode, Type dataType ) : bool
GetEmptyStorageInternal ( int recordCount ) : object
GetQualifiedName ( Type type ) : string

wrapper around Type.AssemblyQualifiedName

GetStorageType ( Type dataType ) : StorageType
GetType ( string value ) : Type

wrapper around Type.GetType

Types like "System.Guid" will load regardless of AssemblyQualifiedName because they are special Types like "System.Data.SqlTypes.SqlString" will load because they are in the same assembly as this code Types like "System.Numerics.BigInteger" won't load because they are not special and not same assembly as this code

GetTypeStorage ( StorageType storageType ) : Type
ImplementsINullableValue ( StorageType typeCode, Type dataType ) : bool
ImplementsInterfaces ( StorageType typeCode, Type dataType, bool &sqlType, bool &nullable, bool &xmlSerializable, bool &changeTracking, bool &revertibleChangeTracking ) : void
InspectTypeForInterfaces ( Type dataType ) : Tuple
IsSqlType ( StorageType storageType ) : bool
IsTypeCustomType ( StorageType typeCode ) : bool
IsTypeCustomType ( Type type ) : bool
SetStorageInternal ( object store, BitArray nullbits ) : void

Method Details

Aggregate() public method

public Aggregate ( int recordNos, AggregateType kind ) : object
recordNos int
kind AggregateType
return object

AggregateCount() public method

public AggregateCount ( int recordNos ) : object
recordNos int
return object

Compare() public abstract method

public abstract Compare ( int recordNo1, int recordNo2 ) : int
recordNo1 int
recordNo2 int
return int

CompareBits() protected method

protected CompareBits ( int recordNo1, int recordNo2 ) : int
recordNo1 int
recordNo2 int
return int

CompareValueTo() public abstract method

public abstract CompareValueTo ( int recordNo1, object value ) : int
recordNo1 int
value object
return int

ConvertObjectToXml() public abstract method

public abstract ConvertObjectToXml ( object value ) : string
value object
return string

ConvertObjectToXml() public method

public ConvertObjectToXml ( object value, XmlWriter xmlWriter, XmlRootAttribute xmlAttrib ) : void
value object
xmlWriter System.Xml.XmlWriter
xmlAttrib System.Xml.Serialization.XmlRootAttribute
return void

ConvertValue() public method

public ConvertValue ( object value ) : object
value object
return object

ConvertXmlToObject() public method

public ConvertXmlToObject ( XmlReader xmlReader, XmlRootAttribute xmlAttrib ) : object
xmlReader System.Xml.XmlReader
xmlAttrib System.Xml.Serialization.XmlRootAttribute
return object

ConvertXmlToObject() public abstract method

public abstract ConvertXmlToObject ( string s ) : object
s string
return object

Copy() public abstract method

public abstract Copy ( int recordNo1, int recordNo2 ) : void
recordNo1 int
recordNo2 int
return void

CopyBits() protected method

protected CopyBits ( int srcRecordNo, int dstRecordNo ) : void
srcRecordNo int
dstRecordNo int
return void

CopyValue() protected abstract method

protected abstract CopyValue ( int record, object store, BitArray nullbits, int storeIndex ) : void
record int
store object
nullbits System.Collections.BitArray
storeIndex int
return void

CreateStorage() public static method

public static CreateStorage ( DataColumn column, Type dataType, StorageType typeCode ) : DataStorage
column DataColumn
dataType System.Type
typeCode StorageType
return DataStorage

DataStorage() protected method

protected DataStorage ( DataColumn column, Type type, object defaultValue, StorageType storageType ) : System.Collections
column DataColumn
type System.Type
defaultValue object
storageType StorageType
return System.Collections

DataStorage() protected method

protected DataStorage ( DataColumn column, Type type, object defaultValue, object nullValue, StorageType storageType ) : System.Collections
column DataColumn
type System.Type
defaultValue object
nullValue object
storageType StorageType
return System.Collections

DataStorage() protected method

protected DataStorage ( DataColumn column, Type type, object defaultValue, object nullValue, bool isICloneable, StorageType storageType ) : System.Collections
column DataColumn
type System.Type
defaultValue object
nullValue object
isICloneable bool
storageType StorageType
return System.Collections

Get() public abstract method

public abstract Get ( int recordNo ) : object
recordNo int
return object

GetBits() protected method

protected GetBits ( int recordNo ) : object
recordNo int
return object

GetEmptyStorage() protected abstract method

protected abstract GetEmptyStorage ( int recordCount ) : object
recordCount int
return object

GetStringLength() public method

public GetStringLength ( int record ) : int
record int
return int

HasValue() protected method

protected HasValue ( int recordNo ) : bool
recordNo int
return bool

IsNull() public method

public IsNull ( int recordNo ) : bool
recordNo int
return bool

IsObjectNull() public static method

public static IsObjectNull ( object value ) : bool
value object
return bool

IsObjectSqlNull() public static method

public static IsObjectSqlNull ( object value ) : bool
value object
return bool

IsSqlType() public static method

public static IsSqlType ( Type dataType ) : bool
dataType System.Type
return bool

Set() public abstract method

public abstract Set ( int recordNo, object value ) : void
recordNo int
value object
return void

SetCapacity() public method

public SetCapacity ( int capacity ) : void
capacity int
return void

SetNullBit() protected method

protected SetNullBit ( int recordNo, bool flag ) : void
recordNo int
flag bool
return void

SetNullStorage() protected method

protected SetNullStorage ( BitArray nullbits ) : void
nullbits System.Collections.BitArray
return void

SetStorage() protected abstract method

protected abstract SetStorage ( object store, BitArray nullbits ) : void
store object
nullbits System.Collections.BitArray
return void