I realize now that my original sample code was too simplistic. In reality, the "Team" object was an (incorrect) projection from a "groupby", where the "City" wasn't available. We figured it out. Thanks for the info!
J
johnnys appleseed
@johnnys appleseed
Posts
-
include nested object's property? -
include nested object's property?Say I have these in-memory objects: Team object. It has 2 properties: Nickname (string) City (another object) City object. It has 1 property: Population (int) Using LINQ, how do I select the Nickname and Population into the same result? I tend to isolate the City object, then join to it using Population. Isn't there a better way? Marty