forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLePropertyExpression.cs
59 lines (54 loc) · 2.09 KB
/
LePropertyExpression.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 or equal" constraint
/// between two properties.
/// </summary>
[Serializable]
public class LePropertyExpression : PropertyExpression
{
/// <summary>
/// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
/// </summary>
/// <param name="lhsPropertyName">Name of the LHS property.</param>
/// <param name="rhsProjection">The RHS projection.</param>
public LePropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
/// </summary>
/// <param name="lhsProjection">The LHS projection.</param>
/// <param name="rhsProjection">The RHS projection.</param>
public LePropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LePropertyExpression"/> class.
/// </summary>
/// <param name="lhsProjection">The projection.</param>
/// <param name="rhsPropertyName">Name of the RHS property.</param>
public LePropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="LePropertyExpression"/> class
/// that compares two mapped properties using an "less than or equal" 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 LePropertyExpression(string lhsPropertyName, string rhsPropertyName)
: base(lhsPropertyName, rhsPropertyName)
{
}
/// <summary>
/// Get the Sql operator to use for the <see cref="LePropertyExpression"/>.
/// </summary>
/// <value>The string "<c> <= </c>"</value>
protected override string Op
{
get { return " <= "; }
}
}
}