1

如果我的翻译正确,有人能告诉我吗?这是我的 SQL:

CASE WHEN p.prioid IN ('1 - Routine', '6 - Planned Outage') THEN 'Planned' ELSE 'Unplanned' END as Planning

这是我的 Ling to SQL:

List <string> routines = new List<string>();
routines.Add("1 - Routine");
routines.Add("6 - Planned Outage");

Planning = routines.Contains(pri.Prioid) ? "Planned" : "UnPlanned";
4

0 回答 0