TypedMapperOpenReaderT Method (IAppContext, String, Flavors, MapperAttrs, String, MapperLoadFlags, Int32) |
Creates a new mapper for reading or iteration. You must call
MoveNext to move to the first record.
You must explicitly call
Close or
Dispose on the object after this call.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static T OpenReader<T>(
IAppContext appCxt,
string rowFilter,
Flavors flavors,
MapperAttrs mapperAttributes,
string sort,
MapperLoadFlags flags,
int topN
)
where T : new(), TypedMapper
Public Shared Function OpenReader(Of T As {New, TypedMapper}) (
appCxt As IAppContext,
rowFilter As String,
flavors As Flavors,
mapperAttributes As MapperAttrs,
sort As String,
flags As MapperLoadFlags,
topN As Integer
) As T
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context object - rowFilter
- Type: SystemString
The filter to use during Requery - flavors
- Type: NetQuarry.DataFlavors
Flavors - mapperAttributes
- Type: NetQuarry.DataMapperAttrs
Attributes - sort
- Type: SystemString
The value to set as the OrderBy property. - flags
- Type: NetQuarry.DataMapperLoadFlags
MapperLoadFlags used to control behavior of how mapper loads. - topN
- Type: SystemInt32
The TOP(N) clause (max number of rows to select)
Type Parameters
- T
- The class type for the object. This should be your topmost derived class.
Return Value
Type:
TA new instance of T positioned before the first record. Use
MoveNext to move to the first record.
See Also