<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
  <edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
    <Schema Namespace="Gallery.Infrastructure.FeedModels" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2006/04/edm">
      <EntityType Name="PublishedPackage" m:HasStream="true">
        <Key>
          <PropertyRef Name="Id" />
          <PropertyRef Name="Version" />
        </Key>
        <Property Name="Id" Type="Edm.String" Nullable="false" />
        <Property Name="Version" Type="Edm.String" Nullable="false" />
        <Property Name="Title" Type="Edm.String" Nullable="true" />
        <Property Name="Authors" Type="Edm.String" Nullable="true" />
        <Property Name="PackageType" Type="Edm.String" Nullable="true" />
        <Property Name="Summary" Type="Edm.String" Nullable="true" />
        <Property Name="Description" Type="Edm.String" Nullable="true" />
        <Property Name="Copyright" Type="Edm.String" Nullable="true" />
        <Property Name="PackageHashAlgorithm" Type="Edm.String" Nullable="true" />
        <Property Name="PackageHash" Type="Edm.String" Nullable="true" />
        <Property Name="PackageSize" Type="Edm.Int64" Nullable="false" />
        <Property Name="Price" Type="Edm.Decimal" Nullable="false" />
        <Property Name="RequireLicenseAcceptance" Type="Edm.Boolean" Nullable="false" />
        <Property Name="IsLatestVersion" Type="Edm.Boolean" Nullable="false" />
        <Property Name="VersionRating" Type="Edm.Double" Nullable="false" />
        <Property Name="VersionRatingsCount" Type="Edm.Int32" Nullable="false" />
        <Property Name="VersionDownloadCount" Type="Edm.Int32" Nullable="false" />
        <Property Name="Created" Type="Edm.DateTime" Nullable="false" />
        <Property Name="LastUpdated" Type="Edm.DateTime" Nullable="false" />
        <Property Name="Published" Type="Edm.DateTime" Nullable="false" />
        <Property Name="ExternalPackageUrl" Type="Edm.String" Nullable="true" />
        <Property Name="ProjectUrl" Type="Edm.String" Nullable="true" />
        <Property Name="LicenseUrl" Type="Edm.String" Nullable="true" />
        <Property Name="IconUrl" Type="Edm.String" Nullable="true" />
        <Property Name="Rating" Type="Edm.Double" Nullable="false" />
        <Property Name="RatingsCount" Type="Edm.Int32" Nullable="false" />
        <Property Name="DownloadCount" Type="Edm.Int32" Nullable="false" />
        <NavigationProperty Name="Screenshots" Relationship="Gallery.Infrastructure.FeedModels.PublishedPackage_Screenshots" FromRole="PublishedPackage" ToRole="Screenshots" />
        <Property Name="Categories" Type="Edm.String" Nullable="true" />
        <Property Name="Tags" Type="Edm.String" Nullable="true" />
        <Property Name="Dependencies" Type="Edm.String" Nullable="true" />
        <Property Name="ReportAbuseUrl" Type="Edm.String" Nullable="true" />
        <Property Name="GalleryDetailsUrl" Type="Edm.String" Nullable="true" />
      </EntityType>
      <EntityType Name="PublishedScreenshot">
        <Key>
          <PropertyRef Name="Id" />
        </Key>
        <Property Name="Id" Type="Edm.Int32" Nullable="false" />
        <Property Name="PublishedPackageId" Type="Edm.String" Nullable="true" />
        <Property Name="PublishedPackageVersion" Type="Edm.String" Nullable="true" />
        <Property Name="ScreenshotUri" Type="Edm.String" Nullable="true" />
        <Property Name="Caption" Type="Edm.String" Nullable="true" />
      </EntityType>
      <Association Name="PublishedPackage_Screenshots">
        <End Role="PublishedPackage" Type="Gallery.Infrastructure.FeedModels.PublishedPackage" Multiplicity="*" />
        <End Role="Screenshots" Type="Gallery.Infrastructure.FeedModels.PublishedScreenshot" Multiplicity="*" />
      </Association>
      <EntityContainer Name="GalleryFeedContext" m:IsDefaultEntityContainer="true">
        <EntitySet Name="Packages" EntityType="Gallery.Infrastructure.FeedModels.PublishedPackage" />
        <EntitySet Name="Screenshots" EntityType="Gallery.Infrastructure.FeedModels.PublishedScreenshot" />
        <AssociationSet Name="PublishedPackage_Screenshots" Association="Gallery.Infrastructure.FeedModels.PublishedPackage_Screenshots">
          <End Role="PublishedPackage" EntitySet="Packages" />
          <End Role="Screenshots" EntitySet="Screenshots" />
        </AssociationSet>
      </EntityContainer>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>