3

I need some advance feature of SQL inside sqlkata such as outer apply of IIF expression inside the projection. is there any way to create such query inside sqlkata?

Navid_pdp11
  • 3,487
  • 3
  • 37
  • 65

1 Answers1

2

The only way to achieve this is by using the SelectRaw method.

query.SelectRaw("IIF(a > b, 'larger', 'smaller') as col").Select("Id");
amd
  • 20,637
  • 6
  • 49
  • 67