How to stop WCF data Service to fetch data when SavingChanges (during update)?

For WCF DataServices, the client can only update entities that it tracks. So it has to have the entity downloaded in the client before it can make any changes and save it back. Thats why you see the fetch (I am assuming that this is the first fetch that you are seeing for that specific entity) before the update.

Hope this helps.

I am aware of the first fetch which needs the entity to be made available to the client. What concerns me the second one which does during "SaveChanges" only. When I was debugging the code (both from VS and SQL Profiler), I could see the first fetch (SELECT) happening during the filling of "DataServiceCollection".

When I hit/pass "SaveChanges" (in VS), I see another fetch (another SELECT statement in SQL Profiler) followed with UPDATE statement. – user203687 May 18 at 16:35.

DataServiceCollection oCustomers = new DataServiceCollection(q, TrackingMode. SaveChangesDefaultOptions = SaveChangesOptions. Protected override EF.Model.DataModel.

Var ctxt = new EF.Model.DataModel. MergeOption = System.Data.Objects.MergeOption.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions