Dynamic oneline code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • crabel@whittmanhart.com

    #1

    Dynamic oneline code

    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?

  • rossum

    #2
    Re: Dynamic oneline code


    crabel@whittman hart.com wrote:[color=blue]
    > 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?[/color]

    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

    Comment

    Working...