C# Class System.Data.Common.DataStorage

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public Aggregate ( int recordNos, AggregateType kind ) : object
recordNos int
kind AggregateType
Résultat object

AggregateCount() public méthode

public AggregateCount ( int recordNos ) : object
recordNos int
Résultat object

Compare() public abstract méthode

public abstract Compare ( int recordNo1, int recordNo2 ) : int
recordNo1 int
recordNo2 int
Résultat int

CompareBits() protected méthode

protected CompareBits ( int recordNo1, int recordNo2 ) : int
recordNo1 int
recordNo2 int
Résultat int

CompareValueTo() public abstract méthode

public abstract CompareValueTo ( int recordNo1, object value ) : int
recordNo1 int
value object
Résultat int

ConvertObjectToXml() public abstract méthode

public abstract ConvertObjectToXml ( object value ) : string
value object
Résultat string

ConvertObjectToXml() public méthode

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

ConvertValue() public méthode

public ConvertValue ( object value ) : object
value object
Résultat object

ConvertXmlToObject() public méthode

public ConvertXmlToObject ( XmlReader xmlReader, XmlRootAttribute xmlAttrib ) : object
xmlReader System.Xml.XmlReader
xmlAttrib System.Xml.Serialization.XmlRootAttribute
Résultat object

ConvertXmlToObject() public abstract méthode

public abstract ConvertXmlToObject ( string s ) : object
s string
Résultat object

Copy() public abstract méthode

public abstract Copy ( int recordNo1, int recordNo2 ) : void
recordNo1 int
recordNo2 int
Résultat void

CopyBits() protected méthode

protected CopyBits ( int srcRecordNo, int dstRecordNo ) : void
srcRecordNo int
dstRecordNo int
Résultat void

CopyValue() protected abstract méthode

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

CreateStorage() public static méthode

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

DataStorage() protected méthode

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

DataStorage() protected méthode

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
Résultat System.Collections

DataStorage() protected méthode

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
Résultat System.Collections

Get() public abstract méthode

public abstract Get ( int recordNo ) : object
recordNo int
Résultat object

GetBits() protected méthode

protected GetBits ( int recordNo ) : object
recordNo int
Résultat object

GetEmptyStorage() protected abstract méthode

protected abstract GetEmptyStorage ( int recordCount ) : object
recordCount int
Résultat object

GetStringLength() public méthode

public GetStringLength ( int record ) : int
record int
Résultat int

HasValue() protected méthode

protected HasValue ( int recordNo ) : bool
recordNo int
Résultat bool

IsNull() public méthode

public IsNull ( int recordNo ) : bool
recordNo int
Résultat bool

IsObjectNull() public static méthode

public static IsObjectNull ( object value ) : bool
value object
Résultat bool

IsObjectSqlNull() public static méthode

public static IsObjectSqlNull ( object value ) : bool
value object
Résultat bool

IsSqlType() public static méthode

public static IsSqlType ( Type dataType ) : bool
dataType System.Type
Résultat bool

Set() public abstract méthode

public abstract Set ( int recordNo, object value ) : void
recordNo int
value object
Résultat void

SetCapacity() public méthode

public SetCapacity ( int capacity ) : void
capacity int
Résultat void

SetNullBit() protected méthode

protected SetNullBit ( int recordNo, bool flag ) : void
recordNo int
flag bool
Résultat void

SetNullStorage() protected méthode

protected SetNullStorage ( BitArray nullbits ) : void
nullbits System.Collections.BitArray
Résultat void

SetStorage() protected abstract méthode

protected abstract SetStorage ( object store, BitArray nullbits ) : void
store object
nullbits System.Collections.BitArray
Résultat void