var hydropsPositionsQry = from a in _smartWaterOneMapContext.HydropsPosition.Where(s => s.IsDeleted == false)
join b in _smartWaterOneMapContext.StStbprpB.Where(s => s.IsDeleted == false)
on a.Stcd equals b.Stcd into temp1
from t1 in temp1.DefaultIfEmpty()
select new
{
Hp = a,
Status = t1 != null ? t1.Status : null
};
C# linq select new all table object
最新推荐文章于 2025-06-03 21:42:19 发布