search

In this post, I will share with you a solution to a problem that I see often when developing .NET applications that use both Fluent Validation and Entity Framework (Core). I'll first set the scene: Show the EF Core Entity + Configuration + Fluent Validation we'll be working on. Then, I'll show the actual problem that emerges with this approach. In the end, I'll present the solution I came up with.

Bharat Dwarkani shared on Jan 18, 2020
image
blog.joaograssi.com
bookmarks
share
visibility14
visibility14 share bookmarks

FluentValidation is a replacment for the existing validation attributes (DataAnnotations) that you might already be using. The idea is to separate the validation from the classes. To be clear, this doesn't replace setting up your Entity Framework types with Fluent API this is about server-side validation only. Think of it as a clearer way to define rules for validation of your models or DTOs.

Bharat Dwarkani shared on Nov 24, 2019
image
wildermuth.com
bookmarks
share
visibility101
visibility101 share bookmarks

This is a solution template for creating a Single Page App (SPA) with Angular 8 and ASP.NET Core 3 following the principles of Clean Architecture. Create a new project based on this template by clicking the above Use this template button or by installing and running the associated NuGet package (see Getting Started for full details).

Bharat Dwarkani shared on Oct 19, 2019
image
github.com
bookmarks
share
visibility1244
visibility1244 share bookmarks

A small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules.

Bharat Dwarkani shared on Oct 19, 2019
image
github.com
bookmarks
share
visibility11
visibility11 share bookmarks
add