Load an instance of the persistent class, by a unique key other than the primary key.
Namespace:
NHibernate.Persister.EntityAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function LoadByUniqueKey ( _ propertyName As String, _ uniqueKey As Object, _ session As ISessionImplementor _ ) As Object |
C# |
---|
Object LoadByUniqueKey( string propertyName, Object uniqueKey, ISessionImplementor session ) |
Visual C++ |
---|
Object^ LoadByUniqueKey( String^ propertyName, Object^ uniqueKey, ISessionImplementor^ session ) |
JavaScript |
---|
function loadByUniqueKey(propertyName, uniqueKey, session); |
Parameters
- propertyName
- Type: System..::.String
- uniqueKey
- Type: System..::.Object
- session
- Type: NHibernate.Engine..::.ISessionImplementor