1.3.7 release
This commit is contained in:
@@ -9,16 +9,13 @@
|
||||
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="2.1.2" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.7.0" />
|
||||
<PackageReference Include="MongoDbGenericRepository" Version="1.3.7" />
|
||||
<PackageReference Include="xunit" Version="2.4.0" />
|
||||
<PackageReference Include="xunit.runner.console" Version="2.4.0" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
|
||||
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0-beta4-build3742" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MongoDbGenericRepository\MongoDbGenericRepository.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Configuration">
|
||||
<HintPath>..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Configuration.dll</HintPath>
|
||||
|
||||
@@ -846,6 +846,94 @@ namespace CoreIntegrationTests.Infrastructure
|
||||
Assert.Equal(expectedMin.Id, result.Id);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetMinValue()
|
||||
{
|
||||
// Arrange
|
||||
var criteria = $"{GetTestName()}.{DocumentTypeName}.{Guid.NewGuid()}";
|
||||
var documents = CreateTestDocuments(5);
|
||||
var i = 1;
|
||||
documents.ForEach(e => {
|
||||
e.Nested.SomeDate = e.Nested.SomeDate.AddDays(i++);
|
||||
e.SomeContent = criteria;
|
||||
});
|
||||
SUT.AddMany<T>(documents);
|
||||
var expectedMin = documents.OrderBy(e => e.Nested.SomeDate).First();
|
||||
|
||||
// Act
|
||||
var result = SUT.GetMinValue<T, DateTime>(e => e.SomeContent == criteria, e => e.Nested.SomeDate, PartitionKey);
|
||||
|
||||
// Assert
|
||||
Assert.True(result != default(DateTime));
|
||||
Assert.Equal(expectedMin.Nested.SomeDate.Date, result.Date);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetMinValueAsync()
|
||||
{
|
||||
// Arrange
|
||||
var criteria = $"{GetTestName()}.{DocumentTypeName}.{Guid.NewGuid()}";
|
||||
var documents = CreateTestDocuments(5);
|
||||
var i = 1;
|
||||
documents.ForEach(e => {
|
||||
e.Nested.SomeDate = e.Nested.SomeDate.AddDays(i++);
|
||||
e.SomeContent = criteria;
|
||||
});
|
||||
SUT.AddMany<T>(documents);
|
||||
var expectedMin = documents.OrderBy(e => e.Nested.SomeDate).First();
|
||||
|
||||
// Act
|
||||
var result = await SUT.GetMinValueAsync<T, DateTime>(e => e.SomeContent == criteria, e => e.Nested.SomeDate, PartitionKey);
|
||||
|
||||
// Assert
|
||||
Assert.True(result != default(DateTime));
|
||||
Assert.Equal(expectedMin.Nested.SomeDate.Date, result.Date);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetMaxValue()
|
||||
{
|
||||
// Arrange
|
||||
var criteria = $"{GetTestName()}.{DocumentTypeName}.{Guid.NewGuid()}";
|
||||
var documents = CreateTestDocuments(5);
|
||||
var i = 1;
|
||||
documents.ForEach(e => {
|
||||
e.Nested.SomeDate = e.Nested.SomeDate.AddDays(i++);
|
||||
e.SomeContent = criteria;
|
||||
});
|
||||
SUT.AddMany<T>(documents);
|
||||
var expectedMax = documents.OrderByDescending(e => e.Nested.SomeDate).First();
|
||||
|
||||
// Act
|
||||
var result = SUT.GetMaxValue<T, DateTime>(e => e.SomeContent == criteria, e => e.Nested.SomeDate, PartitionKey);
|
||||
|
||||
// Assert
|
||||
Assert.True(result != default(DateTime));
|
||||
Assert.Equal(expectedMax.Nested.SomeDate.Date, result.Date);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetMaxValueAsync()
|
||||
{
|
||||
// Arrange
|
||||
var criteria = $"{GetTestName()}.{DocumentTypeName}.{Guid.NewGuid()}";
|
||||
var documents = CreateTestDocuments(5);
|
||||
var i = 1;
|
||||
documents.ForEach(e => {
|
||||
e.Nested.SomeDate = e.Nested.SomeDate.AddDays(i++);
|
||||
e.SomeContent = criteria;
|
||||
});
|
||||
SUT.AddMany<T>(documents);
|
||||
var expectedMin = documents.OrderByDescending(e => e.Nested.SomeDate).First();
|
||||
|
||||
// Act
|
||||
var result = await SUT.GetMaxValueAsync<T, DateTime>(e => e.SomeContent == criteria, e => e.Nested.SomeDate, PartitionKey);
|
||||
|
||||
// Assert
|
||||
Assert.True(result != default(DateTime));
|
||||
Assert.Equal(expectedMin.Nested.SomeDate.Date, result.Date);
|
||||
}
|
||||
|
||||
#endregion Max / Min Queries
|
||||
|
||||
#region Test Utils
|
||||
|
||||
@@ -891,6 +891,50 @@ namespace CoreIntegrationTests.Infrastructure
|
||||
Assert.Equal(expectedMin.Id, result.Id);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetMinValue()
|
||||
{
|
||||
// Arrange
|
||||
var criteria = $"{GetTestName()}.{DocumentTypeName}.{Guid.NewGuid()}";
|
||||
var documents = CreateTestDocuments(5);
|
||||
var i = 1;
|
||||
documents.ForEach(e => {
|
||||
e.Nested.SomeDate = e.Nested.SomeDate.AddDays(i++);
|
||||
e.SomeContent = criteria;
|
||||
});
|
||||
SUT.AddMany<T, TKey>(documents);
|
||||
var expectedMin = documents.OrderBy(e => e.Nested.SomeDate).First();
|
||||
|
||||
// Act
|
||||
var result = SUT.GetMinValue< T, TKey, DateTime >(e => e.SomeContent == criteria, e => e.Nested.SomeDate, PartitionKey);
|
||||
|
||||
// Assert
|
||||
Assert.True(result != default(DateTime));
|
||||
Assert.Equal(expectedMin.Nested.SomeDate.Date, result.Date);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task GetMinValueAsync()
|
||||
{
|
||||
// Arrange
|
||||
var criteria = $"{GetTestName()}.{DocumentTypeName}.{Guid.NewGuid()}";
|
||||
var documents = CreateTestDocuments(5);
|
||||
var i = 1;
|
||||
documents.ForEach(e => {
|
||||
e.Nested.SomeDate = e.Nested.SomeDate.AddDays(i++);
|
||||
e.SomeContent = criteria;
|
||||
});
|
||||
SUT.AddMany<T, TKey>(documents);
|
||||
var expectedMin = documents.OrderBy(e => e.Nested.SomeDate).First();
|
||||
|
||||
// Act
|
||||
var result = await SUT.GetMinValueAsync< T, TKey, DateTime >(e => e.SomeContent == criteria, e => e.Nested.SomeDate, PartitionKey);
|
||||
|
||||
// Assert
|
||||
Assert.True(result != default(DateTime));
|
||||
Assert.Equal(expectedMin.Nested.SomeDate.Date, result.Date);
|
||||
}
|
||||
|
||||
#endregion Max / Min Queries
|
||||
|
||||
#region Test Utils
|
||||
|
||||
@@ -30,22 +30,34 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DnsClient, Version=1.0.7.0, Culture=neutral, PublicKeyToken=4574bb5573c51424, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\DnsClient.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDB.Bson, Version=2.7.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Bson.2.7.0\lib\net45\MongoDB.Bson.dll</HintPath>
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\MongoDB.Bson.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDB.Driver, Version=2.7.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Driver.2.7.0\lib\net45\MongoDB.Driver.dll</HintPath>
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\MongoDB.Driver.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDB.Driver.Core, Version=2.7.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDB.Driver.Core.2.7.0\lib\net45\MongoDB.Driver.Core.dll</HintPath>
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\MongoDB.Driver.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MongoDbGenericRepository, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\MongoDbGenericRepository.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="nunit.framework, Version=3.9.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Buffers, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MongoDbGenericRepository.1.3.7\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CRUDObjectIdTests.cs" />
|
||||
@@ -74,11 +86,5 @@
|
||||
<ItemGroup>
|
||||
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MongoDbGenericRepository\MongoDbGenericRepository.csproj">
|
||||
<Project>{efc776c4-2af3-440c-be80-3fbe335817a5}</Project>
|
||||
<Name>MongoDbGenericRepository</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -4,6 +4,7 @@
|
||||
<package id="MongoDB.Bson" version="2.7.0" targetFramework="net461" />
|
||||
<package id="MongoDB.Driver" version="2.7.0" targetFramework="net461" />
|
||||
<package id="MongoDB.Driver.Core" version="2.7.0" targetFramework="net461" />
|
||||
<package id="MongoDbGenericRepository" version="1.3.7" targetFramework="net461" />
|
||||
<package id="NUnit" version="3.9.0" targetFramework="net461" />
|
||||
<package id="NUnit.ConsoleRunner" version="3.7.0" targetFramework="net461" />
|
||||
<package id="System.Buffers" version="4.3.0" targetFramework="net461" />
|
||||
|
||||
@@ -111,47 +111,6 @@ namespace MongoDbGenericRepository
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
long Count<TDocument>(Expression<Func<TDocument, bool>> filter, string partitionKey = null) where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByDescending">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
Task<TDocument> GetByMaxAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByDescending">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
/// <returns></returns>
|
||||
TDocument GetByMax<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
Task<TDocument> GetByMinAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
TDocument GetByMin<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Read TKey
|
||||
@@ -278,6 +237,51 @@ namespace MongoDbGenericRepository
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Min / Max
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByDescending">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
Task<TDocument> GetByMaxAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByDescending">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
/// <returns></returns>
|
||||
TDocument GetByMax<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
Task<TDocument> GetByMinAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
TDocument GetByMin<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
@@ -326,6 +330,17 @@ namespace MongoDbGenericRepository
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
Task<TValue> GetMaxValueAsync<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
@@ -338,6 +353,17 @@ namespace MongoDbGenericRepository
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
TValue GetMaxValue<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
@@ -350,6 +376,54 @@ namespace MongoDbGenericRepository
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
Task<TValue> GetMinValueAsync<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
Task<TValue> GetMinValueAsync<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
TValue GetMinValue<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
TValue GetMinValue<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>;
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace MongoDbGenericRepository
|
||||
/// Returns a collection for a document type. Also handles document types with a partition key.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <param name="partitionKey">The value of the partition key.</param>
|
||||
/// <param name="partitionKey">The optional value of the partition key.</param>
|
||||
public IMongoCollection<TDocument> GetCollection<TDocument>(string partitionKey = null)
|
||||
{
|
||||
return Database.GetCollection<TDocument>(GetCollectionName<TDocument>(partitionKey));
|
||||
@@ -95,21 +95,27 @@ namespace MongoDbGenericRepository
|
||||
Database.DropCollection(GetCollectionName<TDocument>(partitionKey));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Given the docmuent type and the partition key, returns the name of the collection it belongs to.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <param name="partitionKey">The value of the partition key.</param>
|
||||
/// <returns>The name of the collection.</returns>
|
||||
private string GetCollectionName<TDocument>(string partitionKey)
|
||||
{
|
||||
var collectionName = GetAttributeCollectionName<TDocument>() ?? Pluralize<TDocument>();
|
||||
if (string.IsNullOrEmpty(partitionKey))
|
||||
{
|
||||
return GetAttributeCollectionName<TDocument>() ?? Pluralize<TDocument>();
|
||||
return collectionName;
|
||||
}
|
||||
var collectionName = $"{partitionKey}-{(GetAttributeCollectionName<TDocument>() ?? Pluralize<TDocument>())}";
|
||||
return collectionName;
|
||||
return $"{partitionKey}-{collectionName}";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Very naively pluralizes a TDocument type name.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <returns></returns>
|
||||
/// <returns>The pluralized document name.</returns>
|
||||
private string Pluralize<TDocument>()
|
||||
{
|
||||
return (typeof(TDocument).Name.Pluralize()).Camelize();
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
<projectUrl>https://github.com/alexandre-spieser/mongodb-generic-repository</projectUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>A generic repository implementation using the MongoDB C# Sharp 2.0 driver.</description>
|
||||
<releaseNotes>Upgraded dependencies.</releaseNotes>
|
||||
<copyright>Copyright 2017 (c) Alexandre Spieser. All rights reserved.</copyright>
|
||||
<releaseNotes>Upgraded dependencies. Full support for bulk insertion and deletion of documents of the same type but with different partitionkey values. Added methods for Min and Max queries.</releaseNotes>
|
||||
<copyright>Copyright 2018 (c) Alexandre Spieser. All rights reserved.</copyright>
|
||||
<tags>MongoDb Repository Generic NoSql</tags>
|
||||
<dependencies>
|
||||
<dependency id="MongoDB.Driver" version="2.7.0" />
|
||||
|
||||
@@ -188,14 +188,12 @@ namespace MongoDbGenericRepository
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByDescending">A property selector to order by descending.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public async Task<TDocument> GetByMaxAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
public async Task<TDocument> GetByMaxAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return await GetCollection<TDocument>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(orderByDescending)
|
||||
.FirstOrDefaultAsync();
|
||||
return await GetByMaxAsync<TDocument, Guid>(filter, maxValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -203,15 +201,13 @@ namespace MongoDbGenericRepository
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByDescending">A property selector to order by descending.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
/// <returns></returns>
|
||||
public TDocument GetByMax<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
public TDocument GetByMax<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return GetCollection<TDocument>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(orderByDescending)
|
||||
.FirstOrDefault();
|
||||
return GetByMax<TDocument, Guid>(filter, maxValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -219,14 +215,12 @@ namespace MongoDbGenericRepository
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public async Task<TDocument> GetByMinAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
public async Task<TDocument> GetByMinAsync<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return await GetCollection<TDocument>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortBy(orderByAscending)
|
||||
.FirstOrDefaultAsync();
|
||||
return await GetByMinAsync<TDocument, Guid>(filter, minValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -239,9 +233,7 @@ namespace MongoDbGenericRepository
|
||||
public TDocument GetByMin<TDocument>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return GetCollection<TDocument>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortBy(orderByAscending)
|
||||
.FirstOrDefault();
|
||||
return GetByMin<TDocument, Guid>(filter, orderByAscending, partitionKey);
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -412,14 +404,15 @@ namespace MongoDbGenericRepository
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by descending.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public async Task<TDocument> GetByMaxAsync<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
public async Task<TDocument> GetByMaxAsync<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return await GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(orderByDescending)
|
||||
.SortByDescending(maxValueSelector)
|
||||
.Limit(1)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
@@ -429,14 +422,15 @@ namespace MongoDbGenericRepository
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by descending.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public TDocument GetByMax<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByDescending, string partitionKey = null)
|
||||
public TDocument GetByMax<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(orderByDescending)
|
||||
.SortByDescending(maxValueSelector)
|
||||
.Limit(1)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
@@ -446,14 +440,15 @@ namespace MongoDbGenericRepository
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public async Task<TDocument> GetByMinAsync<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
public async Task<TDocument> GetByMinAsync<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return await GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortBy(orderByAscending)
|
||||
.SortBy(minValueSelector)
|
||||
.Limit(1)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
@@ -463,17 +458,68 @@ namespace MongoDbGenericRepository
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public TDocument GetByMin<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> orderByAscending, string partitionKey = null)
|
||||
public TDocument GetByMin<TDocument, TKey>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, object>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortBy(orderByAscending)
|
||||
.SortBy(minValueSelector)
|
||||
.Limit(1)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
private IFindFluent<TDocument, TDocument> GetMinMongoQuery<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortBy(ConvertExpression(minValueSelector))
|
||||
.Limit(1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
private IFindFluent<TDocument, TDocument> GetMaxMongoQuery<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(ConvertExpression(maxValueSelector))
|
||||
.Limit(1);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public async Task<TValue> GetMaxValueAsync<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return await GetMaxValueAsync<TDocument, Guid, TValue>(filter, maxValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
@@ -486,10 +532,23 @@ namespace MongoDbGenericRepository
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return await GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(ConvertExpression(maxValueSelector))
|
||||
.Project(maxValueSelector)
|
||||
.FirstOrDefaultAsync();
|
||||
return await GetMaxMongoQuery<TDocument, TKey, TValue>(filter, maxValueSelector, partitionKey)
|
||||
.Project(maxValueSelector)
|
||||
.FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public TValue GetMaxValue<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return GetMaxValue<TDocument, Guid, TValue>(filter, maxValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -497,18 +556,78 @@ namespace MongoDbGenericRepository
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
/// <param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partitionKey.</param>
|
||||
public TValue GetMaxValue<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> orderByDescending, string partitionKey = null)
|
||||
public TValue GetMaxValue<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> maxValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
|
||||
return GetCollection<TDocument, TKey>(partitionKey).Find(Builders<TDocument>.Filter.Where(filter))
|
||||
.SortByDescending(ConvertExpression(orderByDescending))
|
||||
.Project(orderByDescending)
|
||||
.FirstOrDefault();
|
||||
return GetMaxMongoQuery<TDocument, TKey, TValue>(filter, maxValueSelector, partitionKey)
|
||||
.Project(maxValueSelector)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
public async Task<TValue> GetMinValueAsync<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return await GetMinValueAsync<TDocument, Guid, TValue>(filter, minValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
public async Task<TValue> GetMinValueAsync<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return await GetMinMongoQuery<TDocument, TKey, TValue>(filter, minValueSelector, partitionKey).Project(minValueSelector).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
public TValue GetMinValue<TDocument, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument
|
||||
{
|
||||
return GetMinValue<TDocument, Guid, TValue>(filter, minValueSelector, partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
/// <typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
public TValue GetMinValue<TDocument, TKey, TValue>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TValue>> minValueSelector, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
return GetMinMongoQuery<TDocument, TKey, TValue>(filter, minValueSelector, partitionKey).Project(minValueSelector).FirstOrDefault();
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -516,26 +635,16 @@ namespace MongoDbGenericRepository
|
||||
#region Utility Methods
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collections for the type TDocument with the matching partition key.
|
||||
/// Gets a collections for the type TDocument with the matching partition key (if any).
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <param name="partitionKey">The partion key.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
/// <returns>An <see cref="IMongoCollection{TDocument}"/></returns>
|
||||
protected IMongoCollection<TDocument> GetCollection<TDocument>(string partitionKey) where TDocument : IDocument
|
||||
protected IMongoCollection<TDocument> GetCollection<TDocument>(string partitionKey = null) where TDocument : IDocument
|
||||
{
|
||||
return MongoDbContext.GetCollection<TDocument>(partitionKey);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collections for the type TDocument
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The document type.</typeparam>
|
||||
/// <returns></returns>
|
||||
protected IMongoCollection<TDocument> GetCollection<TDocument>() where TDocument : IDocument
|
||||
{
|
||||
return MongoDbContext.GetCollection<TDocument>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collections for the type TDocument
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -591,20 +591,6 @@
|
||||
<typeparam name="TDocument"></typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.GetCollection``2(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.DropCollection``1">
|
||||
<summary>
|
||||
Drops a collection, use very carefully.
|
||||
</summary>
|
||||
<typeparam name="TDocument"></typeparam>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.DropCollection``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection having a partitionkey, use very carefully.
|
||||
@@ -819,6 +805,165 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMaxAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByDescending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMax``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByDescending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMinAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMin``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMaxAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMax``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMinAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMin``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.Attributes.CollectionNameAttribute">
|
||||
<summary>
|
||||
This attribute allows you to specify of the name of the collection.
|
||||
@@ -1544,6 +1689,12 @@
|
||||
</summary>
|
||||
<param name="guidRepresentation">The new value of the GuidRepresentation</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.InitializeGuidRepresentation">
|
||||
<summary>
|
||||
Initialize the Guid representation of the MongoDb Driver.
|
||||
Override this method to change the default GuidRepresentation.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.#ctor(MongoDB.Driver.IMongoDatabase)">
|
||||
<summary>
|
||||
The constructor of the MongoDbContext, it needs a an object implementing <see cref="T:MongoDB.Driver.IMongoDatabase"/>.
|
||||
@@ -1566,37 +1717,31 @@
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollection``1(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
Returns a collection for a document type. Also handles document types with a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
<param name="partitionKey">The optional value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollection``2(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1">
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection, use very carefully.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1(System.String)">
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollectionName``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection having a partitionkey, use very carefully.
|
||||
Given the docmuent type and the partition key, returns the name of the collection it belongs to.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
<returns>The name of the collection.</returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.Pluralize``1">
|
||||
<summary>
|
||||
Very naively pluralizes a TDocument type name.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<returns></returns>
|
||||
<returns>The pluralized document name.</returns>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.ReadOnlyMongoRepository">
|
||||
<summary>
|
||||
@@ -1725,6 +1870,43 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMaxAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMax``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMinAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMin``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByIdAsync``2(``1,System.String)">
|
||||
<summary>
|
||||
Asynchronously returns one document given its id.
|
||||
@@ -1824,21 +2006,159 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMaxAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMax``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMinAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMin``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinMongoQuery``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxMongoQuery``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetCollection``1(System.String)">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument with the matching partition key.
|
||||
Gets a collections for the type TDocument with the matching partition key (if any).
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="partitionKey">The partion key.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
<returns>An <see cref="T:MongoDB.Driver.IMongoCollection`1"/></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetCollection``1">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.HandlePartitioned``1(``0)">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument
|
||||
@@ -1882,6 +2202,14 @@
|
||||
<param name="partitionKey">The collection partition key.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.ConvertExpression``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})">
|
||||
<summary>
|
||||
Converts a LINQ expression of TDocument, TValue to a LINQ expression of TDocument, object
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value.</typeparam>
|
||||
<param name="expression">The expression to convert</param>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.Utils.IdGenerator">
|
||||
<summary>
|
||||
The IdGenerator instance, used to generate Ids of different types.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETStandard,Version=v1.5/",
|
||||
"signature": "795a70ab1bbc13177859af16f1887befe3221c54"
|
||||
"signature": "b945d8e228876adfa8e84019c7873fce5baf0c0b"
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
@@ -9,7 +9,7 @@
|
||||
".NETStandard,Version=v1.5/": {
|
||||
"MongoDbGenericRepository/1.0.0": {
|
||||
"dependencies": {
|
||||
"MongoDB.Driver": "2.5.0",
|
||||
"MongoDB.Driver": "2.7.0",
|
||||
"NETStandard.Library": "1.6.1"
|
||||
},
|
||||
"runtime": {
|
||||
@@ -60,7 +60,7 @@
|
||||
"System.Runtime.InteropServices": "4.3.0"
|
||||
}
|
||||
},
|
||||
"MongoDB.Bson/2.5.0": {
|
||||
"MongoDB.Bson/2.7.0": {
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "1.6.1",
|
||||
"System.Collections.NonGeneric": "4.0.1",
|
||||
@@ -72,10 +72,10 @@
|
||||
"lib/netstandard1.5/MongoDB.Bson.dll": {}
|
||||
}
|
||||
},
|
||||
"MongoDB.Driver/2.5.0": {
|
||||
"MongoDB.Driver/2.7.0": {
|
||||
"dependencies": {
|
||||
"MongoDB.Bson": "2.5.0",
|
||||
"MongoDB.Driver.Core": "2.5.0",
|
||||
"MongoDB.Bson": "2.7.0",
|
||||
"MongoDB.Driver.Core": "2.7.0",
|
||||
"NETStandard.Library": "1.6.1",
|
||||
"System.ComponentModel.TypeConverter": "4.1.0",
|
||||
"System.Linq.Queryable": "4.0.1"
|
||||
@@ -84,10 +84,10 @@
|
||||
"lib/netstandard1.5/MongoDB.Driver.dll": {}
|
||||
}
|
||||
},
|
||||
"MongoDB.Driver.Core/2.5.0": {
|
||||
"MongoDB.Driver.Core/2.7.0": {
|
||||
"dependencies": {
|
||||
"DnsClient": "1.0.7",
|
||||
"MongoDB.Bson": "2.5.0",
|
||||
"MongoDB.Bson": "2.7.0",
|
||||
"NETStandard.Library": "1.6.1",
|
||||
"System.Collections.Specialized": "4.0.1",
|
||||
"System.Diagnostics.TraceSource": "4.0.0",
|
||||
@@ -1021,26 +1021,26 @@
|
||||
"path": "microsoft.win32.registry/4.0.0",
|
||||
"hashPath": "microsoft.win32.registry.4.0.0.nupkg.sha512"
|
||||
},
|
||||
"MongoDB.Bson/2.5.0": {
|
||||
"MongoDB.Bson/2.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-b7zQAUdSdfJ4kmGzAA+hv89N2Q6jm1td9WfTimgp8xWAsN4qbtIjA/JkAY1HA0Z8xfXQE3EmdUcDEwT8bkXfXg==",
|
||||
"path": "mongodb.bson/2.5.0",
|
||||
"hashPath": "mongodb.bson.2.5.0.nupkg.sha512"
|
||||
"sha512": "sha512-vzpTDHYX/X6gF9qtDuKRJiLkqpj5OZuT1bIzJCiBiU8CwJ37becYmaXuy/QSuWnYN6j6ZdVTWILKbWt2MXL8DA==",
|
||||
"path": "mongodb.bson/2.7.0",
|
||||
"hashPath": "mongodb.bson.2.7.0.nupkg.sha512"
|
||||
},
|
||||
"MongoDB.Driver/2.5.0": {
|
||||
"MongoDB.Driver/2.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-VbHVV8Xdl3PcPU3XxdOUE/yc4BnPokg7k1XHU/3fEM/UdfCy0Ie0eXVE+U2HJXVcM3TQuuyVn+B1La2YY7X8dA==",
|
||||
"path": "mongodb.driver/2.5.0",
|
||||
"hashPath": "mongodb.driver.2.5.0.nupkg.sha512"
|
||||
"sha512": "sha512-5wP5BBwm5YO6h2Vhw6zQmOwSW9WP2d6kgRM6E7uIbwIJz4+j2trS2Wo7/+IYow5WVN8Jd6O27bIB/4gKNepO1Q==",
|
||||
"path": "mongodb.driver/2.7.0",
|
||||
"hashPath": "mongodb.driver.2.7.0.nupkg.sha512"
|
||||
},
|
||||
"MongoDB.Driver.Core/2.5.0": {
|
||||
"MongoDB.Driver.Core/2.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-/JYwBTEoWZDHiSePk0AF775c0YkSGSsHTA2+hWt9/UOCkYV/QOFujAWDdpFzBMCDpmQewbLRR1knYj76YOxffA==",
|
||||
"path": "mongodb.driver.core/2.5.0",
|
||||
"hashPath": "mongodb.driver.core.2.5.0.nupkg.sha512"
|
||||
"sha512": "sha512-SepB4KT+zXA3iFaIFwXVKmk6BZIp0EGE/iWqNbDZ1mca9e8EhtqYPwOOzFmEbdKAzmVvF1y86kNI4agWP6I5sg==",
|
||||
"path": "mongodb.driver.core/2.7.0",
|
||||
"hashPath": "mongodb.driver.core.2.7.0.nupkg.sha512"
|
||||
},
|
||||
"NETStandard.Library/1.6.1": {
|
||||
"type": "package",
|
||||
|
||||
Binary file not shown.
@@ -591,20 +591,6 @@
|
||||
<typeparam name="TDocument"></typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.GetCollection``2(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.DropCollection``1">
|
||||
<summary>
|
||||
Drops a collection, use very carefully.
|
||||
</summary>
|
||||
<typeparam name="TDocument"></typeparam>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.DropCollection``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection having a partitionkey, use very carefully.
|
||||
@@ -819,6 +805,165 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMaxAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByDescending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMax``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByDescending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMinAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMin``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMaxAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMax``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMinAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMin``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.Attributes.CollectionNameAttribute">
|
||||
<summary>
|
||||
This attribute allows you to specify of the name of the collection.
|
||||
@@ -1544,6 +1689,12 @@
|
||||
</summary>
|
||||
<param name="guidRepresentation">The new value of the GuidRepresentation</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.InitializeGuidRepresentation">
|
||||
<summary>
|
||||
Initialize the Guid representation of the MongoDb Driver.
|
||||
Override this method to change the default GuidRepresentation.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.#ctor(MongoDB.Driver.IMongoDatabase)">
|
||||
<summary>
|
||||
The constructor of the MongoDbContext, it needs a an object implementing <see cref="T:MongoDB.Driver.IMongoDatabase"/>.
|
||||
@@ -1566,37 +1717,31 @@
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollection``1(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
Returns a collection for a document type. Also handles document types with a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
<param name="partitionKey">The optional value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollection``2(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1">
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection, use very carefully.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1(System.String)">
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollectionName``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection having a partitionkey, use very carefully.
|
||||
Given the docmuent type and the partition key, returns the name of the collection it belongs to.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
<returns>The name of the collection.</returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.Pluralize``1">
|
||||
<summary>
|
||||
Very naively pluralizes a TDocument type name.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<returns></returns>
|
||||
<returns>The pluralized document name.</returns>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.ReadOnlyMongoRepository">
|
||||
<summary>
|
||||
@@ -1725,6 +1870,43 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMaxAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMax``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMinAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMin``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByIdAsync``2(``1,System.String)">
|
||||
<summary>
|
||||
Asynchronously returns one document given its id.
|
||||
@@ -1824,21 +2006,159 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMaxAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMax``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMinAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMin``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinMongoQuery``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxMongoQuery``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetCollection``1(System.String)">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument with the matching partition key.
|
||||
Gets a collections for the type TDocument with the matching partition key (if any).
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="partitionKey">The partion key.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
<returns>An <see cref="T:MongoDB.Driver.IMongoCollection`1"/></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetCollection``1">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.HandlePartitioned``1(``0)">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument
|
||||
@@ -1882,6 +2202,14 @@
|
||||
<param name="partitionKey">The collection partition key.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.ConvertExpression``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})">
|
||||
<summary>
|
||||
Converts a LINQ expression of TDocument, TValue to a LINQ expression of TDocument, object
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value.</typeparam>
|
||||
<param name="expression">The expression to convert</param>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.Utils.IdGenerator">
|
||||
<summary>
|
||||
The IdGenerator instance, used to generate Ids of different types.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETStandard,Version=v2.0/",
|
||||
"signature": "c7b8ca9e84d3f282de57dfcebff465cb47d24ac8"
|
||||
"signature": "af81df2668beb4b8f166ddd0c4c0f1882e8ec745"
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
@@ -9,8 +9,8 @@
|
||||
".NETStandard,Version=v2.0/": {
|
||||
"MongoDbGenericRepository/1.0.0": {
|
||||
"dependencies": {
|
||||
"MongoDB.Driver": "2.5.0",
|
||||
"NETStandard.Library": "2.0.1"
|
||||
"MongoDB.Driver": "2.7.0",
|
||||
"NETStandard.Library": "2.0.3"
|
||||
},
|
||||
"runtime": {
|
||||
"MongoDbGenericRepository.dll": {}
|
||||
@@ -19,7 +19,7 @@
|
||||
"DnsClient/1.0.7": {
|
||||
"dependencies": {
|
||||
"Microsoft.Win32.Primitives": "4.3.0",
|
||||
"NETStandard.Library": "2.0.1",
|
||||
"NETStandard.Library": "2.0.3",
|
||||
"System.Buffers": "4.3.0",
|
||||
"System.Collections": "4.3.0",
|
||||
"System.Collections.Concurrent": "4.3.0",
|
||||
@@ -60,9 +60,9 @@
|
||||
"System.Runtime.InteropServices": "4.3.0"
|
||||
}
|
||||
},
|
||||
"MongoDB.Bson/2.5.0": {
|
||||
"MongoDB.Bson/2.7.0": {
|
||||
"dependencies": {
|
||||
"NETStandard.Library": "2.0.1",
|
||||
"NETStandard.Library": "2.0.3",
|
||||
"System.Collections.NonGeneric": "4.0.1",
|
||||
"System.Diagnostics.Process": "4.1.0",
|
||||
"System.Dynamic.Runtime": "4.0.11",
|
||||
@@ -72,11 +72,11 @@
|
||||
"lib/netstandard1.5/MongoDB.Bson.dll": {}
|
||||
}
|
||||
},
|
||||
"MongoDB.Driver/2.5.0": {
|
||||
"MongoDB.Driver/2.7.0": {
|
||||
"dependencies": {
|
||||
"MongoDB.Bson": "2.5.0",
|
||||
"MongoDB.Driver.Core": "2.5.0",
|
||||
"NETStandard.Library": "2.0.1",
|
||||
"MongoDB.Bson": "2.7.0",
|
||||
"MongoDB.Driver.Core": "2.7.0",
|
||||
"NETStandard.Library": "2.0.3",
|
||||
"System.ComponentModel.TypeConverter": "4.1.0",
|
||||
"System.Linq.Queryable": "4.0.1"
|
||||
},
|
||||
@@ -84,11 +84,11 @@
|
||||
"lib/netstandard1.5/MongoDB.Driver.dll": {}
|
||||
}
|
||||
},
|
||||
"MongoDB.Driver.Core/2.5.0": {
|
||||
"MongoDB.Driver.Core/2.7.0": {
|
||||
"dependencies": {
|
||||
"DnsClient": "1.0.7",
|
||||
"MongoDB.Bson": "2.5.0",
|
||||
"NETStandard.Library": "2.0.1",
|
||||
"MongoDB.Bson": "2.7.0",
|
||||
"NETStandard.Library": "2.0.3",
|
||||
"System.Collections.Specialized": "4.0.1",
|
||||
"System.Diagnostics.TraceSource": "4.0.0",
|
||||
"System.Net.NameResolution": "4.3.0",
|
||||
@@ -99,7 +99,7 @@
|
||||
"lib/netstandard1.5/MongoDB.Driver.Core.dll": {}
|
||||
}
|
||||
},
|
||||
"NETStandard.Library/2.0.1": {
|
||||
"NETStandard.Library/2.0.3": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0"
|
||||
}
|
||||
@@ -926,33 +926,33 @@
|
||||
"path": "microsoft.win32.registry/4.0.0",
|
||||
"hashPath": "microsoft.win32.registry.4.0.0.nupkg.sha512"
|
||||
},
|
||||
"MongoDB.Bson/2.5.0": {
|
||||
"MongoDB.Bson/2.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-b7zQAUdSdfJ4kmGzAA+hv89N2Q6jm1td9WfTimgp8xWAsN4qbtIjA/JkAY1HA0Z8xfXQE3EmdUcDEwT8bkXfXg==",
|
||||
"path": "mongodb.bson/2.5.0",
|
||||
"hashPath": "mongodb.bson.2.5.0.nupkg.sha512"
|
||||
"sha512": "sha512-vzpTDHYX/X6gF9qtDuKRJiLkqpj5OZuT1bIzJCiBiU8CwJ37becYmaXuy/QSuWnYN6j6ZdVTWILKbWt2MXL8DA==",
|
||||
"path": "mongodb.bson/2.7.0",
|
||||
"hashPath": "mongodb.bson.2.7.0.nupkg.sha512"
|
||||
},
|
||||
"MongoDB.Driver/2.5.0": {
|
||||
"MongoDB.Driver/2.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-VbHVV8Xdl3PcPU3XxdOUE/yc4BnPokg7k1XHU/3fEM/UdfCy0Ie0eXVE+U2HJXVcM3TQuuyVn+B1La2YY7X8dA==",
|
||||
"path": "mongodb.driver/2.5.0",
|
||||
"hashPath": "mongodb.driver.2.5.0.nupkg.sha512"
|
||||
"sha512": "sha512-5wP5BBwm5YO6h2Vhw6zQmOwSW9WP2d6kgRM6E7uIbwIJz4+j2trS2Wo7/+IYow5WVN8Jd6O27bIB/4gKNepO1Q==",
|
||||
"path": "mongodb.driver/2.7.0",
|
||||
"hashPath": "mongodb.driver.2.7.0.nupkg.sha512"
|
||||
},
|
||||
"MongoDB.Driver.Core/2.5.0": {
|
||||
"MongoDB.Driver.Core/2.7.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-/JYwBTEoWZDHiSePk0AF775c0YkSGSsHTA2+hWt9/UOCkYV/QOFujAWDdpFzBMCDpmQewbLRR1knYj76YOxffA==",
|
||||
"path": "mongodb.driver.core/2.5.0",
|
||||
"hashPath": "mongodb.driver.core.2.5.0.nupkg.sha512"
|
||||
"sha512": "sha512-SepB4KT+zXA3iFaIFwXVKmk6BZIp0EGE/iWqNbDZ1mca9e8EhtqYPwOOzFmEbdKAzmVvF1y86kNI4agWP6I5sg==",
|
||||
"path": "mongodb.driver.core/2.7.0",
|
||||
"hashPath": "mongodb.driver.core.2.7.0.nupkg.sha512"
|
||||
},
|
||||
"NETStandard.Library/2.0.1": {
|
||||
"NETStandard.Library/2.0.3": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-oA6nwv9MhEKYvLpjZ0ggSpb1g4CQViDVQjLUcDWg598jtvJbpfeP2reqwI1GLW2TbxC/Ml7xL6BBR1HmKPXlTg==",
|
||||
"path": "netstandard.library/2.0.1",
|
||||
"hashPath": "netstandard.library.2.0.1.nupkg.sha512"
|
||||
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
|
||||
"path": "netstandard.library/2.0.3",
|
||||
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
|
||||
},
|
||||
"runtime.native.System/4.3.0": {
|
||||
"type": "package",
|
||||
|
||||
Binary file not shown.
@@ -591,20 +591,6 @@
|
||||
<typeparam name="TDocument"></typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.GetCollection``2(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.DropCollection``1">
|
||||
<summary>
|
||||
Drops a collection, use very carefully.
|
||||
</summary>
|
||||
<typeparam name="TDocument"></typeparam>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IMongoDbContext.DropCollection``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection having a partitionkey, use very carefully.
|
||||
@@ -819,6 +805,165 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMaxAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByDescending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMax``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByDescending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMinAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMin``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMaxAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMax``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMinAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetByMin``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMaxValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.IReadOnlyMongoRepository.GetMinValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.Attributes.CollectionNameAttribute">
|
||||
<summary>
|
||||
This attribute allows you to specify of the name of the collection.
|
||||
@@ -1544,6 +1689,12 @@
|
||||
</summary>
|
||||
<param name="guidRepresentation">The new value of the GuidRepresentation</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.InitializeGuidRepresentation">
|
||||
<summary>
|
||||
Initialize the Guid representation of the MongoDb Driver.
|
||||
Override this method to change the default GuidRepresentation.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.#ctor(MongoDB.Driver.IMongoDatabase)">
|
||||
<summary>
|
||||
The constructor of the MongoDbContext, it needs a an object implementing <see cref="T:MongoDB.Driver.IMongoDatabase"/>.
|
||||
@@ -1566,37 +1717,31 @@
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollection``1(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
Returns a collection for a document type. Also handles document types with a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
<param name="partitionKey">The optional value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollection``2(System.String)">
|
||||
<summary>
|
||||
Returns a collection for a document type that has a partition key.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1">
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection, use very carefully.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.DropCollection``1(System.String)">
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.GetCollectionName``1(System.String)">
|
||||
<summary>
|
||||
Drops a collection having a partitionkey, use very carefully.
|
||||
Given the docmuent type and the partition key, returns the name of the collection it belongs to.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<param name="partitionKey">The value of the partition key.</param>
|
||||
<returns>The name of the collection.</returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.MongoDbContext.Pluralize``1">
|
||||
<summary>
|
||||
Very naively pluralizes a TDocument type name.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
<returns></returns>
|
||||
<returns>The pluralized document name.</returns>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.ReadOnlyMongoRepository">
|
||||
<summary>
|
||||
@@ -1725,6 +1870,43 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMaxAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMax``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMinAsync``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMin``1(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByIdAsync``2(``1,System.String)">
|
||||
<summary>
|
||||
Asynchronously returns one document given its id.
|
||||
@@ -1824,21 +2006,159 @@
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="partitionKey">An optional partitionKey</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMaxAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMax``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMinAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetByMin``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,System.Object}},System.String)">
|
||||
<summary>
|
||||
Gets the document with the minimum value of a specified property in a MongoDB collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinMongoQuery``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxMongoQuery``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by descending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="orderByAscending">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMaxValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the maximum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="maxValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partitionKey.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValueAsync``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValueAsync``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValue``2(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetMinValue``3(System.Linq.Expressions.Expression{System.Func{``0,System.Boolean}},System.Linq.Expressions.Expression{System.Func{``0,``2}},System.String)">
|
||||
<summary>
|
||||
Gets the minimum value of a property in a mongodb collections that is satisfying the filter.
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TKey">The type of the primary key.</typeparam>
|
||||
<typeparam name="TValue">The type of the value used to order the query.</typeparam>
|
||||
<param name="filter">A LINQ expression filter.</param>
|
||||
<param name="minValueSelector">A property selector to order by ascending.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetCollection``1(System.String)">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument with the matching partition key.
|
||||
Gets a collections for the type TDocument with the matching partition key (if any).
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<param name="partitionKey">The partion key.</param>
|
||||
<param name="partitionKey">An optional partition key.</param>
|
||||
<returns>An <see cref="T:MongoDB.Driver.IMongoCollection`1"/></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.GetCollection``1">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.HandlePartitioned``1(``0)">
|
||||
<summary>
|
||||
Gets a collections for the type TDocument
|
||||
@@ -1882,6 +2202,14 @@
|
||||
<param name="partitionKey">The collection partition key.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:MongoDbGenericRepository.ReadOnlyMongoRepository.ConvertExpression``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})">
|
||||
<summary>
|
||||
Converts a LINQ expression of TDocument, TValue to a LINQ expression of TDocument, object
|
||||
</summary>
|
||||
<typeparam name="TDocument">The document type.</typeparam>
|
||||
<typeparam name="TValue">The type of the value.</typeparam>
|
||||
<param name="expression">The expression to convert</param>
|
||||
</member>
|
||||
<member name="T:MongoDbGenericRepository.Utils.IdGenerator">
|
||||
<summary>
|
||||
The IdGenerator instance, used to generate Ids of different types.
|
||||
|
||||
Reference in New Issue
Block a user