Most flexibilities rule engine for .NET [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionMy upcoming project is relate to sales system, so one of the main requirement is "user can modify promotion by themselves". Promotions is vary, they give me some of them.
- Buy 1 get 1 free, Buy 2 get 3.
- One for 30%, two for 50%, three f开发者_如何学Cor 80%
- Buy product A will discount 30% for product B
- 20% off for more than 20$ per transaction
I know a little of rule engine, please suggest me a book to learn it too.
A previous SO answer might be of help: Looking for simple rules-engine library in .NET
Have you looked at Windows Workflow Foundation
You could use a commercial rule engine for .Net like InRule or the .Net version of IBM ILOG Rules or FICO Blaze Advisor. All of them make it easy to expose the rules to the business user in a way that makes it safe for them to edit them while providing technical hooks/APIs to make it easy to integrate the rules engine and execution.
You can use BOO DSL features or use Rhino.DSL (we are using it as a macro engine for our project)
as for your example check out this link
You can use a simple attribute based Rule Engine created by me:
http://ruen.codeplex.com/
精彩评论