diff --git a/CoreIntegrationTests/CoreIntegrationTests.csproj b/CoreIntegrationTests/CoreIntegrationTests.csproj
index c189edc..df861fe 100644
--- a/CoreIntegrationTests/CoreIntegrationTests.csproj
+++ b/CoreIntegrationTests/CoreIntegrationTests.csproj
@@ -5,13 +5,13 @@
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/IntegrationTests/App.config b/IntegrationTests/App.config
index 6d19a67..de3ac64 100644
--- a/IntegrationTests/App.config
+++ b/IntegrationTests/App.config
@@ -13,6 +13,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/IntegrationTests/IntegrationTests.csproj b/IntegrationTests/IntegrationTests.csproj
index d3bb63c..0f0cc42 100644
--- a/IntegrationTests/IntegrationTests.csproj
+++ b/IntegrationTests/IntegrationTests.csproj
@@ -39,8 +39,8 @@
..\packages\MongoDB.Driver.Core.2.4.4\lib\net45\MongoDB.Driver.Core.dll
-
- ..\packages\NUnit.3.7.1\lib\net45\nunit.framework.dll
+
+ ..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll
diff --git a/IntegrationTests/packages.config b/IntegrationTests/packages.config
index 383927f..83aebab 100644
--- a/IntegrationTests/packages.config
+++ b/IntegrationTests/packages.config
@@ -3,8 +3,7 @@
-
+
-
\ No newline at end of file
diff --git a/MongoDbGenericRepository/BaseMongoDbRepository.cs b/MongoDbGenericRepository/BaseMongoDbRepository.cs
index c3b1517..6e925c5 100644
--- a/MongoDbGenericRepository/BaseMongoDbRepository.cs
+++ b/MongoDbGenericRepository/BaseMongoDbRepository.cs
@@ -45,11 +45,6 @@ namespace MongoDbGenericRepository
MongoDbContext = new MongoDbContext(mongoDatabase);
}
- ///
- /// The MongoDbContext
- ///
- protected IMongoDbContext MongoDbContext = null;
-
#region Create
///
@@ -273,6 +268,7 @@ namespace MongoDbGenericRepository
/// The document filter.
/// The field selector.
/// The new value of the property field.
+ /// The value of the partition key.
public bool UpdateOne(FilterDefinition filter, Expression> field, TField value, string partitionKey = null)
where TDocument : IDocument
{
@@ -289,6 +285,7 @@ namespace MongoDbGenericRepository
/// The document filter.
/// The field selector.
/// The new value of the property field.
+ /// The value of the partition key.
public async Task UpdateOneAsync(FilterDefinition filter, Expression> field, TField value, string partitionKey = null)
where TDocument : IDocument
{
@@ -422,6 +419,7 @@ namespace MongoDbGenericRepository
/// The document filter.
/// The field selector.
/// The new value of the property field.
+ /// The value of the partition key.
public async Task UpdateOneAsync(FilterDefinition filter, Expression> field, TField value, string partitionKey = null)
where TDocument : IDocument
where TKey : IEquatable
@@ -440,6 +438,7 @@ namespace MongoDbGenericRepository
/// The document filter.
/// The field selector.
/// The new value of the property field.
+ /// The value of the partition key.
public bool UpdateOne(FilterDefinition filter, Expression> field, TField value, string partitionKey = null)
where TDocument : IDocument
where TKey : IEquatable
@@ -870,8 +869,9 @@ namespace MongoDbGenericRepository
/// The type representing a Document.
/// The type of the grouping criteria.
/// The type of the projected group.
- /// The grouping criteria.
- /// The projected group result.
+ ///
+ /// The grouping criteria.
+ /// The projected group result.
/// The partition key of your document, if any.
///
public List GroupBy(Expression> filter,
diff --git a/MongoDbGenericRepository/ReadOnlyMongoRepository.cs b/MongoDbGenericRepository/ReadOnlyMongoRepository.cs
index 41828b0..86ff2be 100644
--- a/MongoDbGenericRepository/ReadOnlyMongoRepository.cs
+++ b/MongoDbGenericRepository/ReadOnlyMongoRepository.cs
@@ -347,7 +347,7 @@ namespace MongoDbGenericRepository
#endregion
- #region Private Methods
+ #region Utility Methods
///
/// Gets a collections for the type TDocument with the matching partition key.