Load an instance by a unique key that is not the primary key.
Namespace:
NHibernate.EngineAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function LoadByUniqueKey ( _ persistentClass As Type, _ uniqueKeyPropertyName As String, _ id As Object _ ) As Object |
C# |
---|
Object LoadByUniqueKey( Type persistentClass, string uniqueKeyPropertyName, Object id ) |
Visual C++ |
---|
Object^ LoadByUniqueKey( Type^ persistentClass, String^ uniqueKeyPropertyName, Object^ id ) |
JavaScript |
---|
function loadByUniqueKey(persistentClass, uniqueKeyPropertyName, id); |
Parameters
- persistentClass
- Type: System..::.Type
- uniqueKeyPropertyName
- Type: System..::.String
- id
- Type: System..::.Object