MongoDB.Repository.Crud 2.7.4

This package contains CRUD functions that are ready for use for MongoDB. Implement IMongoConnection interface for connection. Please do not forget to get inheritance from EntityBase class for models.
step by step:
# step 1: please add connection class # public class MyMongoConnection : IMongoConnection /// # step 2: please add entity model ##public class ExampleEntity : EntityBase { public string ExampleField { get; set;} public static MongoDbRepository<ExampleEntity > DBContext = new MongoDbRepository<ExampleEntity >(); } /// # step 3: Please call any crud method # ExampleEntity.DBContext.Insert(new ExampleEntity(){  });

with database and collection context

There is a newer version of this package available.
See the version list below for details.
Install-Package MongoDB.Repository.Crud -Version 2.7.4
dotnet add package MongoDB.Repository.Crud --version 2.7.4
<PackageReference Include="MongoDB.Repository.Crud" Version="2.7.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MongoDB.Repository.Crud --version 2.7.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Add CollectionContext for special scenario

Add CollectionContext for special scenario


This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.7.6 2,509 2/6/2019
2.7.5 135 2/6/2019
2.7.4 260 1/30/2019
2.6.3 891 9/5/2018
2.6.2 383 6/6/2018
2.6.1 354 5/15/2018