我有以下XML配置......
<?xml version="1.0" encoding="UTF-8"?>
<Schema xmlns="http://schemas.microsoft.com/ado/2008/09/edm" Namespace="IncidentMgt">
<EntityType Name="in">
<Property Name="persistent_id" Type="Edm.String" Nullable="true" MaxLength="30"/>
<Property Name="active_f" Type="Edm.Int32" Nullable="true"/>
<Property Name="add_property_persids" Type="Edm.String" Nullable="true"/>
<Property Name="add_workflow_persids" Type="Edm.String" Nullable="true"/>
</EntityType>
<EntityType Name="at">
<Property Name="persistent_id" Type="Edm.String" Nullable="true" MaxLength="30"/>
<Property Name="active_f" Type="Edm.Int32" Nullable="true"/>
<Property Name="add_property_persids" Type="Edm.String" Nullable="true"/>
<Property Name="add_workflow_persids" Type="Edm.String" Nullable="true"/>
</EntityType>
</Schema>
以下是我的XML Reader配置:
reader : {
type : 'xml',
record : 'Property',
rootProperty: 'EntityType',
}
我的模特:
字段:[{name:'Name',mapping:'@ Name'}]
我在加载商店时遇到问题....你能告诉我哪里出错了/我应该在哪里改变这项工作