diff --git a/MongoDbGenericRepository/MongoDbGenericRepository.nuspec b/MongoDbGenericRepository/MongoDbGenericRepository.nuspec index 6aba088..92ed6a0 100644 --- a/MongoDbGenericRepository/MongoDbGenericRepository.nuspec +++ b/MongoDbGenericRepository/MongoDbGenericRepository.nuspec @@ -2,7 +2,7 @@ MongoDbGenericRepository - 1.2.1 + 1.2.2 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. - Exposed core MongoDb driver objects and removed the AddedAtUtc property constraint from the IDocument interface. + Added support for Documents that have an Id of type TKey, and implement the IDocument{TKey} interface. 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 c5464da..7ffaca9 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 9afe743..618ae3f 100644 --- a/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.xml +++ b/MongoDbGenericRepository/lib/net45/MongoDbGenericRepository.xml @@ -23,7 +23,7 @@ Asynchronously adds a document to the collection. - + The type representing a Document. The document you want to add. @@ -31,7 +31,7 @@ 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. @@ -39,7 +39,7 @@ Asynchronously adds a list of documents to the collection. Populates the Id and AddedAtUtc fields if necessary. - + The type representing a Document. The document you want to add. @@ -47,14 +47,50 @@ Adds a list of documents 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 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 returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -62,7 +98,7 @@ Returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -70,7 +106,7 @@ Asynchronously returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -78,7 +114,7 @@ Returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -86,7 +122,7 @@ Returns a collection cursor. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -94,7 +130,7 @@ Asynchronously returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -102,7 +138,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -110,7 +146,7 @@ Asynchronously returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -118,7 +154,7 @@ Returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -126,7 +162,7 @@ Asynchronously counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -134,29 +170,144 @@ Counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. + + + Asynchronously returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Asynchronously returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a collection cursor. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + + + + Counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + 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. + + + + 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. Asynchronously deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -164,7 +315,7 @@ 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. @@ -173,7 +324,7 @@ Deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -181,7 +332,7 @@ 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. @@ -190,7 +341,7 @@ 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. @@ -199,7 +350,7 @@ Asynchronously deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -207,7 +358,7 @@ Deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -215,7 +366,83 @@ 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. @@ -224,8 +451,19 @@ 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. @@ -234,8 +472,19 @@ 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. @@ -244,8 +493,19 @@ 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. @@ -254,12 +514,65 @@ 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 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. + + + + + The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation. @@ -299,7 +612,7 @@ 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. @@ -307,7 +620,7 @@ 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. @@ -315,7 +628,7 @@ 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. @@ -323,14 +636,50 @@ 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 returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -338,7 +687,7 @@ Returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -346,7 +695,7 @@ Asynchronously returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -354,7 +703,7 @@ Returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -362,7 +711,7 @@ Returns a collection cursor. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -370,7 +719,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -378,7 +727,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -386,7 +735,7 @@ Asynchronously returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -394,7 +743,7 @@ Returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -402,7 +751,7 @@ Asynchronously counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partitionKey @@ -410,7 +759,106 @@ Counts how many documents match the filter condition. - + The type representing a Document. + A LINQ expression filter. + An optional partitionKey + + + + Asynchronously returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Asynchronously returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a collection cursor. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + + + + Counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. A LINQ expression filter. An optional partitionKey @@ -418,21 +866,37 @@ 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. + + + + 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. Asynchronously deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -440,7 +904,7 @@ Deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -448,7 +912,7 @@ 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. @@ -457,7 +921,7 @@ 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. @@ -466,7 +930,7 @@ 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. @@ -475,7 +939,7 @@ Asynchronously deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -483,7 +947,7 @@ Deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -491,7 +955,83 @@ 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. @@ -500,8 +1040,19 @@ 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. @@ -510,8 +1061,19 @@ 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. @@ -520,8 +1082,19 @@ 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. @@ -530,8 +1103,19 @@ 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. @@ -540,7 +1124,18 @@ 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. @@ -550,7 +1145,18 @@ 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. @@ -584,6 +1190,14 @@ The value of the partition key. + + + Returns a collection for a document type that has a partition key. + + The type representing a Document. + The type of the primary key for a Document. + The value of the partition key. + Drops a collection, use very carefully. @@ -622,23 +1236,29 @@ The version of the schema of the document - + This class represents a basic document that can be stored in MongoDb. Your document must implement this class in order for the MongoDbRepository to handle them. - + - The Guid, which must be decorated with the [BsonId] attribute + The Primary Key, which must be decorated with the [BsonId] attribute if you want the MongoDb C# driver to consider it to be the document ID. - + A version number, to indicate the version of the schema. + + + This class represents a basic document that can be stored in MongoDb. + Your document must implement this class in order for the MongoDbRepository to handle them. + + This class represents a document that can be inserted in a collection that can be partitioned. @@ -705,33 +1325,41 @@ The private GetCollection method - + The type representing a Document. Returns a collection for a document type that has a partition key. - + The type representing a Document. + The value of the partition key. + + + + Returns a collection for a document type that has a partition key. + + The type representing a Document. + The type of the primary key for a Document. The value of the partition key. Drops a collection, use very carefully. - + The type representing a Document. Drops a collection having a partitionkey, use very carefully. - + The type representing a Document. Very naively pluralizes a TDocument type name. - + The type representing a Document. diff --git a/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.dll b/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.dll index 62f6c98..70088c7 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 9afe743..618ae3f 100644 --- a/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.xml +++ b/MongoDbGenericRepository/lib/netstandard1.5/MongoDbGenericRepository.xml @@ -23,7 +23,7 @@ Asynchronously adds a document to the collection. - + The type representing a Document. The document you want to add. @@ -31,7 +31,7 @@ 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. @@ -39,7 +39,7 @@ Asynchronously adds a list of documents to the collection. Populates the Id and AddedAtUtc fields if necessary. - + The type representing a Document. The document you want to add. @@ -47,14 +47,50 @@ Adds a list of documents 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 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 returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -62,7 +98,7 @@ Returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -70,7 +106,7 @@ Asynchronously returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -78,7 +114,7 @@ Returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -86,7 +122,7 @@ Returns a collection cursor. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -94,7 +130,7 @@ Asynchronously returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -102,7 +138,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -110,7 +146,7 @@ Asynchronously returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -118,7 +154,7 @@ Returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -126,7 +162,7 @@ Asynchronously counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -134,29 +170,144 @@ Counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. + + + Asynchronously returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Asynchronously returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a collection cursor. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + + + + Counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + 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. + + + + 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. Asynchronously deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -164,7 +315,7 @@ 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. @@ -173,7 +324,7 @@ Deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -181,7 +332,7 @@ 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. @@ -190,7 +341,7 @@ 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. @@ -199,7 +350,7 @@ Asynchronously deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -207,7 +358,7 @@ Deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -215,7 +366,83 @@ 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. @@ -224,8 +451,19 @@ 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. @@ -234,8 +472,19 @@ 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. @@ -244,8 +493,19 @@ 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. @@ -254,12 +514,65 @@ 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 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. + + + + + The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation. @@ -299,7 +612,7 @@ 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. @@ -307,7 +620,7 @@ 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. @@ -315,7 +628,7 @@ 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. @@ -323,14 +636,50 @@ 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 returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -338,7 +687,7 @@ Returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -346,7 +695,7 @@ Asynchronously returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -354,7 +703,7 @@ Returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -362,7 +711,7 @@ Returns a collection cursor. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -370,7 +719,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -378,7 +727,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -386,7 +735,7 @@ Asynchronously returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -394,7 +743,7 @@ Returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -402,7 +751,7 @@ Asynchronously counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partitionKey @@ -410,7 +759,106 @@ Counts how many documents match the filter condition. - + The type representing a Document. + A LINQ expression filter. + An optional partitionKey + + + + Asynchronously returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Asynchronously returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a collection cursor. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + + + + Counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. A LINQ expression filter. An optional partitionKey @@ -418,21 +866,37 @@ 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. + + + + 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. Asynchronously deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -440,7 +904,7 @@ Deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -448,7 +912,7 @@ 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. @@ -457,7 +921,7 @@ 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. @@ -466,7 +930,7 @@ 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. @@ -475,7 +939,7 @@ Asynchronously deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -483,7 +947,7 @@ Deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -491,7 +955,83 @@ 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. @@ -500,8 +1040,19 @@ 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. @@ -510,8 +1061,19 @@ 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. @@ -520,8 +1082,19 @@ 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. @@ -530,8 +1103,19 @@ 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. @@ -540,7 +1124,18 @@ 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. @@ -550,7 +1145,18 @@ 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. @@ -584,6 +1190,14 @@ The value of the partition key. + + + Returns a collection for a document type that has a partition key. + + The type representing a Document. + The type of the primary key for a Document. + The value of the partition key. + Drops a collection, use very carefully. @@ -622,23 +1236,29 @@ The version of the schema of the document - + This class represents a basic document that can be stored in MongoDb. Your document must implement this class in order for the MongoDbRepository to handle them. - + - The Guid, which must be decorated with the [BsonId] attribute + The Primary Key, which must be decorated with the [BsonId] attribute if you want the MongoDb C# driver to consider it to be the document ID. - + A version number, to indicate the version of the schema. + + + This class represents a basic document that can be stored in MongoDb. + Your document must implement this class in order for the MongoDbRepository to handle them. + + This class represents a document that can be inserted in a collection that can be partitioned. @@ -705,33 +1325,41 @@ The private GetCollection method - + The type representing a Document. Returns a collection for a document type that has a partition key. - + The type representing a Document. + The value of the partition key. + + + + Returns a collection for a document type that has a partition key. + + The type representing a Document. + The type of the primary key for a Document. The value of the partition key. Drops a collection, use very carefully. - + The type representing a Document. Drops a collection having a partitionkey, use very carefully. - + The type representing a Document. Very naively pluralizes a TDocument type name. - + The type representing a Document. diff --git a/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.dll b/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.dll index 8a408e0..5a2767f 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 9afe743..618ae3f 100644 --- a/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.xml +++ b/MongoDbGenericRepository/lib/netstandard2.0/MongoDbGenericRepository.xml @@ -23,7 +23,7 @@ Asynchronously adds a document to the collection. - + The type representing a Document. The document you want to add. @@ -31,7 +31,7 @@ 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. @@ -39,7 +39,7 @@ Asynchronously adds a list of documents to the collection. Populates the Id and AddedAtUtc fields if necessary. - + The type representing a Document. The document you want to add. @@ -47,14 +47,50 @@ Adds a list of documents 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 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 returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -62,7 +98,7 @@ Returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -70,7 +106,7 @@ Asynchronously returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -78,7 +114,7 @@ Returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -86,7 +122,7 @@ Returns a collection cursor. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -94,7 +130,7 @@ Asynchronously returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -102,7 +138,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -110,7 +146,7 @@ Asynchronously returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -118,7 +154,7 @@ Returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -126,7 +162,7 @@ Asynchronously counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -134,29 +170,144 @@ Counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. + + + Asynchronously returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Asynchronously returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a collection cursor. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + + + + Counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + 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. + + + + 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. Asynchronously deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -164,7 +315,7 @@ 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. @@ -173,7 +324,7 @@ Deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -181,7 +332,7 @@ 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. @@ -190,7 +341,7 @@ 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. @@ -199,7 +350,7 @@ Asynchronously deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -207,7 +358,7 @@ Deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -215,7 +366,83 @@ 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. @@ -224,8 +451,19 @@ 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. @@ -234,8 +472,19 @@ 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. @@ -244,8 +493,19 @@ 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. @@ -254,12 +514,65 @@ 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 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. + + + + + The base Repository, it is meant to be inherited from by your custom custom MongoRepository implementation. @@ -299,7 +612,7 @@ 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. @@ -307,7 +620,7 @@ 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. @@ -315,7 +628,7 @@ 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. @@ -323,14 +636,50 @@ 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 returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -338,7 +687,7 @@ Returns one document given its id. - + The type representing a Document. The Id of the document you want to get. An optional partition key. @@ -346,7 +695,7 @@ Asynchronously returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -354,7 +703,7 @@ Returns one document given an expression filter. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -362,7 +711,7 @@ Returns a collection cursor. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -370,7 +719,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -378,7 +727,7 @@ Returns true if any of the document of the collection matches the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -386,7 +735,7 @@ Asynchronously returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -394,7 +743,7 @@ Returns a list of the documents matching the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partition key. @@ -402,7 +751,7 @@ Asynchronously counts how many documents match the filter condition. - + The type representing a Document. A LINQ expression filter. An optional partitionKey @@ -410,7 +759,106 @@ Counts how many documents match the filter condition. - + The type representing a Document. + A LINQ expression filter. + An optional partitionKey + + + + Asynchronously returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Returns one document given its id. + + The type representing a Document. + The type of the primary key for a Document. + The Id of the document you want to get. + An optional partition key. + + + + Asynchronously returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns one document given an expression filter. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a collection cursor. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns true if any of the document of the collection matches the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Returns a list of the documents matching the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partition key. + + + + Asynchronously counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. + A LINQ expression filter. + An optional partitionKey + + + + Counts how many documents match the filter condition. + + The type representing a Document. + The type of the primary key for a Document. A LINQ expression filter. An optional partitionKey @@ -418,21 +866,37 @@ 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. + + + + 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. Asynchronously deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -440,7 +904,7 @@ Deletes a document. - + The type representing a Document. The document you want to delete. The number of documents deleted. @@ -448,7 +912,7 @@ 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. @@ -457,7 +921,7 @@ 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. @@ -466,7 +930,7 @@ 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. @@ -475,7 +939,7 @@ Asynchronously deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -483,7 +947,7 @@ Deletes a list of documents. - + The type representing a Document. The list of documents to delete. The number of documents deleted. @@ -491,7 +955,83 @@ 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. @@ -500,8 +1040,19 @@ 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. @@ -510,8 +1061,19 @@ 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. @@ -520,8 +1082,19 @@ 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. @@ -530,8 +1103,19 @@ 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. @@ -540,7 +1124,18 @@ 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. @@ -550,7 +1145,18 @@ 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. @@ -584,6 +1190,14 @@ The value of the partition key. + + + Returns a collection for a document type that has a partition key. + + The type representing a Document. + The type of the primary key for a Document. + The value of the partition key. + Drops a collection, use very carefully. @@ -622,23 +1236,29 @@ The version of the schema of the document - + This class represents a basic document that can be stored in MongoDb. Your document must implement this class in order for the MongoDbRepository to handle them. - + - The Guid, which must be decorated with the [BsonId] attribute + The Primary Key, which must be decorated with the [BsonId] attribute if you want the MongoDb C# driver to consider it to be the document ID. - + A version number, to indicate the version of the schema. + + + This class represents a basic document that can be stored in MongoDb. + Your document must implement this class in order for the MongoDbRepository to handle them. + + This class represents a document that can be inserted in a collection that can be partitioned. @@ -705,33 +1325,41 @@ The private GetCollection method - + The type representing a Document. Returns a collection for a document type that has a partition key. - + The type representing a Document. + The value of the partition key. + + + + Returns a collection for a document type that has a partition key. + + The type representing a Document. + The type of the primary key for a Document. The value of the partition key. Drops a collection, use very carefully. - + The type representing a Document. Drops a collection having a partitionkey, use very carefully. - + The type representing a Document. Very naively pluralizes a TDocument type name. - + The type representing a Document.