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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:17:06+00:00 2026-06-07T12:17:06+00:00

Is it possible to use WCF Data Services to provide CRUD access to an

  • 0

Is it possible to use WCF Data Services to provide CRUD access to an entity that is stored in a federation member on SQL Azure Federation?

Assuming the federation key is stored in the security principal and is readily available in the application context, is there a way to intercept the service operations and issue the appropriate USE FEDERATION commands, opening the connection at the right time, as one would do if explicitly developing for ADO.NET Entity Framework?

  • 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-07T12:17:07+00:00Added an answer on June 7, 2026 at 12:17 pm

    I solved this issue by attaching an event handler to the “Connection.StateChange” property of the DbContext used by the WCF Data Service.

    In this event handler, when the ConnectionState changes to Open I execute a “USE FEDERATION” command with the appropriate arguments (partition key and filter).

    This way, every time the service is opening a new database connection, I make sure the first command issued in this connection is “USE FEDERATION”. All subsequent commands on that connection operate in this context.

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

Sidebar

Related Questions

I would like to use WCF RIA Services to access data from my Silverlight
Is it possible to use the service driven paging feature in WCF Data services
I have a project in which I use WCF Data Services to expose access
Possible Duplicate: Injecting data to a WCF service I have a WCF service that
I have a WCF Windows service that provides data to 250+ PDAs via compressed
I am putting together a WCF Data Service for PatientEntities using Entity Framework. My
from what i've seen so far WCF Data Services are pretty easy to setup
How would I tell the WCF service what KnownTypes to use when passing data
I'm fetching data (images, 200-400kb) from WCF service to Silverlight client and notice that
Is it possible to use oData with a WCF service application but not use

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.