Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Breeze 微风与外星_Breeze - Fatal编程技术网

Breeze 微风与外星

Breeze 微风与外星,breeze,Breeze,我对extraMetadata有一种奇怪的行为(我使用的是OData) 1.我已经创建了一个克隆功能—我正在创建新的管理器,并将其导入到我执行操作的实体中 ctor.prototype.clone = function() { var clonedManager = this.entityAspect.entityManager.createEmptyCopy(), exportData = this.entityAspect.entityManager

我对extraMetadata有一种奇怪的行为(我使用的是OData) 1.我已经创建了一个克隆功能—我正在创建新的管理器,并将其导入到我执行操作的实体中

 ctor.prototype.clone = function() {
        var clonedManager = this.entityAspect.entityManager.createEmptyCopy(),
            exportData = this.entityAspect.entityManager.exportEntities([this], true), //export it to the new manager
            cloned;
        clonedManager.importEntities(exportData);
        cloned = clonedManager.getEntityByKey(this.entityAspect.getKey());
        return cloned;

    };
我怎么不得不补充

cloned.entityAspect.extraMetadata = this.entityAspect.extraMetadata;
因为我看到它没有被导出/导入

  • 当我使用expand获取实体时,这些实体不包含额外的元数据
    如果没有额外的元数据,我就无法提交更改-因为从BreezeJs 1.4.13版开始,我得到了异常,这已经得到了修复