我试图为我的entityManager创建第一个实体,但我收到了一个错误:
无法读取属性' _ctorRegistry'未定义的
在第
行var ent1 = entityType.createEntity();
var entityManager = new EntityManager("breeze/NorthwindIBModel");
var entityType = new EntityType( {
shortName: "input"
});
var info = new DataProperty( {
name: "info",
dataType: DataType.String,
isNullable: true,
maxLength: 20
});
entityType.addProperty(info);
var ent1 = entityType.createEntity();
ent1.info = 'this is info';
entityManager.addEntity(ent1);
如何制作第一个实体?