Ria Services Passing Complex Object as parameter to a query domain service method

前端 未结 2 685
余生分开走
余生分开走 2021-02-19 20:55

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) shou

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 21:58

    Super old question, I know. But I just got bit by this, and found an answer. From the MSDN Docs on ComplexObject:

    But a ComplexObject differs from an Entity in important ways. In particular, complex types do not have identities. This means that they do not have members marked with the KeyAttribute and so clients cannot do identity caching for them as it does for entities. Complex types cannot be shared or referenced from multiple parent instances and they do not support inheritance.

提交回复
热议问题