OpenPetra
Free Administration Software for Non-Profits
Ict.Tools.CodeGeneration.TDataValidation Class Reference

functions for data validation More...

Public Types

enum  TAutomDataValidationScope {
  advsAll , advsNotNullChecks , advsDateChecks , advsStringLengthChecks ,
  advsNumberRangeChecks
}
 Spefies the scopes of automatic data validation. More...
 

Static Public Member Functions

static bool GenerateAutoValidationCodeForDBTableField (TTableField ADBField, TAutomDataValidationScope AScope, List< TConstraint >AConstraintsGroup, out string AReasonForAutomValidation)
 Determines whether automatic Data Validation code should be created for a certain DB Table Field. More...
 

Detailed Description

functions for data validation

Member Enumeration Documentation

◆ TAutomDataValidationScope

Spefies the scopes of automatic data validation.

Enumerator
advsAll 

All checks

advsNotNullChecks 

Only NOT NULL checks

advsDateChecks 

Only Date checks

advsStringLengthChecks 

Only String Lenght Checks

advsNumberRangeChecks 

Only Number Range Checks

Member Function Documentation

◆ GenerateAutoValidationCodeForDBTableField()

static bool Ict.Tools.CodeGeneration.TDataValidation.GenerateAutoValidationCodeForDBTableField ( TTableField  ADBField,
TAutomDataValidationScope  AScope,
List< TConstraint AConstraintsGroup,
out string  AReasonForAutomValidation 
)
inlinestatic

Determines whether automatic Data Validation code should be created for a certain DB Table Field.

Parameters
ADBFieldDB Field.
AScopeScope of the Data Validation that should be checked for. Specify TAutomDataValidationScope.advsAll to find out if any of the scopes should be checked against, or use any other value of that enum to specifiy a specific scope.
AConstraintsGroupThe constraints for the table associated with this column. Can be null unless this is doing table validation rather than control validation
AReasonForAutomValidationContains the reason why automatic data validation code needs to be generated.
Returns
True if automatic Data Validation code should be created for the DB Table Field passed in in ADBField for the scope that was specified with AScope , otherwise false.

The documentation for this class was generated from the following file: