Namespaces

Types

Type Column

Namespace NHibernate.Mapping

Interfaces ISelectable

Methods

Properties

Public instance methods

bool Equals(Column column)

Determines if this instance of Column and the specified Column can be considered the same.
Parameters
return bool ${WriteSummary(content)}
Column column A Column to compare to this Column.

bool Equals(object obj)

Determines if this instance of Column and a specified object, which must be a can be considered the same.
Parameters
return bool ${WriteSummary(content)}
object obj An Object that should be a Column .

string GetAlias(Dialect d, string suffix)

Gets an Alias for the column name.
Parameters
return string A string that can be used as the alias for this Column.
Dialect d The Dialect that contains the rules for Aliasing.
string suffix A string to use as the suffix for the Alias.

string GetAlias(Dialect dialect)

Parameters
return string
Dialect dialect

string GetAlias(Dialect dialect, Table table)

Parameters
return string
Dialect dialect
Table table

SqlType GetAutoSqlType(IMapping mapping)

Gets the SqlType of the column based on the IType .
Parameters
return SqlType The SqlType of the column based on the IType .
IMapping mapping

int GetHashCode()

Returns the hash code for this instance.
Parameters
return int

string GetQuotedName(Dialect d)

Gets the name of this Column in quoted form if it is necessary.
Parameters
return string The column name in a form that is safe to use inside of a SQL statement. Quoted if it needs to be, not quoted if it does not need to be.
Dialect d The Dialect that knows how to quote the column name.

string GetSqlType(Dialect dialect, IMapping mapping)

Gets the name of the data type for the column.
If the mapping file contains a value of the attribute sql-type this will return the string contained in that attribute. Otherwise it will use the typename from the Dialect of the SqlType object.
Parameters
return string The name of the data type for the column.
Dialect dialect The Dialect to use to get the valid data types.
IMapping mapping

string GetTemplate(Dialect dialect, SQLFunctionRegistry functionRegistry)

Parameters
return string
Dialect dialect
SQLFunctionRegistry functionRegistry

string GetText(Dialect dialect)

Parameters
return string
Dialect dialect

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public properties

string CheckConstraint get; set;

Gets or sets a check constraint on the column
return string

bool HasCheckConstraint get;

Do we have a check constraint?
return bool

bool IsFormula get;

return bool

bool IsNullable get; set;

Gets or sets if the column can have null values in it.
return bool

bool IsQuoted get; set;

Gets or sets if the column needs to be quoted in SQL statements.
return bool

bool IsUnique get; set;

Gets or sets if the column contains unique values.
return bool

int Length get; set;

Gets or sets the length of the datatype in the database.
return int

string Name get; set;

Gets or sets the name of the column in the database.
return string

string SqlType get; set;

Gets or sets the sql data type name of the column.
This is usually read from the sql-type attribute.
return string

string Text get;

return string

IType Type get; set;

Gets or sets the NHibernate IType of the column.
return IType

int TypeIndex get; set;

Gets or sets the index of the column in the IType .
return int

bool Unique get; set;

Gets or sets whether the column is unique.
return bool