My project requires users to create some basic math functions, I need to store these in a ms sql databse to use on datasets in my business logic.
The functions will be similar to: when (value1 between 20 and 40) then value2 = value 2 * 37.8
What is the best schema to store something like this ?
And what is the most efficient way to translate the persisted function back so I can apply it to datasets ?
I'm using c# and ms sql 2008