0

AutoGeneratedKeyType is defined in breeze.debug.js. However, now that I'm using DataService, I now also have to include the file breeze.dataService.webApi.js

Now when I call the method saveChanges(), I get an error in this file on the line :

 if (e.entityType.autoGeneratedKeyType !== AutoGeneratedKeyType.None) {

in the method prepareSaveBundle

The error is "AutoGeneratedKeyType is undefined". It seems this enum is only known to the file breeze.debug.js. Could that be a bug ?

4

1 回答 1

2

您是从 Breeze 站点上的 zip 运行还是直接从 GitHub 运行?GitHub 版本正在进行中,会有错误。Breeze 网站上的 zip 是完整版本。

除非您使用的是轻风.base.xxx.js,否则永远不应该包含微风.dataService.webApi.js。相反,只需使用微风.js 或微风.min.js。这些有点大,但包括所有适配器库。

于 2013-05-28T08:12:26.370 回答