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

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

Syntax

C#
public static EntityType OneToOne(
	string persistentClass,
	ForeignKeyDirection foreignKeyType,
	string uniqueKeyPropertyName,
	bool lazy,
	bool unwrapProxy,
	bool isEmbeddedInXML,
	string entityName,
	string propertyName
)
Visual Basic
Public Shared Function OneToOne ( _
	persistentClass As String, _
	foreignKeyType As ForeignKeyDirection, _
	uniqueKeyPropertyName As String, _
	lazy As Boolean, _
	unwrapProxy As Boolean, _
	isEmbeddedInXML As Boolean, _
	entityName As String, _
	propertyName As String _
) As EntityType
Visual C++
public:
static EntityType^ OneToOne(
	String^ persistentClass, 
	ForeignKeyDirection^ foreignKeyType, 
	String^ uniqueKeyPropertyName, 
	bool lazy, 
	bool unwrapProxy, 
	bool isEmbeddedInXML, 
	String^ entityName, 
	String^ propertyName
)

Parameters

persistentClass
Type: System..::..String

[Missing <param name="persistentClass"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

foreignKeyType
Type: NHibernate.Type..::..ForeignKeyDirection

[Missing <param name="foreignKeyType"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

uniqueKeyPropertyName
Type: System..::..String

[Missing <param name="uniqueKeyPropertyName"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

lazy
Type: System..::..Boolean

[Missing <param name="lazy"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

unwrapProxy
Type: System..::..Boolean

[Missing <param name="unwrapProxy"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

isEmbeddedInXML
Type: System..::..Boolean

[Missing <param name="isEmbeddedInXML"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

entityName
Type: System..::..String

[Missing <param name="entityName"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

propertyName
Type: System..::..String

[Missing <param name="propertyName"/> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Type.TypeFactory.OneToOne(System.String,NHibernate.Type.ForeignKeyDirection,System.String,System.Boolean,System.Boolean,System.Boolean,System.String,System.String)"]

See Also