C# 클래스 Dibware.StoredProcedureFramework.Helpers.DateReaderRecordToObjectMapper

Maps the fields of a data reader record into
파일 보기 프로젝트 열기: dibley1973/StoredProcedureFramework

Private Properties

프로퍼티 타입 설명
BuildTargetConstructor void
BuildTargetProperties void
ClearMappedTarget void
CreateNewTargetObject void
EnsureTargetContructrorExists void
GetCurrentPropertyType System.Type
GetIfCurrentPropertyNullableType bool
HandleCastingExceptions void
HandleMissingFieldExceptions void
HandleOtherExceptions void
ReadRecordFieldValuesIntoCurrentTargetProperties void
SetCurrentFieldNameFromCurrentPropertyAttributeOrPropertyName void
SetCurrentFieldValueFromReader void
SetCurrentProperty void
SetTargetPropertyFromCurrentFieldValue void
TrySetTargetPropertyNullValue void

공개 메소드들

메소드 설명
DateReaderRecordToObjectMapper ( IDataReader dataReader, Type targetType ) : System

Initializes a new instance of the DateReaderRecordToObjectMapper class.

PopulateMappedTargetFromReaderRecord ( ) : void

Creates an object of the target type using the current record of the DataReader and populates the MappedTarget property with it.

비공개 메소드들

메소드 설명
BuildTargetConstructor ( ) : void
BuildTargetProperties ( ) : void
ClearMappedTarget ( ) : void
CreateNewTargetObject ( ) : void
EnsureTargetContructrorExists ( ) : void
GetCurrentPropertyType ( ) : Type
GetIfCurrentPropertyNullableType ( ) : bool
HandleCastingExceptions ( Exception ex ) : void
HandleMissingFieldExceptions ( Exception ex ) : void
HandleOtherExceptions ( Exception ex ) : void
ReadRecordFieldValuesIntoCurrentTargetProperties ( ) : void
SetCurrentFieldNameFromCurrentPropertyAttributeOrPropertyName ( ) : void
SetCurrentFieldValueFromReader ( ) : void
SetCurrentProperty ( PropertyInfo property ) : void
SetTargetPropertyFromCurrentFieldValue ( ) : void
TrySetTargetPropertyNullValue ( ) : void

메소드 상세

DateReaderRecordToObjectMapper() 공개 메소드

Initializes a new instance of the DateReaderRecordToObjectMapper class.
/// dataReader /// or /// targetType ///
public DateReaderRecordToObjectMapper ( IDataReader dataReader, Type targetType ) : System
dataReader IDataReader /// The data reader which is to be used to populate the target. ///
targetType System.Type /// The Type of the tapped target object. ///
리턴 System

PopulateMappedTargetFromReaderRecord() 공개 메소드

Creates an object of the target type using the current record of the DataReader and populates the MappedTarget property with it.
public PopulateMappedTargetFromReaderRecord ( ) : void
리턴 void