Click or drag to resize
DBDriverBaseCheckIfFkConstraintCanBeCreated Method
Checks if an fk constraint can be created between the fk side and the pk side specified.

Namespace:  SD.LLBLGen.Pro.DBDriverCore
Assembly:  SD.LLBLGen.Pro.DBDriverCore (in SD.LLBLGen.Pro.DBDriverCore.dll) Version: 5.3.0.0 (5.3.0)
Syntax
public bool CheckIfFkConstraintCanBeCreated(
	List<Pair<IProjectElementFieldMapTargetElement, IProjectElementFieldMapTargetElement>> fieldPairs
)

Parameters

fieldPairs
Type: System.Collections.GenericListPairIProjectElementFieldMapTargetElement, IProjectElementFieldMapTargetElement
The field pairs. Value1 is the fk field, Value2 is the pk field of each pair

Return Value

Type: Boolean
true, if fkside and pkside are tables, if they're not in different catalogs, if the database doesn't supports catalogs, they're not in different schemas and if the fk side table isn't in a schema with sync source set to 'database', false otherwise
See Also