C# Класс NHibernate.Mapping.Column

Наследование: ISelectable, ICloneable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clone ( ) : object

Shallow copy, the value is not copied

Column ( ) : System

Initializes a new instance of Column.

Column ( string columnName ) : System

Initializes a new instance of Column.

Equals ( Column column ) : bool

Determines if this instance of Column and the specified Column can be considered the same.

Equals ( object obj ) : bool

Determines if this instance of Column and a specified object, which must be a Column can be considered the same.

GetAlias ( Dialect dialect ) : string

For any column name, generate an alias that is unique to that column name, and also take Dialect.MaxAliasLength into account.

GetAlias ( Dialect dialect, NHibernate.Mapping.Table table ) : string
GetHashCode ( ) : int

Returns the hash code for this instance.

GetQuotedName ( ) : string

returns quoted name as it would be in the mapping file.

GetQuotedName ( Dialect d ) : string

Gets the name of this Column in quoted form if it is necessary.

GetSqlType ( Dialect dialect, IMapping mapping ) : string

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.Dialect of the SqlType object.

GetSqlTypeCode ( IMapping mapping ) : NHibernate.SqlTypes.SqlType
GetTemplate ( Dialect dialect, NHibernate.Dialect.Function.SQLFunctionRegistry functionRegistry ) : string
GetText ( Dialect dialect ) : string
IsCaracteristicsDefined ( ) : bool
IsLengthDefined ( ) : bool
IsPrecisionDefined ( ) : bool
ToString ( ) : string

Приватные методы

Метод Описание
GetAlias ( int maxAliasLength ) : string
GetDialectTypeName ( Dialect dialect, IMapping mapping ) : string

Описание методов

Clone() публичный Метод

Shallow copy, the value is not copied
public Clone ( ) : object
Результат object

Column() публичный Метод

Initializes a new instance of Column.
public Column ( ) : System
Результат System

Column() публичный Метод

Initializes a new instance of Column.
public Column ( string columnName ) : System
columnName string The name of the column.
Результат System

Equals() публичный Метод

Determines if this instance of Column and the specified Column can be considered the same.
public Equals ( Column column ) : bool
column Column A to compare to this Column.
Результат bool

Equals() публичный Метод

Determines if this instance of Column and a specified object, which must be a Column can be considered the same.
public Equals ( object obj ) : bool
obj object An that should be a .
Результат bool

GetAlias() публичный Метод

For any column name, generate an alias that is unique to that column name, and also take Dialect.MaxAliasLength into account.
public GetAlias ( Dialect dialect ) : string
dialect Dialect
Результат string

GetAlias() публичный Метод

public GetAlias ( Dialect dialect, NHibernate.Mapping.Table table ) : string
dialect Dialect
table NHibernate.Mapping.Table
Результат string

GetHashCode() публичный Метод

Returns the hash code for this instance.
public GetHashCode ( ) : int
Результат int

GetQuotedName() публичный Метод

returns quoted name as it would be in the mapping file.
public GetQuotedName ( ) : string
Результат string

GetQuotedName() публичный Метод

Gets the name of this Column in quoted form if it is necessary.
public GetQuotedName ( Dialect d ) : string
d Dialect /// The that knows how to quote /// the column name. ///
Результат string

GetSqlType() публичный Метод

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.Dialect of the SqlType object.
public GetSqlType ( Dialect dialect, IMapping mapping ) : string
dialect Dialect The to use to get the valid data types.
mapping IMapping
Результат string

GetSqlTypeCode() публичный Метод

public GetSqlTypeCode ( IMapping mapping ) : NHibernate.SqlTypes.SqlType
mapping IMapping
Результат NHibernate.SqlTypes.SqlType

GetTemplate() публичный Метод

public GetTemplate ( Dialect dialect, NHibernate.Dialect.Function.SQLFunctionRegistry functionRegistry ) : string
dialect Dialect
functionRegistry NHibernate.Dialect.Function.SQLFunctionRegistry
Результат string

GetText() публичный Метод

public GetText ( Dialect dialect ) : string
dialect Dialect
Результат string

IsCaracteristicsDefined() публичный Метод

public IsCaracteristicsDefined ( ) : bool
Результат bool

IsLengthDefined() публичный Метод

public IsLengthDefined ( ) : bool
Результат bool

IsPrecisionDefined() публичный Метод

public IsPrecisionDefined ( ) : bool
Результат bool

ToString() публичный Метод

public ToString ( ) : string
Результат string