gsm*_*ida 0 c# linq entity-framework repository linq-to-sql
我正在从表中选择一些数据,其中包含与表有关系A的列value和类型,B其中有一列coef包含(-1,0,1)
从AI中检索时想要将valuewith 乘以coef.
像这样的东西?
var result = from a in tableA
join b in tableB on a.Key = b.ForeignKey
select new
{
Value = a.value * b.coef
};
Run Code Online (Sandbox Code Playgroud)