Class BaseMappingDataReader<TDestination>
Reads a forward-only stream of rows.
Inherited Members
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
public abstract class BaseMappingDataReader<TDestination> : BaseDataReader, IDataReader, IDisposable, IDataRecord where TDestination : class
Type Parameters
|
TDestination
|
Constructors
BaseMappingDataReader(Boolean)
Initializes a new instance of the BaseMappingDataReader<TDestination> class.
Declaration
public BaseMappingDataReader(bool includeInternalProperties = false)
Parameters
|
Boolean
includeInternalProperties
|
Properties
CurrentRecord
Gets or sets the current record of the reader.
Declaration
protected abstract TDestination CurrentRecord { get; set; }
Property Value
|
TDestination
|
FieldCount
Gets the number of properties of the TDestination.
Declaration
public override int FieldCount { get; }
Property Value
|
System.Int32
The number of properties of the |
Overrides
Implements
IsClosed
Gets a value indicating whether the data reader is closed.
Declaration
public override bool IsClosed { get; }
Property Value
|
Boolean
true if the data reader is closed; otherwise, false. |
Overrides
Item[Int32]
Gets the value of the property located at the specified index as a string.
Declaration
public override string this[int index] { get; }
Parameters
|
System.Int32
index
The zero-based index of the property to get. |
Property Value
|
String
The value of the property located at the specified index as a string. |
Overrides
Item[String]
Gets the value of the property located at the specified index as a string.
Declaration
public override string this[string name] { get; }
Parameters
|
String
name
The name of the property to find. |
Property Value
|
String
The value of the property located at the specified index as a string. |
Overrides
Methods
Dispose(Boolean)
Releases the unmanaged resources used by this instance and optionally releases the managed resources
Declaration
protected override void Dispose(bool disposing)
Parameters
|
Boolean
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
GetFieldType(Int32)
Gets the System.Type information corresponding to the type of the System.Object that
would be returned from the property with the index of the TDestination
Declaration
public override Type GetFieldType(int i)
Parameters
|
System.Int32
i
The index of the property to find. |
Returns
|
System.Type
The System.Type information corresponding to the type of the System.Object that
would be returned from the property with the index of the |
Overrides
Implements
GetName(Int32)
Gets the name of the property to find.
Declaration
public override string GetName(int i)
Parameters
|
System.Int32
i
The index of the property to find. |
Returns
|
String
The name of the property to find. |
Overrides
Implements
GetOrdinal(String)
Gets the property index of the named property.
Declaration
public override int GetOrdinal(string name)
Parameters
|
String
name
The name of the property to find. |
Returns
|
System.Int32
The property index of the named property |
Overrides
Implements
GetValue(Int32)
Gets the value of specified property.
Declaration
public override object GetValue(int i)
Parameters
|
System.Int32
i
The index of the property to find. |
Returns
|
Object
The value of specified property. |
Overrides
Implements
NextResult()
Advances the data reader to the next result,
Declaration
public virtual bool NextResult()
Returns
|
Boolean
true if there are more results; otherwise, false. |
Explicit Interface Implementations
IDataRecord.Item[Int32]
Declaration
object IDataRecord.this[int i] { get; }
Parameters
|
System.Int32
i
|
Returns
|
Object
|
Implements
IDataRecord.Item[String]
Declaration
object IDataRecord.this[string name] { get; }
Parameters
|
String
name
|
Returns
|
Object
|