Method | Description | |
---|---|---|
SaveOrUpdateEventListener ( EventListenerHelper eventListenerHelper ) : DevBridge.Templates.WebProject.Data.EventListeners |
Initializes a new instance of the SaveOrUpdateEventListener class.
|
Method | Description | |
---|---|---|
PerformSave ( object entity, object id, NHibernate persister, bool useIdentityColumn, object anything, IEventSource source, bool requiresImmediateIdAccess ) : object |
Prepares the save call by checking the session caches for a pre-existing entity and performing any lifecycle callbacks.
|
|
PerformSaveOrUpdate ( NHibernate.Event.SaveOrUpdateEvent evt ) : object |
Performs the save or update.
|
|
PerformUpdate ( NHibernate.Event.SaveOrUpdateEvent evt, object entity, NHibernate persister ) : void |
Performs the update.
|
protected PerformSave ( object entity, object id, NHibernate persister, bool useIdentityColumn, object anything, IEventSource source, bool requiresImmediateIdAccess ) : object | ||
entity | object | The entity to be saved. |
id | object | The id by which to save the entity. |
persister | NHibernate | The entity's persister instance. |
useIdentityColumn | bool | Is an identity column being used? |
anything | object | Generally cascade-specific information. |
source | IEventSource | The session from which the event originated. |
requiresImmediateIdAccess | bool | does the event context require /// access to the identifier immediately after execution of this method (if /// not, post-insert style id generators may be postponed if we are outside /// a transaction). |
return | object |
protected PerformSaveOrUpdate ( NHibernate.Event.SaveOrUpdateEvent evt ) : object | ||
evt | NHibernate.Event.SaveOrUpdateEvent | The evt. |
return | object |
protected PerformUpdate ( NHibernate.Event.SaveOrUpdateEvent evt, object entity, NHibernate persister ) : void | ||
evt | NHibernate.Event.SaveOrUpdateEvent | The event. |
entity | object | The entity. |
persister | NHibernate | The persister. |
return | void |
public SaveOrUpdateEventListener ( EventListenerHelper eventListenerHelper ) : DevBridge.Templates.WebProject.Data.EventListeners | ||
eventListenerHelper | EventListenerHelper | The event listener helper. |
return | DevBridge.Templates.WebProject.Data.EventListeners |