forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQueryImpl.cs
30 lines (27 loc) · 942 Bytes
/
QueryImpl.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections.Generic;
using NHibernate.Engine;
using NHibernate.Engine.Query;
using NHibernate.Hql;
namespace NHibernate.Impl
{
/// <summary>
/// Default implementation of the <see cref="IQuery"/>,
/// for "ordinary" HQL queries (not collection filters)
/// </summary>
/// <seealso cref="CollectionFilterImpl"/>
public class QueryImpl : AbstractQueryImpl2
{
public QueryImpl(string queryString, FlushMode flushMode, ISessionImplementor session, ParameterMetadata parameterMetadata)
: base(queryString, flushMode, session, parameterMetadata)
{
}
public QueryImpl(string queryString, ISessionImplementor session, ParameterMetadata parameterMetadata)
: this(queryString, FlushMode.Unspecified, session, parameterMetadata)
{
}
protected override IQueryExpression ExpandParameters(IDictionary<string, TypedValue> namedParams)
{
return ExpandParameterLists(namedParams).ToQueryExpression();
}
}
}