Dynamic oneline code

  • Thread starter Thread starter crabel
  • Start date Start date
C

crabel

I have a bunch of expressions stored in the DB that return a boolean
value.

Is there any way to dynamically parse the DB records so it returns a
boolean value at run time?
I know I can use the Compiler but thats too resouce intensive to create
a assembly for alot of records (130 records).

Surely c sharp has got to have some kind of eval function like in js or
something?

If not, any solution to this dilema or am I stuck with having to use
assemblies?
 
I have a bunch of expressions stored in the DB that return a boolean
value.

Is there any way to dynamically parse the DB records so it returns a
boolean value at run time?
I know I can use the Compiler but thats too resouce intensive to create
a assembly for alot of records (130 records).

Surely c sharp has got to have some kind of eval function like in js or
something?

If not, any solution to this dilema or am I stuck with having to use
assemblies?

How about programming the database to return the boolean value as a
calculated column? Alternatively add an actual column to the database
with the calculated value in it - if the data is not volatile then you
will only have to calculate it once. For 130 records it is even
possible to calculate it by hand.

rossum
 
Back
Top