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 8208077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:13:08+00:00 2026-06-07T09:13:08+00:00

I really cannot figured out why under the WPF client to RIA Services I

  • 0

I really cannot figured out why under the WPF client to RIA Services I cannot see methods to Update, Insert and Delete. But I can see all “GET” methods only.

RiaService.DomainServicesoapClient proxy = new RiaService.DomainServicesoapClient( EndPointConfigurationNameData, EndpointAddress);

proxy.GetClients(); // That's OK

// But where is  ????
proxy.UpdateClient(...

The code below has been generated by Visual Studio 2010.

[RequiresAuthentication]
[EnableClientAccess()]
public class RiaDomainService : LinqToEntitiesDomainService<MyEntities>
{
   .....
// TODO:
        // Consider constraining the results of your query method.  If you need additional input you can
        // add parameters to this method or create additional query methods with different names.
        // To support paging you will need to add ordering to the 'Clients' query.
        [Query(IsDefault = true)]
        public IQueryable<Client> GetClients()
        {
            return this.ObjectContext.Clients;
        }

        public void InsertClient(Client client)
        {
            if ((client.EntityState != EntityState.Detached))
            {
                this.ObjectContext.ObjectStateManager.ChangeObjectState(client, EntityState.Added);
            }
            else
            {
                this.ObjectContext.Clients.AddObject(client);
            }
        }

        public void UpdateClient(Client currentClient)
        {
            this.ObjectContext.Clients.AttachAsModified(currentClient, this.ChangeSet.GetOriginal(currentClient));
        }

        public void DeleteClient(Client client)
        {
            if ((client.EntityState != EntityState.Detached))
            {
                this.ObjectContext.ObjectStateManager.ChangeObjectState(client, EntityState.Deleted);
            }
            else
            {
                this.ObjectContext.Clients.Attach(client);
                this.ObjectContext.Clients.DeleteObject(client);
            }
        }

So CRUD methods not getting recognized by the RIA context…
Any clue how to get it under the client side

UPDATES:

I found that this code works like a CRUD

RiaService.ChangeSetEntry changeSetEntry = new RiaService.ChangeSetEntry();
changeSetEntry.Entity = {entity itslef};
changeSetEntry.Operation = RiaService.DomainOperation.Insert;
changeSetEntries.Add(changeSetEntry);

proxy.SubmitChanges(changeSetEntries.ToArray());

My question then: Are there any other methods to realize CRUD operations under WPF client to RIA Services?

  • 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-06-07T09:13:10+00:00Added an answer on June 7, 2026 at 9:13 am

    Based on your updates it looks like you’ve already found the following article, but I’m posting in case someone else might find it interesting as I believe it contains the information you’re looking for:

    http://blogs.msdn.com/b/davrous/archive/2010/12/03/how-to-open-a-wcf-ria-services-application-to-other-type-of-clients-the-soap-endpoint-3-5.aspx

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

Sidebar

Related Questions

I just cannot figure this out, it looks really simple but I'm relatively new
Maybe my English is poor but I really cannot figure out what the indeterminate
This might be really simple, but i cannot figure out the problem with this
I know this is probably really obvious, but I cannot figure out why I
My question might be simple but I really cannot figure out where I went
I'm sure this has been answered before, but I really cannot find it. I
I have been looking around the web for this but cannot really find a
This is really weird, and I cannot see why this is happening. In the
I'm really having a problem finding out how to fix this. I cannot seem
This is a really basic issue, but I'm new to perl and cannot work

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.