Type = SqlFunc.IF(s.Type == 10).Return(1) 
            .ElseIF(s.Type == 20).Return(2) 
            .End(0)

等同于Select语句中的

(CASE 
WHEN ( [s].[type] =10 ) THEN 1 
WHEN ( [s].[type] = 20 ) THEN 2 
ELSE 0 
END ) AS [Type]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-01-03
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2021-07-13
  • 2021-12-04
相关资源
相似解决方案