I am new to the System.Linq.Dynamic.Core. I have this:
Let's say we have:
Packs = new List<Pack>
{
new Pack()
{
IdAtSource="Pack1",
Equipments= new List<Equipment>()
{
new Equipment
{
Id=1,
GenericEquipment = new GenericEquipment()
{
Id=7
}
}
}
},
new Pack()
{
IdAtSource="Pack2",
Equipments= new List<Equipment>()
{
new Equipment
{
Id=2,
GenericEquipment = new GenericEquipment()
{
Id=1
}
},
new Equipment
{
Id=2,
GenericEquipment = new GenericEquipment()
{
Id=2
}
}
}
}
}
I would like to select the Packs
with Equipments
, but in the selected Equipments
I need to have only the one with Id=2
for Generic Equipment.(the result should contain a list of packs with list of equipments).
I've tried this:
querable.Where("Packs.Equipments.Select((GenericEquipment.Id)=1)");
but I feel I am waaay of target here. Also is there any documentation page on how to use this library?
Thanks a lot