I have a SQL to view table master and detail. How convert to linq. Please help me :
Select B.idchatuser,B.Nama, B.Hp,
(select TOP 1 CreatedTime from ChatUserConversation
where IdChatUser = B.IdChatUser order by CreatedTime) CreatedTime
from ChatUser B
order by CreatedTime desc