forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEqPropertyExpression.cs
29 lines (28 loc) · 968 Bytes
/
EqPropertyExpression.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
namespace NHibernate.Expression
{
/// <summary>
/// An <see cref="ICriterion"/> that represents an "equal" constraint
/// between two properties.
/// </summary>
public class EqPropertyExpression : PropertyExpression
{
/// <summary>
/// Initializes a new instance of the <see cref="EqPropertyExpression"/> class
/// that compares two mapped properties using an "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 EqPropertyExpression( string lhsPropertyName, string rhsPropertyName )
: base( lhsPropertyName, rhsPropertyName )
{
}
/// <summary>
/// Get the Sql operator to use for the <see cref="EqPropertyExpression"/>.
/// </summary>
/// <value>The string "<c> = </c>"</value>
protected override string Op
{
get { return " = "; }
}
}
}