Sparkdo.FluentValidation 1.0.3

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Sparkdo.FluentValidation --version 1.0.3
                    
NuGet\Install-Package Sparkdo.FluentValidation -Version 1.0.3
                    
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="Sparkdo.FluentValidation" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.FluentValidation" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Sparkdo.FluentValidation" />
                    
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 Sparkdo.FluentValidation --version 1.0.3
                    
#r "nuget: Sparkdo.FluentValidation, 1.0.3"
                    
#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 Sparkdo.FluentValidation@1.0.3
                    
#: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=Sparkdo.FluentValidation&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Sparkdo.FluentValidation&version=1.0.3
                    
Install as a Cake Tool

Sparkdo.FluentValidation

Sparkdo FluentValidation 集成库,提供基于 FluentValidation 的对象验证功能实现。

功能特性

  • 基于 FluentValidation 的对象验证
  • 与 Sparkdo 验证框架无缝集成
  • 支持依赖注入的验证器解析
  • 支持异步验证

安装

<PackageReference Include="Sparkdo.FluentValidation" Version="x.x.x" />

核心组件

FluentObjectValidationContributor

FluentValidation 验证贡献者,负责处理基于 FluentValidation 的验证逻辑:

  • 通过依赖注入解析 IValidator 实例
  • 支持异步验证
  • 将 FluentValidation 验证结果转换为 Sparkdo 验证错误

SparkdoFluentValidationModule

FluentValidation 模块配置,用于注册相关服务:

  • 注册 FluentObjectValidationContributor 为 IObjectValidationContributor 实现

扩展性

该库提供了 FluentValidation 与 Sparkdo 验证框架的集成,可以通过以下方式扩展:

  1. 实现自定义的 FluentValidation 验证器
  2. 通过依赖注入注册验证器
  3. 扩展 FluentObjectValidationContributor 以支持特定的验证场景

代码结构说明

本项目包含以下主要组件:

验证贡献者

  • FluentObjectValidationContributor: FluentValidation 验证贡献者

模块配置

  • SparkdoFluentValidationModule: FluentValidation 模块配置

所有公共接口和类都添加了详细的 XML 文档注释,便于开发者理解和使用。

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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

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.0.4-preview.3 66 6/8/2026
1.0.4-preview.2 56 6/7/2026
1.0.4-preview.1 66 6/7/2026
1.0.3 118 6/6/2026
1.0.3-preview.1 65 5/17/2026
1.0.2 116 4/27/2026
1.0.2-preview.5 79 4/15/2026
1.0.2-preview.4 92 2/8/2026
1.0.2-preview.3 85 2/1/2026
1.0.2-preview.2 83 1/31/2026
1.0.2-preview.1 198 12/4/2025
1.0.1 241 11/27/2025
1.0.0 223 11/25/2025
1.0.0-preview.5 149 10/24/2025