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.) | |
AddColumns | (Inherited from Constraint.) | |
AddReferencedColumns | ||
AlignColumns |
Validates that columnspan of the foreignkey and the primarykey is the same.
Furthermore it aligns the length of the underlying tables columns.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsGenerated | (Inherited from Constraint.) | |
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, 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, String).) | |
ToString | (Overrides Constraint..::..ToString()()()().) |
Extension Methods
Name | Description | |
---|---|---|
As<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
IsBetween |
Apply a "between" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(array<Object>[]()[][]) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(ICollection) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsProxy | (Defined by NHibernateProxyHelper.) | |
ToTypeParameters | (Defined by ReflectHelper.) |
Properties
Name | Description | |
---|---|---|
CascadeDeleteEnabled | ||
ColumnIterator |
Gets an IEnumerable<(Of <(<'T>)>)> of Column objects that are part of the constraint.
(Inherited from Constraint.) | |
Columns | (Inherited from Constraint.) | |
ColumnSpan |
Gets the number of columns that this Constraint contains.
(Inherited from Constraint.) | |
HasPhysicalConstraint | ||
IsReferenceToPrimaryKey | Does this foreignkey reference the primary key of the reference table | |
Name |
Gets or sets the Name used to identify the constraint in the database.
(Inherited from Constraint.) | |
ReferencedColumns | ||
ReferencedEntityName | ||
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.) |