public static Rule Rule092_ColumnsMustEndWithAClassWord() { Rule r = new Rule("All logical names are expected to end with a class term, or a combination thereof, that semantically represents the data type of a data element.", 92, "System.Data.DataColumn"); r.Consequent.RuleExpressions.Add(TestData_RuleExpressions.LogicalName_EndsWithAny_CLASSWORDS()); return(r); }
internal static Rule Rule123_ColumnsMustBeMoreThanAClassWord() { Rule r = new Rule("Attribute names need to be more than class words.", 123, "System.Data.DataColumn"); r.Antecedent.RuleExpressions.Add(TestData_RuleExpressions.LogicalName_EndsWithAny_CLASSWORDS()); r.Consequent.RuleExpressions.Add(new RuleExpression("LogicalName", ComparisonConditionEnum.Contains, "more than a classword")); return(r); }