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.
paket add Infotreasury.Library.Validation --version 1.0.28
#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.
// Install Infotreasury.Library.Validation as a Cake Addin
#addin nuget:?package=Infotreasury.Library.Validation&version=1.0.28

// Install Infotreasury.Library.Validation as a Cake Tool
#tool nuget:?package=Infotreasury.Library.Validation&version=1.0.28
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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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)