Click or drag to resize

ProjectAutoMapEntityOnNewOrExistingTargetInDatabase Method

Auto maps the entity specified onto either a matching existing target or a new target (if no existing target exists and existingTargetsOnly is set to false)

Namespace:  SD.LLBLGen.Pro.ApplicationCore.ProjectClasses
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public LogNode AutoMapEntityOnNewOrExistingTargetInDatabase(
	string driverId,
	EntityDefinition entity,
	bool existingTargetsOnly
)

Parameters

driverId
Type: SystemString
The driver id.
entity
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The entity. This entity is assumed to be unmapped
existingTargetsOnly
Type: SystemBoolean
if set to true automap will only map targets to existing targets and won't create new ones if no existing target is present.

Return Value

Type: LogNode
log node with progress log
Remarks
Call this method with a command to make the whole operation undoable
See Also