Currently I’ve got a set of EntLib validation rules defined in my classes. The rules will later change based on the client.
What I’d like to do is retain my classes, and simply call the different rule sets defined somewhere for the specific client.
The functionality of this is similar to storing internationalization values in a .resx file, where content changes based on localization parameters, but in this case, the pre-defined rules would change based on the client.
Thank you.
For those who wonder, given the following ruleset for a TerminalId parameter:
Simply adding an additional rule set identifier would do the trick.
… then simply calling the appropriate validation rule set that matches the logged-in client.
Ah EntLib.