Reputation: 9911
Is it possible to have child objects on RIA Services entities that are also entities themselves?
public class Project
{
[Key]
public int ID { get; set; }
[Editable(false)]
public String Name { get; set; }
public Machine Machine { get; set; }
}
public class Machine
{
[Key]
public int ID { get; set; }
[Editable(false)]
public String Name { get; set; }
}
Upvotes: 0
Views: 421
Reputation: 3956
You can specify the [Include]
attribute on the Machine
property in the metadata class and add a call to Include("Machine")
on the object context query.
Upvotes: 2