The ForeignKey type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ForeignKey |
Initializes a new instance of the ForeignKey class.
|
Methods
Name | Description | |
---|---|---|
![]() | AddColumn |
Adds the Column to the ICollection of
Columns that are part of the constraint.
(Inherited from Constraint.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SqlConstraintString |
Generates the SQL string to create the named Foreign Key Constraint in the database.
(Overrides Constraint..::.SqlConstraintString(Dialect, String, String).) |
![]() | SqlCreateString |
Generates the SQL string to create this Constraint in the database.
(Inherited from Constraint.) |
![]() | SqlDropString |
Get the SQL string to drop this Constraint in the database.
(Overrides Constraint..::.SqlDropString(Dialect, String).) |
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | ColumnCollection |
Gets an ICollection of Column objects that are part of the constraint.
(Inherited from Constraint.) |
![]() | ColumnSpan |
Gets the number of columns that this Constraint contains.
(Inherited from Constraint.) |
![]() | Name |
Gets or sets the Name used to identify the constraint in the database.
(Inherited from Constraint.) |
![]() | ReferencedClass |
Gets or sets the Type that this Foreign Key is referencing.
|
![]() | ReferencedTable |
Gets or sets the Table that the Foreign Key is referencing.
|
![]() | Table |
Gets or sets the Table this Constraint is in.
(Inherited from Constraint.) |