EasilyNET.MongoSerializer.AspNetCore 3.24.508.112

dotnet add package EasilyNET.MongoSerializer.AspNetCore --version 3.24.508.112
NuGet\Install-Package EasilyNET.MongoSerializer.AspNetCore -Version 3.24.508.112
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EasilyNET.MongoSerializer.AspNetCore" Version="3.24.508.112" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EasilyNET.MongoSerializer.AspNetCore --version 3.24.508.112
#r "nuget: EasilyNET.MongoSerializer.AspNetCore, 3.24.508.112"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EasilyNET.MongoSerializer.AspNetCore as a Cake Addin
#addin nuget:?package=EasilyNET.MongoSerializer.AspNetCore&version=3.24.508.112

// Install EasilyNET.MongoSerializer.AspNetCore as a Cake Tool
#tool nuget:?package=EasilyNET.MongoSerializer.AspNetCore&version=3.24.508.112
EasilyNET.MongoSerializer.AspNetCore

EasilyNET.Mongo.AspNetCore 扩展,用于支持一些非默认类型的序列化方案.就算是没有使用 EasilyNET.Mongo.AspNetCore 也能使用这个库进行如下内容的扩展.

ChangeLogs
  • 支持自定义 TimeOnly 和 DateOnly 的格式化格式.
    1. 支持转换成字符串格式
    2. 转换成 Ticks 的方式存储
    3. 若想转化成其他类型也可自行实现,如:转化成 ulong 类型
  • 添加动态类型支持[object 和 dynamic], 2.20 版后官方又加上了.
  • 添加.Net6 Date/Time Only 类型支持(TimeOnly 理论上应该是兼容原 TimeSpan 数据类型).

  • 配合 EasilyNET.Mongo.AspNetCore 或单独使用
builder.Services.AddMongoContext<DbContext>(builder.Configuration)
// 添加自定义序列化
builder.Services.RegisterSerializer(new DateOnlySerializerAsString());
builder.Services.RegisterSerializer(new TimeOnlySerializerAsString());
// 或者将他们存储为long类型的Ticks,也可以自己组合使用.
builder.Services.RegisterSerializer(new DateOnlySerializerAsTicks());
builder.Services.RegisterSerializer(new TimeOnlySerializerAsTicks());
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.24.508.112 37 5/8/2024
2.2024.428.71 40 4/28/2024
2.2024.427.1128 46 4/27/2024
2.2.72 114 4/14/2024
2.2.71 46 4/12/2024
2.2.8 35 4/26/2024
2.2.6 44 4/10/2024
2.2.5 53 3/26/2024
2.2.4 60 3/25/2024
2.2.3 50 3/24/2024
2.2.2 55 3/21/2024
2.2.1 56 3/20/2024
2.2.0 59 3/13/2024
2.1.9 61 2/21/2024
2.1.8 52 2/18/2024
2.1.7 59 2/16/2024
2.1.6 71 2/14/2024
2.1.5 51 2/14/2024
2.1.4 109 2/9/2024
2.1.3 79 2/8/2024
2.1.2 94 2/5/2024
2.1.1.2 179 12/26/2023
2.1.1.1 99 12/26/2023
2.1.1 122 12/25/2023
2.1.0 115 12/17/2023
2.0.11 155 12/6/2023
2.0.1 175 11/15/2023
2.0.0 114 11/14/2023
1.9.1 98 11/1/2023
1.9.0 90 10/19/2023
1.9.0-preview2 214 10/12/2023
1.9.0-preview1 64 10/12/2023
1.8.9 124 10/11/2023
1.8.8 111 10/11/2023
1.8.7-rc2 86 9/21/2023
1.8.7-rc1 64 9/12/2023
1.8.6 106 8/31/2023
1.8.5 166 8/25/2023
1.8.4 103 8/24/2023
1.8.3 103 8/23/2023
1.8.2 183 8/22/2023
1.8.1 121 8/18/2023
1.8.0 106 8/15/2023
1.7.9 141 8/11/2023
1.7.8 90 8/11/2023
1.7.7 121 8/10/2023
1.7.6 123 8/9/2023
1.7.5 169 8/9/2023
1.7.4 206 8/3/2023
1.7.3 122 8/1/2023
1.7.2 109 7/31/2023
1.7.1 110 7/27/2023
1.7.0 117 7/25/2023
1.6.9 112 7/25/2023
1.6.8 111 7/24/2023
1.6.7 129 7/20/2023
1.6.6 124 7/19/2023
1.6.5 88 7/19/2023
1.6.4 109 7/17/2023
1.6.3 87 7/17/2023
1.6.2 144 7/12/2023
1.6.1 142 6/30/2023
1.6.0 84 6/30/2023