GH.MongoDb.GenericRepository.BucketExtension
3.0.0
dotnet add package GH.MongoDb.GenericRepository.BucketExtension --version 3.0.0
NuGet\Install-Package GH.MongoDb.GenericRepository.BucketExtension -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GH.MongoDb.GenericRepository.BucketExtension" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GH.MongoDb.GenericRepository.BucketExtension --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GH.MongoDb.GenericRepository.BucketExtension, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GH.MongoDb.GenericRepository.BucketExtension as a Cake Addin #addin nuget:?package=GH.MongoDb.GenericRepository.BucketExtension&version=3.0.0 // Install GH.MongoDb.GenericRepository.BucketExtension as a Cake Tool #tool nuget:?package=GH.MongoDb.GenericRepository.BucketExtension&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Generic MongoDb Repository .Net Core 3.0
Synopsis
Is an repository pattern implementation for mongodb. It contains abstract classes for CRUD operations.
Code Example
You must create classes derived from IDocument and the repositories derived from GenericRepositoryAsync or GenericBucketRepositoryAsync or GenericGeoRepositoryAsync:
public class Person: IDocument<ObjectId>
{
public ObjectId Id {get; set;}
public string FirstName {get; set;}
public string LastName {get; set;}
}
public sealed class PeopleRepositoryAsync:GenericRepositoryAsync<Person, ObjectId>
{
public PeopleRepositoryAsync(IMongoDbConnector connector) : base(connector, "people")
{
}
}
"people" is collection name. then you can use repository:
var myConnector = new MongoDbConnector("localhost", "mydatabase")
var myRepo = new PeopleRepositoryAsync(myConnector)
myRepo.Get() //return all people in my collection
myRepo.Get(myID) //return person with myID as id
myRepo.Get(p=> p.FirstName == "John") //return all people who have name john
and so on..
Installation
by NUGET
Install-Package GH.MongoDb.GenericRepository -Version 2.0.7
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.0
- GH.MongoDb.GenericRepository (>= 3.0.0)
- MongoDB.Driver (>= 2.5.0)
- MongoDB.Driver.GridFS (>= 2.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 1,230 | 12/25/2017 |