<?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="CountryCityModel.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="City">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" Nullable="false" />
          <Property Name="StateId" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="Country">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="State">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" Nullable="false" />
          <Property Name="CountryId" Type="int" Nullable="false" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <Association Name="FK_City_State">
          <End Role="State" Type="Self.State" Multiplicity="1" />
          <End Role="City" Type="Self.City" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="State">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="City">
              <PropertyRef Name="StateId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_State_State">
          <End Role="Country" Type="Self.Country" Multiplicity="1" />
          <End Role="State" Type="Self.State" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Country">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="State">
              <PropertyRef Name="CountryId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="CountryCityModelStoreContainer">
          <EntitySet Name="City" EntityType="Self.City" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="State" EntityType="Self.State" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="FK_City_State" Association="Self.FK_City_State">
            <End Role="State" EntitySet="State" />
            <End Role="City" EntitySet="City" />
          </AssociationSet>
          <AssociationSet Name="FK_State_State" Association="Self.FK_State_State">
            <End Role="Country" EntitySet="Country" />
            <End Role="State" EntitySet="State" />
          </AssociationSet>
        </EntityContainer>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="CountryCityModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityType Name="City">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" />
          <Property Name="StateId" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="State" Relationship="Self.FK_City_State" FromRole="City" ToRole="State" />
        </EntityType>
        <EntityType Name="Country">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="States" Relationship="Self.FK_State_State" FromRole="Country" ToRole="State" />
        </EntityType>
        <EntityType Name="State">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" />
          <Property Name="CountryId" Type="Int32" Nullable="false" />
          <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="Cities" Relationship="Self.FK_City_State" FromRole="State" ToRole="City" />
          <NavigationProperty Name="Country" Relationship="Self.FK_State_State" FromRole="State" ToRole="Country" />
        </EntityType>
        <Association Name="FK_City_State">
          <End Role="State" Type="Self.State" Multiplicity="1" />
          <End Role="City" Type="Self.City" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="State">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="City">
              <PropertyRef Name="StateId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_State_State">
          <End Role="Country" Type="Self.Country" Multiplicity="1" />
          <End Role="State" Type="Self.State" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Country">
              <PropertyRef Name="Id" />
            </Principal>
            <Dependent Role="State">
              <PropertyRef Name="CountryId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="CountryCityEntities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Cities" EntityType="Self.City" />
          <EntitySet Name="Countries" EntityType="Self.Country" />
          <EntitySet Name="States" EntityType="Self.State" />
          <AssociationSet Name="FK_City_State" Association="Self.FK_City_State">
            <End Role="State" EntitySet="States" />
            <End Role="City" EntitySet="Cities" />
          </AssociationSet>
          <AssociationSet Name="FK_State_State" Association="Self.FK_State_State">
            <End Role="Country" EntitySet="Countries" />
            <End Role="State" EntitySet="States" />
          </AssociationSet>
        </EntityContainer>
      </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="CountryCityModelStoreContainer" CdmEntityContainer="CountryCityEntities">
          <EntitySetMapping Name="Cities">
            <EntityTypeMapping TypeName="CountryCityModel.City">
              <MappingFragment StoreEntitySet="City">
                <ScalarProperty Name="Id" ColumnName="Id" />
                <ScalarProperty Name="StateId" ColumnName="StateId" />
                <ScalarProperty Name="Name" ColumnName="Name" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Countries">
            <EntityTypeMapping TypeName="CountryCityModel.Country">
              <MappingFragment StoreEntitySet="Country">
                <ScalarProperty Name="Id" ColumnName="Id" />
                <ScalarProperty Name="Name" ColumnName="Name" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="States">
            <EntityTypeMapping TypeName="CountryCityModel.State">
              <MappingFragment StoreEntitySet="State">
                <ScalarProperty Name="Id" ColumnName="Id" />
                <ScalarProperty Name="CountryId" ColumnName="CountryId" />
                <ScalarProperty Name="Name" ColumnName="Name" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="true" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
        <DesignerProperty Name="UseLegacyProvider" Value="false" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>