zijian666.AnyExtensions.ComponentModel 1.0.15.5

dotnet add package zijian666.AnyExtensions.ComponentModel --version 1.0.15.5                
NuGet\Install-Package zijian666.AnyExtensions.ComponentModel -Version 1.0.15.5                
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="zijian666.AnyExtensions.ComponentModel" Version="1.0.15.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add zijian666.AnyExtensions.ComponentModel --version 1.0.15.5                
#r "nuget: zijian666.AnyExtensions.ComponentModel, 1.0.15.5"                
#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.
// Install zijian666.AnyExtensions.ComponentModel as a Cake Addin
#addin nuget:?package=zijian666.AnyExtensions.ComponentModel&version=1.0.15.5

// Install zijian666.AnyExtensions.ComponentModel as a Cake Tool
#tool nuget:?package=zijian666.AnyExtensions.ComponentModel&version=1.0.15.5                

System.ComponentModel 扩展包

实体类/模型类验证

实体类验证

ValidationExceptionExtensions

System.ComponentModel 扩展包

ValidationExceptionExtensions

序号 扩展方法 说明 版本
1 ValidatEntity 实体类校验 1.0.0

| 序号 | 验证特性 | 说明 | 版本 | | 1 | ValidateAttribute | 属性需要递归验证 | 1.0.6 | | 2 | NotAttribute | 不允许指定的值 | 1.0.6 | | 3 | NotDefaultAttribute | 不允许默认值 | 1.0.6 | | 4 | AllowAttribute | 仅允许指定的值 | 1.0.7 | | 5 | EnumAttribute | 取值范围必须是枚举已定义的值 | 1.0.7 | | 6 | NoScriptAttribute | 字符串不能包含脚本 | 1.0.7 |

Demo

IEnumerable<ValidationException> ValidatEntity<T>(T entity, bool ignoreNullValue = false)
// 例
var ex = entity.ValidatEntity().FirstOrDefault();

entity.Check("user").ValidatEntity(); // will throw 
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.

Version Downloads Last updated
1.0.15.5 38 11/20/2024
1.0.15 145 2/1/2024
1.0.7 201 9/14/2023
1.0.6 525 12/16/2022
1.0.5.2 316 12/11/2022
1.0.4 298 12/8/2022
1.0.3 342 11/24/2022
1.0.1 476 11/6/2022

UPLOGS.md