forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOrExpression.cs
31 lines (29 loc) · 893 Bytes
/
OrExpression.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
using System;
namespace NHibernate.Expression
{
/// <summary>
/// An <see cref="ICriterion" /> that combines two <see cref="ICriterion"/>s with an
/// <c>"or"</c> between them.
/// </summary>
[Serializable]
public class OrExpression : LogicalExpression
{
/// <summary>
/// Initialize a new instance of the <see cref="OrExpression" /> class for
/// two <see cref="ICriterion"/>s.
/// </summary>
/// <param name="lhs">The <see cref="ICriterion"/> to use as the left hand side.</param>
/// <param name="rhs">The <see cref="ICriterion"/> to use as the right hand side.</param>
public OrExpression(ICriterion lhs, ICriterion rhs) : base(lhs, rhs)
{
}
/// <summary>
/// Get the Sql operator to put between the two <see cref="Expression"/>s.
/// </summary>
/// <value>Returns "<c>or</c>"</value>
protected override string Op
{
get { return "or"; }
}
}
}