Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6038757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:16:07+00:00 2026-05-23T06:16:07+00:00

I ham developing a Silverlight RIA solution that needs to return a hierarchical model

  • 0

I ham developing a Silverlight RIA solution that needs to return a hierarchical model from the server which is declared as below.

Imports System.ComponentModel.DataAnnotations
Imports System.Collections.Generic
Imports System.Runtime.Serialization

<DataContract()>
Public Class Concerns

    <Key()>
    <DataMember()>
    Property ID As Integer
    <DataMember()>
    Property ParentID As Integer
    <DataMember()>
    Property IssueID As String
    <DataMember()>
    Property Version As Integer
    <DataMember()>
    Property ShortDescription As String
    <DataMember()>
    Property DetailedDescription As String
    <DataMember()>
    Property OriginatingDepartment As String
    <DataMember()>
    Property OriginatingBusinessUnit As String
    <DataMember()>
    Property BusinessUnitAffected As String
    <DataMember()>
    Property ProjectModel As String
    <DataMember()>
    Property Category As String
    <DataMember()>
    Property Priority As Integer
    <DataMember()>
    Property ApprovalStatus As Integer
    <DataMember()>
    Property ProductLifeCycle As String
    <DataMember()>
    Property ListItemID As Integer
    <DataMember()>
    Property CreateDate As Date
    <DataMember()>
    Property CreateBy As String
    <DataMember()>
    Property EditedDate As Date
    <DataMember()>
    Property EditedBy As String
    <DataMember()>
    <Association("Concerns", "ID", "ParentID")>
    Property History As New List(Of Concerns)

End Class

The issue I have is that although the History property is populated server side when returned to the Silverlight client as a ReadOnlyObservableCollection the History property does not come over.

I have tried flagging the class with the <CollectionDataContract()> annotation but nothing returns.

EDIT: Following Jehof post the History property now returns across the service but the data populated in the History collection does not appear client side.

Any idea what I am missing?

Phil

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:16:08+00:00Added an answer on May 23, 2026 at 6:16 am

    You need to define a Association between Concerns and and its containing Concerns (Parent-Child-Structure). To do that you need to decorate the History property with the AssociationAttribute. Also you must add a property ParentId to your Concerns class that will be used in the Association.

    <DataContract()>
    Public Class Concerns
    
      <Key()>
      <DataMember()> _
      Property ID As Integer
    
      <DataMember()> _
      Property ParentID As Integer
    
      <DataMember()> _
      <Association("Concerns", "ID", "ParentID")>_
      <Include()> _
      Property History As New List(Of Concerns)
    
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

e = ('ham', 5, 1, 'bird') logfile.write(','.join(e)) I have to join it so that
I am implementing a RESTful web service that currently handles JSON and needs to
I come from C++ and JAVA, which with Scope there is either global or
In a project built with GNU Autotools, I have a script that needs to
I'm working on a side project for HAM Radio examination where the user enters
Suppose there are two strings: $1 off delicious ham. $1 off delicious $5 ham.
I have a json string but the format is strange [[5706,[ [1132001,Aston Villa,West Ham,5706,'2010-08-14T15:00:00.0000000',[[1966752,0],[1977724,1]],[],,,,,64,63],
If I edit two modules, eggs and ham, and module eggs imports ham, how
Imagine a Flex application which contains spam/eggs.as : package spam { public var eggs:Eggs
I have a windows server 2008 with a mail server installed. For every emails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.