<?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="EFProfilerTest.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2012" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  <EntityContainer Name="EFProfilerTestStoreContainer">
    <EntitySet Name="Categories" EntityType="EFProfilerTest.Store.Categories" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Products" EntityType="EFProfilerTest.Store.Products" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Brands" EntityType="EFProfilerTest.Store.Brands" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Variants" EntityType="EFProfilerTest.Store.Variants" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Comments" EntityType="EFProfilerTest.Store.Comments" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Users" EntityType="EFProfilerTest.Store.Users" store:Type="Tables" Schema="dbo" />
    <AssociationSet Name="CategoryProduct" Association="EFProfilerTest.Store.CategoryProduct">
      <End Role="Category" EntitySet="Categories" />
      <End Role="Product" EntitySet="Products" />
    </AssociationSet>
    <AssociationSet Name="BrandProduct" Association="EFProfilerTest.Store.BrandProduct">
      <End Role="Brand" EntitySet="Brands" />
      <End Role="Product" EntitySet="Products" />
    </AssociationSet>
    <AssociationSet Name="ProductVariant" Association="EFProfilerTest.Store.ProductVariant">
      <End Role="Product" EntitySet="Products" />
      <End Role="Variant" EntitySet="Variants" />
    </AssociationSet>
    <AssociationSet Name="ProductComment" Association="EFProfilerTest.Store.ProductComment">
      <End Role="Product" EntitySet="Products" />
      <End Role="Comment" EntitySet="Comments" />
    </AssociationSet>
    <AssociationSet Name="UserComment" Association="EFProfilerTest.Store.UserComment">
      <End Role="User" EntitySet="Users" />
      <End Role="Comment" EntitySet="Comments" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="Categories">
    <Key>
      <PropertyRef Name="CategoryId" />
    </Key>
    <Property Name="CategoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
    <Property Name="IsDelete" Type="bit" Nullable="false" />
    <Property Name="CreatedDate" Type="datetime" Nullable="false" />
    <Property Name="LastModifyDate" Type="datetime" Nullable="false" />
  </EntityType>
  <EntityType Name="Products">
    <Key>
      <PropertyRef Name="ProductId" />
    </Key>
    <Property Name="ProductId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Price" Type="float" Nullable="false" />
    <Property Name="Quantity" Type="nvarchar(max)" Nullable="false" />
    <Property Name="IsDelete" Type="bit" Nullable="false" />
    <Property Name="CreatedDate" Type="datetime" Nullable="false" />
    <Property Name="LastModifyDate" Type="datetime" Nullable="false" />
    <Property Name="CategoryId" Type="int" Nullable="true" />
    <Property Name="BrandId" Type="int" Nullable="true" />
  </EntityType>
  <EntityType Name="Brands">
    <Key>
      <PropertyRef Name="BrandId" />
    </Key>
    <Property Name="BrandId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
    <Property Name="IsDelete" Type="bit" Nullable="false" />
    <Property Name="CreatedDate" Type="datetime" Nullable="false" />
    <Property Name="LastModifyDate" Type="datetime" Nullable="false" />
  </EntityType>
  <EntityType Name="Variants">
    <Key>
      <PropertyRef Name="VariantId" />
    </Key>
    <Property Name="VariantId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Value" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Price" Type="float" Nullable="false" />
    <Property Name="Quantity" Type="nvarchar(max)" Nullable="false" />
    <Property Name="IsDelete" Type="bit" Nullable="false" />
    <Property Name="CreatedDate" Type="datetime" Nullable="false" />
    <Property Name="LastModifyDate" Type="datetime" Nullable="false" />
    <Property Name="ProductId" Type="int" Nullable="true" />
  </EntityType>
  <EntityType Name="Comments">
    <Key>
      <PropertyRef Name="CommentId" />
    </Key>
    <Property Name="CommentId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Content" Type="nvarchar(max)" Nullable="false" />
    <Property Name="ProductId" Type="int" Nullable="true" />
    <Property Name="UserId" Type="int" Nullable="true" />
  </EntityType>
  <EntityType Name="Users">
    <Key>
      <PropertyRef Name="UserId" />
    </Key>
    <Property Name="UserId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
    <Property Name="IsActive" Type="bit" Nullable="false" />
    <Property Name="IsDelete" Type="bit" Nullable="false" />
    <Property Name="CreatedDate" Type="datetime" Nullable="false" />
    <Property Name="LastModifyDate" Type="datetime" Nullable="false" />
  </EntityType>
  <Association Name="CategoryProduct">
    <End Role="Category" Type="EFProfilerTest.Store.Categories" Multiplicity="0..1" />
    <End Role="Product" Type="EFProfilerTest.Store.Products" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Category">
        <PropertyRef Name="CategoryId" />
      </Principal>
      <Dependent Role="Product">
        <PropertyRef Name="CategoryId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="BrandProduct">
    <End Role="Brand" Type="EFProfilerTest.Store.Brands" Multiplicity="0..1" />
    <End Role="Product" Type="EFProfilerTest.Store.Products" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Brand">
        <PropertyRef Name="BrandId" />
      </Principal>
      <Dependent Role="Product">
        <PropertyRef Name="BrandId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="ProductVariant">
    <End Role="Product" Type="EFProfilerTest.Store.Products" Multiplicity="0..1" />
    <End Role="Variant" Type="EFProfilerTest.Store.Variants" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Product">
        <PropertyRef Name="ProductId" />
      </Principal>
      <Dependent Role="Variant">
        <PropertyRef Name="ProductId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="ProductComment">
    <End Role="Product" Type="EFProfilerTest.Store.Products" Multiplicity="0..1" />
    <End Role="Comment" Type="EFProfilerTest.Store.Comments" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Product">
        <PropertyRef Name="ProductId" />
      </Principal>
      <Dependent Role="Comment">
        <PropertyRef Name="ProductId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="UserComment">
    <End Role="User" Type="EFProfilerTest.Store.Users" Multiplicity="0..1" />
    <End Role="Comment" Type="EFProfilerTest.Store.Comments" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="User">
        <PropertyRef Name="UserId" />
      </Principal>
      <Dependent Role="Comment">
        <PropertyRef Name="UserId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</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="EFProfilerTest" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
        <EntityContainer Name="EFProfilerTestContainer" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Categories" EntityType="EFProfilerTest.Category" />
          <EntitySet Name="Products" EntityType="EFProfilerTest.Product" />
          <AssociationSet Name="CategoryProduct" Association="EFProfilerTest.CategoryProduct">
            <End Role="Category" EntitySet="Categories" />
            <End Role="Product" EntitySet="Products" />
          </AssociationSet>
          <EntitySet Name="Brands" EntityType="EFProfilerTest.Brand" />
          <AssociationSet Name="BrandProduct" Association="EFProfilerTest.BrandProduct">
            <End Role="Brand" EntitySet="Brands" />
            <End Role="Product" EntitySet="Products" />
          </AssociationSet>
          <EntitySet Name="Variants" EntityType="EFProfilerTest.Variant" />
          <AssociationSet Name="ProductVariant" Association="EFProfilerTest.ProductVariant">
            <End Role="Product" EntitySet="Products" />
            <End Role="Variant" EntitySet="Variants" />
          </AssociationSet>
          <EntitySet Name="Comments" EntityType="EFProfilerTest.Comment" />
          <EntitySet Name="Users" EntityType="EFProfilerTest.User" />
          <AssociationSet Name="ProductComment" Association="EFProfilerTest.ProductComment">
            <End Role="Product" EntitySet="Products" />
            <End Role="Comment" EntitySet="Comments" />
          </AssociationSet>
          <AssociationSet Name="UserComment" Association="EFProfilerTest.UserComment">
            <End Role="User" EntitySet="Users" />
            <End Role="Comment" EntitySet="Comments" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Category">
          <Key>
            <PropertyRef Name="CategoryId" />
          </Key>
          <Property Name="CategoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" />
          <Property Name="IsDelete" Type="Boolean" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="LastModifyDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="Products" Relationship="EFProfilerTest.CategoryProduct" FromRole="Category" ToRole="Product" />
        </EntityType>
        <EntityType Name="Product">
          <Key>
            <PropertyRef Name="ProductId" />
          </Key>
          <Property Name="ProductId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" />
          <Property Name="Price" Type="Double" Nullable="false" />
          <Property Name="Quantity" Type="String" Nullable="false" />
          <Property Name="IsDelete" Type="Boolean" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="LastModifyDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="Category" Relationship="EFProfilerTest.CategoryProduct" FromRole="Product" ToRole="Category" />
          <Property Name="CategoryId" Type="Int32" Nullable="true" />
          <NavigationProperty Name="Brand" Relationship="EFProfilerTest.BrandProduct" FromRole="Product" ToRole="Brand" />
          <Property Name="BrandId" Type="Int32" Nullable="true" />
          <NavigationProperty Name="Variants" Relationship="EFProfilerTest.ProductVariant" FromRole="Product" ToRole="Variant" />
          <NavigationProperty Name="Comments" Relationship="EFProfilerTest.ProductComment" FromRole="Product" ToRole="Comment" />
        </EntityType>
        <Association Name="CategoryProduct">
          <End Type="EFProfilerTest.Category" Role="Category" Multiplicity="0..1" />
          <End Type="EFProfilerTest.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Category">
              <PropertyRef Name="CategoryId" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="CategoryId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Brand">
          <Key>
            <PropertyRef Name="BrandId" />
          </Key>
          <Property Name="BrandId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" />
          <Property Name="IsDelete" Type="Boolean" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="LastModifyDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="Products" Relationship="EFProfilerTest.BrandProduct" FromRole="Brand" ToRole="Product" />
        </EntityType>
        <Association Name="BrandProduct">
          <End Type="EFProfilerTest.Brand" Role="Brand" Multiplicity="0..1" />
          <End Type="EFProfilerTest.Product" Role="Product" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Brand">
              <PropertyRef Name="BrandId" />
            </Principal>
            <Dependent Role="Product">
              <PropertyRef Name="BrandId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Variant">
          <Key>
            <PropertyRef Name="VariantId" />
          </Key>
          <Property Name="VariantId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" />
          <Property Name="Value" Type="String" Nullable="false" />
          <Property Name="Price" Type="Double" Nullable="false" />
          <Property Name="Quantity" Type="String" Nullable="false" />
          <Property Name="IsDelete" Type="Boolean" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="LastModifyDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="Product" Relationship="EFProfilerTest.ProductVariant" FromRole="Variant" ToRole="Product" />
          <Property Name="ProductId" Type="Int32" Nullable="true" />
        </EntityType>
        <Association Name="ProductVariant">
          <End Type="EFProfilerTest.Product" Role="Product" Multiplicity="0..1" />
          <End Type="EFProfilerTest.Variant" Role="Variant" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Product">
              <PropertyRef Name="ProductId" />
            </Principal>
            <Dependent Role="Variant">
              <PropertyRef Name="ProductId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Comment">
          <Key>
            <PropertyRef Name="CommentId" />
          </Key>
          <Property Name="CommentId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Content" Type="String" Nullable="false" />
          <NavigationProperty Name="Product" Relationship="EFProfilerTest.ProductComment" FromRole="Comment" ToRole="Product" />
          <Property Name="ProductId" Type="Int32" Nullable="true" />
          <NavigationProperty Name="User" Relationship="EFProfilerTest.UserComment" FromRole="Comment" ToRole="User" />
          <Property Name="UserId" Type="Int32" Nullable="true" />
        </EntityType>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="UserId" />
          </Key>
          <Property Name="UserId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" Nullable="false" />
          <Property Name="IsActive" Type="Boolean" Nullable="false" />
          <Property Name="IsDelete" Type="Boolean" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="LastModifyDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="Comments" Relationship="EFProfilerTest.UserComment" FromRole="User" ToRole="Comment" />
        </EntityType>
        <Association Name="ProductComment">
          <End Type="EFProfilerTest.Product" Role="Product" Multiplicity="0..1" />
          <End Type="EFProfilerTest.Comment" Role="Comment" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Product">
              <PropertyRef Name="ProductId" />
            </Principal>
            <Dependent Role="Comment">
              <PropertyRef Name="ProductId" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="UserComment">
          <End Type="EFProfilerTest.User" Role="User" Multiplicity="0..1" />
          <End Type="EFProfilerTest.Comment" Role="Comment" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserId" />
            </Principal>
            <Dependent Role="Comment">
              <PropertyRef Name="UserId" />
            </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="EFProfilerTestStoreContainer" CdmEntityContainer="EFProfilerTestContainer">
    <EntitySetMapping Name="Categories">
      <EntityTypeMapping TypeName="IsTypeOf(EFProfilerTest.Category)">
        <MappingFragment StoreEntitySet="Categories">
          <ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="IsDelete" ColumnName="IsDelete" />
          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
          <ScalarProperty Name="LastModifyDate" ColumnName="LastModifyDate" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Products">
      <EntityTypeMapping TypeName="IsTypeOf(EFProfilerTest.Product)">
        <MappingFragment StoreEntitySet="Products">
          <ScalarProperty Name="ProductId" ColumnName="ProductId" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="Price" ColumnName="Price" />
          <ScalarProperty Name="Quantity" ColumnName="Quantity" />
          <ScalarProperty Name="IsDelete" ColumnName="IsDelete" />
          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
          <ScalarProperty Name="LastModifyDate" ColumnName="LastModifyDate" />
          <ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
          <ScalarProperty Name="BrandId" ColumnName="BrandId" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Brands">
      <EntityTypeMapping TypeName="IsTypeOf(EFProfilerTest.Brand)">
        <MappingFragment StoreEntitySet="Brands">
          <ScalarProperty Name="BrandId" ColumnName="BrandId" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="IsDelete" ColumnName="IsDelete" />
          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
          <ScalarProperty Name="LastModifyDate" ColumnName="LastModifyDate" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Variants">
      <EntityTypeMapping TypeName="IsTypeOf(EFProfilerTest.Variant)">
        <MappingFragment StoreEntitySet="Variants">
          <ScalarProperty Name="VariantId" ColumnName="VariantId" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="Value" ColumnName="Value" />
          <ScalarProperty Name="Price" ColumnName="Price" />
          <ScalarProperty Name="Quantity" ColumnName="Quantity" />
          <ScalarProperty Name="IsDelete" ColumnName="IsDelete" />
          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
          <ScalarProperty Name="LastModifyDate" ColumnName="LastModifyDate" />
          <ScalarProperty Name="ProductId" ColumnName="ProductId" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Comments">
      <EntityTypeMapping TypeName="IsTypeOf(EFProfilerTest.Comment)">
        <MappingFragment StoreEntitySet="Comments">
          <ScalarProperty Name="CommentId" ColumnName="CommentId" />
          <ScalarProperty Name="Content" ColumnName="Content" />
          <ScalarProperty Name="ProductId" ColumnName="ProductId" />
          <ScalarProperty Name="UserId" ColumnName="UserId" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Users">
      <EntityTypeMapping TypeName="IsTypeOf(EFProfilerTest.User)">
        <MappingFragment StoreEntitySet="Users">
          <ScalarProperty Name="UserId" ColumnName="UserId" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="IsActive" ColumnName="IsActive" />
          <ScalarProperty Name="IsDelete" ColumnName="IsDelete" />
          <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
          <ScalarProperty Name="LastModifyDate" ColumnName="LastModifyDate" />
        </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="False" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
        <DesignerProperty Name="UseLegacyProvider" Value="False" />
      </DesignerInfoPropertySet>
    </edmx:Options>
    <!-- Diagram content (shape and connector positions) -->
    <edmx:Diagrams>
    </edmx:Diagrams>
  </edmx:Designer>
</edmx:Edmx>
