Epicor 10.1 - Get Value or 0
decimal PartsPerContainer =
(from p in Db.Part.With(LockHint.NoLock)
where p.Company == ttPartTranRow.Company && p.PartNum == ttPartTranRow.PartNum
select p.PartsPerContainer).DefaultIfEmpty(0).First();
ttPartTranRow["Number01"] = PartsPerContainer;