Force the component to a different type than the one of the property.

Namespace: NHibernate.Mapping.ByCode
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
void Class(
	Type componentType
)
Visual Basic
Sub Class ( _
	componentType As Type _
)
Visual C++
void Class(
	Type^ componentType
)

Parameters

componentType
Type: System..::..Type
Mapped component type.

Remarks

Useful when the property is an interface and you need the mapping to a concrete class mapped as component.

See Also