Using Entity Framework Core and ASP.NET Core 2.1, how can the results from one table be returned, but only if that row id is NOT found in a second table?
For example, only the first two rows in the Entity1 table should be returned because the third row has a reference stored in the Entity2 table.
Entity1 Table
+-----------+-----------+
| Entity1Id | Name |
+-----------+-----------+
| 1 | Row One |
| 2 | Row Two |
| 3 | Row Three |
+-----------+-----------+
Entity2 Table
+-----------+-----------+-----------+
| Entity2Id | Name | Entity1Id |
+-----------+-----------+-----------+
| 1 | Row One | 3 |
+-----------+-----------+-----------+