DBCatalog.ObtainAndInsertFkConstraintObjectsFromMetaData Method |
Obtains the fk constraint objects from meta data and adds them to the tables in the schemas in this catalog.
Namespace: SD.LLBLGen.Pro.DBDriverCoreAssembly: SD.LLBLGen.Pro.DBDriverCore (in SD.LLBLGen.Pro.DBDriverCore.dll) Version: 5.0.0.0 (5.0.0)
Syntaxpublic void ObtainAndInsertFkConstraintObjectsFromMetaData(
DataTable fkConstraints,
string columnNameFkName,
string columnNameFkSchema,
string columnNamePkSchema,
string columnNameFkTable,
string columnNamePkTable,
string columnNameFkField,
string columnNamePkField,
string updateRuleField,
string deleteRuleField,
Func<string, ForeignKeyRuleAction> actionRuleDetermineFunc
)
Public Sub ObtainAndInsertFkConstraintObjectsFromMetaData (
fkConstraints As DataTable,
columnNameFkName As String,
columnNameFkSchema As String,
columnNamePkSchema As String,
columnNameFkTable As String,
columnNamePkTable As String,
columnNameFkField As String,
columnNamePkField As String,
updateRuleField As String,
deleteRuleField As String,
actionRuleDetermineFunc As Func(Of String, ForeignKeyRuleAction)
)
Parameters
- fkConstraints
- Type: System.Data.DataTable
The fk constraints. - columnNameFkName
- Type: System.String
The column name of the names of the fk. - columnNameFkSchema
- Type: System.String
The column name of the names of the fk schema. - columnNamePkSchema
- Type: System.String
The column name of the names of the pk schema. - 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. - 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