如何设计规则引擎? [英] How to design a rule engine?

查看:101
本文介绍了如何设计规则引擎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该用C#创建一个简单的规则引擎.关于如何进行的任何线索?这是一个简约的规则引擎,将使用SQL Server作为后端.我们是否有一般适用于规则引擎的一般蓝图或设计模式?我可以使用哪种.Net技术进行设计?任何方向都会有所帮助.谢谢.

I'm supposed to create a simple rule engine in C#. Any leads on how I can proceed?. It's a minimalistic rule engine, and would use SQL server as the back end. Do we have any general blueprint or design patterns that generally apply to rule engines? What kind of .Net technologies can I use to design one? Any directions would be helpful. Thanks.

推荐答案

如果使用的是.NET 3.0或更高版本,则

If you're using .NET 3.0 or later, you can use the Rules Engine of Windows Workflow Foundation without having to acutally use Workflow.

我已经在一个项目上完成了此操作,您可以将SQL或XML用作后端,并且效果很好.您可以使用Workflow示例随附的IDE,并将其放在自己的应用程序中.太好了.

I've done this on a project, and you can use SQL or XML as the backend, and it works great. You can use the IDE that comes with the Workflow examples and put it in your own apps. It's excellent.

这篇关于如何设计规则引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆