Skip to content

Commit

Permalink
Revert mistake change to UpdateManyAsync signature
Browse files Browse the repository at this point in the history
  • Loading branch information
johnknoop committed Dec 31, 2019
1 parent 7dd0c3c commit af4ea63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions JohnKnoop.MongoRepository/source/IRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ IFindFluent<TDerivedEntity, TDerivedEntity> Find<TDerivedEntity>(FilterDefinitio
/// </summary>
Task UpdateManyAsync(Expression<Func<TEntity, bool>> filter,
Func<UpdateDefinitionBuilder<TEntity>, UpdateDefinition<TEntity>> update,
UpdateOptions options);
UpdateOptions options = null);

[Obsolete("This overload of UpdateOneAsync will be removed in a future version")]
Task UpdateManyAsync(Expression<Func<TEntity, bool>> filter,
string update,
UpdateOptions options);
UpdateOptions options = null);

Task<long> IncrementCounterAsync(string name = null, int incrementBy = 1);
Task<long?> GetCounterValueAsync(string name = null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>3.0.0-rc.4</Version>
<Version>3.0.0-rc.5</Version>
<Description>An easily configurable repository for MongoDB with support for multi-tenancy</Description>
<PackageProjectUrl>https://github.com/johnknoop/MongoRepository</PackageProjectUrl>
<PackageTags>repository mongodb multitenant</PackageTags>
Expand Down
4 changes: 2 additions & 2 deletions JohnKnoop.MongoRepository/source/MongoRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public async Task<BulkWriteResult<TDerived>> UpdateOneBulkAsync<TDerived>(IEnume
/// </summary>
public async Task UpdateManyAsync(Expression<Func<TEntity, bool>> filter,
Func<UpdateDefinitionBuilder<TEntity>, UpdateDefinition<TEntity>> update,
UpdateOptions options)
UpdateOptions options = null)
{
await MongoConfiguration.EnsureIndexesAndCap(MongoCollection);

Expand All @@ -341,7 +341,7 @@ public async Task UpdateManyAsync(Expression<Func<TEntity, bool>> filter,
/// </summary>
public async Task UpdateManyAsync(Expression<Func<TEntity, bool>> filter,
string update,
UpdateOptions options)
UpdateOptions options = null)
{
await MongoConfiguration.EnsureIndexesAndCap(MongoCollection);

Expand Down

0 comments on commit af4ea63

Please sign in to comment.