MapperCreateAndLoad Method (String, IAppContext, Flavors, MapperAttrs, String, Boolean, Boolean, String, MapperLoadFlags, Int32) |
Creates and loads a basic mapper.
This overload takes Filter, Sort,
MapperLoadFlags, and TopN parameters, optionally requeries, and optionally performs
MoveFirst.
Namespace:
NetQuarry.Data
Assembly:
EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static IMapper CreateAndLoad(
string key,
IAppContext appContext,
Flavors flavor,
MapperAttrs attributes,
string filter,
bool requery,
bool moveFirst,
string sort,
MapperLoadFlags flags,
int topN
)
Public Shared Function CreateAndLoad (
key As String,
appContext As IAppContext,
flavor As Flavors,
attributes As MapperAttrs,
filter As String,
requery As Boolean,
moveFirst As Boolean,
sort As String,
flags As MapperLoadFlags,
topN As Integer
) As IMapper
Parameters
- key
- Type: SystemString
The mapper key. - appContext
- Type: NetQuarryIAppContext
The application context object. - flavor
- Type: NetQuarry.DataFlavors
The optional flavor - attributes
- Type: NetQuarry.DataMapperAttrs
Attributes to add to the mapper before the requery - filter
- Type: SystemString
Static Filter to add to the mapper before Requery - requery
- Type: SystemBoolean
If true, Requery is called on the Mapper. - moveFirst
- Type: SystemBoolean
If true, MoveFirst is called on the Mapper. - sort
- Type: SystemString
The order by column list to use. - 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).
Return Value
Type:
IMapperThe new mapper.
See Also