Linq method – Return rows only found in another table

I want to return the Tags from the Tag table that are only found in the TagRecipe table. How can I do this?

            var dataTags = await _context.Tags
                .Include(tc => tc.TagCategory)
                .ToListAsync();

Thank you



Read more here: https://stackoverflow.com/questions/68477793/linq-method-return-rows-only-found-in-another-table

Content Attribution

This content was originally published by James at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: