Méthode | Description | |
---|---|---|
Close ( ) : void |
Closes the T:System.Data.IDataReader Object.
|
|
CsvDataReader ( |
Create the data reader.
|
|
GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long |
Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset.
|
|
GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long |
Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset.
|
|
GetData ( int i ) : IDataReader |
Returns an T:System.Data.IDataReader for the specified column ordinal.
|
|
GetFieldType ( int i ) : |
Gets the T:System.Type information corresponding to the type of T:System.Object that would be returned from M:System.Data.IDataRecord.GetValue(System.Int32).
|
|
GetGuid ( int i ) : System.Guid |
Returns the GUID value of the specified field.
|
|
GetName ( int i ) : string |
Gets the name for the field to find.
|
|
GetSchemaTable ( ) : |
Returns a T:System.Data.DataTable that describes the column metadata of the T:System.Data.IDataReader.
|
|
GetValues ( object values ) : int |
Gets all the attribute fields in the collection for the current record.
|
|
NextResult ( ) : bool |
Advances the data reader to the next result, when reading the results of batch SQL statements.
|
Méthode | Description | |
---|---|---|
GetColumnIndex ( string colName ) : int |
Helper so the data access layer can be efficient in reading/rewriting CSVs.
|
|
ReadRawRow ( ) : IList |
This reads the row from the CSV. It basically just tokenizes it, it does not verify that there are any particular number of values or anything else.
|
Méthode | Description | |
---|---|---|
GetConfig ( |
||
ReadRawCsvRow ( TextReader reader ) : IList |
public CsvDataReader ( |
||
layer | Data access layer that will give us the TextReader we need. | |
mapping | ClassMapping | ClassMapping for the type we're returning. |
criteria | Since there is no way to filter before we read the file, /// the reader checks each row read to see if it matches the /// criteria, if not, it is skipped. | |
Résultat | System |
public GetBytes ( int i, long fieldOffset, byte buffer, int bufferoffset, int length ) : long | ||
i | int | The zero-based column ordinal. |
fieldOffset | long | The index within the field from which to start the read operation. |
buffer | byte | The buffer into which to read the stream of bytes. |
bufferoffset | int | The index for |
length | int | The number of bytes to read. |
Résultat | long |
public GetChars ( int i, long fieldoffset, char buffer, int bufferoffset, int length ) : long | ||
i | int | The zero-based column ordinal. |
fieldoffset | long | The index within the row from which to start the read operation. |
buffer | char | The buffer into which to read the stream of bytes. |
bufferoffset | int | The index for |
length | int | The number of bytes to read. |
Résultat | long |
protected GetColumnIndex ( string colName ) : int | ||
colName | string | |
Résultat | int |
public GetData ( int i ) : IDataReader | ||
i | int | The index of the field to find. |
Résultat | IDataReader |
public GetFieldType ( int i ) : |
||
i | int | The index of the field to find. |
Résultat |
public GetGuid ( int i ) : System.Guid | ||
i | int | The index of the field to find. |
Résultat | System.Guid |
public GetName ( int i ) : string | ||
i | int | The index of the field to find. |
Résultat | string |
public GetSchemaTable ( ) : |
||
Résultat |
public GetValues ( object values ) : int | ||
values | object | An array of |
Résultat | int |