How can we improve Breeze.js?

Enable type coercion of EDM default values on key fields (not just non key fields)

Breeze will coerce int32 default values to be js integers if they are not navigation id fields. But if they are a key field breeze does not coerce them, and they enter the model as strings.
Can key (navigation) fields get the coercion same as regular non key fields?

3 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Joe Warwick shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Joe Warwick commented  ·   ·  Flag as inappropriate

    I should add that this issue occurs on newly CreateEntity created entities. It would be beneficial to have these default values coerced as then the navigation key columns don't have to be specifically specified in the CreateEntity call (so as to override the default string values). This is better for obfuscation purposes and to keep responsibility for model validity on the server side.

Feedback and Knowledge Base