<MudDataGrid T="EntityVitalityModel" Items="@_data"
             SortMode="SortMode.Multiple"
             Filterable="true"
             Hideable="true">
    <Columns>
        <PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/>
        <PropertyColumn Property="x => x.Health"/>
        <PropertyColumn Property="x => x.Armor"/>
        <PropertyColumn Property="x => x.Defense"/>
        <PropertyColumn Property="x => x.DefenseLayer"/>
        <PropertyColumn Property="x => x.IsStructure"/>
        <PropertyColumn Property="x => x.IsEtheric"/>
        <PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/>
        <PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/>
    </Columns>
</MudDataGrid>

@code {

    readonly IEnumerable<EntityVitalityModel> _data = EntityData.Get()
        .SelectMany(e => e.Value.EntityParts)
        .OfType<EntityVitalityModel>()
        .ToList();

}