System.Data.ForeignKeyConstraint.ForeignKeyConstraint C# (CSharp) Метод

ForeignKeyConstraint() публичный Метод

Initializes a new instance of the class with the specified name, parent and child objects.
public ForeignKeyConstraint ( string constraintName, DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel
constraintName string
parentColumn DataColumn
childColumn DataColumn
Результат System.ComponentModel
        public ForeignKeyConstraint(string constraintName, DataColumn parentColumn, DataColumn childColumn)
        {
            DataColumn[] parentColumns = new DataColumn[] { parentColumn };
            DataColumn[] childColumns = new DataColumn[] { childColumn };
            Create(constraintName, parentColumns, childColumns);
        }

Same methods

ForeignKeyConstraint::ForeignKeyConstraint ( DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel
ForeignKeyConstraint::ForeignKeyConstraint ( string constraintName, string parentTableName, string parentColumnNames, string childColumnNames, AcceptRejectRule acceptRejectRule, Rule deleteRule, Rule updateRule ) : System.ComponentModel
ForeignKeyConstraint::ForeignKeyConstraint ( string constraintName, string parentTableName, string parentTableNamespace, string parentColumnNames, string childColumnNames, AcceptRejectRule acceptRejectRule, Rule deleteRule, Rule updateRule ) : System.ComponentModel