I have two DataTables. I can join these two tables using LINQ but I am trying to write the following SQL query to LINQ but failed.
What is did for joining two DataTables:
dtMerged = (from a in dtOraDataTable.AsEnumerable()
join b in dtSqlSmsTable.AsEnumerable()
on a["EntrySerialNo"].ToString() equals b["EntrySerialNo"].ToString()
into g
where g.Any()
select a).CopyToDataTable();
Now I want to do:
SELECT * FROM OraSmsData a WHERE EntrySerialNo NOT IN (SELECT EntrySerialNo FROM SqlSmsData WHERE IsProcessed=1);
How can I implement this in LINQ? I will appreciate if anyone guide me here.