1
How to mount the query below in Lambda and/or Linq?
select
emp.cd_empresa AS ID,
emp.nm_razao_social + ' (' + emp.nm_fantasia + ')' AS EMPRESA,
(SELECT COUNT(con.cd_consulta) from tb_consulta_empresa con where con.cd_empresa = emp.cd_empresa and con.cd_consulta = 590) AS STATUSfrom tb_empresaemp order by 3 desc
Thank you! Exactly that.
– Bruno Souza