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" />
<PackageVersion Include="BL.MongoDB" Version="7.219.21" />
<PackageReference Include="BL.MongoDB" />
paket add BL.MongoDB --version 7.219.21
#r "nuget: BL.MongoDB, 7.219.21"
#addin nuget:?package=BL.MongoDB&version=7.219.21
#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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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 | 745 | 6/2/2023 |
7.219.20 | 612 | 6/2/2023 |
6.219.20 | 605 | 5/31/2023 |
6.0.7 | 991 | 8/11/2021 |
6.0.1 | 1,198 | 7/29/2021 |
6.0.0 | 921 | 7/28/2021 |
3.1.3 | 2,462 | 7/8/2021 |
3.1.2 | 2,027 | 11/9/2020 |
3.1.1 | 1,073 | 11/6/2020 |
3.1.0 | 1,345 | 9/9/2020 |
3.0.9 | 1,179 | 9/7/2020 |
3.0.8 | 1,386 | 9/2/2020 |
3.0.7 | 1,216 | 9/1/2020 |
3.0.6 | 1,158 | 8/31/2020 |
3.0.5 | 1,417 | 8/23/2020 |
3.0.4 | 1,217 | 8/10/2020 |
3.0.3 | 1,510 | 7/19/2020 |
3.0.2 | 1,583 | 7/6/2020 |
2.10.5 | 1,130 | 6/27/2020 |
2.10.4 | 1,249 | 5/31/2020 |
2.0.0 | 1,063 | 5/29/2020 |
1.3.5 | 1,061 | 4/29/2020 |
1.3.2 | 1,033 | 4/29/2020 |
1.3.1 | 1,090 | 4/29/2020 |
1.3.0 | 1,078 | 4/24/2020 |
1.2.23 | 1,032 | 4/16/2020 |
1.2.22 | 1,064 | 4/9/2020 |
1.2.20 | 1,124 | 3/22/2020 |
1.2.15 | 1,033 | 3/5/2020 |
1.0.12 | 1,220 | 8/1/2019 |
update reference of MongoDB.Diver to 2.19.2