Yoron.Net 3.0.2

dotnet add package Yoron.Net --version 3.0.2
                    
NuGet\Install-Package Yoron.Net -Version 3.0.2
                    
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" Version="3.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yoron.Net" Version="3.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Yoron.Net" />
                    
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 Yoron.Net --version 3.0.2
                    
#r "nuget: Yoron.Net, 3.0.2"
                    
#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@3.0.2
                    
#: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&version=3.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Yoron.Net&version=3.0.2
                    
Install as a Cake Tool

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 等内容管理相关实体

项目架构特点

  1. 分层设计:清晰的分层架构,包括实体层、仓储层、服务层
  2. 接口抽象:通过接口定义抽象出核心功能,便于扩展和替换实现
  3. ORM 集成:Yoron.Net 定义抽象接口,Yoron.Net.SqlSugar 提供基于 SqlSugar 的具体实现
  4. 通用功能:提供缓存、配置、命令行等通用功能组件
  5. 扩展性:通过扩展方法和接口设计,提供良好的扩展性

总结

Yoron.Framework.Net 是一个基于 .NET 的应用开发框架,提供了从数据访问到服务层的完整抽象和实现。其中 Yoron.Net 项目提供核心抽象和通用功能,而 Yoron.Net.SqlSugar 项目则提供基于 SqlSugar ORM 的具体实现。该框架适用于构建企业级应用,特别是需要用户管理、权限控制、内容管理等功能的系统。

    当前模型请求量过大,请求排队约 1 位,请稍候或切换至其他模型问答体验更流畅。
Product 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.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Yoron.Net:

Package Downloads
Yoron.Net.Web

Package Description

Yoron.Net.Utils

Package Description

Yoron.Net.SqlSugar

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.2 248 11/26/2025
3.0.1 245 10/17/2025
3.0.0 203 10/10/2025