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

Inheritance: NHibernate.EmptyInterceptor
显示文件 Open project: debop/NFramework

Public Methods

Method Description
IsTransient ( object entity ) : bool?

Indicate that the specified object is transient object.

OnLoad ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool

occurred when the specified entity is loaded.

OnSave ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool

Occurred when the specified entity is saved.

Method Details

IsTransient() public method

Indicate that the specified object is transient object.
public IsTransient ( object entity ) : bool?
entity object
return bool?

OnLoad() public method

occurred when the specified entity is loaded.
public OnLoad ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool
entity object
id object
state object
propertyNames string
types NHibernate
return bool

OnSave() public method

Occurred when the specified entity is saved.
public OnSave ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool
entity object
id object
state object
propertyNames string
types NHibernate
return bool