Namespaces

Types

Type Constraint

Namespace NHibernate.Mapping

Interfaces IRelationalModel

Methods

Properties

Public instance methods

void AddColumn(Column column)

Adds the Column to the ICollection of Columns that are part of the constraint.
Parameters
Column column The Column to include in the Constraint.

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string SqlConstraintString(Dialect d, string constraintName, string defaultSchema)

When implemented by a class, generates the SQL string to create the named Constraint in the database.
Parameters
return string A string that contains the SQL to create the named Constraint.
Dialect d The Dialect to use for SQL rules.
string constraintName The name to use as the identifier of the constraint in the database.
string defaultSchema

string SqlCreateString(Dialect dialect, IMapping p, string defaultSchema)

Generates the SQL string to create this Constraint in the database.
Parameters
return string A string that contains the SQL to create this Constraint.
Dialect dialect The Dialect to use for SQL rules.
IMapping p
string defaultSchema

string SqlDropString(Dialect dialect, string defaultSchema)

Generates the SQL string to drop this Constraint in the database.
Parameters
return string A string that contains the SQL to drop this Constraint.
Dialect dialect The Dialect to use for SQL rules.
string defaultSchema

string ToString()

Parameters
return string

Public properties

ICollection ColumnCollection get;

Gets an ICollection of Column objects that are part of the constraint.
return ICollection

int ColumnSpan get;

Gets the number of columns that this Constraint contains.
return int

string Name get; set;

Gets or sets the Name used to identify the constraint in the database.
return string

Table Table get; set;

Gets or sets the Table this Constraint is in.
return Table