Remove certain properties from object upon query EF Core 2.1
问题 I'm trying to null or remove the ID entirely of all the queried IsoDataTables before returning them to frontend. The idea is that it should behave (in this case) as a template and I don't want it returning the id's back to me, nor do I want them to be removed in the frontend. var applicationType = await _context.ApplicationType .Include(m => m.IsoTableData) .AsNoTracking() .FirstOrDefaultAsync(m => m.Id == id); if (applicationType == null) { return NotFound(); } if (applicationType