forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLtPropertyExpression.cs
32 lines (30 loc) · 1006 Bytes
/
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
using System;
namespace NHibernate.Expression
{
/// <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
/// 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 " < "; }
}
}
}