forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLockResultOperator.cs
44 lines (36 loc) · 1.16 KB
/
LockResultOperator.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
38
39
40
41
42
43
44
using System;
using System.Linq.Expressions;
using Remotion.Linq.Clauses;
using Remotion.Linq.Clauses.Expressions;
using Remotion.Linq.Clauses.StreamedData;
using Remotion.Linq.Parsing.Structure.IntermediateModel;
namespace NHibernate.Linq
{
internal class LockResultOperator : ResultOperatorBase
{
private QuerySourceReferenceExpression _qsrExpression;
public IQuerySource QuerySource => _qsrExpression.ReferencedQuerySource;
public ConstantExpression LockMode { get; }
public LockResultOperator(QuerySourceReferenceExpression qsrExpression, ConstantExpression lockMode)
{
_qsrExpression = qsrExpression;
LockMode = lockMode;
}
public override IStreamedData ExecuteInMemory(IStreamedData input)
{
throw new NotImplementedException();
}
public override IStreamedDataInfo GetOutputDataInfo(IStreamedDataInfo inputInfo)
{
return inputInfo;
}
public override ResultOperatorBase Clone(CloneContext cloneContext)
{
throw new NotImplementedException();
}
public override void TransformExpressions(Func<Expression, Expression> transformation)
{
_qsrExpression = (QuerySourceReferenceExpression) transformation(_qsrExpression);
}
}
}