Reputation: 1449
Is it possible to store Math expressions in a database with EF C# Linq. I have a Category class that is represented as a table in the database. I want to be able to add, update and delete the math expression. The math expression is going to be used when calculating a price for that specific category. It will be associated with category. Is it possible to parse the expression if I store it as string or is there a better way?
Upvotes: 3
Views: 805
Reputation: 2954
You can use Eval Expression.NET
Related Link: https://codereview.stackexchange.com/questions/57928/arithmetic-operation-from-string
Upvotes: 2