BL.MongoDB
7.219.21
dotnet add package BL.MongoDB --version 7.219.21
NuGet\Install-Package BL.MongoDB -Version 7.219.21
<PackageReference Include="BL.MongoDB" Version="7.219.21" />
paket add BL.MongoDB --version 7.219.21
#r "nuget: BL.MongoDB, 7.219.21"
// Install BL.MongoDB as a Cake Addin
#addin nuget:?package=BL.MongoDB&version=7.219.21
// Install BL.MongoDB as a Cake Tool
#tool nuget:?package=BL.MongoDB&version=7.219.21
A sample useful MongoDB Driver Helper.Only rely MongoDB.Driver.Include function below:
1.BaseDbContext.cs:you can create your DbContext inherit BaseDbContext
package some useful mongodb-to-C# mapping,like ObjectId<=>string,UTC<=>LocalTime,Enum<=>string,property name to camel field..etc
2.can get ConnetionString from env "CONNECTIONSTRINGS_MONGO" in docker container or "ConnectionStrings.Mongo" in appsettings.json:
3.BsonDocumentExtends.cs:
extend method to BsonValue,for example: var bs={info:{gender:{k:'01',v:'Man'}}} . we can get "Man" through bs.GetValueByHierarchicalNames("info.gender.v")
4.you can simply using BL.MongoDB.Gen's AddBLMongoDbContext method in ConfigureServices(startup.cs) to create your DbContext
5.example.api have some simple code for refering
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 is compatible. 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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- MongoDB.Driver (>= 2.19.2)
-
net7.0
- MongoDB.Driver (>= 2.19.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BL.MongoDB:
Package | Downloads |
---|---|
BL.MongoDB.Gen
BL.MongoDB DbContext setting,use [CONNECTIONSTRINGS_MONGO] in environment variable or [ConnectionStrings.Mongo] in appsettings.json to create DbContext,prefer using [CONNECTIONSTRINGS_MONGO] in env |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
7.219.21 | 612 | 6/2/2023 |
7.219.20 | 563 | 6/2/2023 |
6.219.20 | 546 | 5/31/2023 |
6.0.7 | 923 | 8/11/2021 |
6.0.1 | 1,126 | 7/29/2021 |
6.0.0 | 856 | 7/28/2021 |
3.1.3 | 2,109 | 7/8/2021 |
3.1.2 | 1,912 | 11/9/2020 |
3.1.1 | 991 | 11/6/2020 |
3.1.0 | 1,257 | 9/9/2020 |
3.0.9 | 1,104 | 9/7/2020 |
3.0.8 | 1,289 | 9/2/2020 |
3.0.7 | 1,123 | 9/1/2020 |
3.0.6 | 1,078 | 8/31/2020 |
3.0.5 | 1,337 | 8/23/2020 |
3.0.4 | 1,139 | 8/10/2020 |
3.0.3 | 1,412 | 7/19/2020 |
3.0.2 | 1,456 | 7/6/2020 |
2.10.5 | 1,046 | 6/27/2020 |
2.10.4 | 1,172 | 5/31/2020 |
2.0.0 | 992 | 5/29/2020 |
1.3.5 | 991 | 4/29/2020 |
1.3.2 | 954 | 4/29/2020 |
1.3.1 | 1,002 | 4/29/2020 |
1.3.0 | 997 | 4/24/2020 |
1.2.23 | 955 | 4/16/2020 |
1.2.22 | 987 | 4/9/2020 |
1.2.20 | 1,049 | 3/22/2020 |
1.2.15 | 969 | 3/5/2020 |
1.0.12 | 1,123 | 8/1/2019 |
update reference of MongoDB.Diver to 2.19.2