C# Class Utilities.Data.XmlDataReader

Basic implementation of an XmlReader that acts as an adapter to the IDataReader interfaces. It uses streaming to maximize performance This class is mostly used with things like the SqlBulkCopy API so not all members are implemented
Inheritance: IDataReader
Afficher le fichier Open project: feanz/Utilities

Protected Properties

Свойство Type Description
enumerator IEnumerator
invalidField int

Méthodes publiques

Méthode Description
Close ( ) : void
GetBoolean ( int i ) : bool
GetByte ( int i ) : byte
GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long
GetChar ( int i ) : char
GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long
GetData ( int i ) : IDataReader
GetDataTypeName ( int i ) : string
GetDateTime ( int i ) : System.DateTime
GetDecimal ( int i ) : decimal
GetDouble ( int i ) : double
GetFieldType ( int i ) : Type
GetFloat ( int i ) : float
GetGuid ( int i ) : System.Guid
GetInt16 ( int i ) : short
GetInt32 ( int i ) : int
GetInt64 ( int i ) : long
GetName ( int i ) : string
GetOrdinal ( string name ) : int
GetSchemaTable ( ) : DataTable
GetString ( int i ) : string
GetValue ( int i ) : object
GetValues ( object values ) : int
IsDBNull ( int i ) : bool
NextResult ( ) : bool
Read ( ) : bool

Méthodes protégées

Méthode Description
Dispose ( ) : void
XmlDataReader ( XmlReader xmlReader, int fieldCount, string rowElementName ) : System

Initialize the XmlDataStreamer. After initialization call Read() to move the reader forward.

Private Methods

Méthode Description
GetXmlStream ( ) : IEnumerable

http://msdn.microsoft.com/en-us/library/system.xml.linq.xstreamingelement.aspx

IDisposable ( ) : void
this ( int i ) : objectIDataRecord.System
this ( string name ) : objectIDataRecord.System

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( ) : void
Résultat void

GetBoolean() public méthode

public GetBoolean ( int i ) : bool
i int
Résultat bool

GetByte() public méthode

public GetByte ( int i ) : byte
i int
Résultat byte

GetBytes() public méthode

public GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long
i int
fieldOffset long
buffer byte
bufferoffset int
length int
Résultat long

GetChar() public méthode

public GetChar ( int i ) : char
i int
Résultat char

GetChars() public méthode

public GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long
i int
fieldoffset long
buffer char
bufferoffset int
length int
Résultat long

GetData() public méthode

public GetData ( int i ) : IDataReader
i int
Résultat IDataReader

GetDataTypeName() public méthode

public GetDataTypeName ( int i ) : string
i int
Résultat string

GetDateTime() public méthode

public GetDateTime ( int i ) : System.DateTime
i int
Résultat System.DateTime

GetDecimal() public méthode

public GetDecimal ( int i ) : decimal
i int
Résultat decimal

GetDouble() public méthode

public GetDouble ( int i ) : double
i int
Résultat double

GetFieldType() public méthode

public GetFieldType ( int i ) : Type
i int
Résultat System.Type

GetFloat() public méthode

public GetFloat ( int i ) : float
i int
Résultat float

GetGuid() public méthode

public GetGuid ( int i ) : System.Guid
i int
Résultat System.Guid

GetInt16() public méthode

public GetInt16 ( int i ) : short
i int
Résultat short

GetInt32() public méthode

public GetInt32 ( int i ) : int
i int
Résultat int

GetInt64() public méthode

public GetInt64 ( int i ) : long
i int
Résultat long

GetName() public méthode

public GetName ( int i ) : string
i int
Résultat string

GetOrdinal() public abstract méthode

public abstract GetOrdinal ( string name ) : int
name string
Résultat int

GetSchemaTable() public méthode

public GetSchemaTable ( ) : DataTable
Résultat System.Data.DataTable

GetString() public méthode

public GetString ( int i ) : string
i int
Résultat string

GetValue() public abstract méthode

public abstract GetValue ( int i ) : object
i int
Résultat object

GetValues() public méthode

public GetValues ( object values ) : int
values object
Résultat int

IsDBNull() public méthode

public IsDBNull ( int i ) : bool
i int
Résultat bool

NextResult() public méthode

public NextResult ( ) : bool
Résultat bool

Read() public méthode

public Read ( ) : bool
Résultat bool

XmlDataReader() protected méthode

Initialize the XmlDataStreamer. After initialization call Read() to move the reader forward.
protected XmlDataReader ( XmlReader xmlReader, int fieldCount, string rowElementName ) : System
xmlReader System.Xml.XmlReader XmlReader used to iterate the data. Will be disposed by when done.
fieldCount int IDataReader FiledCount.
rowElementName string Name of the XML element that contains row data
Résultat System

Property Details

enumerator protected_oe property

protected IEnumerator enumerator
Résultat IEnumerator

invalidField protected_oe property

protected int invalidField
Résultat int