Get the persister for the named class
Namespace:
NHibernate.EngineAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function GetEntityPersister ( _ className As String, _ throwIfNotFound As Boolean _ ) As IEntityPersister |
C# |
---|
IEntityPersister GetEntityPersister( string className, bool throwIfNotFound ) |
Visual C++ |
---|
IEntityPersister^ GetEntityPersister( String^ className, bool throwIfNotFound ) |
JavaScript |
---|
function getEntityPersister(className, throwIfNotFound); |
Parameters
- className
- Type: System..::.String
The name of the class that is persisted.
- throwIfNotFound
- Type: System..::.Boolean
Whether to throw an exception if the class is not found, or just return nullNothingnullptra null reference (Nothing in Visual Basic)
Return Value
The IEntityPersister for the class.
Exceptions
Exception | Condition |
---|---|
NHibernate..::.MappingException | If no IEntityPersister can be found and throwIfNotFound is true. |