The Constraint type exposes the following members.

Constructors

  NameDescription
Protected methodConstraint
Initializes a new instance of the Constraint class

Methods

  NameDescription
Public methodAddColumn
Adds the Column to the ICollection of Columns that are part of the constraint.
Public methodAddColumns
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
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSqlConstraintString
When implemented by a class, generates the SQL string to create the named Constraint in the database.
Public methodSqlCreateString
Generates the SQL string to create this Constraint in the database.
Public methodSqlDropString
Generates the SQL string to drop this Constraint in the database.
Public methodToString (Overrides Object..::..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 propertyColumnIterator
Gets an IEnumerable<(Of <(<'T>)>)> of Column objects that are part of the constraint.
Public propertyColumns
Public propertyColumnSpan
Gets the number of columns that this Constraint contains.
Public propertyName
Gets or sets the Name used to identify the constraint in the database.
Public propertyTable
Gets or sets the Table this Constraint is in.

See Also