Tingle.Extensions.DataAnnotations
4.10.1
.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.10.1
NuGet\Install-Package Tingle.Extensions.DataAnnotations -Version 4.10.1
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.10.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Tingle.Extensions.DataAnnotations --version 4.10.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tingle.Extensions.DataAnnotations, 4.10.1"
#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.10.1 // Install Tingle.Extensions.DataAnnotations as a Cake Tool #tool nuget:?package=Tingle.Extensions.DataAnnotations&version=4.10.1
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 |
---|---|---|
4.14.1 | 273 | 10/14/2024 |
4.14.0 | 545 | 9/16/2024 |
4.13.0 | 875 | 8/13/2024 |
4.12.0 | 204 | 8/7/2024 |
4.11.2 | 484 | 7/15/2024 |
4.11.1 | 501 | 6/26/2024 |
4.11.0 | 531 | 6/6/2024 |
4.10.1 | 102 | 6/5/2024 |
4.10.0 | 507 | 5/27/2024 |
4.9.0 | 404 | 5/16/2024 |
4.8.0 | 433 | 5/5/2024 |
4.7.0 | 786 | 3/25/2024 |
4.6.0 | 647 | 3/8/2024 |
4.5.0 | 3,088 | 11/22/2023 |
4.4.1 | 287 | 11/20/2023 |
4.4.0 | 353 | 11/15/2023 |
4.3.0 | 1,353 | 10/18/2023 |
4.2.2 | 1,154 | 9/20/2023 |
4.2.1 | 1,813 | 8/4/2023 |
4.2.0 | 2,559 | 5/31/2023 |
4.1.1 | 267 | 5/26/2023 |
4.1.0 | 800 | 5/22/2023 |
4.0.0 | 2,434 | 3/14/2023 |
3.8.1 | 2,151 | 11/30/2022 |
3.8.0 | 2,273 | 11/21/2022 |
3.7.0 | 3,444 | 9/4/2022 |
3.6.0 | 3,341 | 7/4/2022 |
3.5.3 | 3,031 | 4/8/2022 |
3.5.2 | 4,512 | 1/7/2022 |
3.5.1 | 2,551 | 11/11/2021 |
3.5.0 | 1,278 | 11/10/2021 |
3.4.7 | 955 | 11/2/2021 |
3.4.6 | 674 | 10/29/2021 |
3.4.5 | 2,163 | 10/9/2021 |
3.4.4 | 1,685 | 8/9/2021 |
3.4.3 | 326 | 8/9/2021 |
3.4.2 | 6,113 | 5/26/2021 |
0.1.0-ci0015 | 207 | 5/26/2021 |