EasilyNET.Core
1.8.6
See the version list below for details.
dotnet add package EasilyNET.Core --version 1.8.6
NuGet\Install-Package EasilyNET.Core -Version 1.8.6
<PackageReference Include="EasilyNET.Core" Version="1.8.6" />
<PackageVersion Include="EasilyNET.Core" Version="1.8.6" />
<PackageReference Include="EasilyNET.Core" />
paket add EasilyNET.Core --version 1.8.6
#r "nuget: EasilyNET.Core, 1.8.6"
#:package EasilyNET.Core@1.8.6
#addin nuget:?package=EasilyNET.Core&version=1.8.6
#tool nuget:?package=EasilyNET.Core&version=1.8.6
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. 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. |
-
net6.0
- Microsoft.Extensions.DependencyModel (>= 8.0.0-preview.7.23375.6)
-
net7.0
- Microsoft.Extensions.DependencyModel (>= 8.0.0-preview.7.23375.6)
-
net8.0
- Microsoft.Extensions.DependencyModel (>= 8.0.0-preview.7.23375.6)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on EasilyNET.Core:
| Package | Downloads |
|---|---|
|
EasilyNET.AutoDependencyInjection
服务模块化注入.让服务注入拥有清晰的逻辑和结构 |
|
|
EasilyNET.Mongo.AspNetCore
MongoDB 驱动的服务包,默认驼峰,ID和Id映射,时间本地化和枚举字符串的自动处理. |
|
|
EasilyNET.RabbitBus.Core
抽离一些EasilyNET.RabbitBus到Core库,便于消息事件实体复用. |
|
|
EasilyNET.WebCore.Swagger
一些Swagger的一些配置.如分组,隐藏接口,Authorize的接口添加🔒,默认值 |
|
|
EasilyNET.WebCore
包含Swagger的一些扩展的WebCore扩展 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.25.1016.112 | 197 | 10/16/2025 |
| 4.25.1014.112 | 198 | 10/14/2025 |
| 4.25.1013.153 | 189 | 10/13/2025 |
| 4.25.921.71 | 233 | 9/20/2025 |
| 4.25.919.15 | 349 | 9/18/2025 |
| 4.25.918.142 | 343 | 9/18/2025 |
| 4.25.918.115 | 324 | 9/18/2025 |
| 4.25.918.30 | 331 | 9/17/2025 |
| 4.25.917.141 | 351 | 9/17/2025 |
| 4.25.917.134 | 342 | 9/17/2025 |
| 4.25.911.151 | 210 | 9/11/2025 |
| 4.25.905.150 | 194 | 9/5/2025 |
| 4.25.820.100 | 213 | 8/20/2025 |
| 4.25.814.175 | 204 | 8/14/2025 |
| 4.25.731.155 | 184 | 7/31/2025 |
| 4.25.724.1 | 578 | 7/23/2025 |
| 4.25.720.80 | 323 | 7/20/2025 |
| 4.25.716.42 | 198 | 7/15/2025 |
| 4.25.617.153 | 223 | 6/17/2025 |
| 4.25.616.190 | 205 | 6/16/2025 |
| 4.25.616.182 | 199 | 6/16/2025 |
| 4.25.613.111 | 344 | 6/13/2025 |
| 4.25.609.190 | 461 | 6/9/2025 |