Tingle.Extensions.DataAnnotations
4.12.0
.NET 7.0
This package targets .NET 7.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Tingle.Extensions.DataAnnotations --version 4.12.0
NuGet\Install-Package Tingle.Extensions.DataAnnotations -Version 4.12.0
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="Tingle.Extensions.DataAnnotations" Version="4.12.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tingle.Extensions.DataAnnotations --version 4.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tingle.Extensions.DataAnnotations, 4.12.0"
#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 Tingle.Extensions.DataAnnotations as a Cake Addin #addin nuget:?package=Tingle.Extensions.DataAnnotations&version=4.12.0 // Install Tingle.Extensions.DataAnnotations as a Cake Tool #tool nuget:?package=Tingle.Extensions.DataAnnotations&version=4.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tingle.Extensions.DataAnnotations
Additional data validation attributes in the System.ComponentModel.DataAnnotations
namespace. Some of this should have been present in the framework but are very specific to some use cases.
AttributeName | Description | Remarks |
---|---|---|
AllowedValuesAttribute |
Specifies that a data field value is allowed. When applied on an array, all its elements must be allowed. | Only for .NET 7 or older. |
Base64Attribute |
Specifies that a data field value is a well-formed base 64 string. | Only for .NET 7 or older. |
DateMustBeInTheFutureAttribute |
Specifies that a data field value is a date in the future. | |
DateMustBeInThePastAttribute |
Specifies that a data field value is a date in the past. | |
FiveStarRatingAttribute |
Specifies the decimal numeric range for the value of a data field must be between 0 and 5. | |
GreaterThanZeroAttribute |
Specifies the integer numeric range for the value of a data field must be more than zero. Only works for integers. | |
KRAPinAttribute |
Specifies that a data field value is a well-formed KRA PIN number using a regular expression for KRA Pins.<br/>The default expression to be matched is:<br/>^[a-zA-Z][0-9]{9}[a-zA-Z]$ |
|
PrefixAttribute |
Specifies that a data field value starts with a specified string. | |
SuffixAttribute |
Specifies that a data field value ends with a specified string. | |
SwiftCodeAttribute |
Specifies that a data field value is a well-formed SWIFT Code using a regular expression for SWIFT Codes as specified under ISO-9362.<br/>The expression to be matched is <br/>^([a-zA-Z]{4})([a-zA-Z]{2})([a-zA-Z0-9]{2})([a-zA-Z0-9]{3})?$ |
|
TenStarRatingAttribute |
Specifies the decimal numeric range for the value of a data field must be between 0 and 10. | |
TimeZoneAttribute |
Specifies that a data field value is a well-formed timezone identifier. This support both Windows and IANA timezone identifiers. |
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 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- System.ComponentModel.Annotations (>= 5.0.0)
- TimeZoneConverter (>= 6.1.0)
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
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 |
---|---|---|
5.0.0 | 87 | 11/19/2024 |
4.14.1 | 519 | 10/14/2024 |
4.14.0 | 554 | 9/16/2024 |
4.13.0 | 880 | 8/13/2024 |
4.12.0 | 209 | 8/7/2024 |
4.11.2 | 488 | 7/15/2024 |
4.11.1 | 506 | 6/26/2024 |
4.11.0 | 542 | 6/6/2024 |
4.10.1 | 107 | 6/5/2024 |
4.10.0 | 512 | 5/27/2024 |
4.9.0 | 408 | 5/16/2024 |
4.8.0 | 438 | 5/5/2024 |
4.7.0 | 790 | 3/25/2024 |
4.6.0 | 652 | 3/8/2024 |
4.5.0 | 3,095 | 11/22/2023 |
4.4.1 | 292 | 11/20/2023 |
4.4.0 | 358 | 11/15/2023 |
4.3.0 | 1,358 | 10/18/2023 |
4.2.2 | 1,159 | 9/20/2023 |
4.2.1 | 1,818 | 8/4/2023 |
4.2.0 | 2,564 | 5/31/2023 |
4.1.1 | 273 | 5/26/2023 |
4.1.0 | 805 | 5/22/2023 |
4.0.0 | 2,443 | 3/14/2023 |
3.8.1 | 2,158 | 11/30/2022 |
3.8.0 | 2,277 | 11/21/2022 |
3.7.0 | 3,447 | 9/4/2022 |
3.6.0 | 3,346 | 7/4/2022 |
3.5.3 | 3,036 | 4/8/2022 |
3.5.2 | 4,516 | 1/7/2022 |
3.5.1 | 2,556 | 11/11/2021 |
3.5.0 | 1,282 | 11/10/2021 |
3.4.7 | 960 | 11/2/2021 |
3.4.6 | 678 | 10/29/2021 |
3.4.5 | 2,168 | 10/9/2021 |
3.4.4 | 1,691 | 8/9/2021 |
3.4.3 | 331 | 8/9/2021 |
3.4.2 | 6,117 | 5/26/2021 |
0.1.0-ci0015 | 211 | 5/26/2021 |