Infotreasury.Library.Validation
1.0.28
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Infotreasury.Library.Validation --version 1.0.28
NuGet\Install-Package Infotreasury.Library.Validation -Version 1.0.28
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="Infotreasury.Library.Validation" Version="1.0.28" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Infotreasury.Library.Validation" Version="1.0.28" />
<PackageReference Include="Infotreasury.Library.Validation" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Infotreasury.Library.Validation --version 1.0.28
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Infotreasury.Library.Validation, 1.0.28"
#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.
#addin nuget:?package=Infotreasury.Library.Validation&version=1.0.28
#tool nuget:?package=Infotreasury.Library.Validation&version=1.0.28
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ValidationModel | Parameters | Mean of Receive |
---|---|---|
Value | Value | object (can be null) |
FieldName | Content name of value to return if handle any error on validation | string (can be null) |
Type | Type of value | VariableType (can be null) |
MaxNumber | Max lengthstring - NumberAll Integers and Double - DecimalDecimal of value |
object (can be null) |
MinNumber | Min lengthstring - NumberAll Integers and Double - DecimalDecimal of value |
object (can be null) |
MinDate | Max Date of value | DateTime (can be null) |
MaxDate | Min Date of value | DateTime (can be null) |
EmptyVerification | IsNull - IsNotNull | VariableStatus (can be null) |
RegexVerification | RegexValidations | List<VariableStatus> (can be null) |
Scale | Scale Number of Decimal / Decimal place | Integer32 (can be null) |
Precision | Precision Number / All places | Integer32 (can be null) |
Syntax Example
private readonly IMainValidation _mainValidation;
public FooClass(IMainValidation mainValdiation)
{
_mainValidation = mainValdiation;
}
List<ValidationModel> fields = new()
{
new() { Value=numeroLivro,
Type=VariableType.Integer32,
FieldName="Número do Livro",
MinNumber=0,
Precision=10,
EmptyVerification=VariableStatus.IsNotNull },
new() { Value=ativoNoMercado,
Type=VariableType.Char,
FieldName="Ativo no Mercado",
MaxNumber=1,
EmptyVerification=VariableStatus.IsNotNull,
RegexVerification=new(){VariableStatus.IsYesOrNo} },
new() { Value=dataLancamento,
Type=VariableType.DateTime,
FieldName="Data de Lançamento",
MinDate=DateTime.ParseExact("01/01/1753","MM/dd/yyyy", null),
MaxDate=DateTime.ParseExact("12/31/2030","MM/dd/yyyy", null),
EmptyVerification=VariableStatus.IsNotNull },
new() { Value=tituloLivro,
Type=VariableType.String,
FieldName="Titúlo do Livro",
MaxNumber=100,
MinNumber=5,
EmptyVerification=VariableStatus.IsNotNull },
new() { Value=valorLivro,
Type=VariableType.Decimal,
FieldName="Valor Unitário do Livro",
Precision=10,
Scale=4,
EmptyVerification=VariableStatus.IsNotNull },
new() { Value=observacaoLivro,
Type=VariableType.String,
FieldName="Observação do Livro",
MaxNumber=200,
MinNumber=20,
EmptyVerification=VariableStatus.IsNull }
};
var (resultValidation, listValidation) = await _mainValidation.FieldValidation(fields);
if (resultValidation)
return (listValidation);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Infotreasury.Library.Error (>= 1.0.19)
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 |
---|
Change of Fields. (NullValue - Boolean / EmptyString - Boolean)