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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:41:38+00:00 2026-06-18T07:41:38+00:00

I am using Breeze to create a dynamic data edit grid. After I add

  • 0

I am using Breeze to create a dynamic data edit grid. After I add a new entity to the manager, edit the properties, save it to a WebAPI service and make a local query, I get the same entity twice. One entity is with the server generated key in entitystate unchanged, the other is with primarykey -1 and in entitystate added.

Don’t really know what I am doing wrong or did’nt understand the mechanics behind Breeze.

Note.

I am using a custom contextprovider with the savechanges method overridden. I am returning in the keymap the entity type, realvalue (DB generated key), tempvalue (key that was assigned by Breeze, e.g. -1).

EDIT.

I solved the problem. I had a bug in my custom contextprovider. I forget to actually add the keymap I was generating to the result of the savechangescore method.

  • 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-18T07:41:39+00:00Added an answer on June 18, 2026 at 7:41 am

    I solved the problem, i had a bug in my custom contextprovider. I forget to actually add the keymap i was generating to the result ov the savechangescore method.

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

Sidebar

Related Questions

Let's say I want to use Breeze to create a Task entity (I'm using
I'm working on an SPA which is using breeze for data access. I want
Im using Moq to create mocks of a data set. I have created a
We are using Hibernate 4.1.4 with an entity manager implementation and are very pleased
Usually using Visual Studio's debugger is a breeze. Scanning through Locals quickly shows the
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I wanted to start using breeze js with an existing application. This application already
I want to update/create a SharePoint List using InfoPath. So far I have the
I'm using breeze.js in a SPA and have problem with entities loaded from server.
Lately I've been using client-side jQuery scripts to fill in forms when users edit

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.