All Projects → mrpmorris → blazor-validation

mrpmorris / blazor-validation

Licence: MIT license
Validation extensions for Microsoft Blazor / FluentValidation

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to blazor-validation

Home
Home for Blazor Extensions
Stars: ✭ 51 (-64.08%)
Mutual labels:  blazor
ITL
Sample Web API implementation with .NET Core and DDD using Clean Architecture.
Stars: ✭ 29 (-79.58%)
Mutual labels:  fluentvalidation
XAF Security E4908
This repository contains examples for Role-based Access Control, Permission Management, and OData / Web / REST API Services for Entity Framework and XPO ORM
Stars: ✭ 47 (-66.9%)
Mutual labels:  blazor
Jonty.Blog
🎯Jonty.Blog个人博客项目,底层基于免费开源跨平台的.NET Core 3.1开发,使用 ABP vNext搭建项目框架,支持主流数据库,遵循RESTful接口规范,前端使用Blazor开发。
Stars: ✭ 42 (-70.42%)
Mutual labels:  blazor
BethanysPieShopHR
Server-side Blazor project
Stars: ✭ 45 (-68.31%)
Mutual labels:  blazor
TabBlazor
Blazor admin template based on Tabler UI
Stars: ✭ 222 (+56.34%)
Mutual labels:  blazor
Blazor-Survey
A hybrid F#/C# blazor sample app to kick the tyres of blazor.
Stars: ✭ 16 (-88.73%)
Mutual labels:  blazor
MudBlazor
Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
Stars: ✭ 4,539 (+3096.48%)
Mutual labels:  blazor
Amazing-Favorites
Amazing Favorites is a browser extension to help you to manage you bookmarks efficiently.
Stars: ✭ 48 (-66.2%)
Mutual labels:  blazor
BlazorTimeline
Responsive, vertical timeline component.
Stars: ✭ 56 (-60.56%)
Mutual labels:  blazor
sotsera.blazor.oidc
OpenID Connect client for Blazor client-side projects
Stars: ✭ 21 (-85.21%)
Mutual labels:  blazor
blazorators
This project converts TypeScript type declarations into C# representations, and use C# source generators to expose automatic JavaScript interop functionality.
Stars: ✭ 225 (+58.45%)
Mutual labels:  blazor
BlazorVirtualScrolling
Blazor components for efficiently rendering large lists and data using virtual scrolling
Stars: ✭ 56 (-60.56%)
Mutual labels:  blazor
BlazorCanvas
Simple 2D gamedev examples using Blazor and .NET 5
Stars: ✭ 99 (-30.28%)
Mutual labels:  blazor
Fun.Blazor
Powered by .NET blazor!!! ❤ F#
Stars: ✭ 107 (-24.65%)
Mutual labels:  blazor
blazor-dashboard
Blazor sample dashboard app with native components from Telerik
Stars: ✭ 20 (-85.92%)
Mutual labels:  blazor
MvvmBlazor
A lightweight Blazor Mvvm Library
Stars: ✭ 203 (+42.96%)
Mutual labels:  blazor
BlazoredLocalStorage
This library has been moved to the Blazored org
Stars: ✭ 26 (-81.69%)
Mutual labels:  blazor
CSharpCampReCapProject
Kodlama.io | C# Camp | Recap Project | Car Rental System | 2021
Stars: ✭ 17 (-88.03%)
Mutual labels:  fluentvalidation
BlazorEFCoreMultitenant
Examples of multitenancy using EF Core and Blazor.
Stars: ✭ 67 (-52.82%)
Mutual labels:  blazor

Blazor-Validation

Blazor-Validation is a validation agnostic library for validating forms in Blazor- Microsoft aspdotnet Blazor project.

Join the chat at https://gitter.im/mrpmorris/blazor-validation

Installation

You can download the latest release / pre-release NuGet packages from the official NuGet pages:

Getting started

  1. Add a reference to PeterLeslieMorris.Blazor.Validation
  2. Inside the <EditForm> in your razor files, add <PeterLeslieMorris.Blazor.Validation.Validate/>
  3. In startup.cs add using PeterLeslieMorris.Blazor.Validation and then add the relevant validation in the ConfigureServices method.
  • services.AddFormValidation(config => config.AddDataAnnotationsValidation());
  • services.AddFormValidation(config => config.AddFluentValidation(typeof(SomeValidator).Assembly));

It is possible to add as many validation providers as you wish

services.AddFormValidation(config => 
  config
    .AddDataAnnotationsValidation()
    .AddFluentValidation(typeof(SomeValidator).Assembly)
);

Also you can have the FluentValidation extension scan multiple assemblies

services.AddFormValidation(config => 
  config
    .AddFluentValidation(
      typeof(SomeValidator).Assembly,
      typeof(ClassInAnotherDll).Assembly,
      andAnotherAssembly,
      andYetAnotherAssembly));

The standard Blazor components <ValidationSummary> and <ValidationMessage> will now work with your selected validation options.

Sample projects

More sample projects will be added as the framework develops.

What's new

New in 1.8.0

  • Use Services.TryAddScoped instead of Services.AddScoped for validators, in case the consuming app has already registered validators with a different lifetime.

New in 1.7.0

  • Upgrade to FluentValidation V10
  • Prevent ValidateObjectTree from visiting struct properties Bug #33

New in 1.6.0

  • Suport FluentValidation's RuleForEach and ChildRules

New in 1.5.0

  • Support .NET 5.0

New in 1.4.0

  • Upgrade to FluentValidation 9

New in 1.3.1

  • Add new EditContext.ValidateProperties for validating sub-sets of an object

New in 1.2.0

  • Return bool from EditContext.ValidateProperty

New in 1.0.0

  • Updated FluentValidationSample
  • First major release

New in 0.10

  • Remove old EditContextExtensions file
  • Ensure strings are not enumerated when traversing a whole object tree to validate

New in 0.9

  • Upgraded to .NETCore 3

New in 0.8

  • Upgraded to Blazor RC1

New in 0.7

  • Added an EditContext.ValidateObjectTree
  • Upgraded to Blazor Preview 9

New in 0.6.1

  • Fixed bug in FluentValidation that prevented objects with complex property types from being validated

New in 0.6.0

  • Upgraded to Blazor Preview 8

New in 0.5.0

  • Upgraded to Blazor Preview 7

New in 0.4.0

  • Initial public release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].