Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6085871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:41:16+00:00 2026-05-23T11:41:16+00:00

I am developing a solution with Silverlight RIA Services. One of the requirements is

  • 0

I am developing a solution with Silverlight RIA Services. One of the requirements is “push” notification to clients, which I am implementing using a blocking call to the server, that returns when an update is recieved. Trying to implement this using a generic structure, I’ve come to this data structure:

    public class Change
{
    public ObjectType Type { get; internal set; } // objecttype is an enum
    public int ObjectKey { get; internal set; }
    public string PropertyName { get; internal set; }
    public object OldValue { get; internal set; }
    public object NewValue { get; internal set; }
    //key required for RIA Services
    [Key]
    public Guid ChangeGuid { get; private set; }
}

Apart from some obvious flaws in this design (this is just a test), the properties OldValue and NewValue are not visible on the client, due to their type of object. The values of these properties will always be an Entity Framework primitive.

Is there any way of getting OldValue and NewValue to the client without converting everything to strings?

Googling didnt get me very far due to the object keyword cluttering up the search results.

Any general solution regarding my problem is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:41:17+00:00Added an answer on May 23, 2026 at 11:41 am

    If you serialise across WCF as “object” you cannot reintroduce other interfaces/types on the client side implicitly. You are effectively serialising them as string anyway.

    The internal details about what sort of object “it really is” are not retained across serialisation.

    How about one nullable member, per ObjectType enum value, and only set the one you need? This may add a small overhead to the data transferred but may be more manageable and will give you strongly typed objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a solution which uses an ActiveX control (a commercial one which we
I'm using SL4 and RIA Services to build a new solution based on the
I ham developing a Silverlight RIA solution that needs to return a hierarchical model
I am developing a Reporting Services solution for a DOD website. Frequently I'll have
I'm developing a custom SharePoint solution which consist of a feature and a timer
I am developing an custom API for a web solution and I am using
I'm developing a solution for SharePoint 2007, and I'm using SPSecurity.RunWithElevatedPrivileges a lot, passing
Currently i am working on developing one Warehouse solution from scratch, i am planning
I am developing a solution of two parts : part one is SMS encrypting
We are developing a Sharepoint solution using Visual Studio 2008 Extensions for SharePoint Svcs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.