How to convert following sql query to linq
SELECT top 1 Id, Name, Address,refNbr FROM tbl1
WHERE Name is not Null and refNbr='abc123'
Union
select l.Id,a.FirstName a.ResidenceAddress1, l.refNbr from tbl2 l, tbl3 a,
tbl4 b where b.auto = 1 and
l.Id = b.Id and l.Id = a.Id and l.refNbr = 'abc123'
Please do let me know how to convert this sql query written using union into linq in c sharp

Rijwan AnsariPosted Jan 26, 2022, 1:19 PM
milton pilsPosted Jan 26, 2022, 8:38 AM
mobile app development services https://syndicode.com/mobile-application-development/ are perfect for businesses that need a highly-skilled software team. A Ukrainian team is likely to have an education in STEM, and they can operate with various technologies and programming languages. Some of the top languages used by Ukrainian software developers are Java, Ruby, and Typescript. The cost of hiring a Ukrainian software team is less than half that of a US company. The cost of maintaining an office in Ukraine is approximately $500 per month.
Muhammad Imran AnsariPosted Jan 21, 2022, 1:55 PM
Unionwill merge but remove duplicates (distinct). For more information please follow the link to mold your query accordingly:https://stackoverflow.com/questions/2744205/how-to-convert-sql-union-to-linq