Namespaces

Types in FluentNHibernate.Conventions.Instances

Type IIdentityInstance

Namespace FluentNHibernate.Conventions.Instances

Interfaces IIdentityInspector

Methods

Properties

Public instance methods

void Column(string column)

Adds a column to the index if columns have not yet been specified

void CustomSqlType(string sqlType)

Specify a custom SQL type
Parameters
string sqlType

SQL type

void CustomType(Type type)

Specifies that a custom type (an implementation of IUserType ) should be used for this property for mapping it to/from one or more database columns whose format or type doesn't match this.NET property.
Parameters
Type type

A type which implements IUserType.

Return
void

This property mapping to continue the method chain

void CustomType(string type)

Specifies that a custom type (an implementation of IUserType ) should be used for this property for mapping it to/from one or more database columns whose format or type doesn't match this.NET property.
Parameters
string type

A type which implements IUserType.

Return
void

This property mapping to continue the method chain

void CustomType<T>()

Specifies that a custom type (an implementation of IUserType ) should be used for this property for mapping it to/from one or more database columns whose format or type doesn't match this.NET property.
Return
void

This property mapping to continue the method chain

void Default(object value)

Specifies the default value for the discriminator
Parameters
object value

Default value

void Index(string index)

Specifies the index name

void Nullable()

Specifies that the element is nullable (or not, if the Not switch is used)

void Precision(int precision)

Specify the precision for decimal types
Parameters
int precision

Precision

void Scale(int scale)

Specify the scale for decimal types
Parameters
int scale

Scale

void UniqueKey(string columns)

Specifies the name of a multi-column unique constraint.

Public properties

IAccessInstance Access get;

IGeneratorInstance GeneratedBy get;

IIdentityInstance Not get;