From 487da74797e9e74162fefdd073889a6afbb96827 Mon Sep 17 00:00:00 2001 From: Anurag Tripathi Date: Mon, 2 Nov 2020 15:07:52 +0530 Subject: [PATCH] Added option to add properties to rule (#66) * Allow custom property or tags to be added on Rule Co-authored-by: Anurag Tripathi --- src/RulesEngine/Models/Rule.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/RulesEngine/Models/Rule.cs b/src/RulesEngine/Models/Rule.cs index 5be2937..3f979c0 100644 --- a/src/RulesEngine/Models/Rule.cs +++ b/src/RulesEngine/Models/Rule.cs @@ -17,6 +17,14 @@ namespace RulesEngine.Models public class Rule { public string RuleName { get; set; } + + /// + /// Gets or sets the custom property or tags of the rule. + /// + /// + /// The properties of the rule. + /// + public Dictionary Properties { get; set; } public string Operator { get; set; } public string ErrorMessage { get; set; }