Ria services: simple >>object<< properties/fields not appearing on the client side

I'm using Ria services, My POCO object has simple object properties/fields. But they are not appearing on the client side. Please help, My POCO:

[EnableClientAccess]
[DataContract]
public class DataRow
{
   [DataMember]
   [Key]
   public int RowId { get; set; }
   [DataMember] public >>>object[]<<< FieldValue { get; set; };
   public DataRow()
   {

   }
}

I tried field instead property with getter/setter I tried >>>object<<< FieldValue { get; set; } (NOT ARRAY), IEnumerable<object> ... Same results. Using WCF I can do it. For ex. I Have this contract in my wcf service (for sharepoint)

[DataContract]
public class SPFieldValueStub
{
    //[DataMember]
    //public virtual int ListItemIndex { get; set; }
    [DataMember]
    public virtual object Raw { get; set; }
    [DataMember]
    public virtual object Formatted { get; set; }
    [DataMember]
    public virtual IEnumerable<SPFieldValueStub> References { get; set; }
    [DataMember]
    public virtual IEnumerable<object> Properties { get; set; }
    [DataMember]
    public virtual SPFieldStub Field { get; set; }
}
[DataContract]
public class SPListItemStub
{
    [DataMember]
    public virtual IEnumerable<SPFieldValueStub> Values { get; set; }

}

in service implementation I can read data from sharepoint list populate my POCO and return to client. After that I can retrieve POCO's on the client side via generated proxy methods and unwrap (unbox) objects to real types (works fpr me String/Uri/DateTime). I need to do so with RIA.

Answers


Because Object does not contain any fields.


Need Your Help

Any way to make remote file MD5 generation faster?

laravel ftp md5 nfs

We store our files across two servers and have our main site on a small SSD server, we're using a NFS mount to enable viewing of the files on the main site.

php foreach loop behavior

php mysql arrays foreach

I am attempting to run a mysql query for every item in the foreach loop.