dotnetomaniak.pl - Artykuły z tagiem validation

Cześć, napisałem post będący kontynuatorem poprzedniego artykułu o walidacji. Tym razem poruszyłem bibliotekę Fluent Validation. Zapraszam do lektury.

Dziel się z innymi:
Walidacja w ASP .NET Core w duchu Fluent API

Inne 507 dni, 20 godzin, 27 minut temu meron1122 133 źrodło rozwiń

The Validot project comes with comprehensive documentation, excellent for looking up how certain features work. On the other hand, documentations don’t always serve as great tutorials or walkthrough guides, which in Validot is very much the case. This blog post aspires to answer this problem. Following the real-life use case, we’ll proceed step-by-step with creating a fully-featured specification using Validot’s advanced fluent-driven interface.

Źródło: lenar.dev
Dziel się z innymi:
Crafting model specifications using Validot - lenar.dev

Narzędzia 572 dni, 15 minut temu bartoszlenar 98 źrodło rozwiń

June 22nd, 2021 In this blog post, I’m going to show the new package validation tooling that will become available with .NET 6. It ensures that your package consumers have a great experience across all .NET platforms and versions and that you didn’t accidentally make any breaking changes with the previous version of your package. If that is of interest to you, keep reading!Why validation is important With .NET Core & Xamarin we have made cross-platform a mainstream requirement for library authors. Ho...

Tagi: validation
Dziel się z innymi:
Package Validation - .NET Blog

Inne 941 dni, 23 godziny, 21 minut temu Piotr Stapp 34 źrodło rozwiń

The story behind creating my first general use, performance-first library.

Validot's performance explained - lenar.dev

Narzędzia 1053 dni, 12 minut temu bartoszlenar 55 źrodło rozwiń

Domain Model validation in context of Domain Driven Design

[EN] Domain Model Validation - Kamil Grzybek

Architektura 1880 dni, 23 godziny, 11 minut temu kamgrzybek 123 źrodło rozwiń

REST API Data validation using FluentValidation and Pipeline Pattern. Implementing Problem Details standard.

[EN] REST API Data Validation - Kamil Grzybek

Sztuka programowania 1891 dni, 23 godziny, 18 minut temu kamgrzybek 183 źrodło rozwiń

Kończąc zbiór wpisów dotyczących FluentValidation czas na napisanie testów.

Dziel się z innymi:
FluentValidation – cz. 3 testy i nullowalna properta – programmer-girl

FluentValidation, czyli jak zapewnić czytelną implementacje reguł walidacji po za klasą modelu.

Fluent Validation z ASP.NET Core Web API - DevKR

Web 2241 dni, 23 godziny, 22 minuty temu Krzysztof_DevKR 357 źrodło rozwiń

Model validation is one of those things you will never escape. It can haunt you, it can enlarge your controller’s codebase uncontrollably, it can finally piss you off. But it can be done very easily. How? Let me show you that step by step.

Dziel się z innymi:
Model validation using attributes - blog.mariuszklimek.eu

Web 2245 dni, 1 godzinę, 54 minuty temu mauriceklimek 84 źrodło rozwiń

About two months ago I worked on the microservice for my company’s new product. The whole thing was based on the CQRS pattern which is basically about splitting the application into reads (queries) and writes (commands). I came to the point when I wanted to validate a command object received from RabbitMQ. Without thinking, I started coding another if statements which after a while became my „domain logic”. I’m not going to present the example code because I’m ...

Źródło: foreverframe.net
Dziel się z innymi:
Valit - dead simple, fluent validation for .NET Core - Forever F[r]ame

Sztuka programowania 2348 dni, 19 godzin, 6 minut temu dpawlukiewicz 134 źrodło rozwiń

Posted on by Tomasz Grabusiński ID tokens are used in OpenID Connect to login users into applications. With regards to the OpenID Connect specification the application must validate the ID token in order to ensure the token’s integrity and authenticity.

Dziel się z innymi:
How to validate ID Token via IdentityModel

Web 2637 dni, 10 godzin, 38 minut temu Tomek Grabusiński 109 źrodło rozwiń

To be honest, I thought that my previous post would be the last in the CQRS/ES series, but I forgot to discuss one more thing related to that topic. Many developers don’t know how we should handle the following scenario in our systems:   „During the creation of user’s new account I would like to verify rather a username is unique in the whole database. Should I use Event Store or Read Database for a query? Where should I check that?”   Seriously, that question is one of the most popular topics connected ...

Źródło: foreverframe.pl
Dziel się z innymi:
[EN] How to guarantee username uniqueness with CQRS/ES? - Forever F[r]ame

Sztuka programowania 2743 dni, 13 godzin, 4 minuty temu dpawlukiewicz 156 źrodło rozwiń

There are many ways to perform a validation of our models living within the system. Whether there’s an incoming request from the user who would like to create an account or there’s a need to ensure about the correct amount of money in a bank transaction, the validation process should always (I really mean that) take place. In today’s post, I’d like to present one of the possible solutions that might help you validate your entities.

Dziel się z innymi:
Simple validation with validators | Piotr Gankiewicz

Sztuka programowania 2811 dni, 17 godzin, 25 minut temu spetz 162 źrodło rozwiń

In this post I will try to introduce the concept of validation using the Chain of Responsibility pattern (CoR), which I use successfull for years

[EN] Chain of Responsibility – an elegant way to handle complex validation

Sztuka programowania 2892 dni, 23 godziny, 14 minut temu pluksza 229 źrodło rozwiń

W dzisiejszym wpisie przedstawię pewien problem związany z walidacją wartości atrybutów w portalu FIM. Załóżmy, że dany obiekt posiada atrybut tekstowy, w którym mogą znaleźć się jedynie wartości z określonego zbioru. Chcemy aby użytkownik podczas tworzenia obiektu miał do wyboru dwie wartości atrybutu: MyValue-1 oraz MyValue-2. Standardowo zaczynamy od ustawienia walidacji bindingu na odpowiednie wyrażenie regularne...

FIM Portal – dopuszczalne wartości atrybutu i Constant Specifier | Developer notes

Inne 3607 dni, 17 godzin, 47 minut temu psz750 93 źrodło rozwiń

It is a common practice to validate function arguments before running actual code. Usually validation looks like that: public void Update(Car entity) { if(entity ==null) throw new ArgumentNullException("entity"); } There is nothing wrong with this code, however we have to repeat this piece of code in every function. Of course we could create some helper class for argument validation and call approperiate validation function before launching...

[EN] Argument validation with attributes and Ninject interceptor

Windows 4196 dni, 17 godzin, 11 minut temu nocturn 33 źrodło rozwiń

autor: W ostatnim postcie wspomniałem o trzeciej możliwości walidowania pól po stronie klienta: Nierobienie nic i przeciążenie zdarzenia submit, tak by wykonać raz (nie licząc pierwszego wymuszonego przez unobtrusive validation) parsowanie Może się zastanawiać ale po co mamy to przeciążać, tylko ze względu na te kilka dynamicznych pól? TAK :) (odpowiedź na to pytanie na końcu postu) oraz dlatego, że domyślna walidacja zwraca false, czyli blokuje jakiekolwiek akcje dalej. Jeżeli zostanie ona wykonana ...

Źródło: blog.gutek.pl
Dziel się z innymi:
JQuery validation na submit

Web 4715 dni, 19 godzin, 37 minut temu macko 128 źrodło rozwiń

No to embargo na informacje na temat SharePoint 2010 zostało zdjęte :) pora więc rozpocząć posty na jego temat :) W netcie znajdziecie już dużo screenów, więc nie będę się zajmował stroną wizualną a jedynie programistyczną. Pierwszym tematem jest nowa funkcjonalność walidacji danych na formularzu. Zaraz po wejściu na ustawienia listy widać nowy element Validation Settings:

Źródło: blog.gutek.pl
Dziel się z innymi:
SharePoint 2010 i walidacja danych na formularzu

Inne 5296 dni, 12 godzin, 46 minut temu Damian 35 źrodło rozwiń

Najaktywniejsi w tym miesiącu