The ForeignKey type exposes the following members.

Constructors

  NameDescription
Public methodForeignKey
Initializes a new instance of the ForeignKey class

Methods

  NameDescription
Public methodAddColumn
Adds the Column to the ICollection of Columns that are part of the constraint.
(Inherited from Constraint.)
Public methodAddColumns (Inherited from Constraint.)
Public methodAddReferencedColumns
Public methodAlignColumns
Validates that columnspan of the foreignkey and the primarykey is the same. Furthermore it aligns the length of the underlying tables columns.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsGenerated (Inherited from Constraint.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSqlConstraintString
Generates the SQL string to create the named Foreign Key Constraint in the database.
(Overrides Constraint..::..SqlConstraintString(Dialect, String, String, String).)
Public methodSqlCreateString
Generates the SQL string to create this Constraint in the database.
(Inherited from Constraint.)
Public methodSqlDropString
Get the SQL string to drop this Constraint in the database.
(Overrides Constraint..::..SqlDropString(Dialect, String, String).)
Public methodToString (Overrides Constraint..::..ToString()()()().)

Extension Methods

  NameDescription
Public Extension MethodAs<(Of <<'(T>)>>) (Defined by TypeHelperExtensionMethods.)
Public Extension MethodIsBetween
Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(array<Object>[]()[][])Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(ICollection)Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsProxy (Defined by NHibernateProxyHelper.)
Public Extension MethodToTypeParameters (Defined by ReflectHelper.)

Properties

  NameDescription
Public propertyCascadeDeleteEnabled
Public propertyColumnIterator
Gets an IEnumerable<(Of <(<'T>)>)> of Column objects that are part of the constraint.
(Inherited from Constraint.)
Public propertyColumns (Inherited from Constraint.)
Public propertyColumnSpan
Gets the number of columns that this Constraint contains.
(Inherited from Constraint.)
Public propertyHasPhysicalConstraint
Public propertyIsReferenceToPrimaryKey
Does this foreignkey reference the primary key of the reference table
Public propertyName
Gets or sets the Name used to identify the constraint in the database.
(Inherited from Constraint.)
Public propertyReferencedColumns
Public propertyReferencedEntityName
Public propertyReferencedTable
Gets or sets the Table that the Foreign Key is referencing.
Public propertyTable
Gets or sets the Table this Constraint is in.
(Inherited from Constraint.)

See Also