This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project.
Provides additional constants for libraries based on validations
- .NET 6.0
- .NET 5.0
- .NET 3.1
This package is available through Nuget Packages: https://www.nuget.org/packages/PowerUtils.Validations.Primitives
Nuget
Install-Package PowerUtils.Validations.Primitives
.NET CLI
dotnet add package PowerUtils.Validations.Primitives
REQUIRED
;INVALID
;UNAUTHORIZED
;FORBIDDEN
;MIN
;MAX
;MIN_ZERO
(MIN:0);MAX_ZERO
(MAX:0);MIN_DATETIME_UTCNOW
(MIN:DATETIME_UTCNOW);MAX_DATETIME_UTCNOW
(MAX:DATETIME_UTCNOW);MIN_LATITUDE
(MIN:-90);MAX_LATITUDE
(MAX:90);MIN_LONGITUDE
(MIN:-180);MAX_LONGITUDE
(MAX:180);DUPLICATED
;NOT_FOUND
;EXPIRED
;
Supports the types string
, int
, uint
, long
, ulong
, float
, double
, decimal
, DateTime
// result = "MIN:14"
var result = Helpers.GetMinFormatted(14);
Supports the types string
, int
, uint
, long
, ulong
, float
, double
, decimal
, DateTime
// result = "MAX:1244574"
var result = Helpers.GetMaxFormatted(1244574);
The constant ALREADY_EXISTS
will be removed in 2022/09/30.
If you have any questions, comments, or suggestions, please open an issue or create a pull request