I have a list of my entities and I'm using Select to get some properties from my entity. My entity has a PrimaryContact property and this has a LastNameproperty. So If I use like this it's working fine
var b = items.Select(s => s[PropertyName]); //Property name is "PrimaryContact" it's fine.
but If I use "PrimaryContact.LastName" this is not working
var x = items.Select(s => s[PropertyName]); //Property name is "PrimaryContact.LastName" it's not working
PropertyName might be evrything: "PrimaryContact.LastName", "PrimaryContact.FirstName", "PrimaryContact.Address.City"
Could someone help me on that please.