Skip to content

Commit

Permalink
Fix XML documentation for Count/Exists #1461
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdavid committed Feb 10, 2020
1 parent 0ad35f9 commit 49b9079
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions LiteDB/Client/Database/Collections/Aggregate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public partial class LiteCollection<T>
#region Count

/// <summary>
/// Get document count using property on collection.
/// Get document count in collection
/// </summary>
public int Count()
{
Expand All @@ -19,7 +19,7 @@ public int Count()
}

/// <summary>
/// Count documents matching a query. This method does not deserialize any document. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public int Count(BsonExpression predicate)
{
Expand All @@ -29,12 +29,12 @@ public int Count(BsonExpression predicate)
}

/// <summary>
/// Count documents matching a query. This method does not deserialize any document. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public int Count(string predicate, BsonDocument parameters) => this.Count(BsonExpression.Create(predicate, parameters));

/// <summary>
/// Count documents matching a query. This method does not deserialize any document. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public int Count(string predicate, params BsonValue[] args) => this.Count(BsonExpression.Create(predicate, args));

Expand All @@ -44,7 +44,7 @@ public int Count(BsonExpression predicate)
public int Count(Expression<Func<T, bool>> predicate) => this.Count(_mapper.GetExpression(predicate));

/// <summary>
/// Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public int Count(Query query) => new LiteQueryable<T>(_engine, _mapper, _collection, query).Count();

Expand All @@ -53,15 +53,15 @@ public int Count(BsonExpression predicate)
#region LongCount

/// <summary>
/// Get document count using property on collection.
/// Get document count in collection
/// </summary>
public long LongCount()
{
return this.Query().LongCount();
}

/// <summary>
/// Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public long LongCount(BsonExpression predicate)
{
Expand All @@ -71,22 +71,22 @@ public long LongCount(BsonExpression predicate)
}

/// <summary>
/// Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public long LongCount(string predicate, BsonDocument parameters) => this.LongCount(BsonExpression.Create(predicate, parameters));

/// <summary>
/// Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public long LongCount(string predicate, params BsonValue[] args) => this.LongCount(BsonExpression.Create(predicate, args));

/// <summary>
/// Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public long LongCount(Expression<Func<T, bool>> predicate) => this.LongCount(_mapper.GetExpression(predicate));

/// <summary>
/// Count documents matching a query. This method does not deserialize any documents. Needs indexes on query expression
/// Get document count in collection using predicate filter expression
/// </summary>
public long LongCount(Query query) => new LiteQueryable<T>(_engine, _mapper, _collection, query).Count();

Expand All @@ -95,7 +95,7 @@ public long LongCount(BsonExpression predicate)
#region Exists

/// <summary>
/// Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
/// Get true if collection contains at least 1 document that satisfies the predicate expression
/// </summary>
public bool Exists(BsonExpression predicate)
{
Expand All @@ -105,22 +105,22 @@ public bool Exists(BsonExpression predicate)
}

/// <summary>
/// Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
/// Get true if collection contains at least 1 document that satisfies the predicate expression
/// </summary>
public bool Exists(string predicate, BsonDocument parameters) => this.Exists(BsonExpression.Create(predicate, parameters));

/// <summary>
/// Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
/// Get true if collection contains at least 1 document that satisfies the predicate expression
/// </summary>
public bool Exists(string predicate, params BsonValue[] args) => this.Exists(BsonExpression.Create(predicate, args));

/// <summary>
/// Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
/// Get true if collection contains at least 1 document that satisfies the predicate expression
/// </summary>
public bool Exists(Expression<Func<T, bool>> predicate) => this.Exists(_mapper.GetExpression(predicate));

/// <summary>
/// Returns true if query returns any document. This method does not deserialize any document. Needs indexes on query expression
/// Get true if collection contains at least 1 document that satisfies the predicate expression
/// </summary>
public bool Exists(Query query) => new LiteQueryable<T>(_engine, _mapper, _collection, query).Exists();

Expand Down

0 comments on commit 49b9079

Please sign in to comment.