diff --git a/CoreIntegrationTests/CoreIntegrationTests.csproj b/CoreIntegrationTests/CoreIntegrationTests.csproj
index fdc9f8d..2131d29 100644
--- a/CoreIntegrationTests/CoreIntegrationTests.csproj
+++ b/CoreIntegrationTests/CoreIntegrationTests.csproj
@@ -9,16 +9,13 @@
+
-
-
-
-
..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Configuration.dll
diff --git a/IntegrationTests/IntegrationTests.csproj b/IntegrationTests/IntegrationTests.csproj
index 586079d..56b3a58 100644
--- a/IntegrationTests/IntegrationTests.csproj
+++ b/IntegrationTests/IntegrationTests.csproj
@@ -30,22 +30,35 @@
4
+
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\DnsClient.dll
+
- ..\packages\MongoDB.Bson.2.5.0\lib\net45\MongoDB.Bson.dll
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\MongoDB.Bson.dll
- ..\packages\MongoDB.Driver.2.5.0\lib\net45\MongoDB.Driver.dll
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\MongoDB.Driver.dll
- ..\packages\MongoDB.Driver.Core.2.5.0\lib\net45\MongoDB.Driver.Core.dll
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\MongoDB.Driver.Core.dll
+
+
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\MongoDbGenericRepository.dll
..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll
+
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\System.Buffers.dll
+
+
+ ..\packages\MongoDbGenericRepository.1.3.5\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
+ True
+
@@ -73,11 +86,5 @@
-
-
- {efc776c4-2af3-440c-be80-3fbe335817a5}
- MongoDbGenericRepository
-
-
\ No newline at end of file
diff --git a/IntegrationTests/packages.config b/IntegrationTests/packages.config
index b8fecf4..6da7266 100644
--- a/IntegrationTests/packages.config
+++ b/IntegrationTests/packages.config
@@ -4,6 +4,7 @@
+
diff --git a/MongoDbGenericRepository/Abstractions/IBaseMongoRepository.cs b/MongoDbGenericRepository/Abstractions/IBaseMongoRepository.cs
index 23548be..f7274e8 100644
--- a/MongoDbGenericRepository/Abstractions/IBaseMongoRepository.cs
+++ b/MongoDbGenericRepository/Abstractions/IBaseMongoRepository.cs
@@ -163,7 +163,6 @@ namespace MongoDbGenericRepository
/// For the entity selected by the filter, updates the property field with the given value.
///
/// The type representing a Document.
- /// The type of the primary key for a Document.
/// The type of the field.
/// The document filter.
/// The field selector.
diff --git a/MongoDbGenericRepository/Attributes/CollectionNameAttribute.cs b/MongoDbGenericRepository/Attributes/CollectionNameAttribute.cs
index 128f87a..7a5984c 100644
--- a/MongoDbGenericRepository/Attributes/CollectionNameAttribute.cs
+++ b/MongoDbGenericRepository/Attributes/CollectionNameAttribute.cs
@@ -12,6 +12,9 @@ namespace MongoDbGenericRepository.Attributes
[AttributeUsage(AttributeTargets.Class)]
public class CollectionNameAttribute : Attribute
{
+ ///
+ /// The name of the collection in which your documents are stored.
+ ///
public string Name { get; set; }
public CollectionNameAttribute(string name)
diff --git a/MongoDbGenericRepository/BaseMongoDbRepository.cs b/MongoDbGenericRepository/BaseMongoDbRepository.cs
index 77ab063..3722846 100644
--- a/MongoDbGenericRepository/BaseMongoDbRepository.cs
+++ b/MongoDbGenericRepository/BaseMongoDbRepository.cs
@@ -281,7 +281,6 @@ namespace MongoDbGenericRepository
/// For the entity selected by the filter, updates the property field with the given value.
///
/// The type representing a Document.
- /// The type of the primary key for a Document.
/// The type of the field.
/// The document filter.
/// The field selector.
diff --git a/MongoDbGenericRepository/MongoDbGenericRepository.nuspec b/MongoDbGenericRepository/MongoDbGenericRepository.nuspec
index 799f982..804763a 100644
--- a/MongoDbGenericRepository/MongoDbGenericRepository.nuspec
+++ b/MongoDbGenericRepository/MongoDbGenericRepository.nuspec
@@ -2,7 +2,7 @@
MongoDbGenericRepository
- 1.3.4
+ 1.3.5
MongoDb Generic Repository
Alexandre Spieser
Alexandre Spieser
@@ -10,7 +10,7 @@
https://github.com/alexandre-spieser/mongodb-generic-repository
false
A generic repository implementation using the MongoDB C# Sharp 2.0 driver.
- Updating MongoDB driver to version 2.5.0 for MongoDB 3.6 support.
+ Adding CollectionName attribute to specify alternate collection name (thanks Etchelon).
Copyright 2017 (c) Alexandre Spieser. All rights reserved.
MongoDb Repository Generic NoSql
diff --git a/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.dll b/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.dll
index ab0f74e..02f7392 100644
Binary files a/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.dll and b/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.dll differ
diff --git a/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.xml b/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.xml
index 45be391..e775c67 100644
--- a/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.xml
+++ b/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.xml
@@ -4,561 +4,6 @@
MongoDbGenericRepository
-
-
- The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation.
- Its constructor must be given a connection string and a database name.
-
-
-
-
- The constructor taking a connection string and a database name.
-
- The connection string of the MongoDb server.
- The name of the database against which you want to perform operations.
-
-
-
- The contructor taking a .
-
- A mongodb context implementing
-
-
-
- The contructor taking a .
-
- A mongodb context implementing
-
-
-
- Asynchronously adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The document you want to add.
-
-
-
- Adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The document you want to add.
-
-
-
- Asynchronously adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The documents you want to add.
-
-
-
- Adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The documents you want to add.
-
-
-
- Asynchronously adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to add.
-
-
-
- Adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to add.
-
-
-
- Asynchronously adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The documents you want to add.
-
-
-
- Adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The documents you want to add.
-
-
-
- Asynchronously Updates a document.
-
- The type representing a Document.
- The document with the modifications you want to persist.
-
-
-
- Updates a document.
-
- The type representing a Document.
- The document with the modifications you want to persist.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Asynchronously Updates a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document with the modifications you want to persist.
-
-
-
- Updates a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document with the modifications you want to persist.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Asynchronously deletes a document.
-
- The type representing a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document.
-
- The type representing a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a list of documents.
-
- The type representing a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes a list of documents.
-
- The type representing a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Deletes a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a list of documents.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes a list of documents.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
- The document filter.
- The projection expression.
- An optional partition key.
-
-
-
- Groups a collection of documents given a grouping criteria,
- and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
-
- 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 partition key of your document, if any.
-
-
-
- Groups filtered a collection of documents given a grouping criteria,
- and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
-
- 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 partition key of your document, if any.
-
-
-
- Asynchronously returns a paginated list of the documents matching the filter condition.
-
- The type representing a Document.
-
- The number of documents you want to skip. Default value is 0.
- The number of documents you want to take. Default value is 50.
- An optional partition key.
-
-
-
- Asynchronously returns a paginated list of the documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
-
- The number of documents you want to skip. Default value is 0.
- The number of documents you want to take. Default value is 50.
- An optional partition key.
-
-
-
- GetAndUpdateOne with filter
-
- The type representing a Document.
-
-
-
-
-
-
-
- GetAndUpdateOne with filter
-
- The type representing a Document.
- The type of the primary key for a Document.
-
-
-
-
-
-
-
- Sets the value of the document Id if it is not set already.
-
- The document type.
- The type of the primary key.
- The document.
-
-
-
- Sets the value of the document Id if it is not set already.
-
- The document type.
- The document.
-
The IBaseMongoRepository exposes the CRUD functionality of the BaseMongoRepository.
@@ -687,6 +132,16 @@
The field selector.
The new value of the property field.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Takes a document you want to modify and applies the update you have defined in MongoDb.
@@ -695,6 +150,17 @@
The document you want to modify.
The update definition for the document.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Takes a document you want to modify and applies the update you have defined in MongoDb.
@@ -737,6 +203,17 @@
The document you want to modify.
The update definition for the document.
+
+
+ For the entity selected by the filter, updates the property field with the given value..
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Updates the property field with the given value update a property field in entities.
@@ -748,6 +225,17 @@
The field selector.
The new value of the property field.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Updates the property field with the given value update a property field in entities.
@@ -1093,12 +581,6 @@
The IMongoDatabase from the official Mongodb driver
-
-
- The private GetCollection method
-
-
-
Returns a collection for a document type that has a partition key.
@@ -1334,6 +816,618 @@
A LINQ expression filter.
An optional partitionKey
+
+
+ This attribute allows you to specify of the name of the collection.
+ Added at commit c117bf2a7fee378f1e02199dea9b2023a7089ee2 by https://github.com/Etchelon
+ who has included the CollectionName attribute into the repo to give another choice to the user on how
+ to name their collections.
+ The attribute takes precedence of course, and if not present the library will fall back to your Pluralize method.
+
+
+
+
+ The name of the collection in which your documents are stored.
+
+
+
+
+ The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation.
+ Its constructor must be given a connection string and a database name.
+
+
+
+
+ The constructor taking a connection string and a database name.
+
+ The connection string of the MongoDb server.
+ The name of the database against which you want to perform operations.
+
+
+
+ The contructor taking a .
+
+ A mongodb context implementing
+
+
+
+ The contructor taking a .
+
+ A mongodb context implementing
+
+
+
+ Asynchronously adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The document you want to add.
+
+
+
+ Adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The document you want to add.
+
+
+
+ Asynchronously adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The documents you want to add.
+
+
+
+ Adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The documents you want to add.
+
+
+
+ Asynchronously adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to add.
+
+
+
+ Adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to add.
+
+
+
+ Asynchronously adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The documents you want to add.
+
+
+
+ Adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The documents you want to add.
+
+
+
+ Asynchronously Updates a document.
+
+ The type representing a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Updates a document.
+
+ The type representing a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Asynchronously Updates a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Updates a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Asynchronously deletes a document.
+
+ The type representing a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document.
+
+ The type representing a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a list of documents.
+
+ The type representing a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a list of documents.
+
+ The type representing a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Deletes a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a list of documents.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a list of documents.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+ The document filter.
+ The projection expression.
+ An optional partition key.
+
+
+
+ Groups a collection of documents given a grouping criteria,
+ and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
+
+ 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 partition key of your document, if any.
+
+
+
+ Groups filtered a collection of documents given a grouping criteria,
+ and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
+
+ 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 partition key of your document, if any.
+
+
+
+ Asynchronously returns a paginated list of the documents matching the filter condition.
+
+ The type representing a Document.
+
+ The number of documents you want to skip. Default value is 0.
+ The number of documents you want to take. Default value is 50.
+ An optional partition key.
+
+
+
+ Asynchronously returns a paginated list of the documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+
+ The number of documents you want to skip. Default value is 0.
+ The number of documents you want to take. Default value is 50.
+ An optional partition key.
+
+
+
+ GetAndUpdateOne with filter
+
+ The type representing a Document.
+
+
+
+
+
+
+
+ GetAndUpdateOne with filter
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+
+
+
+
+
+
+
+ Sets the value of the document Id if it is not set already.
+
+ The document type.
+ The type of the primary key.
+ The document.
+
+
+
+ Sets the value of the document Id if it is not set already.
+
+ The document type.
+ The document.
+
This class represents a basic document that can be stored in MongoDb.
@@ -1451,12 +1545,12 @@
The connections string.
The name of your database.
-
+
- The private GetCollection method
+ Extracts the CollectionName attribute from the entity type, if any.
The type representing a Document.
-
+ The name of the collection in which the TDocument is stored.
@@ -1767,14 +1861,6 @@
The collection partition key.
-
-
- Gets a collections for the type TDocument
-
- The document type.
- The type of the primary key.
-
-
Gets a collections for a potentially partitioned document type.
diff --git a/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.dll b/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.dll
index ca64ddb..4301049 100644
Binary files a/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.dll and b/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.dll differ
diff --git a/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.xml b/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.xml
index 45be391..e775c67 100644
--- a/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.xml
+++ b/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.xml
@@ -4,561 +4,6 @@
MongoDbGenericRepository
-
-
- The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation.
- Its constructor must be given a connection string and a database name.
-
-
-
-
- The constructor taking a connection string and a database name.
-
- The connection string of the MongoDb server.
- The name of the database against which you want to perform operations.
-
-
-
- The contructor taking a .
-
- A mongodb context implementing
-
-
-
- The contructor taking a .
-
- A mongodb context implementing
-
-
-
- Asynchronously adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The document you want to add.
-
-
-
- Adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The document you want to add.
-
-
-
- Asynchronously adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The documents you want to add.
-
-
-
- Adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The documents you want to add.
-
-
-
- Asynchronously adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to add.
-
-
-
- Adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to add.
-
-
-
- Asynchronously adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The documents you want to add.
-
-
-
- Adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The documents you want to add.
-
-
-
- Asynchronously Updates a document.
-
- The type representing a Document.
- The document with the modifications you want to persist.
-
-
-
- Updates a document.
-
- The type representing a Document.
- The document with the modifications you want to persist.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Asynchronously Updates a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document with the modifications you want to persist.
-
-
-
- Updates a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document with the modifications you want to persist.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Asynchronously deletes a document.
-
- The type representing a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document.
-
- The type representing a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a list of documents.
-
- The type representing a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes a list of documents.
-
- The type representing a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Deletes a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a list of documents.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes a list of documents.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
- The document filter.
- The projection expression.
- An optional partition key.
-
-
-
- Groups a collection of documents given a grouping criteria,
- and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
-
- 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 partition key of your document, if any.
-
-
-
- Groups filtered a collection of documents given a grouping criteria,
- and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
-
- 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 partition key of your document, if any.
-
-
-
- Asynchronously returns a paginated list of the documents matching the filter condition.
-
- The type representing a Document.
-
- The number of documents you want to skip. Default value is 0.
- The number of documents you want to take. Default value is 50.
- An optional partition key.
-
-
-
- Asynchronously returns a paginated list of the documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
-
- The number of documents you want to skip. Default value is 0.
- The number of documents you want to take. Default value is 50.
- An optional partition key.
-
-
-
- GetAndUpdateOne with filter
-
- The type representing a Document.
-
-
-
-
-
-
-
- GetAndUpdateOne with filter
-
- The type representing a Document.
- The type of the primary key for a Document.
-
-
-
-
-
-
-
- Sets the value of the document Id if it is not set already.
-
- The document type.
- The type of the primary key.
- The document.
-
-
-
- Sets the value of the document Id if it is not set already.
-
- The document type.
- The document.
-
The IBaseMongoRepository exposes the CRUD functionality of the BaseMongoRepository.
@@ -687,6 +132,16 @@
The field selector.
The new value of the property field.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Takes a document you want to modify and applies the update you have defined in MongoDb.
@@ -695,6 +150,17 @@
The document you want to modify.
The update definition for the document.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Takes a document you want to modify and applies the update you have defined in MongoDb.
@@ -737,6 +203,17 @@
The document you want to modify.
The update definition for the document.
+
+
+ For the entity selected by the filter, updates the property field with the given value..
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Updates the property field with the given value update a property field in entities.
@@ -748,6 +225,17 @@
The field selector.
The new value of the property field.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Updates the property field with the given value update a property field in entities.
@@ -1093,12 +581,6 @@
The IMongoDatabase from the official Mongodb driver
-
-
- The private GetCollection method
-
-
-
Returns a collection for a document type that has a partition key.
@@ -1334,6 +816,618 @@
A LINQ expression filter.
An optional partitionKey
+
+
+ This attribute allows you to specify of the name of the collection.
+ Added at commit c117bf2a7fee378f1e02199dea9b2023a7089ee2 by https://github.com/Etchelon
+ who has included the CollectionName attribute into the repo to give another choice to the user on how
+ to name their collections.
+ The attribute takes precedence of course, and if not present the library will fall back to your Pluralize method.
+
+
+
+
+ The name of the collection in which your documents are stored.
+
+
+
+
+ The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation.
+ Its constructor must be given a connection string and a database name.
+
+
+
+
+ The constructor taking a connection string and a database name.
+
+ The connection string of the MongoDb server.
+ The name of the database against which you want to perform operations.
+
+
+
+ The contructor taking a .
+
+ A mongodb context implementing
+
+
+
+ The contructor taking a .
+
+ A mongodb context implementing
+
+
+
+ Asynchronously adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The document you want to add.
+
+
+
+ Adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The document you want to add.
+
+
+
+ Asynchronously adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The documents you want to add.
+
+
+
+ Adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The documents you want to add.
+
+
+
+ Asynchronously adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to add.
+
+
+
+ Adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to add.
+
+
+
+ Asynchronously adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The documents you want to add.
+
+
+
+ Adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The documents you want to add.
+
+
+
+ Asynchronously Updates a document.
+
+ The type representing a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Updates a document.
+
+ The type representing a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Asynchronously Updates a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Updates a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Asynchronously deletes a document.
+
+ The type representing a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document.
+
+ The type representing a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a list of documents.
+
+ The type representing a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a list of documents.
+
+ The type representing a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Deletes a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a list of documents.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a list of documents.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+ The document filter.
+ The projection expression.
+ An optional partition key.
+
+
+
+ Groups a collection of documents given a grouping criteria,
+ and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
+
+ 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 partition key of your document, if any.
+
+
+
+ Groups filtered a collection of documents given a grouping criteria,
+ and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
+
+ 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 partition key of your document, if any.
+
+
+
+ Asynchronously returns a paginated list of the documents matching the filter condition.
+
+ The type representing a Document.
+
+ The number of documents you want to skip. Default value is 0.
+ The number of documents you want to take. Default value is 50.
+ An optional partition key.
+
+
+
+ Asynchronously returns a paginated list of the documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+
+ The number of documents you want to skip. Default value is 0.
+ The number of documents you want to take. Default value is 50.
+ An optional partition key.
+
+
+
+ GetAndUpdateOne with filter
+
+ The type representing a Document.
+
+
+
+
+
+
+
+ GetAndUpdateOne with filter
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+
+
+
+
+
+
+
+ Sets the value of the document Id if it is not set already.
+
+ The document type.
+ The type of the primary key.
+ The document.
+
+
+
+ Sets the value of the document Id if it is not set already.
+
+ The document type.
+ The document.
+
This class represents a basic document that can be stored in MongoDb.
@@ -1451,12 +1545,12 @@
The connections string.
The name of your database.
-
+
- The private GetCollection method
+ Extracts the CollectionName attribute from the entity type, if any.
The type representing a Document.
-
+ The name of the collection in which the TDocument is stored.
@@ -1767,14 +1861,6 @@
The collection partition key.
-
-
- Gets a collections for the type TDocument
-
- The document type.
- The type of the primary key.
-
-
Gets a collections for a potentially partitioned document type.
diff --git a/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.dll b/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.dll
index 4388ee5..135ebe2 100644
Binary files a/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.dll and b/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.dll differ
diff --git a/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.xml b/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.xml
index 45be391..e775c67 100644
--- a/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.xml
+++ b/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.xml
@@ -4,561 +4,6 @@
MongoDbGenericRepository
-
-
- The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation.
- Its constructor must be given a connection string and a database name.
-
-
-
-
- The constructor taking a connection string and a database name.
-
- The connection string of the MongoDb server.
- The name of the database against which you want to perform operations.
-
-
-
- The contructor taking a .
-
- A mongodb context implementing
-
-
-
- The contructor taking a .
-
- A mongodb context implementing
-
-
-
- Asynchronously adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The document you want to add.
-
-
-
- Adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The document you want to add.
-
-
-
- Asynchronously adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The documents you want to add.
-
-
-
- Adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The documents you want to add.
-
-
-
- Asynchronously adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to add.
-
-
-
- Adds a document to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to add.
-
-
-
- Asynchronously adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The documents you want to add.
-
-
-
- Adds a list of documents to the collection.
- Populates the Id and AddedAtUtc fields if necessary.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The documents you want to add.
-
-
-
- Asynchronously Updates a document.
-
- The type representing a Document.
- The document with the modifications you want to persist.
-
-
-
- Updates a document.
-
- The type representing a Document.
- The document with the modifications you want to persist.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Asynchronously Updates a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document with the modifications you want to persist.
-
-
-
- Updates a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document with the modifications you want to persist.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Takes a document you want to modify and applies the update you have defined in MongoDb.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to modify.
- The update definition for the document.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document you want to modify.
- The field selector.
- The new value of the property field.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Updates the property field with the given value update a property field in entities.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type of the field.
- The document filter.
- The field selector.
- The new value of the property field.
- The value of the partition key.
-
-
-
- Asynchronously deletes a document.
-
- The type representing a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document.
-
- The type representing a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a list of documents.
-
- The type representing a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes a list of documents.
-
- The type representing a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Deletes a document.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The document you want to delete.
- The number of documents deleted.
-
-
-
- Deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a document matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously deletes a list of documents.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes a list of documents.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The list of documents to delete.
- The number of documents deleted.
-
-
-
- Deletes the documents matching the condition of the LINQ expression filter.
-
- The type representing a Document.
- The type of the primary key for a Document.
- A LINQ expression filter.
- An optional partition key.
- The number of documents deleted.
-
-
-
- Asynchronously returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Returns a projected document matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type representing the model you want to project to.
-
- The projection expression.
- An optional partition key.
-
-
-
- Asynchronously returns a list of projected documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
- The type representing the model you want to project to.
- The document filter.
- The projection expression.
- An optional partition key.
-
-
-
- Groups a collection of documents given a grouping criteria,
- and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
-
- 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 partition key of your document, if any.
-
-
-
- Groups filtered a collection of documents given a grouping criteria,
- and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
-
- 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 partition key of your document, if any.
-
-
-
- Asynchronously returns a paginated list of the documents matching the filter condition.
-
- The type representing a Document.
-
- The number of documents you want to skip. Default value is 0.
- The number of documents you want to take. Default value is 50.
- An optional partition key.
-
-
-
- Asynchronously returns a paginated list of the documents matching the filter condition.
-
- The type representing a Document.
- The type of the primary key for a Document.
-
- The number of documents you want to skip. Default value is 0.
- The number of documents you want to take. Default value is 50.
- An optional partition key.
-
-
-
- GetAndUpdateOne with filter
-
- The type representing a Document.
-
-
-
-
-
-
-
- GetAndUpdateOne with filter
-
- The type representing a Document.
- The type of the primary key for a Document.
-
-
-
-
-
-
-
- Sets the value of the document Id if it is not set already.
-
- The document type.
- The type of the primary key.
- The document.
-
-
-
- Sets the value of the document Id if it is not set already.
-
- The document type.
- The document.
-
The IBaseMongoRepository exposes the CRUD functionality of the BaseMongoRepository.
@@ -687,6 +132,16 @@
The field selector.
The new value of the property field.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Takes a document you want to modify and applies the update you have defined in MongoDb.
@@ -695,6 +150,17 @@
The document you want to modify.
The update definition for the document.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Takes a document you want to modify and applies the update you have defined in MongoDb.
@@ -737,6 +203,17 @@
The document you want to modify.
The update definition for the document.
+
+
+ For the entity selected by the filter, updates the property field with the given value..
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Updates the property field with the given value update a property field in entities.
@@ -748,6 +225,17 @@
The field selector.
The new value of the property field.
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
Updates the property field with the given value update a property field in entities.
@@ -1093,12 +581,6 @@
The IMongoDatabase from the official Mongodb driver
-
-
- The private GetCollection method
-
-
-
Returns a collection for a document type that has a partition key.
@@ -1334,6 +816,618 @@
A LINQ expression filter.
An optional partitionKey
+
+
+ This attribute allows you to specify of the name of the collection.
+ Added at commit c117bf2a7fee378f1e02199dea9b2023a7089ee2 by https://github.com/Etchelon
+ who has included the CollectionName attribute into the repo to give another choice to the user on how
+ to name their collections.
+ The attribute takes precedence of course, and if not present the library will fall back to your Pluralize method.
+
+
+
+
+ The name of the collection in which your documents are stored.
+
+
+
+
+ The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation.
+ Its constructor must be given a connection string and a database name.
+
+
+
+
+ The constructor taking a connection string and a database name.
+
+ The connection string of the MongoDb server.
+ The name of the database against which you want to perform operations.
+
+
+
+ The contructor taking a .
+
+ A mongodb context implementing
+
+
+
+ The contructor taking a .
+
+ A mongodb context implementing
+
+
+
+ Asynchronously adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The document you want to add.
+
+
+
+ Adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The document you want to add.
+
+
+
+ Asynchronously adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The documents you want to add.
+
+
+
+ Adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The documents you want to add.
+
+
+
+ Asynchronously adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to add.
+
+
+
+ Adds a document to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to add.
+
+
+
+ Asynchronously adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The documents you want to add.
+
+
+
+ Adds a list of documents to the collection.
+ Populates the Id and AddedAtUtc fields if necessary.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The documents you want to add.
+
+
+
+ Asynchronously Updates a document.
+
+ The type representing a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Updates a document.
+
+ The type representing a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Asynchronously Updates a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Updates a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document with the modifications you want to persist.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Takes a document you want to modify and applies the update you have defined in MongoDb.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to modify.
+ The update definition for the document.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document you want to modify.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value update a property field in entities.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+ The value of the partition key.
+
+
+
+ For the entity selected by the filter, updates the property field with the given value.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type of the field.
+ The document filter.
+ The field selector.
+ The new value of the property field.
+
+
+
+ Asynchronously deletes a document.
+
+ The type representing a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document.
+
+ The type representing a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a list of documents.
+
+ The type representing a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a list of documents.
+
+ The type representing a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Deletes a document.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The document you want to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a document matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously deletes a list of documents.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes a list of documents.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The list of documents to delete.
+ The number of documents deleted.
+
+
+
+ Deletes the documents matching the condition of the LINQ expression filter.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ A LINQ expression filter.
+ An optional partition key.
+ The number of documents deleted.
+
+
+
+ Asynchronously returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Returns a projected document matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type representing the model you want to project to.
+
+ The projection expression.
+ An optional partition key.
+
+
+
+ Asynchronously returns a list of projected documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+ The type representing the model you want to project to.
+ The document filter.
+ The projection expression.
+ An optional partition key.
+
+
+
+ Groups a collection of documents given a grouping criteria,
+ and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
+
+ 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 partition key of your document, if any.
+
+
+
+ Groups filtered a collection of documents given a grouping criteria,
+ and returns a dictionary of listed document groups with keys having the different values of the grouping criteria.
+
+ 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 partition key of your document, if any.
+
+
+
+ Asynchronously returns a paginated list of the documents matching the filter condition.
+
+ The type representing a Document.
+
+ The number of documents you want to skip. Default value is 0.
+ The number of documents you want to take. Default value is 50.
+ An optional partition key.
+
+
+
+ Asynchronously returns a paginated list of the documents matching the filter condition.
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+
+ The number of documents you want to skip. Default value is 0.
+ The number of documents you want to take. Default value is 50.
+ An optional partition key.
+
+
+
+ GetAndUpdateOne with filter
+
+ The type representing a Document.
+
+
+
+
+
+
+
+ GetAndUpdateOne with filter
+
+ The type representing a Document.
+ The type of the primary key for a Document.
+
+
+
+
+
+
+
+ Sets the value of the document Id if it is not set already.
+
+ The document type.
+ The type of the primary key.
+ The document.
+
+
+
+ Sets the value of the document Id if it is not set already.
+
+ The document type.
+ The document.
+
This class represents a basic document that can be stored in MongoDb.
@@ -1451,12 +1545,12 @@
The connections string.
The name of your database.
-
+
- The private GetCollection method
+ Extracts the CollectionName attribute from the entity type, if any.
The type representing a Document.
-
+ The name of the collection in which the TDocument is stored.
@@ -1767,14 +1861,6 @@
The collection partition key.
-
-
- Gets a collections for the type TDocument
-
- The document type.
- The type of the primary key.
-
-
Gets a collections for a potentially partitioned document type.