Skip to content

Commit 0286b7b

Browse files
committed
Added doc comments to Clause types
1 parent 02cc76c commit 0286b7b

File tree

8 files changed

+33
-0
lines changed

8 files changed

+33
-0
lines changed

Simple.Data/HavingClause.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
namespace Simple.Data
22
{
3+
/// <summary>
4+
/// Represents the "HAVING" clause (i.e. criteria over aggregations) of a <see cref="SimpleQuery"/>.
5+
/// There may be zero, one or multiple instances of this type in <see cref="SimpleQuery.Clauses"/>;
6+
/// for multiple instances, criteria should be combined with the AND operator.
7+
/// </summary>
38
public class HavingClause : SimpleQueryClauseBase
49
{
510
private readonly SimpleExpression _criteria;

Simple.Data/JoinClause.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
namespace Simple.Data
77
{
8+
/// <summary>
9+
/// Represents an explicit join in a <see cref="SimpleQuery"/>.
10+
/// There may be zero, one or multiple instances of this type in <see cref="SimpleQuery.Clauses"/>.
11+
/// </summary>
812
public class JoinClause : SimpleQueryClauseBase
913
{
1014
private readonly ObjectReference _table;

Simple.Data/OrderByClause.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
namespace Simple.Data
22
{
3+
/// <summary>
4+
/// Represents the ordering clause of a <see cref="SimpleQuery"/>.
5+
/// There may be zero, one or multiple instances of this type in <see cref="SimpleQuery.Clauses"/>; the order in that list should be treated as significant.
6+
/// </summary>
37
public class OrderByClause : SimpleQueryClauseBase
48
{
59
private readonly ObjectReference _reference;

Simple.Data/SelectClause.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace Simple.Data
44
{
5+
/// <summary>
6+
/// Represents the set of columns/fields to be returned by a <see cref="SimpleQuery"/>.
7+
/// There will be at most one instance of this type in <see cref="SimpleQuery.Clauses"/>.
8+
/// </summary>
59
public class SelectClause : SimpleQueryClauseBase
610
{
711
private readonly IEnumerable<SimpleReference> _columns;

Simple.Data/SimpleQueryClauseBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
namespace Simple.Data
22
{
3+
/// <summary>
4+
/// Provides a base type for representing a clause within a <see cref="SimpleQuery"/>.
5+
/// </summary>
36
public abstract class SimpleQueryClauseBase
47
{
58

Simple.Data/SkipClause.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
namespace Simple.Data
22
{
3+
/// <summary>
4+
/// Represents a number of records to skip in the results returned by a <see cref="SimpleQuery"/>.
5+
/// There will be at most one instance of this type in <see cref="SimpleQuery.Clauses"/>.
6+
/// </summary>
37
public class SkipClause : SimpleQueryClauseBase
48
{
59
private readonly int _count;

Simple.Data/TakeClause.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
namespace Simple.Data
22
{
3+
/// <summary>
4+
/// Represents a number of records to take from the results returned by a <see cref="SimpleQuery"/>.
5+
/// There will be at most one instance of this type in <see cref="SimpleQuery.Clauses"/>.
6+
/// </summary>
37
public class TakeClause : SimpleQueryClauseBase
48
{
59
private readonly int _count;

Simple.Data/WhereClause.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
namespace Simple.Data
22
{
3+
/// <summary>
4+
/// Represents the filtering criteria for a <see cref="SimpleQuery"/>.
5+
/// There may be zero, one or multiple instances of this type in <see cref="SimpleQuery.Clauses"/>;
6+
/// for multiple instances, criteria should be combined with the AND operator.
7+
/// </summary>
38
public class WhereClause : SimpleQueryClauseBase
49
{
510
private readonly SimpleExpression _criteria;

0 commit comments

Comments
 (0)