Hello,
Is there a way to get the conversion factor (shows 60 in below) by code.
Actually, need the case to lb conversion factor exactly.

Hello,
Is there a way to get the conversion factor (shows 60 in below) by code.
Actually, need the case to lb conversion factor exactly.

Best answer by aleksandrsechin
Have you tried something like this?
var unit = new SelectFrom<INUnit>
.Where<INUnit.inventoryID.IsEqual<@P.AsInt>
.And<INUnit.fromUnit.IsEqual<@P.AsString>>
.And<INUnit.toUnit.IsEqual<@P.AsString>>>
.View(graph)
.SelectSingle(inventoryID, fromUnit, toUnit);
var conversionFactor = unit?.UnitRate;
Or were you looking for a built-in or more straightforward method to handle this?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.