MongoDB.Repository.Crud
2.7.6
dotnet add package MongoDB.Repository.Crud --version 2.7.6
NuGet\Install-Package MongoDB.Repository.Crud -Version 2.7.6
<PackageReference Include="MongoDB.Repository.Crud" Version="2.7.6" />
paket add MongoDB.Repository.Crud --version 2.7.6
#r "nuget: MongoDB.Repository.Crud, 2.7.6"
// Install MongoDB.Repository.Crud as a Cake Addin
#addin nuget:?package=MongoDB.Repository.Crud&version=2.7.6
// Install MongoDB.Repository.Crud as a Cake Tool
#tool nuget:?package=MongoDB.Repository.Crud&version=2.7.6
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
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 |
---|
guid as string for just db beacuse LUUID is not easy.