forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPreTransformationResult.cs
37 lines (33 loc) · 1.01 KB
/
PreTransformationResult.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
31
32
33
34
35
36
37
using System.Collections.Generic;
using System.Linq.Expressions;
using NHibernate.Engine;
namespace NHibernate.Linq.Visitors
{
/// <summary>
/// The result of <see cref="NhRelinqQueryParser.PreTransform"/> method.
/// </summary>
public class PreTransformationResult
{
internal PreTransformationResult(
Expression expression,
ISessionFactoryImplementor sessionFactory,
IDictionary<ConstantExpression, QueryVariable> queryVariables)
{
Expression = expression;
SessionFactory = sessionFactory;
QueryVariables = queryVariables;
}
/// <summary>
/// The transformed expression.
/// </summary>
public Expression Expression { get; }
/// <summary>
/// The session factory used in the pre-transform process.
/// </summary>
public ISessionFactoryImplementor SessionFactory { get; }
/// <summary>
/// A dictionary of <see cref="ConstantExpression"/> that were evaluated from variables.
/// </summary>
internal IDictionary<ConstantExpression, QueryVariable> QueryVariables { get; }
}
}