Пример #1
0
        protected virtual void UpdateBrokenRule(BrokenRule brokenRule)
        {
            var message = LocalizableMessageFunc != null?LocalizableMessageFunc(this) : Message;

            brokenRule.Message  = message;
            brokenRule.Owner    = Owner;
            brokenRule.Severity = Severity;
        }
Пример #2
0
        //public static T SuppressNextNInvocation<T>(this T rule, int n)
        //    where T : Rule
        //{
        //    return rule;
        //}

        #endregion

        public static T AddBrokenRule <T>(this T extension, BrokenRule brokenRule)
            where T : IEntityExtensions
        {
            extension.BrokenRules.Add(brokenRule);
            return(extension);
        }
Пример #3
0
 public BrokenRuleEventArgs(BrokenRule rule)
 {
     BrokenRule = rule;
 }