forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLtPropertyExpression.cs
59 lines (54 loc) · 2.07 KB
/
LtPropertyExpression.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
namespace NHibernate.Criterion
{
/// <summary>
/// An <see cref="ICriterion"/> that represents an "less than" constraint
/// between two properties.
/// </summary>
[Serializable]
public class LtPropertyExpression : PropertyExpression
{
/// <summary>
/// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
/// </summary>
/// <param name="lhsPropertyName">Name of the LHS property.</param>
/// <param name="rhsProjection">The RHS projection.</param>
public LtPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
/// </summary>
/// <param name="lhsProjection">The LHS projection.</param>
/// <param name="rhsProjection">The RHS projection.</param>
public LtPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LtPropertyExpression"/> class.
/// </summary>
/// <param name="lhsProjection">The projection.</param>
/// <param name="rhsPropertyName">Name of the RHS property.</param>
public LtPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LtPropertyExpression"/> class
/// that compares two mapped properties using an "less than" constraint.
/// </summary>
/// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param>
/// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param>
public LtPropertyExpression(string lhsPropertyName, string rhsPropertyName)
: base(lhsPropertyName, rhsPropertyName)
{
}
/// <summary>
/// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>.
/// </summary>
/// <value>The string "<c> < </c>"</value>
protected override string Op
{
get { return " < "; }
}
}
}