0
嗨我有通過ria服務sen。 類的樣子通過ria服務發送自定義DTO
[DataContract]
public partial class AttributeNode
{
[DataMember]
[Key]
public int Uid { get; set; }
public AttributeNode()
{
this.Children = new List<String>();
}
private String text;
[DataMember]
public String Text
{
get
{
return text;
}
set
{
text = value;
this.Uid = text.GetHashCode();
}
}
[DataMember]
[Include]
[Association("AttributeNode_AttributeNode", "Uid", "Uid")]
public List<AttributeNode> Children { get; set; }
public void AddChild(AttributeNode child)
{
this.Children.Add(child);
}
}
的問題是,當我recive目標客戶這也不行。它總是作爲一個孩子包含自己。問題在同一類型的列表上。幫幫我?
Tnx !!