Search code examples
c#silverlightmvvmwcf-ria-services

RIA Services partial class issue


In RIA Services I define some partial class for the entity. (It is under *.shared.cs)

This partial class has some new fields that doesn't have entity.

And I have a method to populate those fields of the entity including the extra partial class fields.

When I debug that RIA Services method I can see that ALL Partial class fields are populated well. So they are NOT NULL.

When I get callback from RIA Services in Silverlight code (MVVM) I can see ALL fields:

  1. Basic entities fields.
  2. Extra partial class fields.

!!! But the partial class fields are NULL !!!

What I am missing there? Any clue?

Thank you!

enter image description here


Solution

  • Finally I found other way to realize things I need:

    I just created a SQL Server View and that's it! :)

    So I recommend to use this approach.