Click or drag to resize

MapperCore Class

Class which contains mapping logic to produce mappings
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ApplicationCore.MappingMapperCore

Namespace:  SD.LLBLGen.Pro.ApplicationCore.Mapping
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public static class MapperCore

The MapperCore type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAutoMapFieldToNewTargetField
Creates and maps a new target field for the fieldmapping specified.
Public methodStatic memberAutoMapUnmappedFieldsToExistingFieldsInMapping
Auto-maps all unmapped fields in the mapping passed in to unmapped, existing fields in the target of the mapping, using code existing in this class.
Public methodStatic memberAutoMapUnmappedFieldsToNewFieldsInMapping
Auto-maps all un-mapped field mappings to new fields in the target set in the mapping passed in.
Public methodStatic memberAutoSetSequencesIfNecessary
Auto sets a sequence if necessary on the pk field, if applicable, and creates a new one if none is available. This method works only on the first PK field and only performs actions for the setting AutoAssignSequencesToIntegerPks, it ignores other PK fields and non-int fields. To set a sequence on a fieldmapping regardless of the setting, use SetSequenceIfRequired(FieldMapping, IProjectElementFieldMapTargetElement, EntityMapping, Project).
Public methodStatic memberCreateAndSetNewGroupableModelElementMappingTarget
Creates a new target from the name fragments specified and sets it as the target of the mapping specified. The target is created in the database related to the driverid in the specified mapping. It creates a new catalog and schema if required and if possible.
Public methodStatic memberMapReturnElement
Maps the return element.
Public methodStatic memberSetExistingTargetOnGroupableModelElementMapping(GroupableModelElementMapping, IProjectElementMapTargetElement, Project)
Sets the passed in target as the new target of the GroupableModelElement mapping. It then will auto-map the entity fields to field elements in the target.
Public methodStatic memberSetExistingTargetOnGroupableModelElementMapping(GroupableModelElementMapping, IProjectElementMapTargetElement, Project, DBDriverBase)
Sets the passed in target as the new target of the GroupableModelElement mapping. It then will auto-map the GroupableModelElement fields to field elements in the target. If the target has no fields and the target is a table, the routine will auto-add new fields for every field mapping present in the mapping passed in, which requires a valid driver instance to be passed in.
Public methodStatic memberSetSequenceIfRequired
Sets the sequence to use for the fieldMapping specified, if required. It only selects from existing sequences, it won't create a new one if no matching/fitting sequence is found; in that case the sequence to use for the mapping is left 'null'.
Top
See Also