Ria Services Passing Complex Object as parameter to a query domain service method
问题 I'm experiencing some difficulties with a WCF RIA Services similar to the problem specified in this thread. The domainservice method I'm creating (a Query method) should take a complex object parameter. example domainservice method: public ComplexObjectResult GetComplexObject(ComplexObjectParameter test) { //do stuff } the parameter object: public class ComplexObjectParameter { [Key] public decimal ID { get; set; } ... other fields } I get this compilation error: Error 70 Parameter 'test' of