How to change the default severity on a CommoRule

How to change the default severity on a CommoRule

Old forum URL: forums.lhotka.net/forums/t/8956.aspx


tiago posted on Tuesday, May 18, 2010

On the old rule system, I was able to change the default severity of a CommonRule.

On the new system, I can't figure out how it can be done.

RockfordLhotka replied on Tuesday, May 18, 2010

You really can't - unless I enhance the rules so you can set a property to indicate your desired severity.

Is that worth it I wonder?

tiago replied on Wednesday, May 19, 2010

Good question. And the answer is...

I guess so. Otherwise we have to go to CSLA source code, copy CommonRules and add Warning and Info versions of those rules. Well, at least Warning. Take "Required". There are times when required isn't really a "must" that raises an error but a "should" that raises just a warning.

RockfordLhotka replied on Wednesday, May 19, 2010

That is a very good point - I agree and will add this to the list for beta 2.

Copyright (c) Marimer LLC