BreezeJS无法解析具有多个命名空间的EDM元数据?

时间:2015-03-24 07:19:12

标签: angularjs asp.net-web-api odata breeze

我正在使用集成的WebAPI ASP Identity架构,使用Breeze,OData,WebAPI和Angular(BOWA)编写Web应用程序。当breeze使用$元数据时,它无法完成并发出'null'错误并失败。我禁用ASP身份测试,它工作正常。 Breeze无法解决多个命名空间吗?命名空间发布在下面。有没有任何已知的工作? (OData v3)

<Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" Namespace="Microsoft.AspNet.Identity.EntityFramework">
<ComplexType Name="IdentityUserRole">
<Property Name="UserId" Type="Edm.String"/>
<Property Name="RoleId" Type="Edm.String"/>
</ComplexType>
<EntityType Name="IdentityUserClaim">
<Key>
<PropertyRef Name="Id"/>
</Key>
<Property Name="Id" Type="Edm.Int32" Nullable="false"/>
<Property Name="UserId" Type="Edm.String"/>
<Property Name="ClaimType" Type="Edm.String"/>
<Property Name="ClaimValue" Type="Edm.String"/>
</EntityType>
<ComplexType Name="IdentityUserLogin">
<Property Name="LoginProvider" Type="Edm.String"/>
<Property Name="ProviderKey" Type="Edm.String"/>
<Property Name="UserId" Type="Edm.String"/>
</ComplexType>
</Schema>

1 个答案:

答案 0 :(得分:0)

看一下&#34;更正EdmBuilder的命名空间&#34;在此页面上:http://www.getbreezenow.com/documentation/odata-server