Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXTREME 13.1 Demos/DXSK8/DXSK8.Service/
Upload File :
Current File : C:/Users/Public/Documents/DXTREME 13.1 Demos/DXSK8/DXSK8.Service/SK8Data.edmx

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="SK8Data.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
  <EntityContainer Name="SK8DataStoreContainer">
    <EntitySet Name="Brands" EntityType="SK8Data.Store.Brands" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Products" EntityType="SK8Data.Store.Products" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="ProductTypes" EntityType="SK8Data.Store.ProductTypes" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Stores" EntityType="SK8Data.Store.Stores" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Inventorys" EntityType="SK8Data.Store.Inventorys" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="ProductFlavors" EntityType="SK8Data.Store.ProductFlavors" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Orders" EntityType="SK8Data.Store.Orders" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="OrderItems" EntityType="SK8Data.Store.OrderItems" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Logins" EntityType="SK8Data.Store.Logins" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="ImageSources" EntityType="SK8Data.Store.ImageSources" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="NotificationChannels" EntityType="SK8Data.Store.NotificationChannels" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Logins_Employee" EntityType="SK8Data.Store.Logins_Employee" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Logins_Customer" EntityType="SK8Data.Store.Logins_Customer" store:Type="Tables" Schema="dbo" />
    <AssociationSet Name="ProductProductType" Association="SK8Data.Store.ProductProductType">
      <End Role="Product" EntitySet="Products" />
      <End Role="ProductType" EntitySet="ProductTypes" />
    </AssociationSet>
    <AssociationSet Name="BrandProduct" Association="SK8Data.Store.BrandProduct">
      <End Role="Brand" EntitySet="Brands" />
      <End Role="Products" EntitySet="Products" />
    </AssociationSet>
    <AssociationSet Name="ProductInventory" Association="SK8Data.Store.ProductInventory">
      <End Role="Product" EntitySet="Products" />
      <End Role="Inventory" EntitySet="Inventorys" />
    </AssociationSet>
    <AssociationSet Name="StoreInventory" Association="SK8Data.Store.StoreInventory">
      <End Role="Store" EntitySet="Stores" />
      <End Role="Inventory" EntitySet="Inventorys" />
    </AssociationSet>
    <AssociationSet Name="ProductFlavorProduct" Association="SK8Data.Store.ProductFlavorProduct">
      <End Role="ProductFlavor" EntitySet="ProductFlavors" />
      <End Role="Product" EntitySet="Products" />
    </AssociationSet>
    <AssociationSet Name="OrderOrderItem" Association="SK8Data.Store.OrderOrderItem">
      <End Role="Order" EntitySet="Orders" />
      <End Role="OrderItem" EntitySet="OrderItems" />
    </AssociationSet>
    <AssociationSet Name="OrderItemProduct" Association="SK8Data.Store.OrderItemProduct">
      <End Role="OrderItem" EntitySet="OrderItems" />
      <End Role="Product" EntitySet="Products" />
    </AssociationSet>
    <AssociationSet Name="EmployeeOrder" Association="SK8Data.Store.EmployeeOrder">
      <End Role="Employee" EntitySet="Logins_Employee" />
      <End Role="Order" EntitySet="Orders" />
    </AssociationSet>
    <AssociationSet Name="CustomerOrder" Association="SK8Data.Store.CustomerOrder">
      <End Role="Customer" EntitySet="Logins_Customer" />
      <End Role="Order" EntitySet="Orders" />
    </AssociationSet>
    <AssociationSet Name="ProductImages" Association="SK8Data.Store.ProductImages">
      <End Role="Product" EntitySet="Products" />
      <End Role="Images" EntitySet="ImageSources" />
    </AssociationSet>
    <AssociationSet Name="LoginImages" Association="SK8Data.Store.LoginImages">
      <End Role="Login" EntitySet="Logins" />
      <End Role="Images" EntitySet="ImageSources" />
    </AssociationSet>
    <AssociationSet Name="BrandImageSource" Association="SK8Data.Store.BrandImageSource">
      <End Role="Brand" EntitySet="Brands" />
      <End Role="ImageSource" EntitySet="ImageSources" />
    </AssociationSet>
    <AssociationSet Name="FK_Employee_inherits_Login" Association="SK8Data.Store.FK_Employee_inherits_Login">
      <End Role="Login" EntitySet="Logins" />
      <End Role="Employee" EntitySet="Logins_Employee" />
    </AssociationSet>
    <AssociationSet Name="FK_Customer_inherits_Login" Association="SK8Data.Store.FK_Customer_inherits_Login">
      <End Role="Login" EntitySet="Logins" />
      <End Role="Customer" EntitySet="Logins_Customer" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="Brands">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="100" />
    <Property Name="ImageUrl" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Logo_Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="Products">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="100" />
    <Property Name="Description" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Price" Type="decimal" Nullable="false" />
    <Property Name="ImageUrl" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Type_Id" Type="int" Nullable="false" />
    <Property Name="Brand_Id" Type="int" Nullable="false" />
    <Property Name="Flavor_Id" Type="int" Nullable="false" />
    <Property Name="Image_Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="ProductTypes">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="100" />
  </EntityType>
  <EntityType Name="Stores">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Address_Address1" Type="nvarchar" Nullable="false" MaxLength="200" />
    <Property Name="Address_Address2" Type="nvarchar" Nullable="true" MaxLength="200" />
    <Property Name="Address_City" Type="nvarchar" Nullable="false" MaxLength="100" />
    <Property Name="Address_StateProvince" Type="nvarchar" Nullable="false" MaxLength="100" />
    <Property Name="Address_Postcode" Type="nvarchar" Nullable="false" MaxLength="20" />
    <Property Name="Notes" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Email" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Phones" Type="nvarchar(max)" Nullable="false" />
  </EntityType>
  <EntityType Name="Inventorys">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Quantity" Type="int" Nullable="false" />
    <Property Name="Product_Id" Type="int" Nullable="false" />
    <Property Name="Store_Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="ProductFlavors">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="100" />
  </EntityType>
  <EntityType Name="Orders">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="OrderDate" Type="datetime" Nullable="false" />
    <Property Name="State" Type="int" Nullable="false" DefaultValue="0" />
    <Property Name="Employee_Id" Type="int" Nullable="true" />
    <Property Name="Customer_Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="OrderItems">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Quantity" Type="int" Nullable="false" />
    <Property Name="State" Type="int" Nullable="false" DefaultValue="0" />
    <Property Name="Order_Id" Type="int" Nullable="false" />
    <Property Name="Product_Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="Logins">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="UserName" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Person_FirstName" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Person_LastName" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Person_Email" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Avatar_Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="ImageSources">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="Image" Type="varbinary(max)" Nullable="false" />
  </EntityType>
  <EntityType Name="NotificationChannels">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
    <Property Name="ClientId" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Url" Type="nvarchar(max)" Nullable="false" />
    <Property Name="UpdatedOn" Type="datetime" Nullable="false" />
  </EntityType>
  <EntityType Name="Logins_Employee">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Position" Type="nvarchar(max)" Nullable="false" />
    <Property Name="Id" Type="int" Nullable="false" />
  </EntityType>
  <EntityType Name="Logins_Customer">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="IsInStore" Type="bit" Nullable="false" DefaultValue="false" />
    <Property Name="Id" Type="int" Nullable="false" />
  </EntityType>
  <Association Name="ProductProductType">
    <End Role="Product" Type="SK8Data.Store.Products" Multiplicity="*" />
    <End Role="ProductType" Type="SK8Data.Store.ProductTypes" Multiplicity="1" />
    <ReferentialConstraint>
      <Principal Role="ProductType">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Product">
        <PropertyRef Name="Type_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="BrandProduct">
    <End Role="Brand" Type="SK8Data.Store.Brands" Multiplicity="1" />
    <End Role="Products" Type="SK8Data.Store.Products" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Brand">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Products">
        <PropertyRef Name="Brand_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="ProductInventory">
    <End Role="Product" Type="SK8Data.Store.Products" Multiplicity="1" />
    <End Role="Inventory" Type="SK8Data.Store.Inventorys" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Product">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Inventory">
        <PropertyRef Name="Product_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="StoreInventory">
    <End Role="Store" Type="SK8Data.Store.Stores" Multiplicity="1" />
    <End Role="Inventory" Type="SK8Data.Store.Inventorys" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Store">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Inventory">
        <PropertyRef Name="Store_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="ProductFlavorProduct">
    <End Role="ProductFlavor" Type="SK8Data.Store.ProductFlavors" Multiplicity="1" />
    <End Role="Product" Type="SK8Data.Store.Products" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="ProductFlavor">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Product">
        <PropertyRef Name="Flavor_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="OrderOrderItem">
    <End Role="Order" Type="SK8Data.Store.Orders" Multiplicity="1">
      <OnDelete Action="Cascade" />
    </End>
    <End Role="OrderItem" Type="SK8Data.Store.OrderItems" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Order">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="OrderItem">
        <PropertyRef Name="Order_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="OrderItemProduct">
    <End Role="OrderItem" Type="SK8Data.Store.OrderItems" Multiplicity="*" />
    <End Role="Product" Type="SK8Data.Store.Products" Multiplicity="1" />
    <ReferentialConstraint>
      <Principal Role="Product">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="OrderItem">
        <PropertyRef Name="Product_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="EmployeeOrder">
    <End Role="Employee" Type="SK8Data.Store.Logins_Employee" Multiplicity="0..1" />
    <End Role="Order" Type="SK8Data.Store.Orders" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Employee">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Order">
        <PropertyRef Name="Employee_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="CustomerOrder">
    <End Role="Customer" Type="SK8Data.Store.Logins_Customer" Multiplicity="1" />
    <End Role="Order" Type="SK8Data.Store.Orders" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Customer">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Order">
        <PropertyRef Name="Customer_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="ProductImages">
    <End Role="Product" Type="SK8Data.Store.Products" Multiplicity="*" />
    <End Role="Images" Type="SK8Data.Store.ImageSources" Multiplicity="1" />
    <ReferentialConstraint>
      <Principal Role="Images">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Product">
        <PropertyRef Name="Image_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="LoginImages">
    <End Role="Login" Type="SK8Data.Store.Logins" Multiplicity="*" />
    <End Role="Images" Type="SK8Data.Store.ImageSources" Multiplicity="1" />
    <ReferentialConstraint>
      <Principal Role="Images">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Login">
        <PropertyRef Name="Avatar_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="BrandImageSource">
    <End Role="Brand" Type="SK8Data.Store.Brands" Multiplicity="*" />
    <End Role="ImageSource" Type="SK8Data.Store.ImageSources" Multiplicity="1" />
    <ReferentialConstraint>
      <Principal Role="ImageSource">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Brand">
        <PropertyRef Name="Logo_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Employee_inherits_Login">
    <End Role="Login" Type="SK8Data.Store.Logins" Multiplicity="1">
      <OnDelete Action="Cascade" />
    </End>
    <End Role="Employee" Type="SK8Data.Store.Logins_Employee" Multiplicity="0..1" />
    <ReferentialConstraint>
      <Principal Role="Login">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Employee">
        <PropertyRef Name="Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Customer_inherits_Login">
    <End Role="Login" Type="SK8Data.Store.Logins" Multiplicity="1">
      <OnDelete Action="Cascade" />
    </End>
    <End Role="Customer" Type="SK8Data.Store.Logins_Customer" Multiplicity="0..1" />
    <ReferentialConstraint>
      <Principal Role="Login">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Customer">
        <PropertyRef Name="Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="SK8Data" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns="http://schemas.microsoft.com/ado/2008/09/edm" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation">
        <EntityContainer Name="SK8DataContainer" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Brands" EntityType="SK8Data.Brand" />
          <EntitySet Name="Products" EntityType="SK8Data.Product" />
          <EntitySet Name="ProductTypes" EntityType="SK8Data.ProductType" />
          <AssociationSet Name="ProductProductType" Association="SK8Data.ProductProductType">
            <End Role="Product" EntitySet="Products" />
            <End Role="ProductType" EntitySet="ProductTypes" />
          </AssociationSet>
          <AssociationSet Name="BrandProduct" Association="SK8Data.BrandProduct">
            <End Role="Brand" EntitySet="Brands" />
            <End Role="Products" EntitySet="Products" />
          </AssociationSet>
          <EntitySet Name="Stores" EntityType="SK8Data.Store" />
          <EntitySet Name="Inventorys" EntityType="SK8Data.Inventory" />
          <AssociationSet Name="ProductInventory" Association="SK8Data.ProductInventory">
            <End Role="Product" EntitySet="Products" />
            <End Role="Inventory" EntitySet="Inventorys" />
          </AssociationSet>
          <AssociationSet Name="StoreInventory" Association="SK8Data.StoreInventory">
            <End Role="Store" EntitySet="Stores" />
            <End Role="Inventory" EntitySet="Inventorys" />
          </AssociationSet>
          <EntitySet Name="ProductFlavors" EntityType="SK8Data.ProductFlavor" />
          <AssociationSet Name="ProductFlavorProduct" Association="SK8Data.ProductFlavorProduct">
            <End Role="ProductFlavor" EntitySet="ProductFlavors" />
            <End Role="Product" EntitySet="Products" />
          </AssociationSet>
          <EntitySet Name="Orders" EntityType="SK8Data.Order" />
          <EntitySet Name="OrderItems" EntityType="SK8Data.OrderItem" />
          <AssociationSet Name="OrderOrderItem" Association="SK8Data.OrderOrderItem">
            <End Role="Order" EntitySet="Orders" />
            <End Role="OrderItem" EntitySet="OrderItems" />
          </AssociationSet>
          <AssociationSet Name="OrderItemProduct" Association="SK8Data.OrderItemProduct">
            <End Role="OrderItem" EntitySet="OrderItems" />
            <End Role="Product" EntitySet="Products" />
          </AssociationSet>
          <AssociationSet Name="EmployeeOrder" Association="SK8Data.EmployeeOrder">
            <End Role="Order" EntitySet="Orders" />
          </AssociationSet>
          <AssociationSet Name="CustomerOrder" Association="SK8Data.CustomerOrder">
            <End Role="Order" EntitySet="Orders" />
          </AssociationSet>
          <EntitySet Name="Logins" EntityType="SK8Data.Login" />
          <EntitySet Name="ImageSources" EntityType="SK8Data.ImageSource" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" />
          <EntitySet Name="NotificationChannels" EntityType="SK8Data.NotificationChannel" />
          <AssociationSet Name="ProductImages" Association="SK8Data.ProductImages">
            <End Role="Product" EntitySet="Products" />
            <End Role="Images" EntitySet="ImageSources" />
          </AssociationSet>
          <AssociationSet Name="LoginImages" Association="SK8Data.LoginImages">
            <End Role="Login" EntitySet="Logins" />
            <End Role="Images" EntitySet="ImageSources" />
          </AssociationSet>
          <AssociationSet Name="BrandImageSource" Association="SK8Data.BrandImageSource">
            <End Role="Brand" EntitySet="Brands" />
            <End Role="ImageSource" EntitySet="ImageSources" />
          </AssociationSet>
          </EntityContainer>
        <EntityType Name="Brand" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="100" />
          <NavigationProperty Name="Products" Relationship="SK8Data.BrandProduct" FromRole="Brand" ToRole="Products" />
          <NavigationProperty Name="Logo" Relationship="SK8Data.BrandImageSource" FromRole="Brand" ToRole="ImageSource" />
          <Property Type="String" Name="ImageUrl" Nullable="false" />
        </EntityType>
        <EntityType Name="Product" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="Description" Nullable="false" />
          <NavigationProperty Name="Type" Relationship="SK8Data.ProductProductType" FromRole="Product" ToRole="ProductType" />
          <NavigationProperty Name="Brand" Relationship="SK8Data.BrandProduct" FromRole="Products" ToRole="Brand" />
          <NavigationProperty Name="Inventories" Relationship="SK8Data.ProductInventory" FromRole="Product" ToRole="Inventory" />
          <NavigationProperty Name="Flavor" Relationship="SK8Data.ProductFlavorProduct" FromRole="Product" ToRole="ProductFlavor" />
          <NavigationProperty Name="OrderItems" Relationship="SK8Data.OrderItemProduct" FromRole="Product" ToRole="OrderItem" />
          <Property Type="Decimal" Name="Price" Nullable="false" />
          <NavigationProperty Name="Image" Relationship="SK8Data.ProductImages" FromRole="Product" ToRole="Images" />
          <Property Type="String" Name="ImageUrl" Nullable="false" />
        </EntityType>
        <EntityType Name="ProductType">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="100" />
          <NavigationProperty Name="Products" Relationship="SK8Data.ProductProductType" FromRole="ProductType" ToRole="Product" />
        </EntityType>
        <Association Name="ProductProductType">
          <End Type="SK8Data.Product" Role="Product" Multiplicity="*" />
          <End Type="SK8Data.ProductType" Role="ProductType" Multiplicity="1" />
        </Association>
        <Association Name="BrandProduct">
          <End Type="SK8Data.Brand" Role="Brand" Multiplicity="1" />
          <End Type="SK8Data.Product" Role="Products" Multiplicity="*" />
        </Association>
        <EntityType Name="Store">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Name" Nullable="false" />
          <Property Name="Address" Type="SK8Data.Address" Nullable="false" />
          <NavigationProperty Name="Inventories" Relationship="SK8Data.StoreInventory" FromRole="Store" ToRole="Inventory" />
          <Property Type="String" Name="Notes" Nullable="false" />
          <Property Type="String" Name="Email" Nullable="false" />
          <Property Type="String" Name="Phones" Nullable="false" />
        </EntityType>
        <ComplexType Name="Address">
          <Property Type="String" Name="Address1" Nullable="false" MaxLength="200" />
          <Property Type="String" Name="Address2" MaxLength="200" Nullable="true" />
          <Property Type="String" Name="City" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="StateProvince" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="Postcode" Nullable="false" MaxLength="20" />
        </ComplexType>
        <EntityType Name="Inventory">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <NavigationProperty Name="Product" Relationship="SK8Data.ProductInventory" FromRole="Inventory" ToRole="Product" />
          <NavigationProperty Name="Store" Relationship="SK8Data.StoreInventory" FromRole="Inventory" ToRole="Store" />
          <Property Type="Int32" Name="Quantity" Nullable="false" a:SetterAccess="Public" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" />
        </EntityType>
        <Association Name="ProductInventory">
          <End Type="SK8Data.Product" Role="Product" Multiplicity="1" />
          <End Type="SK8Data.Inventory" Role="Inventory" Multiplicity="*" />
        </Association>
        <Association Name="StoreInventory">
          <End Type="SK8Data.Store" Role="Store" Multiplicity="1" />
          <End Type="SK8Data.Inventory" Role="Inventory" Multiplicity="*" />
        </Association>
        <EntityType Name="ProductFlavor">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="100" />
          <NavigationProperty Name="Product" Relationship="SK8Data.ProductFlavorProduct" FromRole="ProductFlavor" ToRole="Product" />
        </EntityType>
        <Association Name="ProductFlavorProduct">
          <End Type="SK8Data.ProductFlavor" Role="ProductFlavor" Multiplicity="1" />
          <End Type="SK8Data.Product" Role="Product" Multiplicity="*" />
        </Association>
        <EntityType Name="Employee" BaseType="SK8Data.Login">
          <Property Type="String" Name="Position" Nullable="false" />
          <NavigationProperty Name="Orders" Relationship="SK8Data.EmployeeOrder" FromRole="Employee" ToRole="Order" />
        </EntityType>
        <EntityType Name="Customer" BaseType="SK8Data.Login">
          <NavigationProperty Name="Orders" Relationship="SK8Data.CustomerOrder" FromRole="Customer" ToRole="Order" />
          <Property Type="Boolean" Name="IsInStore" Nullable="false" DefaultValue="false" />
        </EntityType>
        <EntityType Name="Order">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="DateTime" Name="OrderDate" Nullable="false" />
          <NavigationProperty Name="OrderItems" Relationship="SK8Data.OrderOrderItem" FromRole="Order" ToRole="OrderItem" />
          <NavigationProperty Name="Employee" Relationship="SK8Data.EmployeeOrder" FromRole="Order" ToRole="Employee" />
          <NavigationProperty Name="Customer" Relationship="SK8Data.CustomerOrder" FromRole="Order" ToRole="Customer" />
          <Property Type="Int32" Name="State" Nullable="false" DefaultValue="0" />
        </EntityType>
        <EntityType Name="OrderItem">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <NavigationProperty Name="Order" Relationship="SK8Data.OrderOrderItem" FromRole="OrderItem" ToRole="Order" />
          <Property Type="Int32" Name="Quantity" Nullable="false" />
          <NavigationProperty Name="Product" Relationship="SK8Data.OrderItemProduct" FromRole="OrderItem" ToRole="Product" />
          <Property Type="Int32" Name="State" Nullable="false" DefaultValue="0" />
        </EntityType>
        <Association Name="OrderOrderItem">
          <End Type="SK8Data.Order" Role="Order" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Type="SK8Data.OrderItem" Role="OrderItem" Multiplicity="*" />
        </Association>
        <Association Name="OrderItemProduct">
          <End Type="SK8Data.OrderItem" Role="OrderItem" Multiplicity="*" />
          <End Type="SK8Data.Product" Role="Product" Multiplicity="1" />
        </Association>
        <Association Name="EmployeeOrder">
          <End Type="SK8Data.Employee" Role="Employee" Multiplicity="0..1" />
          <End Type="SK8Data.Order" Role="Order" Multiplicity="*" />
        </Association>
        <Association Name="CustomerOrder">
          <End Type="SK8Data.Customer" Role="Customer" Multiplicity="1" />
          <End Type="SK8Data.Order" Role="Order" Multiplicity="*" />
        </Association>
        <ComplexType Name="Person">
          <Property Type="String" Name="FirstName" Nullable="false" />
          <Property Type="String" Name="LastName" Nullable="false" />
          <Property Type="String" Name="Email" Nullable="false" />
        </ComplexType>
        <EntityType Name="Login" m:HasStream="true" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="UserName" Nullable="false" />
          <Property Name="Person" Type="SK8Data.Person" Nullable="false" />
          <NavigationProperty Name="Avatar" Relationship="SK8Data.LoginImages" FromRole="Login" ToRole="Images" />
        </EntityType>
           <EntityType Name="NotificationChannel">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="ClientId" Nullable="false" />
          <Property Type="String" Name="Url" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedOn" Nullable="false" />
        </EntityType>
         <EntityType Name="ImageSource" a:TypeAccess="Public" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Binary" Name="Image" Nullable="false" a:GetterAccess="Public" a:SetterAccess="Public" />
          <NavigationProperty Name="Product" Relationship="SK8Data.ProductImages" FromRole="Images" ToRole="Product" />
          <NavigationProperty Name="Login" Relationship="SK8Data.LoginImages" FromRole="Images" ToRole="Login" />
          <NavigationProperty Name="Brand" Relationship="SK8Data.BrandImageSource" FromRole="ImageSource" ToRole="Brand" />
        </EntityType>
        <Association Name="ProductImages">
          <End Type="SK8Data.Product" Role="Product" Multiplicity="0..1" />
          <End Type="SK8Data.ImageSource" Role="Images" Multiplicity="1" />
        </Association>
        <Association Name="LoginImages">
          <End Type="SK8Data.Login" Role="Login" Multiplicity="0..1" />
          <End Type="SK8Data.ImageSource" Role="Images" Multiplicity="1" />
        </Association>
        <Association Name="BrandImageSource">
          <End Type="SK8Data.Brand" Role="Brand" Multiplicity="0..1" />
          <End Type="SK8Data.ImageSource" Role="ImageSource" Multiplicity="1" />
        </Association>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
    <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
  <EntityContainerMapping StorageEntityContainer="SK8DataStoreContainer" CdmEntityContainer="SK8DataContainer">
    <EntitySetMapping Name="Brands">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Brand)">
        <MappingFragment StoreEntitySet="Brands">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="ImageUrl" ColumnName="ImageUrl" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Products">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Product)">
        <MappingFragment StoreEntitySet="Products">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="Description" ColumnName="Description" />
          <ScalarProperty Name="Price" ColumnName="Price" />
          <ScalarProperty Name="ImageUrl" ColumnName="ImageUrl" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="ProductTypes">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.ProductType)">
        <MappingFragment StoreEntitySet="ProductTypes">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Name" ColumnName="Name" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Stores">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Store)">
        <MappingFragment StoreEntitySet="Stores">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ComplexProperty Name="Address" TypeName="SK8Data.Address">
            <ScalarProperty Name="Address1" ColumnName="Address_Address1" />
            <ScalarProperty Name="Address2" ColumnName="Address_Address2" />
            <ScalarProperty Name="City" ColumnName="Address_City" />
            <ScalarProperty Name="StateProvince" ColumnName="Address_StateProvince" />
            <ScalarProperty Name="Postcode" ColumnName="Address_Postcode" />
          </ComplexProperty>
          <ScalarProperty Name="Notes" ColumnName="Notes" />
          <ScalarProperty Name="Email" ColumnName="Email" />
          <ScalarProperty Name="Phones" ColumnName="Phones" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Inventorys">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Inventory)">
        <MappingFragment StoreEntitySet="Inventorys">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Quantity" ColumnName="Quantity" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="ProductFlavors">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.ProductFlavor)">
        <MappingFragment StoreEntitySet="ProductFlavors">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Name" ColumnName="Name" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Orders">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Order)">
        <MappingFragment StoreEntitySet="Orders">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
          <ScalarProperty Name="State" ColumnName="State" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="OrderItems">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.OrderItem)">
        <MappingFragment StoreEntitySet="OrderItems">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Quantity" ColumnName="Quantity" />
          <ScalarProperty Name="State" ColumnName="State" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="Logins">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Login)">
        <MappingFragment StoreEntitySet="Logins">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="UserName" ColumnName="UserName" />
          <ComplexProperty Name="Person" TypeName="SK8Data.Person">
            <ScalarProperty Name="FirstName" ColumnName="Person_FirstName" />
            <ScalarProperty Name="LastName" ColumnName="Person_LastName" />
            <ScalarProperty Name="Email" ColumnName="Person_Email" />
          </ComplexProperty>
        </MappingFragment>
      </EntityTypeMapping>
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Employee)">
        <MappingFragment StoreEntitySet="Logins_Employee">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Position" ColumnName="Position" />
        </MappingFragment>
      </EntityTypeMapping>
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.Customer)">
        <MappingFragment StoreEntitySet="Logins_Customer">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="IsInStore" ColumnName="IsInStore" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="ImageSources">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.ImageSource)">
        <MappingFragment StoreEntitySet="ImageSources">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="Image" ColumnName="Image" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <EntitySetMapping Name="NotificationChannels">
      <EntityTypeMapping TypeName="IsTypeOf(SK8Data.NotificationChannel)">
        <MappingFragment StoreEntitySet="NotificationChannels">
          <ScalarProperty Name="Id" ColumnName="Id" />
          <ScalarProperty Name="ClientId" ColumnName="ClientId" />
          <ScalarProperty Name="Url" ColumnName="Url" />
          <ScalarProperty Name="UpdatedOn" ColumnName="UpdatedOn" />
        </MappingFragment>
      </EntityTypeMapping>
    </EntitySetMapping>
    <AssociationSetMapping Name="ProductProductType" TypeName="SK8Data.ProductProductType" StoreEntitySet="Products">
      <EndProperty Name="ProductType">
        <ScalarProperty Name="Id" ColumnName="Type_Id" />
      </EndProperty>
      <EndProperty Name="Product">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="BrandProduct" TypeName="SK8Data.BrandProduct" StoreEntitySet="Products">
      <EndProperty Name="Brand">
        <ScalarProperty Name="Id" ColumnName="Brand_Id" />
      </EndProperty>
      <EndProperty Name="Products">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="ProductInventory" TypeName="SK8Data.ProductInventory" StoreEntitySet="Inventorys">
      <EndProperty Name="Product">
        <ScalarProperty Name="Id" ColumnName="Product_Id" />
      </EndProperty>
      <EndProperty Name="Inventory">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="StoreInventory" TypeName="SK8Data.StoreInventory" StoreEntitySet="Inventorys">
      <EndProperty Name="Store">
        <ScalarProperty Name="Id" ColumnName="Store_Id" />
      </EndProperty>
      <EndProperty Name="Inventory">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="ProductFlavorProduct" TypeName="SK8Data.ProductFlavorProduct" StoreEntitySet="Products">
      <EndProperty Name="ProductFlavor">
        <ScalarProperty Name="Id" ColumnName="Flavor_Id" />
      </EndProperty>
      <EndProperty Name="Product">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="OrderOrderItem" TypeName="SK8Data.OrderOrderItem" StoreEntitySet="OrderItems">
      <EndProperty Name="Order">
        <ScalarProperty Name="Id" ColumnName="Order_Id" />
      </EndProperty>
      <EndProperty Name="OrderItem">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="OrderItemProduct" TypeName="SK8Data.OrderItemProduct" StoreEntitySet="OrderItems">
      <EndProperty Name="Product">
        <ScalarProperty Name="Id" ColumnName="Product_Id" />
      </EndProperty>
      <EndProperty Name="OrderItem">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="EmployeeOrder" TypeName="SK8Data.EmployeeOrder" StoreEntitySet="Orders">
      <EndProperty Name="Employee">
        <ScalarProperty Name="Id" ColumnName="Employee_Id" />
      </EndProperty>
      <EndProperty Name="Order">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
      <Condition ColumnName="Employee_Id" IsNull="false" />
    </AssociationSetMapping>
    <AssociationSetMapping Name="CustomerOrder" TypeName="SK8Data.CustomerOrder" StoreEntitySet="Orders">
      <EndProperty Name="Customer">
        <ScalarProperty Name="Id" ColumnName="Customer_Id" />
      </EndProperty>
      <EndProperty Name="Order">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="ProductImages" TypeName="SK8Data.ProductImages" StoreEntitySet="Products">
      <EndProperty Name="Images">
        <ScalarProperty Name="Id" ColumnName="Image_Id" />
      </EndProperty>
      <EndProperty Name="Product">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="LoginImages" TypeName="SK8Data.LoginImages" StoreEntitySet="Logins">
      <EndProperty Name="Images">
        <ScalarProperty Name="Id" ColumnName="Avatar_Id" />
      </EndProperty>
      <EndProperty Name="Login">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
    <AssociationSetMapping Name="BrandImageSource" TypeName="SK8Data.BrandImageSource" StoreEntitySet="Brands">
      <EndProperty Name="ImageSource">
        <ScalarProperty Name="Id" ColumnName="Logo_Id" />
      </EndProperty>
      <EndProperty Name="Brand">
        <ScalarProperty Name="Id" ColumnName="Id" />
      </EndProperty>
    </AssociationSetMapping>
  </EntityContainerMapping>
</Mapping></edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <edmx:Designer>
    <edmx:Connection>
      <DesignerInfoPropertySet xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </edmx:Connection>
    <edmx:Options>
      <DesignerInfoPropertySet xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
      </DesignerInfoPropertySet>
    </edmx:Options>
    <!-- Diagram content (shape and connector positions) -->
    <edmx:Diagrams>
    </edmx:Diagrams>
  </edmx:Designer>
</edmx:Edmx>