The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

adding properties to the generated proxy stub

Last post 12-10-2007, 10:43 AM by msyoung. 4 replies.
Sort Posts: Previous Next
  •  08-24-2007, 5:29 AM 4725

    adding properties to the generated proxy stub

     
    I want to add some child objects to my parent proxy stub to send over the wire.  I added a partial class of the type parentproxy and marked up the properties with the Datamember attribute.  However, they did not show up on the client after running svcUtil.  I had to add the properties to the generated parentproxy to get them to show up.

    What is the best way to customize the datacontract proxies?  I need to be able to send up some of the child info when creating the parent and have it all saved at once, and since the proxystubs do no serialize child elements, it appears the only way to do this is to add the properties to the generated proxies. 

    OOPS  -----

    I included in the existing class in the file, rather than standing alone as it's own.  But if you have comments on the best ways to customize a data contract, i'M still all ears. 

     

    Filed under:
  •  08-28-2007, 8:19 PM 4844 in reply to 4725

    Re: adding properties to the generated proxy stub

    I wonder if you could inherit from our proxies and add the additional properties that way? and thus avoid hand editing generated code.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  12-10-2007, 7:43 AM 7091 in reply to 4844

    Re: adding properties to the generated proxy stub

    I am finding that I continue to need add properties to the generated proxies, like child collections.  Perhaps if the proxystubs were marked as partial classes, I could add the properties to the custom files instead of editing generated code.  What do you think?
  •  12-10-2007, 8:08 AM 7092 in reply to 7091

    Re: adding properties to the generated proxy stub

    The ProxyStub classes are partial classes now, this was done as of ES 2007 v1119

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  12-10-2007, 10:43 AM 7093 in reply to 7092

    Re: adding properties to the generated proxy stub

    I had a feeling you might be saying that.  Thank you. 

    That's what I get for having too my ES apps in production.  Can't always gen up to the latest iteration. Wink

View as RSS news feed in XML