public async Task <bool> CodeExists(Guid id) { return(await _context.Set <TEntity>().AnyAsync(o => o.pkId == id)); }