R
Robert Bravery
Hi all,
I have a contact class that has as one of its properties a segment list
collection
public List<Segment> SegmentCollection { get; set; }
In the Segment class there is a segmentname property
public class Segment
{
public string SegmentName { get; set; }
}
In my zml I have the following:
<Contact>
<Id>1</Id>
<FirstName>Darrel</FirstName>
<LastName>Schreyer</LastName>
<UserName>Schreyer</UserName>
<Email>[email protected]</Email>
<Title>Mr</Title>
<CompanyName>Win on the Web</CompanyName>
<Position>Developer</Position>
<Branch>Johannesburg</Branch>
<Segments>
<Segment>
<SegmentName>IT</SegmentName>
</Segment>
<Segment>
<SegmentName>HR</SegmentName>
</Segment>
</Segments>
I can get all the other elements but cannot get the segment element into my
segment collection of my contact class
Can some one show me how using linq
Thanks
Robert
I have a contact class that has as one of its properties a segment list
collection
public List<Segment> SegmentCollection { get; set; }
In the Segment class there is a segmentname property
public class Segment
{
public string SegmentName { get; set; }
}
In my zml I have the following:
<Contact>
<Id>1</Id>
<FirstName>Darrel</FirstName>
<LastName>Schreyer</LastName>
<UserName>Schreyer</UserName>
<Email>[email protected]</Email>
<Title>Mr</Title>
<CompanyName>Win on the Web</CompanyName>
<Position>Developer</Position>
<Branch>Johannesburg</Branch>
<Segments>
<Segment>
<SegmentName>IT</SegmentName>
</Segment>
<Segment>
<SegmentName>HR</SegmentName>
</Segment>
</Segments>
I can get all the other elements but cannot get the segment element into my
segment collection of my contact class
Can some one show me how using linq
Thanks
Robert