C# Class NSoft.NFramework.Data.NHibernateEx.Interceptors.ProxyInterceptorBase

Inheritance: NHibernate.EmptyInterceptor
Mostra file Open project: debop/NFramework

Public Methods

Method Description
FindType ( string clazz, ISession session, EntityMode entityMode ) : Type
GetEntityName ( object entity ) : string
Instantiate ( string clazz, EntityMode entityMode, object id ) : object
SetSession ( ISession session ) : void

Protected Methods

Method Description
CreateProxy ( Type entityType ) : object

NOTE: Proxy 생성 시 꼭 Type을 이용하여 Proxy를 생성해야 제대로 됩니다!!! Target Instance 으로 Proxy를 생성하면 예외가 발생합니다.

Method Details

CreateProxy() protected abstract method

NOTE: Proxy 생성 시 꼭 Type을 이용하여 Proxy를 생성해야 제대로 됩니다!!! Target Instance 으로 Proxy를 생성하면 예외가 발생합니다.
protected abstract CreateProxy ( Type entityType ) : object
entityType System.Type
return object

FindType() public static method

public static FindType ( string clazz, ISession session, EntityMode entityMode ) : Type
clazz string
session ISession
entityMode EntityMode
return System.Type

GetEntityName() public method

public GetEntityName ( object entity ) : string
entity object
return string

Instantiate() public method

public Instantiate ( string clazz, EntityMode entityMode, object id ) : object
clazz string
entityMode EntityMode
id object
return object

SetSession() public method

public SetSession ( ISession session ) : void
session ISession
return void