Tenekon.FluentValidation.Extensions.AspNetCore.Components 1.0.14-alpha-gd8abd9ba75

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

Tenekon.FluentValidation.Extensions

🚧 This is a new project. You are very welcome to anticipate in this project, shaping the public API and submit ideas. Because this project is currently in alpha state, the public API may change drastically.

Table of Contents

Packages

Package Description
Tenekon.FluentValidation.Extensions.AspNetCore.Components Core Blazor integration for FluentValidation

Tenekon.FluentValidation.Extensions.AspNetCore.Components

An extension to integrate FluentValidation with ASP.NET Core Components (Blazor). This library enhances component-level validation in Blazor applications using FluentValidation.


Features

  • ✅ Seamless integration with Blazor forms.
  • 🔁 Component-level validator injection
  • 🧩 Validator components are nestable
  • 🚀 Optimized with FastExpressionCompiler

Documentation & Resources

  • 📖 Cookbook: Component Validator Cookbook — Examples & use cases for all common and advanced scenarios.
  • 🔬 Flow Logic: Flow Logic Diagram — Visual guide to how component validators interact with each other and Blazor's EditContext.

Installation

dotnet add package Tenekon.FluentValidation.Extensions.AspNetCore.Components

Usage

  1. Define your validator using FluentValidation:
public class MyModelValidator : AbstractValidator<MyModel>
{
    public MyModelValidator()
    {
        RuleFor(x => x.Name).NotEmpty();
    }
}
  1. Register the validator in your DI container:
builder.Services.AddValidatorsFromAssemblyContaining<MyModelValidator>();
  1. Use the component validator in your Blazor form:
<EditForm Model="@model" OnValidSubmit="@HandleValidSubmit">
    <ComponentValidatorRootpath ValidatorType="typeof(MyModelValidator)" />
    <InputText @bind-Value="model.Name" />
    <ValidationMessage For="@(() => model.Name)" />
    <button type="submit">Submit</button>
</EditForm>

Target Framework

  • .NET 9.0

Dependencies

  • FluentValidation 12.x
  • Microsoft.AspNetCore.Components.Forms 9.x
  • FastExpressionCompiler 5.x

Development

git clone https://github.com/tenekon/Tenekon.FluentValidation.Extensions.git
cd Tenekon.FluentValidation.Extensions
dotnet build

License

MIT License - see LICENSE for details.

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