DataRule Class

A rule that the incoming data wil have to follow

Definition

Namespace: Ensur.Core.Main.POCOs.Forms
Assembly: Ensur.Core.Main (in Ensur.Core.Main.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public class DataRule
Inheritance
Object    DataRule

Remarks

I'm putting all the actual test functions for the data rules in this object as static functions. If (for some reason) a customer wants to add their own data rules, we shoudl: 1) Separate the data rules into their own objects with a basic datarule interface 2) Load all the data rule objects into a cached dictionary using reflection 3) Use plugins to load any other data rules.

Properties

Description A text description of the data limitation
RuleType The type of data rule
Value The text or numeric value of the limitation

See Also