A one-to-one association type for the given class and cascade style.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function OneToOne ( _
	persistentClass As Type, _
	foreignKeyDirection As ForeignKeyDirection, _
	uniqueKeyPropertyName As String, _
	lazy As Boolean _
) As IType
C#
public static IType OneToOne(
	Type persistentClass,
	ForeignKeyDirection foreignKeyDirection,
	string uniqueKeyPropertyName,
	bool lazy
)
Visual C++
public:
static IType^ OneToOne(
	Type^ persistentClass, 
	ForeignKeyDirection^ foreignKeyDirection, 
	String^ uniqueKeyPropertyName, 
	bool lazy
)
JavaScript
NHibernate.Type.TypeFactory.oneToOne = function(persistentClass, foreignKeyDirection, uniqueKeyPropertyName, lazy);

Parameters

persistentClass
Type: System..::.Type
foreignKeyDirection
Type: NHibernate.Type..::.ForeignKeyDirection
uniqueKeyPropertyName
Type: System..::.String
lazy
Type: System..::.Boolean

See Also