Load an instance of the persistent class, by a unique key other than the primary key.

Namespace: NHibernate.Persister.Entity
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
Object LoadByUniqueKey(
	string propertyName,
	Object uniqueKey,
	ISessionImplementor session
)
Visual Basic
Function LoadByUniqueKey ( _
	propertyName As String, _
	uniqueKey As Object, _
	session As ISessionImplementor _
) As Object
Visual C++
Object^ LoadByUniqueKey(
	String^ propertyName, 
	Object^ uniqueKey, 
	ISessionImplementor^ session
)

Parameters

propertyName
Type: System..::..String

[Missing <param name="propertyName"/> documentation for "M:NHibernate.Persister.Entity.IUniqueKeyLoadable.LoadByUniqueKey(System.String,System.Object,NHibernate.Engine.ISessionImplementor)"]

uniqueKey
Type: System..::..Object

[Missing <param name="uniqueKey"/> documentation for "M:NHibernate.Persister.Entity.IUniqueKeyLoadable.LoadByUniqueKey(System.String,System.Object,NHibernate.Engine.ISessionImplementor)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Persister.Entity.IUniqueKeyLoadable.LoadByUniqueKey(System.String,System.Object,NHibernate.Engine.ISessionImplementor)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Persister.Entity.IUniqueKeyLoadable.LoadByUniqueKey(System.String,System.Object,NHibernate.Engine.ISessionImplementor)"]

See Also