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"
#:package 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 | 913 | 6/2/2023 |
| 7.219.20 | 730 | 6/2/2023 |
| 6.219.20 | 738 | 5/31/2023 |
| 6.0.7 | 1,134 | 8/11/2021 |
| 6.0.1 | 1,359 | 7/29/2021 |
| 6.0.0 | 1,080 | 7/28/2021 |
| 3.1.3 | 2,794 | 7/8/2021 |
| 3.1.2 | 2,218 | 11/9/2020 |
| 3.1.1 | 1,261 | 11/6/2020 |
| 3.1.0 | 1,545 | 9/9/2020 |
| 3.0.9 | 1,428 | 9/7/2020 |
| 3.0.8 | 1,607 | 9/2/2020 |
| 3.0.7 | 1,395 | 9/1/2020 |
| 3.0.6 | 1,322 | 8/31/2020 |
| 3.0.5 | 1,592 | 8/23/2020 |
| 3.0.4 | 1,387 | 8/10/2020 |
| 3.0.3 | 1,685 | 7/19/2020 |
| 3.0.2 | 1,793 | 7/6/2020 |
| 2.10.5 | 1,372 | 6/27/2020 |
| 2.10.4 | 1,462 | 5/31/2020 |
| 2.0.0 | 1,235 | 5/29/2020 |
| 1.3.5 | 1,374 | 4/29/2020 |
| 1.3.2 | 1,203 | 4/29/2020 |
| 1.3.1 | 1,293 | 4/29/2020 |
| 1.3.0 | 1,243 | 4/24/2020 |
| 1.2.23 | 1,186 | 4/16/2020 |
| 1.2.22 | 1,235 | 4/9/2020 |
| 1.2.20 | 1,449 | 3/22/2020 |
| 1.2.15 | 1,351 | 3/5/2020 |
| 1.0.12 | 1,552 | 8/1/2019 |
update reference of MongoDB.Diver to 2.19.2