basiccollectionloader.cs
来自「NHibernate NET开发者所需的」· CS 代码 · 共 52 行
CS
52 行
using System.Collections.Generic;
using log4net;
using NHibernate.Engine;
using NHibernate.Persister.Collection;
using NHibernate.SqlCommand;
namespace NHibernate.Loader.Collection
{
public class BasicCollectionLoader : CollectionLoader
{
private static readonly ILog log = LogManager.GetLogger(typeof(BasicCollectionLoader));
public BasicCollectionLoader(
IQueryableCollection collectionPersister,
ISessionFactoryImplementor session,
IDictionary<string, IFilter> enabledFilters)
: this(collectionPersister, 1, session, enabledFilters)
{
}
public BasicCollectionLoader(
IQueryableCollection collectionPersister,
int batchSize,
ISessionFactoryImplementor factory,
IDictionary<string, IFilter> enabledFilters)
: this(collectionPersister, batchSize, null, factory, enabledFilters)
{
}
protected BasicCollectionLoader(
IQueryableCollection collectionPersister,
int batchSize,
SqlString subquery,
ISessionFactoryImplementor factory,
IDictionary<string, IFilter> enabledFilters)
: base(collectionPersister, factory, enabledFilters)
{
JoinWalker walker = new BasicCollectionJoinWalker(
collectionPersister,
batchSize,
subquery,
factory,
enabledFilters
);
InitFromWalker(walker);
PostInstantiate();
log.Debug("Static select for collection " + collectionPersister.Role + ": " + SqlString);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?