Aore.Utils
1.8.12
dotnet add package Aore.Utils --version 1.8.12
NuGet\Install-Package Aore.Utils -Version 1.8.12
<PackageReference Include="Aore.Utils" Version="1.8.12" />
<PackageVersion Include="Aore.Utils" Version="1.8.12" />
<PackageReference Include="Aore.Utils" />
paket add Aore.Utils --version 1.8.12
#r "nuget: Aore.Utils, 1.8.12"
#:package Aore.Utils@1.8.12
#addin nuget:?package=Aore.Utils&version=1.8.12
#tool nuget:?package=Aore.Utils&version=1.8.12
Aore.Utils — .NET SDK
📈 一个基于 .NET Standard 2.0 的通用工具库,提供了各种小函数的开发组件,助力大量系统和应用取得成功。我将继续保持更新,并正在深度融合更多场景应用👐
使用 Aore.Utils ,您可以方便快速将现有项目或新项目实现开发Utils支持。
目前 Aore.Utils 支持 .NET Standard 2.0 等多种框架,同时兼容所有 MVC、Razor、WebApi、Console(命令行)、桌面应用(.exe)和后台服务等环境,和外部框架完全解耦。 是一个功能丰富的工具库,旨在为开发者提供多种常用功能的支持, 此外,项目还包含了对 Windows 注册表、事件日志和Windows Service本地用户服务等功能的支持,适用于需要跨平台兼容性的应用程序开发。
希望有更多的人可以从中受益,理解并传播开源的精神,一同助力中国开源事业!感恩一路上给我们提供帮助的朋友们!
如果你喜欢并希望我们继续优化这个项目,请给我们一个 ★Star :)
✨ 功能特性
- 多数据库支持:提供了对多种数据库(MySQL、Oracle、PostgreSQL、SQLite、SQL Server、MDB)的访问支持
- 网络通信:包括 HTTP、SOAP 等网络通信工具
- 数据处理:提供了 JSON、DataTable、数据转换等数据处理功能
- 系统管理:包含 Windows 注册表、事件日志、本地用户管理等系统级功能
- 安全加密:实现了多种加密算法(AES、DES、Base64等)、编码工具和ID生成算法
- 配置管理:支持多种配置文件格式(INI、JSON、XML、YAML)
- 日志记录:内置日志记录功能
- 常用工具:包括时间处理、字符串操作、集合扩展等实用工具
- ...
🚀 Aore.Utils 使用示例 :开启你的改造开发之旅!
.NET CLI:
dotnet add package Aore.Utils --version 1.8.12
或
Nuget包进行搜索下载
🛠 部分API的方法及其作用
Action(行为控制)
FunctionCacheManager:函数缓存管理FunctionCircuitBreakerManager:函数熔断器管理FunctionDebounceManager:函数防抖管理FunctionManager:通用函数管理FunctionThrottleManager:函数节流管理ObjectPool:对象池管理ReflectHelper:反射辅助工具SingletonBase 和 SingletonManager:单例模式实现
Collection(集合扩展)
- 各种集合类型的扩展方法:
DictionaryExtension、LinkedListExtension、ListExtension、QueueExtension、StackExtension - 集合工具类:
IteratorUtil、LinkedListUtil、ListUtil、QueueUtil、StackUtil
Computer(计算机管理)
AccountAuthenticator:账户认证EventLogManager:事件日志管理
需要引入
System.Diagnostics.EventLog.dll依赖
GroupUserManager:组用户管理LocalUserAccountManager:本地用户账户管理RegistryManager:注册表管理
需要引入
Microsoft.Win32.Registry.dll依赖
Config(配置管理)
ConfigIniManager:INI配置文件管理ConfigJsonManager:JSON配置文件管理ConfigXmlManager:XML配置文件管理ConfigYamlManager:YAML配置文件管理
需要引入
YamlDotNet.dll依赖
Conversion(数据转换)
ConvertHelper:数据转换辅助工具- ...
DataTables(数据表处理)
DataTableExtensions:DataTable扩展方法DataTableHelper:DataTable辅助工具- ...
DateTimeExt(日期时间扩展)
ChineseCalendar:中国日历DateTimeHelper:日期时间辅助工具 相关结构体:DateInfoStruct、WeekHolidayStruct- ...
Entity(实体转换)
- 各种数据结构到实体的转换工具:
DictionaryToEntity、DictionaryToKeyValue、ListDictionaryToList、ListStringToList - ...
IEnmerable(可枚举集合)
IEnmerableUtils:IEnumerable工具类- ...
JSON(JSON处理)
ConvertHelper:JSON转换辅助工具DeepCopyExtension和DeepCopyHelper:深拷贝功能- ...
Logger(日志记录)
Logger:核心日志记录器PublicLog和TransactionLog:特定类型的日志LogLevel:日志级别定义- ...
Models(数据模型)
ApiRequest 和 ApiResult:API请求响应模型ApiRequestExtension:API请求扩展- 其他模型:
ConstantsCode、DateTimeRange - ...
Net(网络通信)
- HTTP相关:
APIClient、HTTPHelper、CallAPIHelper - IP相关:
IPHelper - SOAP相关:
SOAPHelper、SHeader - 通用网络工具:
NetHelper - ...
Repository(数据仓储)
- 多数据库支持:
MySQL、Oracle、PostgreSQL、SQLite、SQL Server、MDB - 通用数据库工具:
DBConvert、DataReaderConverter、DbHelperCommon、IDBHelper - ...
注意:使用对应数据的Helper需要引入对应的数据库驱动的依赖
Microsoft.Data.SqlClient
MySql.Data
Npgsql
Oracle.ManagedDataAccess
System.Data.OleDb
System.Data.SQLite
Security(安全加密)
- 多种加密算法:
AesUtil、DesUtil、EncryptionHelper - 编码工具:
Base32、Base62、Base64、Punycode、Rot、Morse等 WidsEncoder和WidsOptions:特定编码器- ...
String(字符串处理)
CsvHelper:CSV处理GuidManager:GUID管理Snowflake:雪花算法ID生成StringExtension 和 StringHelper:字符串扩展和辅助工具IdGenerator:生成分布式环境下唯一的、趋势递增的ID
Time(时间处理)
DateTimeHelper:日期时间辅助工具HiPerfTimer:高性能计时器- ...
...
| 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- Flurl.Http (>= 4.0.2)
- Microsoft.Win32.Registry (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Diagnostics.EventLog (>= 10.0.9)
- System.DirectoryServices.AccountManagement (>= 9.0.7)
- YamlDotNet (>= 18.0.0)
-
.NETStandard 2.0
- Flurl.Http (>= 4.0.2)
- Microsoft.Win32.Registry (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.3)
- System.Diagnostics.EventLog (>= 10.0.9)
- System.DirectoryServices.AccountManagement (>= 9.0.7)
- YamlDotNet (>= 18.0.0)
-
net8.0
- Flurl.Http (>= 4.0.2)
- Newtonsoft.Json (>= 13.0.3)
- System.Diagnostics.EventLog (>= 10.0.9)
- System.DirectoryServices.AccountManagement (>= 9.0.7)
- YamlDotNet (>= 18.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
一个基于 .NET Standard 2.0 的通用工具库,提供了多种数据访问和实用功能的支持