defaultflusheventlistener.cs
来自「NHibernate NET开发者所需的」· CS 代码 · 共 30 行
CS
30 行
using System;
namespace NHibernate.Event.Default
{
/// <summary>
/// Defines the default flush event listeners used by hibernate for
/// flushing session state in response to generated flush events.
/// </summary>
[Serializable]
public class DefaultFlushEventListener : AbstractFlushingEventListener, IFlushEventListener
{
public virtual void OnFlush(FlushEvent @event)
{
IEventSource source = @event.Session;
if (source.PersistenceContext.HasNonReadOnlyEntities)
{
FlushEverythingToExecutions(@event);
PerformExecutions(source);
PostFlush(source);
if (source.Factory.Statistics.IsStatisticsEnabled)
{
source.Factory.StatisticsImplementor.Flush();
}
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?