If the existing proxy is insufficiently "narrow" (derived), instantiate a
new proxy and overwrite the registration of the old one. This breaks == and
occurs only for "class" proxies rather than "interface" proxies.
Namespace:
NHibernate.ImplAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function NarrowProxy ( _ proxy As Object, _ persister As IEntityPersister, _ key As EntityKey, _ obj As Object _ ) As Object |
C# |
---|
public Object NarrowProxy( Object proxy, IEntityPersister persister, EntityKey key, Object obj ) |
Visual C++ |
---|
public: Object^ NarrowProxy( Object^ proxy, IEntityPersister^ persister, EntityKey^ key, Object^ obj ) |
JavaScript |
---|
function narrowProxy(proxy, persister, key, obj); |
Parameters
- proxy
- Type: System..::.Object
- persister
- Type: NHibernate.Persister.Entity..::.IEntityPersister
- key
- Type: NHibernate.Engine..::.EntityKey
- obj
- Type: System..::.Object