Click or drag to resize
MapperCoreAutoSetSequencesIfNecessary Method
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).

Namespace:  SD.LLBLGen.Pro.ApplicationCore.Mapping
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.1.0.0 (5.1.0)
Syntax
public static LogNode AutoSetSequencesIfNecessary(
	GroupableModelElementMapping mapping,
	Project containingProject
)

Parameters

mapping
Type: SD.LLBLGen.Pro.ApplicationCore.MappingGroupableModelElementMapping
The mapping.
containingProject
Type: SD.LLBLGen.Pro.ApplicationCore.ProjectClassesProject
The containing project.

Return Value

Type: LogNode
lognode with progress or null if nothing was done
See Also