Added option to add properties to rule (#66)

* Allow custom property or tags to be added on Rule

Co-authored-by: Anurag Tripathi <anurag.tripathi@microsoft.com>
pull/69/head
Anurag Tripathi 2020-11-02 15:07:52 +05:30 committed by GitHub
parent b68861dfd5
commit 487da74797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,14 @@ namespace RulesEngine.Models
public class Rule
{
public string RuleName { get; set; }
/// <summary>
/// Gets or sets the custom property or tags of the rule.
/// </summary>
/// <value>
/// The properties of the rule.
/// </value>
public Dictionary<string, object> Properties { get; set; }
public string Operator { get; set; }
public string ErrorMessage { get; set; }