Click or drag to resize

DBSchemaObtainAndInsertFkConstraintObjectsFromMetaData Method

Obtains the fk constraint objects from meta data and adds them to the tables in this schema.

Namespace:  SD.LLBLGen.Pro.DBDriverCore
Assembly:  SD.LLBLGen.Pro.DBDriverCore (in SD.LLBLGen.Pro.DBDriverCore.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public void ObtainAndInsertFkConstraintObjectsFromMetaData(
	DataTable fkConstraints,
	string columnNameFkName,
	string columnNameFkTable,
	string columnNamePkTable,
	string columnNameFkField,
	string columnNamePkField,
	bool fkFieldsCanDifferInCasing,
	string updateRuleField,
	string deleteRuleField,
	Func<string, ForeignKeyRuleAction> actionRuleDetermineFunc
)

Parameters

fkConstraints
Type: System.DataDataTable
The fk constraint metadata.
columnNameFkName
Type: SystemString
The column name of the names of the fk.
columnNameFkTable
Type: SystemString
The column name of the names of the fk table.
columnNamePkTable
Type: SystemString
The column name of the names of the pk table.
columnNameFkField
Type: SystemString
The column name of the names of the fk field.
columnNamePkField
Type: SystemString
The column name of the names of the pk field.
fkFieldsCanDifferInCasing
Type: SystemBoolean
flag to signal if the fields in the FK constraint can differ only by casing from the field names in the table. This sometimes happens in sloppy databases like Access and MySql
updateRuleField
Type: SystemString
the column name of the update rule values
deleteRuleField
Type: SystemString
The column name of the delete rule values.
actionRuleDetermineFunc
Type: SystemFuncString, ForeignKeyRuleAction
The action rule determine func, which is used to convert an action rule value to a function key rule action
See Also