Return the existing proxy associated with the given EntityKey, or the second
argument (the entity associated with the key) if no proxy exists.
Namespace:
NHibernate.EngineAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function ProxyFor ( _ persister As IEntityPersister, _ key As EntityKey, _ impl As Object _ ) As Object |
C# |
---|
Object ProxyFor( IEntityPersister persister, EntityKey key, Object impl ) |
Visual C++ |
---|
Object^ ProxyFor( IEntityPersister^ persister, EntityKey^ key, Object^ impl ) |
JavaScript |
---|
function proxyFor(persister, key, impl); |
Parameters
- persister
- Type: NHibernate.Persister.Entity..::.IEntityPersister
The IEntityPersister to see if it should be Proxied.
- key
- Type: NHibernate.Engine..::.EntityKey
The EntityKey that identifies the entity.
- impl
- Type: System..::.Object