Question : Add a child class to a domain service POCO in Silverlight RIA

I currently have a class like below
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
public class Example
{
[Key] public string MyKey { get; set; }
public string SomeValue { get; set; }
public ChildClass MyChild { get; set; }
}
public class ChildClass 
{
public bool IsBool { get; set; }
}


Now if I go and create a domain service for this class it works well. I can access the objects properties from the silverlight application. But when it comes to a datacontext, I am unable to databind to MyChild.IsBool because the MyChild property doesn't exist.

Can anyone shed some light on this problem?

Answer : Add a child class to a domain service POCO in Silverlight RIA

Random Solutions  
 
programming4us programming4us