title: Breeze cannot proccess metadata from oData for C# Identity entity
body: <p>My oData service is generatind the metadata above. And my breeze client couldnt proccess.</p>
  
  <p>Breeze error: "Metadata query failed for /odata/v1/$metadata; Unable to process returned metadata: Cannot read property 'end' of null"</p>
  
  <p>Url from metadata: /odata/v1/$metadata#Users</p>
  
  <p>This problem occurs only with Indentity entities! If i change it for another entity of my model it works perfectly!</p>
  
  <p>Can anyone help me!? </p>
  
  <pre><code>&lt;edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0"&gt;
  &lt;edmx:DataServices     xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"     m:DataServiceVersion="3.0" m:MaxDataServiceVersion="3.0"&gt;
  &lt;Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" Namespace="FatoresWebV2.Models"&gt;
  &lt;EntityType Name="User"&gt;
  &lt;Key&gt;
  &lt;PropertyRef Name="Id"/&gt;
  &lt;/Key&gt;
  &lt;Property Name="Status" Type="Edm.Boolean" Nullable="false"/&gt;
  &lt;Property Name="Email" Type="Edm.String"/&gt;
  &lt;Property Name="EmailConfirmed" Type="Edm.Boolean" Nullable="false"/&gt;
  &lt;Property Name="PasswordHash" Type="Edm.String"/&gt;
  &lt;Property Name="SecurityStamp" Type="Edm.String"/&gt;
  &lt;Property Name="PhoneNumber" Type="Edm.String"/&gt;
  &lt;Property Name="PhoneNumberConfirmed" Type="Edm.Boolean" Nullable="false"/&gt;
  &lt;Property Name="TwoFactorEnabled" Type="Edm.Boolean" Nullable="false"/&gt;
  &lt;Property Name="LockoutEndDateUtc" Type="Edm.DateTime"/&gt;
  &lt;Property Name="LockoutEnabled" Type="Edm.Boolean" Nullable="false"/&gt;
  &lt;Property Name="AccessFailedCount" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="Id" Type="Edm.String" Nullable="false"/&gt;
  &lt;Property Name="UserName" Type="Edm.String"/&gt;
  &lt;NavigationProperty Name="Roles" Relationship="Microsoft.AspNet.Identity.EntityFramework.FatoresWebV2_Models_User_Roles_Microsoft_AspNet_Identity_EntityFramework_IdentityUserRole_RolesPartner" ToRole="Roles" FromRole="RolesPartner"/&gt;
  &lt;NavigationProperty Name="Claims" Relationship="Microsoft.AspNet.Identity.EntityFramework.FatoresWebV2_Models_User_Claims_Microsoft_AspNet_Identity_EntityFramework_IdentityUserClaim_ClaimsPartner" ToRole="Claims" FromRole="ClaimsPartner"/&gt;
  &lt;NavigationProperty Name="Logins"     Relationship="Microsoft.AspNet.Identity.EntityFramework.FatoresWebV2_Models_User_Logins_Microsoft_AspNet_Identity_EntityFramework_IdentityUserLogin_LoginsPartner" ToRole="Logins" FromRole="LoginsPartner"/&gt;
  &lt;/EntityType&gt;
  &lt;/Schema&gt;
  &lt;Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm"     Namespace="Microsoft.AspNet.Identity.EntityFramework"&gt;
  &lt;EntityType Name="IdentityUserClaim"&gt;
  &lt;Key&gt;
  &lt;PropertyRef Name="Id"/&gt;
  &lt;/Key&gt;
  &lt;Property Name="Id" Type="Edm.Int32" Nullable="false"/&gt;
  &lt;Property Name="UserId" Type="Edm.String"/&gt;
  &lt;Property Name="ClaimType" Type="Edm.String"/&gt;
  &lt;Property Name="ClaimValue" Type="Edm.String"/&gt;
  &lt;/EntityType&gt;
  &lt;EntityType Name="IdentityUserLogin"&gt;
  &lt;Property Name="LoginProvider" Type="Edm.String"/&gt;
  &lt;Property Name="ProviderKey" Type="Edm.String"/&gt;
  &lt;Property Name="UserId" Type="Edm.String"/&gt;
  &lt;/EntityType&gt;
  &lt;EntityType Name="IdentityUserRole"&gt;
  &lt;Property Name="UserId" Type="Edm.String"/&gt;
  &lt;Property Name="RoleId" Type="Edm.String"/&gt;
  &lt;/EntityType&gt;
  &lt;Association Name="FatoresWebV2_Models_User_Roles_Microsoft_AspNet_Identity_EntityFramework_IdentityUserRole_RolesPartner"&gt;
  &lt;End Type="Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole" Role="Roles" Multiplicity="*"/&gt;
  &lt;End Type="FatoresWebV2.Models.User" Role="RolesPartner" Multiplicity="0..1"/&gt;
  &lt;/Association&gt;
  &lt;Association Name="FatoresWebV2_Models_User_Claims_Microsoft_AspNet_Identity_EntityFramework_IdentityUserClaim_ClaimsPartner"&gt;
  &lt;End Type="Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim" Role="Claims" Multiplicity="*"/&gt;
  &lt;End Type="FatoresWebV2.Models.User" Role="ClaimsPartner" Multiplicity="0..1"/&gt;
  &lt;/Association&gt;
  &lt;Association Name="FatoresWebV2_Models_User_Logins_Microsoft_AspNet_Identity_EntityFramework_IdentityUserLogin_LoginsPartner"&gt;
  &lt;End Type="Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin" Role="Logins"     Multiplicity="*"/&gt;
  &lt;End Type="FatoresWebV2.Models.User" Role="LoginsPartner" Multiplicity="0..1"/&gt;
  &lt;/Association&gt;
  &lt;/Schema&gt;
  &lt;Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" Namespace="Default"&gt;
  &lt;EntityContainer Name="Container" m:IsDefaultEntityContainer="true"&gt;
  &lt;EntitySet Name="Users" EntityType="FatoresWebV2.Models.User"/&gt;
  &lt;EntitySet Name="IdentityUserClaims"     EntityType="Microsoft.AspNet.Identity.EntityFramework.IdentityUserClaim"/&gt;
  &lt;EntitySet Name="IdentityUserLogins"     EntityType="Microsoft.AspNet.Identity.EntityFramework.IdentityUserLogin"/&gt;
  &lt;EntitySet Name="IdentityUserRoles" EntityType="Microsoft.AspNet.Identity.EntityFramework.IdentityUserRole"/&gt;
  &lt;AssociationSet Name="FatoresWebV2_Models_User_Roles_Microsoft_AspNet_Identity_EntityFramework_IdentityUserRole_RolesPartnerSet" Association="Microsoft.AspNet.Identity.EntityFramework.FatoresWebV2_Models_User_Roles_Microsoft_AspNet_Identity_EntityFramework_IdentityUserRole_RolesPartner"&gt;
  &lt;End Role="RolesPartner" EntitySet="Users"/&gt;
  &lt;End Role="Roles" EntitySet="IdentityUserRoles"/&gt;
  &lt;/AssociationSet&gt;
  &lt;AssociationSet Name="FatoresWebV2_Models_User_Claims_Microsoft_AspNet_Identity_EntityFramework_IdentityUserClaim_ClaimsPartnerSet" Association="Microsoft.AspNet.Identity.EntityFramework.FatoresWebV2_Models_User_Claims_Microsoft_AspNet_Identity_EntityFramework_IdentityUserClaim_ClaimsPartner"&gt;
  &lt;End Role="ClaimsPartner" EntitySet="Users"/&gt;
  &lt;End Role="Claims" EntitySet="IdentityUserClaims"/&gt;
  &lt;/AssociationSet&gt;
  &lt;AssociationSet Name="FatoresWebV2_Models_User_Logins_Microsoft_AspNet_Identity_EntityFramework_IdentityUserLogin_LoginsPartnerSet" Association="Microsoft.AspNet.Identity.EntityFramework.FatoresWebV2_Models_User_Logins_Microsoft_AspNet_Identity_EntityFramework_IdentityUserLogin_LoginsPartner"&gt;
  &lt;End Role="LoginsPartner" EntitySet="Users"/&gt;
  &lt;End Role="Logins" EntitySet="IdentityUserLogins"/&gt;
  &lt;/AssociationSet&gt;
  &lt;/EntityContainer&gt;
  &lt;/Schema&gt;
  &lt;/edmx:DataServices&gt;
  &lt;/edmx:Edmx&gt;
  </code></pre>