请帮助我在这种情况下 [英] please help me in this scenario

查看:108
本文介绍了请帮助我在这种情况下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我说我有n个公式来计算不同原材料的数量

哪个我存储在数据库中

和不同类型的配置文件



配置文件包括原材料配方取决于让我们说配置周长的高重量

内部重量等

Formule我存储为

W×2或H×2)

计算

我评估表达式

但是对于n个n个不同配方原材料的配置文件

我不能用的时候

什么是最好的选择?

这个场景

Lets say I have n number of formula to calculate qty for different raw materials
Which i Store in database
And different type of profiles
(
Profile include raw materials formula depend on lets say hight weight of profile perimeter
Internal weight etc
Formule I am storing as
W×2 or H×2)
To calculate
I am evaluate expression
But for n number of profile for n number of raw materials with different formula
I cant use case when
What will be best options to proceed
With this scenario

推荐答案

如果您将公式作为文本存储在数据库中,那么请查看数学解析器,例如 Math Parser .NET C# [ ^ ]
If you are storing the formulae on the database as text then look at math parsers e.g Math Parser .NET C#[^]


这篇关于请帮助我在这种情况下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆