DBSchema.ObtainAndInsertFkConstraintObjectsFromMetaData 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)
Syntaxpublic void ObtainAndInsertFkConstraintObjectsFromMetaData(
DataTable fkConstraints,
string columnNameFkName,
string columnNameFkTable,
string columnNamePkTable,
string columnNameFkField,
string columnNamePkField,
bool fkFieldsCanDifferInCasing,
string updateRuleField,
string deleteRuleField,
Func<string, ForeignKeyRuleAction> actionRuleDetermineFunc
)
Public Sub ObtainAndInsertFkConstraintObjectsFromMetaData (
fkConstraints As DataTable,
columnNameFkName As String,
columnNameFkTable As String,
columnNamePkTable As String,
columnNameFkField As String,
columnNamePkField As String,
fkFieldsCanDifferInCasing As Boolean,
updateRuleField As String,
deleteRuleField As String,
actionRuleDetermineFunc As Func(Of String, ForeignKeyRuleAction)
)
Parameters
- fkConstraints
- Type: System.Data.DataTable
The fk constraint metadata. - columnNameFkName
- Type: System.String
The column name of the names of the fk. - columnNameFkTable
- Type: System.String
The column name of the names of the fk table. - columnNamePkTable
- Type: System.String
The column name of the names of the pk table. - columnNameFkField
- Type: System.String
The column name of the names of the fk field. - columnNamePkField
- Type: System.String
The column name of the names of the pk field. - fkFieldsCanDifferInCasing
- Type: System.Boolean
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: System.String
the column name of the update rule values - deleteRuleField
- Type: System.String
The column name of the delete rule values. - actionRuleDetermineFunc
- Type: System.Func<String, ForeignKeyRuleAction>
The action rule determine func, which is used to convert an action rule value to a function key
rule action
See Also