EasilyNET.MongoSerializer.AspNetCore 1.9.0-preview2

This is a prerelease version of EasilyNET.MongoSerializer.AspNetCore.
There is a newer version of this package available.
See the version list below for details.
dotnet add package EasilyNET.MongoSerializer.AspNetCore --version 1.9.0-preview2
                    
NuGet\Install-Package EasilyNET.MongoSerializer.AspNetCore -Version 1.9.0-preview2
                    
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="1.9.0-preview2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasilyNET.MongoSerializer.AspNetCore" Version="1.9.0-preview2" />
                    
Directory.Packages.props
<PackageReference Include="EasilyNET.MongoSerializer.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EasilyNET.MongoSerializer.AspNetCore --version 1.9.0-preview2
                    
#r "nuget: EasilyNET.MongoSerializer.AspNetCore, 1.9.0-preview2"
                    
#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.
#addin nuget:?package=EasilyNET.MongoSerializer.AspNetCore&version=1.9.0-preview2&prerelease
                    
Install EasilyNET.MongoSerializer.AspNetCore as a Cake Addin
#tool nuget:?package=EasilyNET.MongoSerializer.AspNetCore&version=1.9.0-preview2&prerelease
                    
Install EasilyNET.MongoSerializer.AspNetCore as a Cake Tool
EasilyNET.MongoSerializer.AspNetCore

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

ChangeLogs
  • 支持自定义 TimeOnly 和 DateOnly 的格式化格式.
    1. 支持转换成字符串格式
    2. 转换成 Ticks 的方式存储
    3. 若想转化成其他类型也可自行实现,如:转化成 ulong 类型
  • 添加动态类型支持[object 和 dynamic]
  • 添加.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());

// 添加动态类型(dynamic|object)支持
builder.Services.RegisterDynamicSerializer();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 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 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. 
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.929.143 226 7 months ago
3.24.929.141 72 7 months ago
3.24.929.131 82 7 months ago
3.24.929.122 77 7 months ago
3.24.926.184 79 7 months ago
3.24.926.182 77 7 months ago
3.24.926.175 77 7 months ago
3.24.924.160 79 7 months ago
3.24.924.133 80 7 months ago
3.24.924.124 69 7 months ago
3.24.924.10 75 7 months ago
3.24.924.1 67 7 months ago
3.24.923.234 69 7 months ago
3.24.923.232 70 7 months ago
3.24.923.155 72 7 months ago
3.24.919.92 79 8 months ago
3.24.914.125 226 8 months ago
3.24.914.115 92 8 months ago
3.24.914.111 75 8 months ago
3.24.911.95 70 8 months ago
3.24.908.215 69 8 months ago
3.24.904.200 222 8 months ago
3.24.828.163 79 8 months ago
3.24.820.173 79 9 months ago
3.24.814.92 86 9 months ago
3.24.812.115 85 9 months ago
3.24.802.100 63 9 months ago
3.24.801.162 70 9 months ago
3.24.801.160 67 9 months ago
3.24.801.155 65 9 months ago
3.24.730.164 62 9 months ago
3.24.730.91 74 9 months ago
3.24.724.91 61 9 months ago
3.24.718.105 83 10 months ago
3.24.716.95 69 10 months ago
3.24.712.94 64 10 months ago
3.24.710.14 70 10 months ago
3.24.709.105 68 10 months ago
3.24.704.94 73 7/4/2024
3.24.701.90 70 7/1/2024
3.24.628.114 78 6/28/2024
3.24.627.145 67 6/27/2024
3.24.620.160 81 6/20/2024
3.24.613.115 66 6/13/2024
3.24.612.95 72 6/12/2024
3.24.528.90 71 5/28/2024
3.24.522.84 76 5/22/2024
3.24.512.213 76 5/12/2024
3.24.508.112 83 5/8/2024
2.2024.428.71 71 4/28/2024
2.2024.427.1128 74 4/27/2024
2.2.72 150 4/14/2024
2.2.71 80 4/12/2024
2.2.8 72 4/26/2024
2.2.6 72 4/10/2024
2.2.5 87 3/26/2024
2.2.4 94 3/25/2024
2.2.3 82 3/24/2024
2.2.2 87 3/21/2024
2.2.1 98 3/20/2024
2.2.0 94 3/13/2024
2.1.9 101 2/21/2024
2.1.8 90 2/18/2024
2.1.7 96 2/16/2024
2.1.6 110 2/14/2024
2.1.5 86 2/14/2024
2.1.4 162 2/9/2024
2.1.3 119 2/8/2024
2.1.2 135 2/5/2024
2.1.1.2 218 12/26/2023
2.1.1.1 140 12/26/2023
2.1.1 159 12/25/2023
2.1.0 146 12/17/2023
2.0.11 192 12/6/2023
2.0.1 218 11/15/2023
2.0.0 160 11/14/2023
1.9.1 128 11/1/2023
1.9.0 121 10/19/2023
1.9.0-preview2 302 10/12/2023
1.9.0-preview1 82 10/12/2023
1.8.9 148 10/11/2023
1.8.8 132 10/11/2023
1.8.7-rc2 113 9/21/2023
1.8.7-rc1 89 9/12/2023
1.8.6 136 8/31/2023
1.8.5 809 8/25/2023
1.8.4 122 8/24/2023
1.8.3 123 8/23/2023
1.8.2 208 8/22/2023
1.8.1 142 8/18/2023
1.8.0 126 8/15/2023
1.7.9 170 8/11/2023
1.7.8 110 8/11/2023
1.7.7 147 8/10/2023
1.7.6 143 8/9/2023
1.7.5 195 8/9/2023
1.7.4 225 8/3/2023
1.7.3 143 8/1/2023
1.7.2 139 7/31/2023
1.7.1 139 7/27/2023
1.7.0 145 7/25/2023
1.6.9 140 7/25/2023
1.6.8 139 7/24/2023
1.6.7 151 7/20/2023
1.6.6 153 7/19/2023
1.6.5 117 7/19/2023
1.6.4 139 7/17/2023
1.6.3 108 7/17/2023
1.6.2 168 7/12/2023
1.6.1 172 6/30/2023
1.6.0 105 6/30/2023