forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndExpression.cs
31 lines (29 loc) · 913 Bytes
/
AndExpression.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.Criterion
{
/// <summary>
/// An <see cref="LogicalExpression"/> that combines two <see cref="ICriterion"/>s
/// with an <c>and</c> between them.
/// </summary>
[Serializable]
public class AndExpression : LogicalExpression
{
/// <summary>
/// Get the Sql operator to put between the two <see cref="ICriterion"/>s.
/// </summary>
/// <value>The string "<c>and</c>"</value>
protected override string Op
{
get { return "and"; }
}
/// <summary>
/// Initializes a new instance of the <see cref="AndExpression"/> class
/// that combines two <see cref="ICriterion"/>.
/// </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 AndExpression(ICriterion lhs, ICriterion rhs) : base(lhs, rhs)
{
}
}
}