Class MappingDataReader<TDestination>
A class that reads rows from a System.Data.IDataReader and maps the values of the current row to TDestination
that
is exposed as a System.Data.IDataReader.
BaseMappingDataReader<TDestination>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Data
Assembly: IRM.dll
Syntax
public class MappingDataReader<TDestination> : BaseMappingDataReader<TDestination>, IDataReader, IDisposable, IDataRecord where TDestination : class
Type Parameters
TDestination
|
Constructors
MappingDataReader(IDataReader, IDataRecordMapper<TDestination>, Boolean)
Initializes a new instance of the MappingDataReader<TDestination> class.
Declaration
public MappingDataReader(IDataReader reader, IDataRecordMapper<TDestination> dataRecordMapper, bool includeInternalProperties = false)
Parameters
System.Data.IDataReader
reader
The System.Data.IDataReader to use. |
IDataRecordMapper<TDestination>
dataRecordMapper
The IDataRecordMapper<T> to use. |
Boolean
includeInternalProperties
|
Properties
CurrentRecord
Gets or sets the current record of the reader.
Declaration
protected override TDestination CurrentRecord { get; set; }
Property Value
TDestination
|
Overrides
IRM.Data.BaseMappingDataReader<TDestination>.CurrentRecord
Methods
Read()
Advances the System.Data.IDataReader to the next record.
Declaration
public override bool Read()
Returns
Boolean
true if there are more rows; otherwise, false. |