WCF RIA Services - returning custom class of two already defined classes
问题 I have a Silverlight / WCF RIA Services application that uses EF 4. Currently, there is a domain service that returns two types of classes, OrderItem and Event. I'd like to create a class that contains both of these items for easier manipulation of the data at the XAML level. Here is what the class that combines the two classes looks like: [Serializable] [DataContract] public partial class EventOrderItem { [Key] [DataMember] public string EventOrderItemKey { get { return Event.EventID