【发布时间】:2020-04-30 16:35:21
【问题描述】:
我需要将以下查询转换为 C# 中的 linq。有人可以分享一个免费的在线工具,或者如果你在 linq 中有很好的命令,那么请用 C# 支持 linq 重写。
select
PaymentHolidayReason as Reason,
EmploymentStatus,
Cast(count(1) as Decimal) as Count,
Cast((select count(1)
from MortgageApplications MortgageApps
where PaymentHolidayReason is not null
and EmploymentStatus is not null) as Decimal) as Total
from
MortgageApplications MortgageApps
where
PaymentHolidayReason is not null
group by
PaymentHolidayReason,
EmploymentStatus
【问题讨论】:
标签: c# sql entity-framework linq