Irwsoft NETCore Asp

Validation Rule/Expression

Irwsoft NETCore Asp (INA) provides custom validation using INA validation rule/expression. The INA validation rule/expression shares common syntaxes like C/Java language with different symbols for all keywords. These validation rule/expression helps developer to create same validation in either client and server validation.

INA Validation Rule/Expression format :

     [Entry Condition]@[Statements]

Entry Condition :

  • NN , the current value must not null, then other validation statements occurs.
  • N , the current value must null, then other validation statements occurs.
  • ? , ignores any value of the current value, and do other validation statements.

Statements :

  1. Condition Statement :
    • $?(x) , if statement where x is a condition expression.
    • $??(x) , else if statement where x is a condition expression
    • $?- , else statement.
  2. Computational Operators :
    • $+ , addition.
    • $- , subtraction.
    • $/ , division.
    • $% , modulus.
    • $* , multiplication.
    • $-- , decreament.
    • $++ , increament.
  3. Logical Operators :
    • $&& , and.
    • $|| , or.
    • $!, not.
    • $== , equality.
    • $!= , not equal.
    • $> , greater.
    • $>= , greater or equality.
    • $<= , less or equal.
    • $< , less.
  4. Bitwise Operators :
    • $& , bitwise AND.
    • $| , bitwise OR.
    • $<<, bitwise Left Shift.
    • $>> , bitwise Right Shift.
    • $^ , bitwise XOR.
    • $~ , bitwise NOT.
  5. Assignment Operators :
    • $= , assignment.
    • $+= , compound addition assignment.
    • $-=, compound subtraction assignment.
    • $*= , compound multiplication assignment.
    • $/= , compound division assignment.
    • $%= , compound modulus assignment.
    • $&= , compound bitwise AND assignment.
    • $|= , compound bitwise Or assignment.
    • $^= , compound bitwise XOR assignment.
    • $<<= , compound Left Shift assignment.
    • $>>= , compound Right Shift assignment.
  6. Other syntaxes :
    • ( ) , curve brackets.
    • { } , curly brackets.
    • $;, end of statement.
    • $R , validation result variable.
    • $T , current text.
    • $V , current value.
    • $V-x , value of x where x is property name.
    • ${x-text} , text of a control where x is a control ID.
    • ${x} , value of a control where x is a control ID.
    • ${x1-x2} , value of a control where x1 is a control ID and x2 is property name.
    • $[x] , variable accessor, where x is variable name.
    • $[V-x] , variable declaration, where x is variable name.
    • $[N-x] , a number constant, where x is a number.
    • $[S-x]$] , a string constant, where x is a string.
    • $[B-x] , a boolean constant, where x is a boolean (true or false).
    • $[A-[x]-] , an Array value, where x is an array constant.
    • $[O-x-] , an object constant, where x is an object value.
  7. Invocation syntaxes :
    • $(x(x1)-) , a method invocation, where x is a method name, and x1 is a parameter/s (optional).
    • $(x-x1[x2]) , a member (idexer) of an object invocation, where x1 is an indexer name and x2 is an index.
    • $(p-x) , a member (property) of an object invocation, where x is a property name.
    • $(m-x(x1)-), a member (method) of an object invocation, where x is a method name, and x1 is a parameter/s.

Related Topics :

Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).