Simple "rules engine" scripting? RRS feed

  • Question

  • Good Morning,

    I have a vanilla ASP.NET web app, hitting a sql server 2008 database, going thru a netTiers generated DAL.  To accomodate dynamic rules specification, any suggestions as far as a preffered pattern to use?

    Back in the day of original ASP, I did something with the MsScript control, is there a current equivalent?  Dynamic compilation seems like a big hammer?

    Thanks in advance,


    Tuesday, February 8, 2011 1:46 PM

All replies

  • Depends on what rules are used for what and how dynamic they are.

    You could use emit to compile code dynamically, but it's a lot of work if you're just after a somewhat configurable rules engine.

    Tuesday, February 8, 2011 3:05 PM
  • CodeDom is very easy to use, has some limitations but fine for a DIY script engine. I'm currently using it in one project.

    BTW Do NOT use MSScript Control on the server side of a web site, it's a single-threaded-blocking nightmare.


    Wednesday, February 9, 2011 11:05 AM