How to store rule and action in database using nRule

1,418 views
Skip to first unread message

Rajesh Sharma

unread,
Apr 17, 2018, 8:11:39 AM4/17/18
to NRules Users
Hi,
I want to create application in c#  where user can create rule  and action though user interface and can save the rule and action in database or XML. Is is possible to store these rules and actions in database by using NRule.

Regards,
Rajesh 

Sergiy Nikolayev

unread,
Apr 17, 2018, 9:42:09 PM4/17/18
to NRules Users
The primary mechanism for defining rules in NRules is using the fluent DSL in C#. Behind that DSL is the API to define rules at runtime (see https://github.com/NRules/NRules/wiki/Rule-Builder). So, if you have your rules in XML or some other form, you can use the RuleBuilder to create NRules rules.
Alternatively, you can try https://github.com/NRules/NRules.Language, which is in early development, but it's an external language that can be compiled to be used by NRules engine.
Reply all
Reply to author
Forward
0 new messages