C# Class System.Data.ForeignKeyConstraint

Inheritance: Constraint
显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CanBeRemovedFromCollection bool
CanEnableConstraint bool
CascadeCommit void
CascadeDelete void
CascadeRollback void
CascadeUpdate void
CheckCanAddToCollection void
CheckCanClearParentTable void
CheckCanRemoveParentRow void
CheckCascade void
CheckConstraint void
CheckState void
Clone Constraint
Clone Constraint
Clone ForeignKeyConstraint
ContainsColumn bool
Create void
FindParentRelation DataRelation
ForeignKeyConstraint System.ComponentModel
ForeignKeyConstraint System.ComponentModel
IsConstraintViolated bool
IsKeyNull bool
NonVirtualCheckState void

Public Methods

Method Description
Equals ( object key ) : bool

Gets a value indicating whether the current is identical to the specified object.

ForeignKeyConstraint ( DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel

Initializes a new instance of the class with the specified parent and child objects.

ForeignKeyConstraint ( string constraintName, DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel

Initializes a new instance of the class with the specified name, parent and child objects.

GetHashCode ( ) : int

Private Methods

Method Description
CanBeRemovedFromCollection ( ConstraintCollection constraints, bool fThrowException ) : bool
CanEnableConstraint ( ) : bool
CascadeCommit ( DataRow row ) : void
CascadeDelete ( DataRow row ) : void
CascadeRollback ( DataRow row ) : void
CascadeUpdate ( DataRow row ) : void
CheckCanAddToCollection ( ConstraintCollection constraints ) : void
CheckCanClearParentTable ( DataTable table ) : void
CheckCanRemoveParentRow ( DataRow row ) : void
CheckCascade ( DataRow row, DataRowAction action ) : void
CheckConstraint ( DataRow childRow, DataRowAction action ) : void
CheckState ( ) : void
Clone ( DataSet destination ) : Constraint
Clone ( DataSet destination, bool ignorNSforTableLookup ) : Constraint
Clone ( DataTable destination ) : ForeignKeyConstraint
ContainsColumn ( DataColumn column ) : bool
Create ( string relationName, DataColumn parentColumns, DataColumn childColumns ) : void
FindParentRelation ( ) : DataRelation
ForeignKeyConstraint ( string constraintName, string parentTableName, string parentColumnNames, string childColumnNames, AcceptRejectRule acceptRejectRule, Rule deleteRule, Rule updateRule ) : System.ComponentModel
ForeignKeyConstraint ( string constraintName, string parentTableName, string parentTableNamespace, string parentColumnNames, string childColumnNames, AcceptRejectRule acceptRejectRule, Rule deleteRule, Rule updateRule ) : System.ComponentModel
IsConstraintViolated ( ) : bool
IsKeyNull ( object values ) : bool
NonVirtualCheckState ( ) : void

Method Details

Equals() public method

Gets a value indicating whether the current is identical to the specified object.
public Equals ( object key ) : bool
key object
return bool

ForeignKeyConstraint() public method

Initializes a new instance of the class with the specified parent and child objects.
public ForeignKeyConstraint ( DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel
parentColumn DataColumn
childColumn DataColumn
return System.ComponentModel

ForeignKeyConstraint() public method

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
return System.ComponentModel

GetHashCode() public method

public GetHashCode ( ) : int
return int