<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="MarketDb.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityType Name="Apps">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
          <Property Name="AppId" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Title" Type="nvarchar(max)" Nullable="false" />
          <Property Name="DeveloperName" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Category" Type="uniqueidentifier" Nullable="false" />
          <Property Name="Free" Type="bit" Nullable="false" />
          <Property Name="VersionCode" Type="bigint" Nullable="false" />
          <Property Name="VersionString" Type="nvarchar(max)" Nullable="false" />
          <Property Name="InstallationSize" Type="bigint" Nullable="false" />
          <Property Name="Downloads" Type="bigint" Nullable="false" />
          <Property Name="StarRating" Type="float" Nullable="false" />
          <Property Name="SnapshotDate" Type="datetime" Nullable="false" />
          <Property Name="MetadataUrl" Type="nvarchar(max)" Nullable="false" />
          <Property Name="ApkUrl" Type="nvarchar(max)" />
        </EntityType>
        <EntityType Name="Categories">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
          <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
        </EntityType>
        <Association Name="FK_Apps_Categories">
          <End Role="Categories" Type="Self.Categories" Multiplicity="1" />
          <End Role="Apps" Type="Self.Apps" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Categories">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="Apps">
              <PropertyRef Name="Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="MarketDbStoreContainer">
          <EntitySet Name="Apps" EntityType="Self.Apps" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Categories" EntityType="Self.Categories" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="FK_Apps_Categories" Association="Self.FK_Apps_Categories">
            <End Role="Categories" EntitySet="Categories" />
            <End Role="Apps" EntitySet="Apps" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="MarketDb" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
        <EntityContainer Name="MarketDbContainer" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Apps" EntityType="MarketDb.App" />
          <EntitySet Name="Categories" EntityType="MarketDb.Category" />
          <AssociationSet Name="FK_Apps_Categories" Association="MarketDb.FK_Apps_Categories">
            <End EntitySet="Categories" Role="Category" />
            <End EntitySet="Apps" Role="App" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="App">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Guid" Nullable="false" annotation:StoreGeneratedPattern="None" />
          <Property Name="AppId" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="DeveloperName" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="Category" Type="Guid" Nullable="false" />
          <Property Name="Free" Type="Boolean" Nullable="false" />
          <Property Name="VersionCode" Type="Int64" Nullable="false" />
          <Property Name="VersionString" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="InstallationSize" Type="Int64" Nullable="false" />
          <Property Name="Downloads" Type="Int64" Nullable="false" />
          <Property Name="StarRating" Type="Double" Nullable="false" />
          <Property Name="SnapshotDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="MetadataUrl" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="ApkUrl" Type="String" Nullable="true" MaxLength="Max" Unicode="true" FixedLength="false" />
          <NavigationProperty Name="Category1" Relationship="MarketDb.FK_Apps_Categories" FromRole="App" ToRole="Category" />
        </EntityType>
        <EntityType Name="Category">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Guid" Nullable="false" annotation:StoreGeneratedPattern="None" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <NavigationProperty Name="Apps" Relationship="MarketDb.FK_Apps_Categories" FromRole="Category" ToRole="App" />
        </EntityType>
        <Association Name="FK_Apps_Categories">
          <End Type="MarketDb.Category" Multiplicity="1" Role="Category" />
          <End Type="MarketDb.App" Multiplicity="*" Role="App" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="App">
              <PropertyRef Name="Category" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
    <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  <EntityContainerMapping StorageEntityContainer="MarketDbStoreContainer" CdmEntityContainer="MarketDbContainer">
    <EntitySetMapping Name="Apps">
      <EntityTypeMapping TypeName="IsTypeOf(MarketDb.App)">
        <MappingFragment StoreEntitySet="Apps">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="AppId" ColumnName="AppId" />
          <ScalarProperty Name="Title" ColumnName="Title" />
          <ScalarProperty Name="DeveloperName" ColumnName="DeveloperName" />
          <ScalarProperty Name="Category" ColumnName="Category" />
          <ScalarProperty Name="Free" ColumnName="Free" />
          <ScalarProperty Name="VersionCode" ColumnName="VersionCode" />
          <ScalarProperty Name="VersionString" ColumnName="VersionString" />
          <ScalarProperty Name="InstallationSize" ColumnName="InstallationSize" />
          <ScalarProperty Name="Downloads" ColumnName="Downloads" />
          <ScalarProperty Name="StarRating" ColumnName="StarRating" />
          <ScalarProperty Name="SnapshotDate" ColumnName="SnapshotDate" />
          <ScalarProperty Name="MetadataUrl" ColumnName="MetadataUrl" />
          <ScalarProperty Name="ApkUrl" ColumnName="ApkUrl" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Categories">
      <EntityTypeMapping TypeName="IsTypeOf(MarketDb.Category)">
        <MappingFragment StoreEntitySet="Categories">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Name" ColumnName="Name" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
  </EntityContainerMapping>
</Mapping></edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <edmx:Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </edmx:Connection>
    <edmx:Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
        <DesignerProperty Name="UseLegacyProvider" Value="False" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
      </DesignerInfoPropertySet>
    </edmx:Options>
    <!-- Diagram content (shape and connector positions) -->
    <edmx:Diagrams>
    </edmx:Diagrams>
  </edmx:Designer>
</edmx:Edmx>
