Yoron.Net.Utils
2.0.0
dotnet add package Yoron.Net.Utils --version 2.0.0
NuGet\Install-Package Yoron.Net.Utils -Version 2.0.0
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="Yoron.Net.Utils" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yoron.Net.Utils" Version="2.0.0" />
<PackageReference Include="Yoron.Net.Utils" />
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 Yoron.Net.Utils --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Yoron.Net.Utils, 2.0.0"
#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 Yoron.Net.Utils@2.0.0
#: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=Yoron.Net.Utils&version=2.0.0
#tool nuget:?package=Yoron.Net.Utils&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Yoron.Net 项目功能点
1. 数据层抽象
- 实体框架:提供
IEntity、BaseEntity、NonIdentityEntity等基础实体接口和类 - 仓储模式:定义
IRepository<T>接口,支持基本的 CRUD 操作 - 多表查询:通过
IJoinRepository支持多表关联查询 - 分组操作:通过
IGroupRepository支持多表同时操作
2. 服务层抽象
- 服务结果:
ServiceResult类用于统一服务返回结果 - 实体服务:
IEntityService接口定义了实体的基本服务操作 - 账户服务:
IAccountService接口定义了用户账户相关操作(注册、登录、修改密码等)
3. 缓存系统
- 数据缓存:提供
IDataCacheProvider接口和多种缓存实现 - 缓存选项:支持
ObjectCacheOption、StringCacheOption、IntStringCacheOption等多种缓存配置
4. 配置系统
- YAML 配置:支持 YAML 格式的配置文件解析和加载
- TOML 配置:支持 TOML 格式的配置文件解析和加载
5. 命令行工具
- CLI 管理:提供
CliManager和相关类用于构建命令行应用 - 参数处理:支持布尔、整数、字符串等多种参数类型
6. 动态类型处理
- 动态字典:
DynamicDictionary用于动态处理字典数据 - 动态 JSON:
DynamicJson用于动态处理 JSON 数据 - 动态 XML:
DynamicXml用于动态处理 XML 数据
7. 扩展方法
- 加密扩展:
CryptographyExtensions提供加密相关功能 - 目录扩展:
DirectoryExtensions提供文件目录操作 - 表达式扩展:
ExpressionExtensions提供 LINQ 表达式操作 - 字符串扩展:
StringExtensions提供字符串处理功能
Yoron.Net.SqlSugar 项目功能点
1. 数据访问实现
- SqlSugar 集成:基于 SqlSugar ORM 实现数据访问
- 实体仓储:
EntityRepository<T>实现了IRepository<T>接口 - 权限仓储:
PermissionRepository提供权限相关数据访问
2. 服务实现
- 实体服务:
EntityService<T>实现了IEntityService接口 - 管理员服务:
AdminService实现了IAccountService接口,提供管理员账户相关功能 - 权限服务:
PermissionService提供权限管理相关功能
3. 实体模型
- 基础管理员模型:
BaseAdmin提供带有创建者和修改者信息的基础实体 - 管理员模型:
Admin实现管理员数据模型 - 权限模型:
Permission实现权限数据模型 - 角色模型:
Role实现角色数据模型 - 内容管理:包含
Article、ArticleCategory、Banner、BannerSpace等内容管理相关实体
项目架构特点
- 分层设计:清晰的分层架构,包括实体层、仓储层、服务层
- 接口抽象:通过接口定义抽象出核心功能,便于扩展和替换实现
- ORM 集成:Yoron.Net 定义抽象接口,Yoron.Net.SqlSugar 提供基于 SqlSugar 的具体实现
- 通用功能:提供缓存、配置、命令行等通用功能组件
- 扩展性:通过扩展方法和接口设计,提供良好的扩展性
总结
Yoron.Framework.Net 是一个基于 .NET 的应用开发框架,提供了从数据访问到服务层的完整抽象和实现。其中 Yoron.Net 项目提供核心抽象和通用功能,而 Yoron.Net.SqlSugar 项目则提供基于 SqlSugar ORM 的具体实现。该框架适用于构建企业级应用,特别是需要用户管理、权限控制、内容管理等功能的系统。
当前模型请求量过大,请求排队约 1 位,请稍候或切换至其他模型问答体验更流畅。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- AlibabaCloud.SDK.Dysmsapi20170525 (>= 4.0.0)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Http (>= 9.0.5)
- Newtonsoft.Json (>= 13.0.3)
- SKIT.FlurlHttpClient.Wechat.Api (>= 3.9.0)
- Yoron.Net (>= 3.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0 | 179 | 10/10/2025 |
| 1.0.13 | 234 | 4/3/2025 |
| 1.0.12 | 291 | 3/7/2025 |
| 1.0.11 | 204 | 9/9/2024 |
| 1.0.10 | 177 | 9/9/2024 |
| 1.0.9 | 192 | 7/5/2024 |
| 1.0.8 | 177 | 7/5/2024 |
| 1.0.7 | 162 | 7/5/2024 |
| 1.0.6 | 177 | 7/3/2024 |
| 1.0.5 | 180 | 5/14/2024 |
| 1.0.4 | 194 | 4/28/2024 |
| 1.0.3 | 196 | 4/7/2024 |
| 1.0.2 | 174 | 4/3/2024 |
| 1.0.1 | 176 | 4/3/2024 |