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 | 165 | 11/19/2024 |
4.14.1 | 536 | 10/14/2024 |
4.14.0 | 556 | 9/16/2024 |
4.13.0 | 882 | 8/13/2024 |
4.12.0 | 211 | 8/7/2024 |
4.11.2 | 490 | 7/15/2024 |
4.11.1 | 508 | 6/26/2024 |
4.11.0 | 544 | 6/6/2024 |
4.10.1 | 109 | 6/5/2024 |
4.10.0 | 514 | 5/27/2024 |
4.9.0 | 410 | 5/16/2024 |
4.8.0 | 440 | 5/5/2024 |
4.7.0 | 792 | 3/25/2024 |
4.6.0 | 654 | 3/8/2024 |
4.5.0 | 3,097 | 11/22/2023 |
4.4.1 | 294 | 11/20/2023 |
4.4.0 | 360 | 11/15/2023 |
4.3.0 | 1,360 | 10/18/2023 |
4.2.2 | 1,161 | 9/20/2023 |
4.2.1 | 1,820 | 8/4/2023 |
4.2.0 | 2,566 | 5/31/2023 |
4.1.1 | 275 | 5/26/2023 |
4.1.0 | 807 | 5/22/2023 |
4.0.0 | 2,447 | 3/14/2023 |
3.8.1 | 2,160 | 11/30/2022 |
3.8.0 | 2,279 | 11/21/2022 |
3.7.0 | 3,449 | 9/4/2022 |
3.6.0 | 3,348 | 7/4/2022 |
3.5.3 | 3,040 | 4/8/2022 |
3.5.2 | 4,518 | 1/7/2022 |
3.5.1 | 2,558 | 11/11/2021 |
3.5.0 | 1,284 | 11/10/2021 |
3.4.7 | 962 | 11/2/2021 |
3.4.6 | 680 | 10/29/2021 |
3.4.5 | 2,170 | 10/9/2021 |
3.4.4 | 1,693 | 8/9/2021 |
3.4.3 | 333 | 8/9/2021 |
3.4.2 | 6,119 | 5/26/2021 |
0.1.0-ci0015 | 211 | 5/26/2021 |