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?
Joe Warwick commented
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.