C# 클래스 OpenADK.Library.Tools.Mapping.DataReaderAdaptor

Implements IFieldAdaptor for the ADK, based on an IDataReader instance.
To use this class, create an instance of it based on an open IDataReader instance. You are responsible for navigation of the IDataReader by calling IDataReader.Read. When you are ready to map the current IDataReader row to a SIFElement, pass this class into the MappingsContext.MapOutbound() method.
상속: IFieldAdaptor
파일 보기 프로젝트 열기: nsip/SifBootCamp-dotNet 1 사용 예제들

공개 메소드들

메소드 설명
DataReaderAdaptor ( IDataReader reader ) : System
GetSifValue ( string fieldName, TypeConverter typeConverter, FieldMapping mapping ) : SifSimpleType

Gets a value from the underlying data store to be used in an outbound field mapping operation

GetValue ( string key ) : object

Returns the underlying value being stored for the field.

This method is not called during Mappings operations. It may be called by classes such as the OpenADK.Library.IValueBuilder class

HasField ( string fieldName ) : bool

Returns whether the field being requested for mapping has a value that can be mapped to SIF

SetSifValue ( string fieldName, SifSimpleType value, FieldMapping mapping ) : void

Sets a value that has been retrieved from a SIF Element in an inbound field mapping operation.

비공개 메소드들

메소드 설명
SafeGetOrdinal ( string key ) : int

메소드 상세

DataReaderAdaptor() 공개 메소드

public DataReaderAdaptor ( IDataReader reader ) : System
reader IDataReader
리턴 System

GetSifValue() 공개 메소드

Gets a value from the underlying data store to be used in an outbound field mapping operation
public GetSifValue ( string fieldName, TypeConverter typeConverter, FieldMapping mapping ) : SifSimpleType
fieldName string The field name that is mapped to a SIFElement
typeConverter TypeConverter The converter class for the requested SIF data type
mapping FieldMapping The FieldMapping this value was generated from or null
리턴 SifSimpleType

GetValue() 공개 메소드

Returns the underlying value being stored for the field.
This method is not called during Mappings operations. It may be called by classes such as the OpenADK.Library.IValueBuilder class
public GetValue ( string key ) : object
key string
리턴 object

HasField() 공개 메소드

Returns whether the field being requested for mapping has a value that can be mapped to SIF
public HasField ( string fieldName ) : bool
fieldName string The field name being mapped to SIF
리턴 bool

SetSifValue() 공개 메소드

Sets a value that has been retrieved from a SIF Element in an inbound field mapping operation.
public SetSifValue ( string fieldName, SifSimpleType value, FieldMapping mapping ) : void
fieldName string The field name that is mapped to a SIFElement
value SifSimpleType The value of the SIF element
mapping FieldMapping The FieldMappings that will be used to set this value or null
리턴 void