Calabonga.RulesValidator
2.0.2
dotnet add package Calabonga.RulesValidator --version 2.0.2
NuGet\Install-Package Calabonga.RulesValidator -Version 2.0.2
<PackageReference Include="Calabonga.RulesValidator" Version="2.0.2" />
paket add Calabonga.RulesValidator --version 2.0.2
#r "nuget: Calabonga.RulesValidator, 2.0.2"
// Install Calabonga.RulesValidator as a Cake Addin #addin nuget:?package=Calabonga.RulesValidator&version=2.0.2 // Install Calabonga.RulesValidator as a Cake Tool #tool nuget:?package=Calabonga.RulesValidator&version=2.0.2
Проверка объекта основанная на правилах валидации
Валидировать объект, например, перед сохранением в базу данных, можно разными способами. Есть способ "Простой", обычно все им и пользуются. Хочу показать "Продвинутый" способ. И не только показать сам способ, но и его реализацию. И даже презентовать новый nuget-пакет.
Видео презентация
Посмотреь видео вы можете на канале youtube. На видео показан процесс создания IRulesValidator<T>, а также пример использования уже готового nuget-пакета Calabonga.RulesVlidator
Задачи
Требуется из этого:
сделать это:
Тестовый UI (Swagger)
Calabonga.RulesValidator
Object validation with validation rules
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Calabonga.RulesValidator:
Package | Downloads |
---|---|
Calabonga.RulesValidator.AspNetCore
RuleValidator for entity validation base on custom rules. And this is a helper for registration |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.2 | 617 | 7/28/2023 |
2.0.1 | 174 | 7/26/2023 |
2.0.1-beta1 | 137 | 7/26/2023 |
2.0.0 | 1,413 | 11/10/2020 |
1.2.4 | 1,138 | 10/22/2019 |
1.2.3 | 987 | 10/17/2019 |
1.2.2 | 547 | 10/11/2019 |
1.2.1 | 515 | 10/9/2019 |
1.2.0 | 1,001 | 10/8/2019 |
1.1.1 | 946 | 10/3/2019 |
1.1.0 | 934 | 9/26/2019 |
1.0.5 | 1,000 | 9/17/2019 |
1.0.3 | 952 | 9/16/2019 |
1.0.2 | 526 | 9/16/2019 |
1.0.1 | 532 | 9/16/2019 |
1.0.0 | 1,324 | 9/16/2019 |
auto publication created