Click or drag to resize
ProjectAutoMapUnmappedEntitiesToTargets Method (IEnumerableEntityDefinition, String, Boolean)
Will auto-map all specified entities to existing or new targets if they're not mapped currently to a target in a given database.

Namespace:  SD.LLBLGen.Pro.ApplicationCore.ProjectClasses
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public LogNode AutoMapUnmappedEntitiesToTargets(
	IEnumerable<EntityDefinition> entitiesToMap,
	string forDriverID,
	bool existingTargetsOnly
)

Parameters

entitiesToMap
Type: System.Collections.GenericIEnumerableEntityDefinition
The entities to map. If null, all entities in the entire project are examined
forDriverID
Type: SystemString
Automap only entities to targets in the db with this ID. If empty/null, all databases are targeted.
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