Aore.Utils 1.8.12

dotnet add package Aore.Utils --version 1.8.12
                    
NuGet\Install-Package Aore.Utils -Version 1.8.12
                    
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="Aore.Utils" Version="1.8.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Aore.Utils" Version="1.8.12" />
                    
Directory.Packages.props
<PackageReference Include="Aore.Utils" />
                    
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 Aore.Utils --version 1.8.12
                    
#r "nuget: Aore.Utils, 1.8.12"
                    
#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.
#:package Aore.Utils@1.8.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Aore.Utils&version=1.8.12
                    
Install as a Cake Addin
#tool nuget:?package=Aore.Utils&version=1.8.12
                    
Install as a Cake Tool

Aore.Utils — .NET SDK

Static Badge license

[English Version]

📈 一个基于 .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 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. 
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
1.8.12 127 6/27/2026
1.8.11 220 8/15/2025

一个基于 .NET Standard 2.0 的通用工具库,提供了多种数据访问和实用功能的支持