C# Класс Prizm.Data.DAL.Hibernate.AuditInterceptor

Наследование: NHibernate.EmptyInterceptor, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
OnDelete ( object entity, object id, object state, string propertyNames, NHibernate types ) : void

Is called whilr deleting record

OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, NHibernate types ) : bool

Is called while updating existing record

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

Is called while inserting new record

Приватные методы

Метод Описание
AuditInterceptor ( User currentUser ) : System
FlushDirtyEntityMapLikeComponent ( object entity, object currentState, object previousState, NHibernate types ) : void
IsAuditableType ( object obj ) : bool
IsMapLikeComponent ( object obj ) : bool
LogAudit ( object entity, string propertyNames, AuditRecordType actionType ) : void

Log insert/delete record (just one state)

LogAuditEntityMapLikeComponent ( object entity, AuditRecordType operationType ) : void
NewAuditRecord ( Item curentity, string fieldName, string newValue, string oldValue, AuditRecordType operationType ) : void

Creating log record and saving it to DB

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

OnDelete() публичный Метод

Is called whilr deleting record
public OnDelete ( object entity, object id, object state, string propertyNames, NHibernate types ) : void
entity object
id object
state object
propertyNames string
types NHibernate
Результат void

OnFlushDirty() публичный Метод

Is called while updating existing record
public OnFlushDirty ( object entity, object id, object currentState, object previousState, string propertyNames, NHibernate types ) : bool
entity object
id object
currentState object
previousState object
propertyNames string
types NHibernate
Результат bool

OnSave() публичный Метод

Is called while inserting new record
public OnSave ( object entity, object id, object state, string propertyNames, NHibernate types ) : bool
entity object
id object
state object
propertyNames string
types NHibernate
Результат bool