Create a new proxy
Namespace: NHibernate.ProxyAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
INHibernateProxy GetProxy( Object id, ISessionImplementor session ) |
Visual Basic |
---|
Function GetProxy ( _ id As Object, _ session As ISessionImplementor _ ) As INHibernateProxy |
Visual C++ |
---|
INHibernateProxy^ GetProxy( Object^ id, ISessionImplementor^ session ) |
Parameters
- id
- Type: System..::..Object
The id value for the proxy to be generated.
- session
- Type: NHibernate.Engine..::..ISessionImplementor
The session to which the generated proxy will be associated.
Return Value
The generated proxy.Exceptions
Exception | Condition |
---|---|
NHibernate..::..HibernateException | Indicates problems generating requested proxy. |