EasilyNET.Core
1.9.0-preview2
See the version list below for details.
dotnet add package EasilyNET.Core --version 1.9.0-preview2
NuGet\Install-Package EasilyNET.Core -Version 1.9.0-preview2
<PackageReference Include="EasilyNET.Core" Version="1.9.0-preview2" />
paket add EasilyNET.Core --version 1.9.0-preview2
#r "nuget: EasilyNET.Core, 1.9.0-preview2"
// Install EasilyNET.Core as a Cake Addin #addin nuget:?package=EasilyNET.Core&version=1.9.0-preview2&prerelease // Install EasilyNET.Core as a Cake Tool #tool nuget:?package=EasilyNET.Core&version=1.9.0-preview2&prerelease
EasilyNET.Core
业务类型库,用于一些业务方面的类,如分页,以及业务中常用的一些数据类型和枚举类型
以及大量的静态扩展函数
枚举类型:
名称 | 用途 |
---|---|
EGender | 性别 |
ENation | 中国民族 |
ETimeOverlap | 时间重合情况 |
- 业务常用数据类型.
名称 | 用途 |
---|---|
IdNameItem | 包含 ID 和 Name 字段的基础类 |
OperationInfo | 操作信息,包含操作人以及时间和是否完成 |
Operator | 操作人,包含 rid 和名称字段 |
ReferenceItem | 通常用来保存关联的业务信息,如 ID 和名称或者其他相关数据 |
- 其他的还有分页信息等.
ChangeLog:
- 添加异步锁
- 新增雪花 ID 算法.以及一些扩展方法.
- 新增 Ini 文件帮助类.
- 一些基础库,如数据类型,一些公共静态方法,工具函数.包含数组,日期,字符串,中国农历,拼音,身份证验证等功能
- 将 EasilyNET.Extensions 库合并到 Core 中.
- 新增百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和 WGS84 坐标系之间的转换
当前互联网地图的坐标系现状
地球坐标(WGS84)
- 国际标准,从 GPS 设备中取出的数据的坐标系
- 国际地图提供商使用的坐标系
火星坐标(GCJ-02)也叫国测局坐标系
- 中国标准,从国行移动设备中定位获取的坐标数据使用这个坐标系
- 国家规定: 国内出版的各种地图系统(包括电子形式),必须至少采用 GCJ-02 对地理位置进行首次加密.
百度坐标(BD-09)
- 百度标准,百度 SDK,百度地图,GeoCoding 使用 -(本来就乱了,百度又在火星坐标上来个二次加密)
开发过程需要注意的事
从设备获取经纬度(GPS)坐标
如果使用的是百度 sdk 那么可以获得百度坐标(bd09)或者火星坐标(GCJ02),默认是 bd09 如果使用的是 ios 的原生定位库,那么获得的坐标是 WGS84 如果使用的是高德 sdk,那么获取的坐标是 GCJ02
互联网在线地图使用的坐标系
火星坐标系:
iOS 地图(其实是高德) Google 国内地图(.cn 域名下) 搜搜、阿里云、高德地图、腾讯百度坐标系: 当然只有百度地图 WGS84 坐标系: 国际标准,谷歌国外地图、osm 地图等国外的地图一般都是这个
// 测试经纬度问题
CoordinateConvert.BD09ToGCJ02(116.404, 39.915, out var gcjLon, out var gcjLat);
CoordinateConvert.GCJ02ToBD09(116.404, 39.915, out var bdLon, out var bdLat);
CoordinateConvert.WGS84ToGCJ02(116.404, 39.915, out var gcjLon2, out var gcjLat2);
CoordinateConvert.GCJ02ToWGS84(116.404, 39.915, out var wgsLon, out var wgsLat);
Console.WriteLine($"百度经纬度坐标转国测局坐标,经度:{gcjLon},纬度:{gcjLat}");
Console.WriteLine($"国测局坐标转百度经纬度坐标,经度:{bdLon},纬度:{bdLat}");
Console.WriteLine($"WGS84转国测局坐标,经度:{gcjLon2},纬度:{gcjLat2}");
Console.WriteLine($"国测局坐标转WGS84坐标,经度:{wgsLon},纬度:{wgsLat}");
// 百度经纬度坐标转国测局坐标,经度:116.39762729119315,纬度:39.90865673957631
// 国测局坐标转百度经纬度坐标,经度:116.41036949371029,纬度:39.92133699351021
// WGS84转国测局坐标,经度:116.41024449916938,纬度:39.91601738120746
// 国测局坐标转WGS84坐标,经度:116.39775550083061,纬度:39.91398261879254
身份证校验以及通过身份证号码获取生日,年龄,以及性别
var check = "52305199405088125".CheckIDCard(); // true or false
var birthday = "52305199405088125".CalculateBirthday(); // DateOnly
var gender = "52305199405088125".CalculateGender(); // EGender
var age = "52305199405088125".CalculateAge(); // Int32
Product | Versions 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. |
-
net6.0
- Microsoft.Extensions.DependencyModel (>= 6.0.0)
-
net7.0
- Microsoft.Extensions.DependencyModel (>= 7.0.0)
-
net8.0
- Microsoft.Extensions.DependencyModel (>= 8.0.0-rc.2.23479.6)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on EasilyNET.Core:
Package | Downloads |
---|---|
EasilyNET.RabbitBus.Core
抽离一些EasilyNET.RabbitBus到Core库,便于消息事件实体复用. |
|
EasilyNET.WebCore
包含Swagger的一些扩展的WebCore扩展 |
|
EasilyNET.AutoDependencyInjection
服务模块化注入.让服务注入拥有清晰的逻辑和结构 |
|
EasilyNET.WebCore.Swagger
一些Swagger的一些配置.如分组,隐藏接口,Authorize的接口添加🔒,默认值 |
|
EasilyNET.Mongo.AspNetCore
MongoDB 驱动的服务包,默认驼峰,ID和Id映射,时间本地化和枚举字符串的自动处理. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.25.108.182 | 7 | 1/8/2025 |
4.25.108.160 | 21 | 1/8/2025 |
4.25.1.1 | 135 | 1/1/2025 |
3.24.1224.141 | 126 | 12/24/2024 |
3.24.1216.116 | 133 | 12/16/2024 |
3.24.1206.100 | 137 | 12/6/2024 |
3.24.1205.171 | 129 | 12/5/2024 |
3.24.1202.150 | 133 | 12/2/2024 |
3.24.1126.231 | 120 | 11/26/2024 |
3.24.1126.172 | 115 | 11/26/2024 |
3.24.1126.114 | 128 | 11/26/2024 |
3.24.1126.104 | 112 | 11/26/2024 |
3.24.1125.181 | 102 | 11/25/2024 |
3.24.1125.104 | 124 | 11/25/2024 |
3.24.1121.183 | 125 | 11/21/2024 |
3.24.1120.183 | 127 | 11/20/2024 |
3.24.1119.31 | 126 | 11/18/2024 |
3.24.1115.143 | 116 | 11/15/2024 |
3.24.1113.100 | 131 | 11/13/2024 |
3.24.1112.125 | 185 | 11/12/2024 |
3.24.1107.140 | 98 | 11/7/2024 |
3.24.1107.54 | 93 | 11/7/2024 |
3.24.1107.34 | 98 | 11/7/2024 |
3.24.1105.111 | 97 | 11/5/2024 |
3.24.1103.31 | 101 | 11/2/2024 |
3.24.1103 | 108 | 11/2/2024 |
3.24.1031.135 | 97 | 10/31/2024 |
3.24.1031.112 | 91 | 10/31/2024 |
3.24.1031.104 | 98 | 10/31/2024 |
3.24.1029.142 | 101 | 10/29/2024 |
3.24.1025.30 | 195 | 10/24/2024 |
3.24.1022.142 | 89 | 10/22/2024 |
3.24.1018.204 | 143 | 10/18/2024 |
3.24.1018.175 | 138 | 10/18/2024 |
3.24.1018.166 | 139 | 10/18/2024 |
3.24.1018.93 | 146 | 10/18/2024 |
3.24.1017.42 | 107 | 10/16/2024 |
3.24.1016.161 | 110 | 10/16/2024 |
3.24.1015.231 | 97 | 10/15/2024 |
3.24.1015.14 | 96 | 10/14/2024 |
3.24.1012.114 | 93 | 10/12/2024 |
3.24.1009.115 | 108 | 10/9/2024 |
3.24.1008.160 | 99 | 10/8/2024 |
3.24.1008.133 | 98 | 10/8/2024 |
3.24.1007.185 | 99 | 10/7/2024 |
3.24.1003.33 | 106 | 10/2/2024 |
3.24.1002.162 | 105 | 10/2/2024 |
3.24.929.143 | 237 | 9/29/2024 |
3.24.929.141 | 103 | 9/29/2024 |
3.24.929.131 | 98 | 9/29/2024 |
3.24.929.122 | 107 | 9/29/2024 |
3.24.926.184 | 98 | 9/26/2024 |
3.24.926.182 | 92 | 9/26/2024 |
3.24.926.175 | 95 | 9/26/2024 |
3.24.924.160 | 99 | 9/24/2024 |
3.24.924.133 | 106 | 9/24/2024 |
3.24.924.124 | 89 | 9/24/2024 |
3.24.924.10 | 94 | 9/23/2024 |
3.24.924.1 | 88 | 9/23/2024 |
3.24.923.234 | 94 | 9/23/2024 |
3.24.923.232 | 84 | 9/23/2024 |
3.24.923.155 | 100 | 9/23/2024 |
3.24.919.92 | 108 | 9/19/2024 |
3.24.914.125 | 276 | 9/14/2024 |
3.24.914.115 | 102 | 9/14/2024 |
3.24.914.111 | 100 | 9/14/2024 |
3.24.911.95 | 159 | 9/11/2024 |
3.24.908.215 | 106 | 9/8/2024 |
3.24.904.200 | 109 | 9/4/2024 |
3.24.828.163 | 132 | 8/28/2024 |
3.24.820.173 | 120 | 8/20/2024 |
3.24.814.92 | 123 | 8/14/2024 |
3.24.812.115 | 123 | 8/12/2024 |
3.24.802.100 | 98 | 8/2/2024 |
3.24.801.162 | 94 | 8/1/2024 |
3.24.801.160 | 90 | 8/1/2024 |
3.24.801.155 | 75 | 8/1/2024 |
3.24.801.153 | 67 | 8/1/2024 |
3.24.730.164 | 86 | 7/30/2024 |
3.24.730.91 | 82 | 7/30/2024 |
3.24.724.91 | 92 | 7/24/2024 |
3.24.718.105 | 103 | 7/18/2024 |
3.24.716.95 | 99 | 7/16/2024 |
3.24.712.94 | 107 | 7/12/2024 |
3.24.710.14 | 106 | 7/9/2024 |
3.24.709.105 | 112 | 7/9/2024 |
3.24.704.94 | 103 | 7/4/2024 |
3.24.701.90 | 108 | 7/1/2024 |
3.24.628.114 | 125 | 6/28/2024 |
3.24.627.145 | 100 | 6/27/2024 |
3.24.620.160 | 110 | 6/20/2024 |
3.24.613.115 | 104 | 6/13/2024 |
3.24.612.95 | 97 | 6/12/2024 |
3.24.528.90 | 102 | 5/28/2024 |
3.24.522.84 | 115 | 5/22/2024 |
3.24.512.213 | 93 | 5/12/2024 |
3.24.508.112 | 117 | 5/8/2024 |
2.2024.428.71 | 115 | 4/28/2024 |
2.2024.427.1128 | 112 | 4/27/2024 |
2.2.72 | 179 | 4/14/2024 |
2.2.71 | 107 | 4/12/2024 |
2.2.8 | 101 | 4/26/2024 |
2.2.6 | 109 | 4/10/2024 |
2.2.5 | 135 | 3/26/2024 |
2.2.4 | 139 | 3/25/2024 |
2.2.3 | 137 | 3/24/2024 |
2.2.2 | 150 | 3/21/2024 |
2.2.1 | 133 | 3/20/2024 |
2.2.0 | 142 | 3/13/2024 |
2.1.9 | 165 | 2/21/2024 |
2.1.8 | 152 | 2/18/2024 |
2.1.7 | 171 | 2/16/2024 |
2.1.6 | 208 | 2/14/2024 |
2.1.5 | 152 | 2/14/2024 |
2.1.4 | 334 | 2/9/2024 |
2.1.3 | 335 | 2/8/2024 |
2.1.2 | 389 | 2/5/2024 |
2.1.1.2 | 497 | 12/26/2023 |
2.1.1.1 | 369 | 12/26/2023 |
2.1.1 | 420 | 12/25/2023 |
2.1.0 | 462 | 12/17/2023 |
2.0.11 | 526 | 12/6/2023 |
2.0.1 | 506 | 11/15/2023 |
2.0.0 | 436 | 11/14/2023 |
1.9.1 | 386 | 11/1/2023 |
1.9.0 | 383 | 10/19/2023 |
1.9.0-preview2 | 558 | 10/12/2023 |
1.9.0-preview1 | 334 | 10/12/2023 |
1.8.9 | 400 | 10/11/2023 |
1.8.8 | 388 | 10/11/2023 |
1.8.7-rc2 | 366 | 9/21/2023 |
1.8.7-rc1 | 349 | 9/12/2023 |
1.8.6 | 405 | 8/31/2023 |
1.8.5 | 1,116 | 8/25/2023 |
1.8.4 | 429 | 8/24/2023 |
1.8.3 | 425 | 8/23/2023 |
1.8.2 | 524 | 8/22/2023 |
1.8.1 | 458 | 8/18/2023 |
1.8.0 | 455 | 8/15/2023 |
1.7.9 | 493 | 8/11/2023 |
1.7.8 | 433 | 8/11/2023 |
1.7.7 | 465 | 8/10/2023 |
1.7.6 | 450 | 8/9/2023 |
1.7.5 | 518 | 8/9/2023 |
1.7.4 | 577 | 8/3/2023 |
1.7.3 | 499 | 8/1/2023 |
1.7.2 | 459 | 7/31/2023 |
1.7.1 | 450 | 7/27/2023 |
1.7.0 | 468 | 7/25/2023 |
1.6.9 | 460 | 7/25/2023 |
1.6.8 | 454 | 7/24/2023 |
1.6.7 | 490 | 7/20/2023 |
1.6.6 | 472 | 7/19/2023 |
1.6.5 | 450 | 7/19/2023 |
1.6.4 | 459 | 7/17/2023 |
1.6.3 | 444 | 7/17/2023 |
1.6.2 | 513 | 7/12/2023 |
1.6.1 | 534 | 6/30/2023 |
1.6.0 | 459 | 6/26/2023 |
1.5.9 | 474 | 6/22/2023 |
1.5.8 | 506 | 6/15/2023 |
1.5.7.1 | 482 | 6/14/2023 |
1.5.7 | 505 | 6/14/2023 |
1.5.6.2 | 557 | 6/7/2023 |
1.5.6.1 | 487 | 6/7/2023 |
1.5.6 | 482 | 6/7/2023 |
1.5.5.2 | 546 | 5/26/2023 |
1.5.5.1 | 526 | 5/26/2023 |
1.5.5 | 529 | 5/26/2023 |
1.5.4.4 | 508 | 5/25/2023 |
1.5.4.3 | 548 | 5/23/2023 |
1.5.4.2 | 612 | 5/17/2023 |
1.5.4.1 | 499 | 5/16/2023 |
1.5.4 | 607 | 5/11/2023 |
1.5.3 | 537 | 5/11/2023 |
1.5.2 | 509 | 5/10/2023 |
1.5.1 | 483 | 5/10/2023 |
1.5.0 | 522 | 5/6/2023 |
1.4.0 | 216 | 5/5/2023 |
1.3.9 | 248 | 4/23/2023 |
1.3.8.6 | 160 | 4/23/2023 |
1.3.8.5 | 121 | 4/21/2023 |
1.3.8.1 | 192 | 4/12/2023 |
1.3.8 | 132 | 4/11/2023 |
1.3.8-pre | 96 | 4/11/2023 |
1.3.7 | 151 | 4/9/2023 |
1.3.6.3 | 197 | 4/1/2023 |
1.3.6.2 | 127 | 3/31/2023 |
1.3.6.1 | 117 | 3/31/2023 |
1.3.6 | 114 | 3/31/2023 |
1.3.5 | 124 | 3/30/2023 |
1.3.4.1 | 180 | 3/29/2023 |
1.3.4 | 132 | 3/28/2023 |
1.3.3 | 107 | 3/28/2023 |
1.3.2 | 142 | 3/26/2023 |
1.3.1 | 186 | 3/22/2023 |
1.3.0 | 142 | 3/21/2023 |
1.2.0 | 120 | 3/21/2023 |
1.1.0 | 253 | 3/17/2023 |
1.0.9 | 268 | 3/15/2023 |
1.0.8 | 266 | 3/15/2023 |
1.0.7 | 245 | 3/15/2023 |
1.0.6 | 282 | 3/13/2023 |
1.0.5 | 258 | 3/13/2023 |
1.0.4 | 258 | 3/13/2023 |
1.0.2 | 303 | 2/28/2023 |
1.0.1 | 297 | 2/23/2023 |
1.0.0 | 541 | 2/20/2023 |