Mercurial > pub > bltoolkit
view Demo/WebServices/NorthwindDataService/NorthwindModel.edmx @ 9:1e85f66cf767 default tip
update bltoolkit
author | nickolay |
---|---|
date | Thu, 05 Apr 2018 20:53:26 +0300 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
<?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="NorthwindModel.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="NorthwindModelStoreContainer"> <EntitySet Name="Categories" EntityType="NorthwindModel.Store.Categories" store:Type="Tables" Schema="dbo" /> <EntitySet Name="CustomerCustomerDemo" EntityType="NorthwindModel.Store.CustomerCustomerDemo" store:Type="Tables" Schema="dbo" /> <EntitySet Name="CustomerDemographics" EntityType="NorthwindModel.Store.CustomerDemographics" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Customers" EntityType="NorthwindModel.Store.Customers" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Employees" EntityType="NorthwindModel.Store.Employees" store:Type="Tables" Schema="dbo" /> <EntitySet Name="EmployeeTerritories" EntityType="NorthwindModel.Store.EmployeeTerritories" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Order Details" EntityType="NorthwindModel.Store.Order Details" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Orders" EntityType="NorthwindModel.Store.Orders" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Products" EntityType="NorthwindModel.Store.Products" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Region" EntityType="NorthwindModel.Store.Region" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Shippers" EntityType="NorthwindModel.Store.Shippers" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Suppliers" EntityType="NorthwindModel.Store.Suppliers" store:Type="Tables" Schema="dbo" /> <EntitySet Name="sysdiagrams" EntityType="NorthwindModel.Store.sysdiagrams" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Territories" EntityType="NorthwindModel.Store.Territories" store:Type="Tables" Schema="dbo" /> <EntitySet Name="Alphabetical list of products" EntityType="NorthwindModel.Store.Alphabetical list of products" store:Type="Views" store:Schema="dbo" store:Name="Alphabetical list of products"> <DefiningQuery>SELECT [Alphabetical list of products].[ProductID] AS [ProductID], [Alphabetical list of products].[ProductName] AS [ProductName], [Alphabetical list of products].[SupplierID] AS [SupplierID], [Alphabetical list of products].[CategoryID] AS [CategoryID], [Alphabetical list of products].[QuantityPerUnit] AS [QuantityPerUnit], [Alphabetical list of products].[UnitPrice] AS [UnitPrice], [Alphabetical list of products].[UnitsInStock] AS [UnitsInStock], [Alphabetical list of products].[UnitsOnOrder] AS [UnitsOnOrder], [Alphabetical list of products].[ReorderLevel] AS [ReorderLevel], [Alphabetical list of products].[Discontinued] AS [Discontinued], [Alphabetical list of products].[CategoryName] AS [CategoryName] FROM [dbo].[Alphabetical list of products] AS [Alphabetical list of products]</DefiningQuery> </EntitySet> <EntitySet Name="Category Sales for 1997" EntityType="NorthwindModel.Store.Category Sales for 1997" store:Type="Views" store:Schema="dbo" store:Name="Category Sales for 1997"> <DefiningQuery>SELECT [Category Sales for 1997].[CategoryName] AS [CategoryName], [Category Sales for 1997].[CategorySales] AS [CategorySales] FROM [dbo].[Category Sales for 1997] AS [Category Sales for 1997]</DefiningQuery> </EntitySet> <EntitySet Name="Current Product List" EntityType="NorthwindModel.Store.Current Product List" store:Type="Views" store:Schema="dbo" store:Name="Current Product List"> <DefiningQuery>SELECT [Current Product List].[ProductID] AS [ProductID], [Current Product List].[ProductName] AS [ProductName] FROM [dbo].[Current Product List] AS [Current Product List]</DefiningQuery> </EntitySet> <EntitySet Name="Customer and Suppliers by City" EntityType="NorthwindModel.Store.Customer and Suppliers by City" store:Type="Views" store:Schema="dbo" store:Name="Customer and Suppliers by City"> <DefiningQuery>SELECT [Customer and Suppliers by City].[City] AS [City], [Customer and Suppliers by City].[CompanyName] AS [CompanyName], [Customer and Suppliers by City].[ContactName] AS [ContactName], [Customer and Suppliers by City].[Relationship] AS [Relationship] FROM [dbo].[Customer and Suppliers by City] AS [Customer and Suppliers by City]</DefiningQuery> </EntitySet> <EntitySet Name="Invoices" EntityType="NorthwindModel.Store.Invoices" store:Type="Views" store:Schema="dbo" store:Name="Invoices"> <DefiningQuery>SELECT [Invoices].[ShipName] AS [ShipName], [Invoices].[ShipAddress] AS [ShipAddress], [Invoices].[ShipCity] AS [ShipCity], [Invoices].[ShipRegion] AS [ShipRegion], [Invoices].[ShipPostalCode] AS [ShipPostalCode], [Invoices].[ShipCountry] AS [ShipCountry], [Invoices].[CustomerID] AS [CustomerID], [Invoices].[CustomerName] AS [CustomerName], [Invoices].[Address] AS [Address], [Invoices].[City] AS [City], [Invoices].[Region] AS [Region], [Invoices].[PostalCode] AS [PostalCode], [Invoices].[Country] AS [Country], [Invoices].[Salesperson] AS [Salesperson], [Invoices].[OrderID] AS [OrderID], [Invoices].[OrderDate] AS [OrderDate], [Invoices].[RequiredDate] AS [RequiredDate], [Invoices].[ShippedDate] AS [ShippedDate], [Invoices].[ShipperName] AS [ShipperName], [Invoices].[ProductID] AS [ProductID], [Invoices].[ProductName] AS [ProductName], [Invoices].[UnitPrice] AS [UnitPrice], [Invoices].[Quantity] AS [Quantity], [Invoices].[Discount] AS [Discount], [Invoices].[ExtendedPrice] AS [ExtendedPrice], [Invoices].[Freight] AS [Freight] FROM [dbo].[Invoices] AS [Invoices]</DefiningQuery> </EntitySet> <EntitySet Name="Order Details Extended" EntityType="NorthwindModel.Store.Order Details Extended" store:Type="Views" store:Schema="dbo" store:Name="Order Details Extended"> <DefiningQuery>SELECT [Order Details Extended].[OrderID] AS [OrderID], [Order Details Extended].[ProductID] AS [ProductID], [Order Details Extended].[ProductName] AS [ProductName], [Order Details Extended].[UnitPrice] AS [UnitPrice], [Order Details Extended].[Quantity] AS [Quantity], [Order Details Extended].[Discount] AS [Discount], [Order Details Extended].[ExtendedPrice] AS [ExtendedPrice] FROM [dbo].[Order Details Extended] AS [Order Details Extended]</DefiningQuery> </EntitySet> <EntitySet Name="Order Subtotals" EntityType="NorthwindModel.Store.Order Subtotals" store:Type="Views" store:Schema="dbo" store:Name="Order Subtotals"> <DefiningQuery>SELECT [Order Subtotals].[OrderID] AS [OrderID], [Order Subtotals].[Subtotal] AS [Subtotal] FROM [dbo].[Order Subtotals] AS [Order Subtotals]</DefiningQuery> </EntitySet> <EntitySet Name="Orders Qry" EntityType="NorthwindModel.Store.Orders Qry" store:Type="Views" store:Schema="dbo" store:Name="Orders Qry"> <DefiningQuery>SELECT [Orders Qry].[OrderID] AS [OrderID], [Orders Qry].[CustomerID] AS [CustomerID], [Orders Qry].[EmployeeID] AS [EmployeeID], [Orders Qry].[OrderDate] AS [OrderDate], [Orders Qry].[RequiredDate] AS [RequiredDate], [Orders Qry].[ShippedDate] AS [ShippedDate], [Orders Qry].[ShipVia] AS [ShipVia], [Orders Qry].[Freight] AS [Freight], [Orders Qry].[ShipName] AS [ShipName], [Orders Qry].[ShipAddress] AS [ShipAddress], [Orders Qry].[ShipCity] AS [ShipCity], [Orders Qry].[ShipRegion] AS [ShipRegion], [Orders Qry].[ShipPostalCode] AS [ShipPostalCode], [Orders Qry].[ShipCountry] AS [ShipCountry], [Orders Qry].[CompanyName] AS [CompanyName], [Orders Qry].[Address] AS [Address], [Orders Qry].[City] AS [City], [Orders Qry].[Region] AS [Region], [Orders Qry].[PostalCode] AS [PostalCode], [Orders Qry].[Country] AS [Country] FROM [dbo].[Orders Qry] AS [Orders Qry]</DefiningQuery> </EntitySet> <EntitySet Name="Product Sales for 1997" EntityType="NorthwindModel.Store.Product Sales for 1997" store:Type="Views" store:Schema="dbo" store:Name="Product Sales for 1997"> <DefiningQuery>SELECT [Product Sales for 1997].[CategoryName] AS [CategoryName], [Product Sales for 1997].[ProductName] AS [ProductName], [Product Sales for 1997].[ProductSales] AS [ProductSales] FROM [dbo].[Product Sales for 1997] AS [Product Sales for 1997]</DefiningQuery> </EntitySet> <EntitySet Name="Products Above Average Price" EntityType="NorthwindModel.Store.Products Above Average Price" store:Type="Views" store:Schema="dbo" store:Name="Products Above Average Price"> <DefiningQuery>SELECT [Products Above Average Price].[ProductName] AS [ProductName], [Products Above Average Price].[UnitPrice] AS [UnitPrice] FROM [dbo].[Products Above Average Price] AS [Products Above Average Price]</DefiningQuery> </EntitySet> <EntitySet Name="Products by Category" EntityType="NorthwindModel.Store.Products by Category" store:Type="Views" store:Schema="dbo" store:Name="Products by Category"> <DefiningQuery>SELECT [Products by Category].[CategoryName] AS [CategoryName], [Products by Category].[ProductName] AS [ProductName], [Products by Category].[QuantityPerUnit] AS [QuantityPerUnit], [Products by Category].[UnitsInStock] AS [UnitsInStock], [Products by Category].[Discontinued] AS [Discontinued] FROM [dbo].[Products by Category] AS [Products by Category]</DefiningQuery> </EntitySet> <EntitySet Name="Sales by Category" EntityType="NorthwindModel.Store.Sales by Category" store:Type="Views" store:Schema="dbo" store:Name="Sales by Category"> <DefiningQuery>SELECT [Sales by Category].[CategoryID] AS [CategoryID], [Sales by Category].[CategoryName] AS [CategoryName], [Sales by Category].[ProductName] AS [ProductName], [Sales by Category].[ProductSales] AS [ProductSales] FROM [dbo].[Sales by Category] AS [Sales by Category]</DefiningQuery> </EntitySet> <EntitySet Name="Sales Totals by Amount" EntityType="NorthwindModel.Store.Sales Totals by Amount" store:Type="Views" store:Schema="dbo" store:Name="Sales Totals by Amount"> <DefiningQuery>SELECT [Sales Totals by Amount].[SaleAmount] AS [SaleAmount], [Sales Totals by Amount].[OrderID] AS [OrderID], [Sales Totals by Amount].[CompanyName] AS [CompanyName], [Sales Totals by Amount].[ShippedDate] AS [ShippedDate] FROM [dbo].[Sales Totals by Amount] AS [Sales Totals by Amount]</DefiningQuery> </EntitySet> <EntitySet Name="Summary of Sales by Quarter" EntityType="NorthwindModel.Store.Summary of Sales by Quarter" store:Type="Views" store:Schema="dbo" store:Name="Summary of Sales by Quarter"> <DefiningQuery>SELECT [Summary of Sales by Quarter].[ShippedDate] AS [ShippedDate], [Summary of Sales by Quarter].[OrderID] AS [OrderID], [Summary of Sales by Quarter].[Subtotal] AS [Subtotal] FROM [dbo].[Summary of Sales by Quarter] AS [Summary of Sales by Quarter]</DefiningQuery> </EntitySet> <EntitySet Name="Summary of Sales by Year" EntityType="NorthwindModel.Store.Summary of Sales by Year" store:Type="Views" store:Schema="dbo" store:Name="Summary of Sales by Year"> <DefiningQuery>SELECT [Summary of Sales by Year].[ShippedDate] AS [ShippedDate], [Summary of Sales by Year].[OrderID] AS [OrderID], [Summary of Sales by Year].[Subtotal] AS [Subtotal] FROM [dbo].[Summary of Sales by Year] AS [Summary of Sales by Year]</DefiningQuery> </EntitySet> <AssociationSet Name="FK_CustomerCustomerDemo" Association="NorthwindModel.Store.FK_CustomerCustomerDemo"> <End Role="CustomerDemographics" EntitySet="CustomerDemographics" /> <End Role="CustomerCustomerDemo" EntitySet="CustomerCustomerDemo" /> </AssociationSet> <AssociationSet Name="FK_CustomerCustomerDemo_Customers" Association="NorthwindModel.Store.FK_CustomerCustomerDemo_Customers"> <End Role="Customers" EntitySet="Customers" /> <End Role="CustomerCustomerDemo" EntitySet="CustomerCustomerDemo" /> </AssociationSet> <AssociationSet Name="FK_Employees_Employees" Association="NorthwindModel.Store.FK_Employees_Employees"> <End Role="Employees" EntitySet="Employees" /> <End Role="Employees1" EntitySet="Employees" /> </AssociationSet> <AssociationSet Name="FK_EmployeeTerritories_Employees" Association="NorthwindModel.Store.FK_EmployeeTerritories_Employees"> <End Role="Employees" EntitySet="Employees" /> <End Role="EmployeeTerritories" EntitySet="EmployeeTerritories" /> </AssociationSet> <AssociationSet Name="FK_EmployeeTerritories_Territories" Association="NorthwindModel.Store.FK_EmployeeTerritories_Territories"> <End Role="Territories" EntitySet="Territories" /> <End Role="EmployeeTerritories" EntitySet="EmployeeTerritories" /> </AssociationSet> <AssociationSet Name="FK_Order_Details_Orders" Association="NorthwindModel.Store.FK_Order_Details_Orders"> <End Role="Orders" EntitySet="Orders" /> <End Role="Order Details" EntitySet="Order Details" /> </AssociationSet> <AssociationSet Name="FK_Order_Details_Products" Association="NorthwindModel.Store.FK_Order_Details_Products"> <End Role="Products" EntitySet="Products" /> <End Role="Order Details" EntitySet="Order Details" /> </AssociationSet> <AssociationSet Name="FK_Orders_Customers" Association="NorthwindModel.Store.FK_Orders_Customers"> <End Role="Customers" EntitySet="Customers" /> <End Role="Orders" EntitySet="Orders" /> </AssociationSet> <AssociationSet Name="FK_Orders_Employees" Association="NorthwindModel.Store.FK_Orders_Employees"> <End Role="Employees" EntitySet="Employees" /> <End Role="Orders" EntitySet="Orders" /> </AssociationSet> <AssociationSet Name="FK_Orders_Shippers" Association="NorthwindModel.Store.FK_Orders_Shippers"> <End Role="Shippers" EntitySet="Shippers" /> <End Role="Orders" EntitySet="Orders" /> </AssociationSet> <AssociationSet Name="FK_Products_Categories" Association="NorthwindModel.Store.FK_Products_Categories"> <End Role="Categories" EntitySet="Categories" /> <End Role="Products" EntitySet="Products" /> </AssociationSet> <AssociationSet Name="FK_Products_Suppliers" Association="NorthwindModel.Store.FK_Products_Suppliers"> <End Role="Suppliers" EntitySet="Suppliers" /> <End Role="Products" EntitySet="Products" /> </AssociationSet> <AssociationSet Name="FK_Territories_Region" Association="NorthwindModel.Store.FK_Territories_Region"> <End Role="Region" EntitySet="Region" /> <End Role="Territories" EntitySet="Territories" /> </AssociationSet> </EntityContainer> <EntityType Name="Categories"> <Key> <PropertyRef Name="CategoryID" /> </Key> <Property Name="CategoryID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="CategoryName" Type="nvarchar" Nullable="false" MaxLength="15" /> <Property Name="Description" Type="ntext" /> <Property Name="Picture" Type="image" /> </EntityType> <EntityType Name="CustomerCustomerDemo"> <Key> <PropertyRef Name="CustomerID" /> <PropertyRef Name="CustomerTypeID" /> </Key> <Property Name="CustomerID" Type="nchar" Nullable="false" MaxLength="5" /> <Property Name="CustomerTypeID" Type="nchar" Nullable="false" MaxLength="10" /> </EntityType> <EntityType Name="CustomerDemographics"> <Key> <PropertyRef Name="CustomerTypeID" /> </Key> <Property Name="CustomerTypeID" Type="nchar" Nullable="false" MaxLength="10" /> <Property Name="CustomerDesc" Type="ntext" /> </EntityType> <EntityType Name="Customers"> <Key> <PropertyRef Name="CustomerID" /> </Key> <Property Name="CustomerID" Type="nchar" Nullable="false" MaxLength="5" /> <Property Name="CompanyName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ContactName" Type="nvarchar" MaxLength="30" /> <Property Name="ContactTitle" Type="nvarchar" MaxLength="30" /> <Property Name="Address" Type="nvarchar" MaxLength="60" /> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="Region" Type="nvarchar" MaxLength="15" /> <Property Name="PostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="Country" Type="nvarchar" MaxLength="15" /> <Property Name="Phone" Type="nvarchar" MaxLength="24" /> <Property Name="Fax" Type="nvarchar" MaxLength="24" /> </EntityType> <EntityType Name="Employees"> <Key> <PropertyRef Name="EmployeeID" /> </Key> <Property Name="EmployeeID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="LastName" Type="nvarchar" Nullable="false" MaxLength="20" /> <Property Name="FirstName" Type="nvarchar" Nullable="false" MaxLength="10" /> <Property Name="Title" Type="nvarchar" MaxLength="30" /> <Property Name="TitleOfCourtesy" Type="nvarchar" MaxLength="25" /> <Property Name="BirthDate" Type="datetime" /> <Property Name="HireDate" Type="datetime" /> <Property Name="Address" Type="nvarchar" MaxLength="60" /> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="Region" Type="nvarchar" MaxLength="15" /> <Property Name="PostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="Country" Type="nvarchar" MaxLength="15" /> <Property Name="HomePhone" Type="nvarchar" MaxLength="24" /> <Property Name="Extension" Type="nvarchar" MaxLength="4" /> <Property Name="Photo" Type="image" /> <Property Name="Notes" Type="ntext" /> <Property Name="ReportsTo" Type="int" /> <Property Name="PhotoPath" Type="nvarchar" MaxLength="255" /> </EntityType> <EntityType Name="EmployeeTerritories"> <Key> <PropertyRef Name="EmployeeID" /> <PropertyRef Name="TerritoryID" /> </Key> <Property Name="EmployeeID" Type="int" Nullable="false" /> <Property Name="TerritoryID" Type="nvarchar" Nullable="false" MaxLength="20" /> </EntityType> <EntityType Name="Order Details"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="ProductID" /> </Key> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="ProductID" Type="int" Nullable="false" /> <Property Name="UnitPrice" Type="money" Nullable="false" /> <Property Name="Quantity" Type="smallint" Nullable="false" /> <Property Name="Discount" Type="real" Nullable="false" /> </EntityType> <EntityType Name="Orders"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="OrderID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="CustomerID" Type="nchar" MaxLength="5" /> <Property Name="EmployeeID" Type="int" /> <Property Name="OrderDate" Type="datetime" /> <Property Name="RequiredDate" Type="datetime" /> <Property Name="ShippedDate" Type="datetime" /> <Property Name="ShipVia" Type="int" /> <Property Name="Freight" Type="money" /> <Property Name="ShipName" Type="nvarchar" MaxLength="40" /> <Property Name="ShipAddress" Type="nvarchar" MaxLength="60" /> <Property Name="ShipCity" Type="nvarchar" MaxLength="15" /> <Property Name="ShipRegion" Type="nvarchar" MaxLength="15" /> <Property Name="ShipPostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="ShipCountry" Type="nvarchar" MaxLength="15" /> </EntityType> <EntityType Name="Products"> <Key> <PropertyRef Name="ProductID" /> </Key> <Property Name="ProductID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="SupplierID" Type="int" /> <Property Name="CategoryID" Type="int" /> <Property Name="QuantityPerUnit" Type="nvarchar" MaxLength="20" /> <Property Name="UnitPrice" Type="money" /> <Property Name="UnitsInStock" Type="smallint" /> <Property Name="UnitsOnOrder" Type="smallint" /> <Property Name="ReorderLevel" Type="smallint" /> <Property Name="Discontinued" Type="bit" Nullable="false" /> </EntityType> <EntityType Name="Region"> <Key> <PropertyRef Name="RegionID" /> </Key> <Property Name="RegionID" Type="int" Nullable="false" /> <Property Name="RegionDescription" Type="nchar" Nullable="false" MaxLength="50" /> </EntityType> <EntityType Name="Shippers"> <Key> <PropertyRef Name="ShipperID" /> </Key> <Property Name="ShipperID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="CompanyName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="Phone" Type="nvarchar" MaxLength="24" /> </EntityType> <EntityType Name="Suppliers"> <Key> <PropertyRef Name="SupplierID" /> </Key> <Property Name="SupplierID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="CompanyName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ContactName" Type="nvarchar" MaxLength="30" /> <Property Name="ContactTitle" Type="nvarchar" MaxLength="30" /> <Property Name="Address" Type="nvarchar" MaxLength="60" /> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="Region" Type="nvarchar" MaxLength="15" /> <Property Name="PostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="Country" Type="nvarchar" MaxLength="15" /> <Property Name="Phone" Type="nvarchar" MaxLength="24" /> <Property Name="Fax" Type="nvarchar" MaxLength="24" /> <Property Name="HomePage" Type="ntext" /> </EntityType> <EntityType Name="sysdiagrams"> <Key> <PropertyRef Name="diagram_id" /> </Key> <Property Name="name" Type="nvarchar" Nullable="false" MaxLength="128" /> <Property Name="principal_id" Type="int" Nullable="false" /> <Property Name="diagram_id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="version" Type="int" /> <Property Name="definition" Type="varbinary(max)" /> </EntityType> <EntityType Name="Territories"> <Key> <PropertyRef Name="TerritoryID" /> </Key> <Property Name="TerritoryID" Type="nvarchar" Nullable="false" MaxLength="20" /> <Property Name="TerritoryDescription" Type="nchar" Nullable="false" MaxLength="50" /> <Property Name="RegionID" Type="int" Nullable="false" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Alphabetical list of products' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Alphabetical list of products"> <Key> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="Discontinued" /> <PropertyRef Name="CategoryName" /> </Key> <Property Name="ProductID" Type="int" Nullable="false" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="SupplierID" Type="int" /> <Property Name="CategoryID" Type="int" /> <Property Name="QuantityPerUnit" Type="nvarchar" MaxLength="20" /> <Property Name="UnitPrice" Type="money" /> <Property Name="UnitsInStock" Type="smallint" /> <Property Name="UnitsOnOrder" Type="smallint" /> <Property Name="ReorderLevel" Type="smallint" /> <Property Name="Discontinued" Type="bit" Nullable="false" /> <Property Name="CategoryName" Type="nvarchar" Nullable="false" MaxLength="15" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Category Sales for 1997' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Category Sales for 1997"> <Key> <PropertyRef Name="CategoryName" /> </Key> <Property Name="CategoryName" Type="nvarchar" Nullable="false" MaxLength="15" /> <Property Name="CategorySales" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Current Product List' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Current Product List"> <Key> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> </Key> <Property Name="ProductID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Customer and Suppliers by City' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Customer and Suppliers by City"> <Key> <PropertyRef Name="CompanyName" /> <PropertyRef Name="Relationship" /> </Key> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="CompanyName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ContactName" Type="nvarchar" MaxLength="30" /> <Property Name="Relationship" Type="varchar" Nullable="false" MaxLength="9" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Invoices' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Invoices"> <Key> <PropertyRef Name="CustomerName" /> <PropertyRef Name="Salesperson" /> <PropertyRef Name="OrderID" /> <PropertyRef Name="ShipperName" /> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="UnitPrice" /> <PropertyRef Name="Quantity" /> <PropertyRef Name="Discount" /> </Key> <Property Name="ShipName" Type="nvarchar" MaxLength="40" /> <Property Name="ShipAddress" Type="nvarchar" MaxLength="60" /> <Property Name="ShipCity" Type="nvarchar" MaxLength="15" /> <Property Name="ShipRegion" Type="nvarchar" MaxLength="15" /> <Property Name="ShipPostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="ShipCountry" Type="nvarchar" MaxLength="15" /> <Property Name="CustomerID" Type="nchar" MaxLength="5" /> <Property Name="CustomerName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="Address" Type="nvarchar" MaxLength="60" /> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="Region" Type="nvarchar" MaxLength="15" /> <Property Name="PostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="Country" Type="nvarchar" MaxLength="15" /> <Property Name="Salesperson" Type="nvarchar" Nullable="false" MaxLength="31" /> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="OrderDate" Type="datetime" /> <Property Name="RequiredDate" Type="datetime" /> <Property Name="ShippedDate" Type="datetime" /> <Property Name="ShipperName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ProductID" Type="int" Nullable="false" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="UnitPrice" Type="money" Nullable="false" /> <Property Name="Quantity" Type="smallint" Nullable="false" /> <Property Name="Discount" Type="real" Nullable="false" /> <Property Name="ExtendedPrice" Type="money" /> <Property Name="Freight" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Order Details Extended' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Order Details Extended"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="UnitPrice" /> <PropertyRef Name="Quantity" /> <PropertyRef Name="Discount" /> </Key> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="ProductID" Type="int" Nullable="false" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="UnitPrice" Type="money" Nullable="false" /> <Property Name="Quantity" Type="smallint" Nullable="false" /> <Property Name="Discount" Type="real" Nullable="false" /> <Property Name="ExtendedPrice" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Order Subtotals' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Order Subtotals"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="Subtotal" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Orders Qry' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Orders Qry"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="CompanyName" /> </Key> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="CustomerID" Type="nchar" MaxLength="5" /> <Property Name="EmployeeID" Type="int" /> <Property Name="OrderDate" Type="datetime" /> <Property Name="RequiredDate" Type="datetime" /> <Property Name="ShippedDate" Type="datetime" /> <Property Name="ShipVia" Type="int" /> <Property Name="Freight" Type="money" /> <Property Name="ShipName" Type="nvarchar" MaxLength="40" /> <Property Name="ShipAddress" Type="nvarchar" MaxLength="60" /> <Property Name="ShipCity" Type="nvarchar" MaxLength="15" /> <Property Name="ShipRegion" Type="nvarchar" MaxLength="15" /> <Property Name="ShipPostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="ShipCountry" Type="nvarchar" MaxLength="15" /> <Property Name="CompanyName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="Address" Type="nvarchar" MaxLength="60" /> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="Region" Type="nvarchar" MaxLength="15" /> <Property Name="PostalCode" Type="nvarchar" MaxLength="10" /> <Property Name="Country" Type="nvarchar" MaxLength="15" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Product Sales for 1997' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Product Sales for 1997"> <Key> <PropertyRef Name="CategoryName" /> <PropertyRef Name="ProductName" /> </Key> <Property Name="CategoryName" Type="nvarchar" Nullable="false" MaxLength="15" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ProductSales" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Products Above Average Price' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Products Above Average Price"> <Key> <PropertyRef Name="ProductName" /> </Key> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="UnitPrice" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Products by Category' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Products by Category"> <Key> <PropertyRef Name="CategoryName" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="Discontinued" /> </Key> <Property Name="CategoryName" Type="nvarchar" Nullable="false" MaxLength="15" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="QuantityPerUnit" Type="nvarchar" MaxLength="20" /> <Property Name="UnitsInStock" Type="smallint" /> <Property Name="Discontinued" Type="bit" Nullable="false" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Sales by Category' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Sales by Category"> <Key> <PropertyRef Name="CategoryID" /> <PropertyRef Name="CategoryName" /> <PropertyRef Name="ProductName" /> </Key> <Property Name="CategoryID" Type="int" Nullable="false" /> <Property Name="CategoryName" Type="nvarchar" Nullable="false" MaxLength="15" /> <Property Name="ProductName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ProductSales" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Sales Totals by Amount' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Sales Totals by Amount"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="CompanyName" /> </Key> <Property Name="SaleAmount" Type="money" /> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="CompanyName" Type="nvarchar" Nullable="false" MaxLength="40" /> <Property Name="ShippedDate" Type="datetime" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Summary of Sales by Quarter' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Summary of Sales by Quarter"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="ShippedDate" Type="datetime" /> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="Subtotal" Type="money" /> </EntityType> <!--Errors Found During Generation: warning 6002: The table/view 'Northwind.dbo.Summary of Sales by Year' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view. --> <EntityType Name="Summary of Sales by Year"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="ShippedDate" Type="datetime" /> <Property Name="OrderID" Type="int" Nullable="false" /> <Property Name="Subtotal" Type="money" /> </EntityType> <Association Name="FK_CustomerCustomerDemo"> <End Role="CustomerDemographics" Type="NorthwindModel.Store.CustomerDemographics" Multiplicity="1" /> <End Role="CustomerCustomerDemo" Type="NorthwindModel.Store.CustomerCustomerDemo" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="CustomerDemographics"> <PropertyRef Name="CustomerTypeID" /> </Principal> <Dependent Role="CustomerCustomerDemo"> <PropertyRef Name="CustomerTypeID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_CustomerCustomerDemo_Customers"> <End Role="Customers" Type="NorthwindModel.Store.Customers" Multiplicity="1" /> <End Role="CustomerCustomerDemo" Type="NorthwindModel.Store.CustomerCustomerDemo" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Customers"> <PropertyRef Name="CustomerID" /> </Principal> <Dependent Role="CustomerCustomerDemo"> <PropertyRef Name="CustomerID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Employees_Employees"> <End Role="Employees" Type="NorthwindModel.Store.Employees" Multiplicity="0..1" /> <End Role="Employees1" Type="NorthwindModel.Store.Employees" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Employees"> <PropertyRef Name="EmployeeID" /> </Principal> <Dependent Role="Employees1"> <PropertyRef Name="ReportsTo" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_EmployeeTerritories_Employees"> <End Role="Employees" Type="NorthwindModel.Store.Employees" Multiplicity="1" /> <End Role="EmployeeTerritories" Type="NorthwindModel.Store.EmployeeTerritories" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Employees"> <PropertyRef Name="EmployeeID" /> </Principal> <Dependent Role="EmployeeTerritories"> <PropertyRef Name="EmployeeID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_EmployeeTerritories_Territories"> <End Role="Territories" Type="NorthwindModel.Store.Territories" Multiplicity="1" /> <End Role="EmployeeTerritories" Type="NorthwindModel.Store.EmployeeTerritories" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Territories"> <PropertyRef Name="TerritoryID" /> </Principal> <Dependent Role="EmployeeTerritories"> <PropertyRef Name="TerritoryID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Order_Details_Orders"> <End Role="Orders" Type="NorthwindModel.Store.Orders" Multiplicity="1" /> <End Role="Order Details" Type="NorthwindModel.Store.Order Details" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Orders"> <PropertyRef Name="OrderID" /> </Principal> <Dependent Role="Order Details"> <PropertyRef Name="OrderID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Order_Details_Products"> <End Role="Products" Type="NorthwindModel.Store.Products" Multiplicity="1" /> <End Role="Order Details" Type="NorthwindModel.Store.Order Details" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Products"> <PropertyRef Name="ProductID" /> </Principal> <Dependent Role="Order Details"> <PropertyRef Name="ProductID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Orders_Customers"> <End Role="Customers" Type="NorthwindModel.Store.Customers" Multiplicity="0..1" /> <End Role="Orders" Type="NorthwindModel.Store.Orders" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Customers"> <PropertyRef Name="CustomerID" /> </Principal> <Dependent Role="Orders"> <PropertyRef Name="CustomerID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Orders_Employees"> <End Role="Employees" Type="NorthwindModel.Store.Employees" Multiplicity="0..1" /> <End Role="Orders" Type="NorthwindModel.Store.Orders" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Employees"> <PropertyRef Name="EmployeeID" /> </Principal> <Dependent Role="Orders"> <PropertyRef Name="EmployeeID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Orders_Shippers"> <End Role="Shippers" Type="NorthwindModel.Store.Shippers" Multiplicity="0..1" /> <End Role="Orders" Type="NorthwindModel.Store.Orders" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Shippers"> <PropertyRef Name="ShipperID" /> </Principal> <Dependent Role="Orders"> <PropertyRef Name="ShipVia" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Products_Categories"> <End Role="Categories" Type="NorthwindModel.Store.Categories" Multiplicity="0..1" /> <End Role="Products" Type="NorthwindModel.Store.Products" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Categories"> <PropertyRef Name="CategoryID" /> </Principal> <Dependent Role="Products"> <PropertyRef Name="CategoryID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Products_Suppliers"> <End Role="Suppliers" Type="NorthwindModel.Store.Suppliers" Multiplicity="0..1" /> <End Role="Products" Type="NorthwindModel.Store.Products" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Suppliers"> <PropertyRef Name="SupplierID" /> </Principal> <Dependent Role="Products"> <PropertyRef Name="SupplierID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Territories_Region"> <End Role="Region" Type="NorthwindModel.Store.Region" Multiplicity="1" /> <End Role="Territories" Type="NorthwindModel.Store.Territories" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Region"> <PropertyRef Name="RegionID" /> </Principal> <Dependent Role="Territories"> <PropertyRef Name="RegionID" /> </Dependent> </ReferentialConstraint> </Association> <Function Name="CustOrderHist" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="CustomerID" Type="nchar" Mode="In" /> </Function> <Function Name="CustOrdersDetail" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="OrderID" Type="int" Mode="In" /> </Function> <Function Name="CustOrdersOrders" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="CustomerID" Type="nchar" Mode="In" /> </Function> <Function Name="Employee_Sales_by_Country" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" StoreFunctionName="Employee Sales by Country" Schema="dbo"> <Parameter Name="Beginning_Date" Type="datetime" Mode="In" /> <Parameter Name="Ending_Date" Type="datetime" Mode="In" /> </Function> <Function Name="fn_diagramobjects" ReturnType="int" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> <Function Name="Sales_by_Year" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" StoreFunctionName="Sales by Year" Schema="dbo"> <Parameter Name="Beginning_Date" Type="datetime" Mode="In" /> <Parameter Name="Ending_Date" Type="datetime" Mode="In" /> </Function> <Function Name="SalesByCategory" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="CategoryName" Type="nvarchar" Mode="In" /> <Parameter Name="OrdYear" Type="nvarchar" Mode="In" /> </Function> <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="diagramname" Type="nvarchar" Mode="In" /> <Parameter Name="owner_id" Type="int" Mode="In" /> <Parameter Name="version" Type="int" Mode="In" /> <Parameter Name="definition" Type="varbinary(max)" Mode="In" /> </Function> <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="diagramname" Type="nvarchar" Mode="In" /> <Parameter Name="owner_id" Type="int" Mode="In" /> <Parameter Name="version" Type="int" Mode="In" /> <Parameter Name="definition" Type="varbinary(max)" Mode="In" /> </Function> <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="diagramname" Type="nvarchar" Mode="In" /> <Parameter Name="owner_id" Type="int" Mode="In" /> </Function> <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="diagramname" Type="nvarchar" Mode="In" /> <Parameter Name="owner_id" Type="int" Mode="In" /> </Function> <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="diagramname" Type="nvarchar" Mode="In" /> <Parameter Name="owner_id" Type="int" Mode="In" /> </Function> <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo"> <Parameter Name="diagramname" Type="nvarchar" Mode="In" /> <Parameter Name="owner_id" Type="int" Mode="In" /> <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" /> </Function> <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" /> <Function Name="Ten_Most_Expensive_Products" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" StoreFunctionName="Ten Most Expensive Products" Schema="dbo" /> <!--Errors Found During Generation: warning 6013: The table/view 'Northwind.dbo.Quarterly Orders' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it. <EntityType Name="Quarterly Orders"> <Property Name="CustomerID" Type="nchar" MaxLength="5" /> <Property Name="CompanyName" Type="nvarchar" MaxLength="40" /> <Property Name="City" Type="nvarchar" MaxLength="15" /> <Property Name="Country" Type="nvarchar" MaxLength="15" /> </EntityType>--> </Schema> </edmx:StorageModels> <!-- CSDL content --> <edmx:ConceptualModels> <Schema Namespace="NorthwindModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> <EntityContainer Name="NorthwindEntities" annotation:LazyLoadingEnabled="true"> <EntitySet Name="Categories" EntityType="NorthwindModel.Category" /> <EntitySet Name="CustomerDemographics" EntityType="NorthwindModel.CustomerDemographic" /> <EntitySet Name="Customers" EntityType="NorthwindModel.Customer" /> <EntitySet Name="Employees" EntityType="NorthwindModel.Employee" /> <EntitySet Name="Order_Details" EntityType="NorthwindModel.Order_Detail" /> <EntitySet Name="Orders" EntityType="NorthwindModel.Order" /> <EntitySet Name="Products" EntityType="NorthwindModel.Product" /> <EntitySet Name="Regions" EntityType="NorthwindModel.Region" /> <EntitySet Name="Shippers" EntityType="NorthwindModel.Shipper" /> <EntitySet Name="Suppliers" EntityType="NorthwindModel.Supplier" /> <EntitySet Name="sysdiagrams" EntityType="NorthwindModel.sysdiagram" /> <EntitySet Name="Territories" EntityType="NorthwindModel.Territory" /> <EntitySet Name="Alphabetical_list_of_products" EntityType="NorthwindModel.Alphabetical_list_of_product" /> <EntitySet Name="Category_Sales_for_1997" EntityType="NorthwindModel.Category_Sales_for_1997" /> <EntitySet Name="Current_Product_Lists" EntityType="NorthwindModel.Current_Product_List" /> <EntitySet Name="Customer_and_Suppliers_by_Cities" EntityType="NorthwindModel.Customer_and_Suppliers_by_City" /> <EntitySet Name="Invoices" EntityType="NorthwindModel.Invoice" /> <EntitySet Name="Order_Details_Extendeds" EntityType="NorthwindModel.Order_Details_Extended" /> <EntitySet Name="Order_Subtotals" EntityType="NorthwindModel.Order_Subtotal" /> <EntitySet Name="Orders_Qries" EntityType="NorthwindModel.Orders_Qry" /> <EntitySet Name="Product_Sales_for_1997" EntityType="NorthwindModel.Product_Sales_for_1997" /> <EntitySet Name="Products_Above_Average_Prices" EntityType="NorthwindModel.Products_Above_Average_Price" /> <EntitySet Name="Products_by_Categories" EntityType="NorthwindModel.Products_by_Category" /> <EntitySet Name="Sales_by_Categories" EntityType="NorthwindModel.Sales_by_Category" /> <EntitySet Name="Sales_Totals_by_Amounts" EntityType="NorthwindModel.Sales_Totals_by_Amount" /> <EntitySet Name="Summary_of_Sales_by_Quarters" EntityType="NorthwindModel.Summary_of_Sales_by_Quarter" /> <EntitySet Name="Summary_of_Sales_by_Years" EntityType="NorthwindModel.Summary_of_Sales_by_Year" /> <AssociationSet Name="FK_Products_Categories" Association="NorthwindModel.FK_Products_Categories"> <End Role="Categories" EntitySet="Categories" /> <End Role="Products" EntitySet="Products" /> </AssociationSet> <AssociationSet Name="FK_Orders_Customers" Association="NorthwindModel.FK_Orders_Customers"> <End Role="Customers" EntitySet="Customers" /> <End Role="Orders" EntitySet="Orders" /> </AssociationSet> <AssociationSet Name="FK_Employees_Employees" Association="NorthwindModel.FK_Employees_Employees"> <End Role="Employees" EntitySet="Employees" /> <End Role="Employees1" EntitySet="Employees" /> </AssociationSet> <AssociationSet Name="FK_Orders_Employees" Association="NorthwindModel.FK_Orders_Employees"> <End Role="Employees" EntitySet="Employees" /> <End Role="Orders" EntitySet="Orders" /> </AssociationSet> <AssociationSet Name="FK_Order_Details_Orders" Association="NorthwindModel.FK_Order_Details_Orders"> <End Role="Orders" EntitySet="Orders" /> <End Role="Order_Details" EntitySet="Order_Details" /> </AssociationSet> <AssociationSet Name="FK_Order_Details_Products" Association="NorthwindModel.FK_Order_Details_Products"> <End Role="Products" EntitySet="Products" /> <End Role="Order_Details" EntitySet="Order_Details" /> </AssociationSet> <AssociationSet Name="FK_Orders_Shippers" Association="NorthwindModel.FK_Orders_Shippers"> <End Role="Shippers" EntitySet="Shippers" /> <End Role="Orders" EntitySet="Orders" /> </AssociationSet> <AssociationSet Name="FK_Products_Suppliers" Association="NorthwindModel.FK_Products_Suppliers"> <End Role="Suppliers" EntitySet="Suppliers" /> <End Role="Products" EntitySet="Products" /> </AssociationSet> <AssociationSet Name="FK_Territories_Region" Association="NorthwindModel.FK_Territories_Region"> <End Role="Region" EntitySet="Regions" /> <End Role="Territories" EntitySet="Territories" /> </AssociationSet> <AssociationSet Name="CustomerCustomerDemo" Association="NorthwindModel.CustomerCustomerDemo"> <End Role="CustomerDemographics" EntitySet="CustomerDemographics" /> <End Role="Customers" EntitySet="Customers" /> </AssociationSet> <AssociationSet Name="EmployeeTerritories" Association="NorthwindModel.EmployeeTerritories"> <End Role="Employees" EntitySet="Employees" /> <End Role="Territories" EntitySet="Territories" /> </AssociationSet> </EntityContainer> <EntityType Name="Category"> <Key> <PropertyRef Name="CategoryID" /> </Key> <Property Name="CategoryID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="CategoryName" Type="String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Description" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" /> <Property Name="Picture" Type="Binary" MaxLength="Max" FixedLength="false" /> <NavigationProperty Name="Products" Relationship="NorthwindModel.FK_Products_Categories" FromRole="Categories" ToRole="Products" /> </EntityType> <EntityType Name="CustomerDemographic"> <Key> <PropertyRef Name="CustomerTypeID" /> </Key> <Property Name="CustomerTypeID" Type="String" Nullable="false" MaxLength="10" Unicode="true" FixedLength="true" /> <Property Name="CustomerDesc" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" /> <NavigationProperty Name="Customers" Relationship="NorthwindModel.CustomerCustomerDemo" FromRole="CustomerDemographics" ToRole="Customers" /> </EntityType> <EntityType Name="Customer"> <Key> <PropertyRef Name="CustomerID" /> </Key> <Property Name="CustomerID" Type="String" Nullable="false" MaxLength="5" Unicode="true" FixedLength="true" /> <Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ContactName" Type="String" MaxLength="30" Unicode="true" FixedLength="false" /> <Property Name="ContactTitle" Type="String" MaxLength="30" Unicode="true" FixedLength="false" /> <Property Name="Address" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="City" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Region" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="PostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="Country" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Phone" Type="String" MaxLength="24" Unicode="true" FixedLength="false" /> <Property Name="Fax" Type="String" MaxLength="24" Unicode="true" FixedLength="false" /> <NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Customers" FromRole="Customers" ToRole="Orders" /> <NavigationProperty Name="CustomerDemographics" Relationship="NorthwindModel.CustomerCustomerDemo" FromRole="Customers" ToRole="CustomerDemographics" /> </EntityType> <EntityType Name="Employee"> <Key> <PropertyRef Name="EmployeeID" /> </Key> <Property Name="EmployeeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="LastName" Type="String" Nullable="false" MaxLength="20" Unicode="true" FixedLength="false" /> <Property Name="FirstName" Type="String" Nullable="false" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="Title" Type="String" MaxLength="30" Unicode="true" FixedLength="false" /> <Property Name="TitleOfCourtesy" Type="String" MaxLength="25" Unicode="true" FixedLength="false" /> <Property Name="BirthDate" Type="DateTime" /> <Property Name="HireDate" Type="DateTime" /> <Property Name="Address" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="City" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Region" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="PostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="Country" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="HomePhone" Type="String" MaxLength="24" Unicode="true" FixedLength="false" /> <Property Name="Extension" Type="String" MaxLength="4" Unicode="true" FixedLength="false" /> <Property Name="Photo" Type="Binary" MaxLength="Max" FixedLength="false" /> <Property Name="Notes" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" /> <Property Name="ReportsTo" Type="Int32" /> <Property Name="PhotoPath" Type="String" MaxLength="255" Unicode="true" FixedLength="false" /> <NavigationProperty Name="Employees1" Relationship="NorthwindModel.FK_Employees_Employees" FromRole="Employees" ToRole="Employees1" /> <NavigationProperty Name="Employee1" Relationship="NorthwindModel.FK_Employees_Employees" FromRole="Employees1" ToRole="Employees" /> <NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Employees" FromRole="Employees" ToRole="Orders" /> <NavigationProperty Name="Territories" Relationship="NorthwindModel.EmployeeTerritories" FromRole="Employees" ToRole="Territories" /> </EntityType> <EntityType Name="Order_Detail"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="ProductID" /> </Key> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="ProductID" Type="Int32" Nullable="false" /> <Property Name="UnitPrice" Type="Decimal" Nullable="false" Precision="19" Scale="4" /> <Property Name="Quantity" Type="Int16" Nullable="false" /> <Property Name="Discount" Type="Single" Nullable="false" /> <NavigationProperty Name="Order" Relationship="NorthwindModel.FK_Order_Details_Orders" FromRole="Order_Details" ToRole="Orders" /> <NavigationProperty Name="Product" Relationship="NorthwindModel.FK_Order_Details_Products" FromRole="Order_Details" ToRole="Products" /> </EntityType> <EntityType Name="Order"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="CustomerID" Type="String" MaxLength="5" Unicode="true" FixedLength="true" /> <Property Name="EmployeeID" Type="Int32" /> <Property Name="OrderDate" Type="DateTime" /> <Property Name="RequiredDate" Type="DateTime" /> <Property Name="ShippedDate" Type="DateTime" /> <Property Name="ShipVia" Type="Int32" /> <Property Name="Freight" Type="Decimal" Precision="19" Scale="4" /> <Property Name="ShipName" Type="String" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ShipAddress" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="ShipCity" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ShipRegion" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ShipPostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="ShipCountry" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <NavigationProperty Name="Customer" Relationship="NorthwindModel.FK_Orders_Customers" FromRole="Orders" ToRole="Customers" /> <NavigationProperty Name="Employee" Relationship="NorthwindModel.FK_Orders_Employees" FromRole="Orders" ToRole="Employees" /> <NavigationProperty Name="Order_Details" Relationship="NorthwindModel.FK_Order_Details_Orders" FromRole="Orders" ToRole="Order_Details" /> <NavigationProperty Name="Shipper" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Orders" ToRole="Shippers" /> </EntityType> <EntityType Name="Product"> <Key> <PropertyRef Name="ProductID" /> </Key> <Property Name="ProductID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="SupplierID" Type="Int32" /> <Property Name="CategoryID" Type="Int32" /> <Property Name="QuantityPerUnit" Type="String" MaxLength="20" Unicode="true" FixedLength="false" /> <Property Name="UnitPrice" Type="Decimal" Precision="19" Scale="4" /> <Property Name="UnitsInStock" Type="Int16" /> <Property Name="UnitsOnOrder" Type="Int16" /> <Property Name="ReorderLevel" Type="Int16" /> <Property Name="Discontinued" Type="Boolean" Nullable="false" /> <NavigationProperty Name="Category" Relationship="NorthwindModel.FK_Products_Categories" FromRole="Products" ToRole="Categories" /> <NavigationProperty Name="Order_Details" Relationship="NorthwindModel.FK_Order_Details_Products" FromRole="Products" ToRole="Order_Details" /> <NavigationProperty Name="Supplier" Relationship="NorthwindModel.FK_Products_Suppliers" FromRole="Products" ToRole="Suppliers" /> </EntityType> <EntityType Name="Region"> <Key> <PropertyRef Name="RegionID" /> </Key> <Property Name="RegionID" Type="Int32" Nullable="false" /> <Property Name="RegionDescription" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="true" /> <NavigationProperty Name="Territories" Relationship="NorthwindModel.FK_Territories_Region" FromRole="Region" ToRole="Territories" /> </EntityType> <EntityType Name="Shipper"> <Key> <PropertyRef Name="ShipperID" /> </Key> <Property Name="ShipperID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="Phone" Type="String" MaxLength="24" Unicode="true" FixedLength="false" /> <NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Shippers" ToRole="Orders" /> </EntityType> <EntityType Name="Supplier"> <Key> <PropertyRef Name="SupplierID" /> </Key> <Property Name="SupplierID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ContactName" Type="String" MaxLength="30" Unicode="true" FixedLength="false" /> <Property Name="ContactTitle" Type="String" MaxLength="30" Unicode="true" FixedLength="false" /> <Property Name="Address" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="City" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Region" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="PostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="Country" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Phone" Type="String" MaxLength="24" Unicode="true" FixedLength="false" /> <Property Name="Fax" Type="String" MaxLength="24" Unicode="true" FixedLength="false" /> <Property Name="HomePage" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" /> <NavigationProperty Name="Products" Relationship="NorthwindModel.FK_Products_Suppliers" FromRole="Suppliers" ToRole="Products" /> </EntityType> <EntityType Name="sysdiagram"> <Key> <PropertyRef Name="diagram_id" /> </Key> <Property Name="name" Type="String" Nullable="false" MaxLength="128" Unicode="true" FixedLength="false" /> <Property Name="principal_id" Type="Int32" Nullable="false" /> <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="version" Type="Int32" /> <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" /> </EntityType> <EntityType Name="Territory"> <Key> <PropertyRef Name="TerritoryID" /> </Key> <Property Name="TerritoryID" Type="String" Nullable="false" MaxLength="20" Unicode="true" FixedLength="false" /> <Property Name="TerritoryDescription" Type="String" Nullable="false" MaxLength="50" Unicode="true" FixedLength="true" /> <Property Name="RegionID" Type="Int32" Nullable="false" /> <NavigationProperty Name="Region" Relationship="NorthwindModel.FK_Territories_Region" FromRole="Territories" ToRole="Region" /> <NavigationProperty Name="Employees" Relationship="NorthwindModel.EmployeeTerritories" FromRole="Territories" ToRole="Employees" /> </EntityType> <EntityType Name="Alphabetical_list_of_product"> <Key> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="Discontinued" /> <PropertyRef Name="CategoryName" /> </Key> <Property Name="ProductID" Type="Int32" Nullable="false" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="SupplierID" Type="Int32" /> <Property Name="CategoryID" Type="Int32" /> <Property Name="QuantityPerUnit" Type="String" MaxLength="20" Unicode="true" FixedLength="false" /> <Property Name="UnitPrice" Type="Decimal" Precision="19" Scale="4" /> <Property Name="UnitsInStock" Type="Int16" /> <Property Name="UnitsOnOrder" Type="Int16" /> <Property Name="ReorderLevel" Type="Int16" /> <Property Name="Discontinued" Type="Boolean" Nullable="false" /> <Property Name="CategoryName" Type="String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /> </EntityType> <EntityType Name="Category_Sales_for_1997"> <Key> <PropertyRef Name="CategoryName" /> </Key> <Property Name="CategoryName" Type="String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="CategorySales" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Current_Product_List"> <Key> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> </Key> <Property Name="ProductID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> </EntityType> <EntityType Name="Customer_and_Suppliers_by_City"> <Key> <PropertyRef Name="CompanyName" /> <PropertyRef Name="Relationship" /> </Key> <Property Name="City" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ContactName" Type="String" MaxLength="30" Unicode="true" FixedLength="false" /> <Property Name="Relationship" Type="String" Nullable="false" MaxLength="9" Unicode="false" FixedLength="false" /> </EntityType> <EntityType Name="Invoice"> <Key> <PropertyRef Name="CustomerName" /> <PropertyRef Name="Salesperson" /> <PropertyRef Name="OrderID" /> <PropertyRef Name="ShipperName" /> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="UnitPrice" /> <PropertyRef Name="Quantity" /> <PropertyRef Name="Discount" /> </Key> <Property Name="ShipName" Type="String" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ShipAddress" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="ShipCity" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ShipRegion" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ShipPostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="ShipCountry" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="CustomerID" Type="String" MaxLength="5" Unicode="true" FixedLength="true" /> <Property Name="CustomerName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="Address" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="City" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Region" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="PostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="Country" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Salesperson" Type="String" Nullable="false" MaxLength="31" Unicode="true" FixedLength="false" /> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="OrderDate" Type="DateTime" /> <Property Name="RequiredDate" Type="DateTime" /> <Property Name="ShippedDate" Type="DateTime" /> <Property Name="ShipperName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ProductID" Type="Int32" Nullable="false" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="UnitPrice" Type="Decimal" Nullable="false" Precision="19" Scale="4" /> <Property Name="Quantity" Type="Int16" Nullable="false" /> <Property Name="Discount" Type="Single" Nullable="false" /> <Property Name="ExtendedPrice" Type="Decimal" Precision="19" Scale="4" /> <Property Name="Freight" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Order_Details_Extended"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="ProductID" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="UnitPrice" /> <PropertyRef Name="Quantity" /> <PropertyRef Name="Discount" /> </Key> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="ProductID" Type="Int32" Nullable="false" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="UnitPrice" Type="Decimal" Nullable="false" Precision="19" Scale="4" /> <Property Name="Quantity" Type="Int16" Nullable="false" /> <Property Name="Discount" Type="Single" Nullable="false" /> <Property Name="ExtendedPrice" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Order_Subtotal"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="Subtotal" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Orders_Qry"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="CompanyName" /> </Key> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="CustomerID" Type="String" MaxLength="5" Unicode="true" FixedLength="true" /> <Property Name="EmployeeID" Type="Int32" /> <Property Name="OrderDate" Type="DateTime" /> <Property Name="RequiredDate" Type="DateTime" /> <Property Name="ShippedDate" Type="DateTime" /> <Property Name="ShipVia" Type="Int32" /> <Property Name="Freight" Type="Decimal" Precision="19" Scale="4" /> <Property Name="ShipName" Type="String" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ShipAddress" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="ShipCity" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ShipRegion" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ShipPostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="ShipCountry" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="Address" Type="String" MaxLength="60" Unicode="true" FixedLength="false" /> <Property Name="City" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="Region" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="PostalCode" Type="String" MaxLength="10" Unicode="true" FixedLength="false" /> <Property Name="Country" Type="String" MaxLength="15" Unicode="true" FixedLength="false" /> </EntityType> <EntityType Name="Product_Sales_for_1997"> <Key> <PropertyRef Name="CategoryName" /> <PropertyRef Name="ProductName" /> </Key> <Property Name="CategoryName" Type="String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ProductSales" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Products_Above_Average_Price"> <Key> <PropertyRef Name="ProductName" /> </Key> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="UnitPrice" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Products_by_Category"> <Key> <PropertyRef Name="CategoryName" /> <PropertyRef Name="ProductName" /> <PropertyRef Name="Discontinued" /> </Key> <Property Name="CategoryName" Type="String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="QuantityPerUnit" Type="String" MaxLength="20" Unicode="true" FixedLength="false" /> <Property Name="UnitsInStock" Type="Int16" /> <Property Name="Discontinued" Type="Boolean" Nullable="false" /> </EntityType> <EntityType Name="Sales_by_Category"> <Key> <PropertyRef Name="CategoryID" /> <PropertyRef Name="CategoryName" /> <PropertyRef Name="ProductName" /> </Key> <Property Name="CategoryID" Type="Int32" Nullable="false" /> <Property Name="CategoryName" Type="String" Nullable="false" MaxLength="15" Unicode="true" FixedLength="false" /> <Property Name="ProductName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ProductSales" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Sales_Totals_by_Amount"> <Key> <PropertyRef Name="OrderID" /> <PropertyRef Name="CompanyName" /> </Key> <Property Name="SaleAmount" Type="Decimal" Precision="19" Scale="4" /> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" /> <Property Name="ShippedDate" Type="DateTime" /> </EntityType> <EntityType Name="Summary_of_Sales_by_Quarter"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="ShippedDate" Type="DateTime" /> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="Subtotal" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <EntityType Name="Summary_of_Sales_by_Year"> <Key> <PropertyRef Name="OrderID" /> </Key> <Property Name="ShippedDate" Type="DateTime" /> <Property Name="OrderID" Type="Int32" Nullable="false" /> <Property Name="Subtotal" Type="Decimal" Precision="19" Scale="4" /> </EntityType> <Association Name="FK_Products_Categories"> <End Role="Categories" Type="NorthwindModel.Category" Multiplicity="0..1" /> <End Role="Products" Type="NorthwindModel.Product" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Categories"> <PropertyRef Name="CategoryID" /> </Principal> <Dependent Role="Products"> <PropertyRef Name="CategoryID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Orders_Customers"> <End Role="Customers" Type="NorthwindModel.Customer" Multiplicity="0..1" /> <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Customers"> <PropertyRef Name="CustomerID" /> </Principal> <Dependent Role="Orders"> <PropertyRef Name="CustomerID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Employees_Employees"> <End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="0..1" /> <End Role="Employees1" Type="NorthwindModel.Employee" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Employees"> <PropertyRef Name="EmployeeID" /> </Principal> <Dependent Role="Employees1"> <PropertyRef Name="ReportsTo" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Orders_Employees"> <End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="0..1" /> <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Employees"> <PropertyRef Name="EmployeeID" /> </Principal> <Dependent Role="Orders"> <PropertyRef Name="EmployeeID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Order_Details_Orders"> <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="1" /> <End Role="Order_Details" Type="NorthwindModel.Order_Detail" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Orders"> <PropertyRef Name="OrderID" /> </Principal> <Dependent Role="Order_Details"> <PropertyRef Name="OrderID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Order_Details_Products"> <End Role="Products" Type="NorthwindModel.Product" Multiplicity="1" /> <End Role="Order_Details" Type="NorthwindModel.Order_Detail" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Products"> <PropertyRef Name="ProductID" /> </Principal> <Dependent Role="Order_Details"> <PropertyRef Name="ProductID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Orders_Shippers"> <End Role="Shippers" Type="NorthwindModel.Shipper" Multiplicity="0..1" /> <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Shippers"> <PropertyRef Name="ShipperID" /> </Principal> <Dependent Role="Orders"> <PropertyRef Name="ShipVia" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Products_Suppliers"> <End Role="Suppliers" Type="NorthwindModel.Supplier" Multiplicity="0..1" /> <End Role="Products" Type="NorthwindModel.Product" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Suppliers"> <PropertyRef Name="SupplierID" /> </Principal> <Dependent Role="Products"> <PropertyRef Name="SupplierID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="FK_Territories_Region"> <End Role="Region" Type="NorthwindModel.Region" Multiplicity="1" /> <End Role="Territories" Type="NorthwindModel.Territory" Multiplicity="*" /> <ReferentialConstraint> <Principal Role="Region"> <PropertyRef Name="RegionID" /> </Principal> <Dependent Role="Territories"> <PropertyRef Name="RegionID" /> </Dependent> </ReferentialConstraint> </Association> <Association Name="CustomerCustomerDemo"> <End Role="CustomerDemographics" Type="NorthwindModel.CustomerDemographic" Multiplicity="*" /> <End Role="Customers" Type="NorthwindModel.Customer" Multiplicity="*" /> </Association> <Association Name="EmployeeTerritories"> <End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="*" /> <End Role="Territories" Type="NorthwindModel.Territory" Multiplicity="*" /> </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="NorthwindModelStoreContainer" CdmEntityContainer="NorthwindEntities"> <EntitySetMapping Name="Categories"><EntityTypeMapping TypeName="NorthwindModel.Category"><MappingFragment StoreEntitySet="Categories"> <ScalarProperty Name="CategoryID" ColumnName="CategoryID" /> <ScalarProperty Name="CategoryName" ColumnName="CategoryName" /> <ScalarProperty Name="Description" ColumnName="Description" /> <ScalarProperty Name="Picture" ColumnName="Picture" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="CustomerDemographics"><EntityTypeMapping TypeName="NorthwindModel.CustomerDemographic"><MappingFragment StoreEntitySet="CustomerDemographics"> <ScalarProperty Name="CustomerTypeID" ColumnName="CustomerTypeID" /> <ScalarProperty Name="CustomerDesc" ColumnName="CustomerDesc" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Customers"><EntityTypeMapping TypeName="NorthwindModel.Customer"><MappingFragment StoreEntitySet="Customers"> <ScalarProperty Name="CustomerID" ColumnName="CustomerID" /> <ScalarProperty Name="CompanyName" ColumnName="CompanyName" /> <ScalarProperty Name="ContactName" ColumnName="ContactName" /> <ScalarProperty Name="ContactTitle" ColumnName="ContactTitle" /> <ScalarProperty Name="Address" ColumnName="Address" /> <ScalarProperty Name="City" ColumnName="City" /> <ScalarProperty Name="Region" ColumnName="Region" /> <ScalarProperty Name="PostalCode" ColumnName="PostalCode" /> <ScalarProperty Name="Country" ColumnName="Country" /> <ScalarProperty Name="Phone" ColumnName="Phone" /> <ScalarProperty Name="Fax" ColumnName="Fax" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Employees"><EntityTypeMapping TypeName="NorthwindModel.Employee"><MappingFragment StoreEntitySet="Employees"> <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" /> <ScalarProperty Name="LastName" ColumnName="LastName" /> <ScalarProperty Name="FirstName" ColumnName="FirstName" /> <ScalarProperty Name="Title" ColumnName="Title" /> <ScalarProperty Name="TitleOfCourtesy" ColumnName="TitleOfCourtesy" /> <ScalarProperty Name="BirthDate" ColumnName="BirthDate" /> <ScalarProperty Name="HireDate" ColumnName="HireDate" /> <ScalarProperty Name="Address" ColumnName="Address" /> <ScalarProperty Name="City" ColumnName="City" /> <ScalarProperty Name="Region" ColumnName="Region" /> <ScalarProperty Name="PostalCode" ColumnName="PostalCode" /> <ScalarProperty Name="Country" ColumnName="Country" /> <ScalarProperty Name="HomePhone" ColumnName="HomePhone" /> <ScalarProperty Name="Extension" ColumnName="Extension" /> <ScalarProperty Name="Photo" ColumnName="Photo" /> <ScalarProperty Name="Notes" ColumnName="Notes" /> <ScalarProperty Name="ReportsTo" ColumnName="ReportsTo" /> <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Order_Details"><EntityTypeMapping TypeName="NorthwindModel.Order_Detail"><MappingFragment StoreEntitySet="Order Details"> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="ProductID" ColumnName="ProductID" /> <ScalarProperty Name="UnitPrice" ColumnName="UnitPrice" /> <ScalarProperty Name="Quantity" ColumnName="Quantity" /> <ScalarProperty Name="Discount" ColumnName="Discount" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Orders"><EntityTypeMapping TypeName="NorthwindModel.Order"><MappingFragment StoreEntitySet="Orders"> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="CustomerID" ColumnName="CustomerID" /> <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" /> <ScalarProperty Name="OrderDate" ColumnName="OrderDate" /> <ScalarProperty Name="RequiredDate" ColumnName="RequiredDate" /> <ScalarProperty Name="ShippedDate" ColumnName="ShippedDate" /> <ScalarProperty Name="ShipVia" ColumnName="ShipVia" /> <ScalarProperty Name="Freight" ColumnName="Freight" /> <ScalarProperty Name="ShipName" ColumnName="ShipName" /> <ScalarProperty Name="ShipAddress" ColumnName="ShipAddress" /> <ScalarProperty Name="ShipCity" ColumnName="ShipCity" /> <ScalarProperty Name="ShipRegion" ColumnName="ShipRegion" /> <ScalarProperty Name="ShipPostalCode" ColumnName="ShipPostalCode" /> <ScalarProperty Name="ShipCountry" ColumnName="ShipCountry" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Products"><EntityTypeMapping TypeName="NorthwindModel.Product"><MappingFragment StoreEntitySet="Products"> <ScalarProperty Name="ProductID" ColumnName="ProductID" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="SupplierID" ColumnName="SupplierID" /> <ScalarProperty Name="CategoryID" ColumnName="CategoryID" /> <ScalarProperty Name="QuantityPerUnit" ColumnName="QuantityPerUnit" /> <ScalarProperty Name="UnitPrice" ColumnName="UnitPrice" /> <ScalarProperty Name="UnitsInStock" ColumnName="UnitsInStock" /> <ScalarProperty Name="UnitsOnOrder" ColumnName="UnitsOnOrder" /> <ScalarProperty Name="ReorderLevel" ColumnName="ReorderLevel" /> <ScalarProperty Name="Discontinued" ColumnName="Discontinued" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Regions"><EntityTypeMapping TypeName="NorthwindModel.Region"><MappingFragment StoreEntitySet="Region"> <ScalarProperty Name="RegionID" ColumnName="RegionID" /> <ScalarProperty Name="RegionDescription" ColumnName="RegionDescription" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Shippers"><EntityTypeMapping TypeName="NorthwindModel.Shipper"><MappingFragment StoreEntitySet="Shippers"> <ScalarProperty Name="ShipperID" ColumnName="ShipperID" /> <ScalarProperty Name="CompanyName" ColumnName="CompanyName" /> <ScalarProperty Name="Phone" ColumnName="Phone" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Suppliers"><EntityTypeMapping TypeName="NorthwindModel.Supplier"><MappingFragment StoreEntitySet="Suppliers"> <ScalarProperty Name="SupplierID" ColumnName="SupplierID" /> <ScalarProperty Name="CompanyName" ColumnName="CompanyName" /> <ScalarProperty Name="ContactName" ColumnName="ContactName" /> <ScalarProperty Name="ContactTitle" ColumnName="ContactTitle" /> <ScalarProperty Name="Address" ColumnName="Address" /> <ScalarProperty Name="City" ColumnName="City" /> <ScalarProperty Name="Region" ColumnName="Region" /> <ScalarProperty Name="PostalCode" ColumnName="PostalCode" /> <ScalarProperty Name="Country" ColumnName="Country" /> <ScalarProperty Name="Phone" ColumnName="Phone" /> <ScalarProperty Name="Fax" ColumnName="Fax" /> <ScalarProperty Name="HomePage" ColumnName="HomePage" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="sysdiagrams"><EntityTypeMapping TypeName="NorthwindModel.sysdiagram"><MappingFragment StoreEntitySet="sysdiagrams"> <ScalarProperty Name="name" ColumnName="name" /> <ScalarProperty Name="principal_id" ColumnName="principal_id" /> <ScalarProperty Name="diagram_id" ColumnName="diagram_id" /> <ScalarProperty Name="version" ColumnName="version" /> <ScalarProperty Name="definition" ColumnName="definition" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Territories"><EntityTypeMapping TypeName="NorthwindModel.Territory"><MappingFragment StoreEntitySet="Territories"> <ScalarProperty Name="TerritoryID" ColumnName="TerritoryID" /> <ScalarProperty Name="TerritoryDescription" ColumnName="TerritoryDescription" /> <ScalarProperty Name="RegionID" ColumnName="RegionID" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Alphabetical_list_of_products"><EntityTypeMapping TypeName="NorthwindModel.Alphabetical_list_of_product"><MappingFragment StoreEntitySet="Alphabetical list of products"> <ScalarProperty Name="ProductID" ColumnName="ProductID" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="SupplierID" ColumnName="SupplierID" /> <ScalarProperty Name="CategoryID" ColumnName="CategoryID" /> <ScalarProperty Name="QuantityPerUnit" ColumnName="QuantityPerUnit" /> <ScalarProperty Name="UnitPrice" ColumnName="UnitPrice" /> <ScalarProperty Name="UnitsInStock" ColumnName="UnitsInStock" /> <ScalarProperty Name="UnitsOnOrder" ColumnName="UnitsOnOrder" /> <ScalarProperty Name="ReorderLevel" ColumnName="ReorderLevel" /> <ScalarProperty Name="Discontinued" ColumnName="Discontinued" /> <ScalarProperty Name="CategoryName" ColumnName="CategoryName" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Category_Sales_for_1997"><EntityTypeMapping TypeName="NorthwindModel.Category_Sales_for_1997"><MappingFragment StoreEntitySet="Category Sales for 1997"> <ScalarProperty Name="CategoryName" ColumnName="CategoryName" /> <ScalarProperty Name="CategorySales" ColumnName="CategorySales" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Current_Product_Lists"><EntityTypeMapping TypeName="NorthwindModel.Current_Product_List"><MappingFragment StoreEntitySet="Current Product List"> <ScalarProperty Name="ProductID" ColumnName="ProductID" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Customer_and_Suppliers_by_Cities"><EntityTypeMapping TypeName="NorthwindModel.Customer_and_Suppliers_by_City"><MappingFragment StoreEntitySet="Customer and Suppliers by City"> <ScalarProperty Name="City" ColumnName="City" /> <ScalarProperty Name="CompanyName" ColumnName="CompanyName" /> <ScalarProperty Name="ContactName" ColumnName="ContactName" /> <ScalarProperty Name="Relationship" ColumnName="Relationship" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Invoices"><EntityTypeMapping TypeName="NorthwindModel.Invoice"><MappingFragment StoreEntitySet="Invoices"> <ScalarProperty Name="ShipName" ColumnName="ShipName" /> <ScalarProperty Name="ShipAddress" ColumnName="ShipAddress" /> <ScalarProperty Name="ShipCity" ColumnName="ShipCity" /> <ScalarProperty Name="ShipRegion" ColumnName="ShipRegion" /> <ScalarProperty Name="ShipPostalCode" ColumnName="ShipPostalCode" /> <ScalarProperty Name="ShipCountry" ColumnName="ShipCountry" /> <ScalarProperty Name="CustomerID" ColumnName="CustomerID" /> <ScalarProperty Name="CustomerName" ColumnName="CustomerName" /> <ScalarProperty Name="Address" ColumnName="Address" /> <ScalarProperty Name="City" ColumnName="City" /> <ScalarProperty Name="Region" ColumnName="Region" /> <ScalarProperty Name="PostalCode" ColumnName="PostalCode" /> <ScalarProperty Name="Country" ColumnName="Country" /> <ScalarProperty Name="Salesperson" ColumnName="Salesperson" /> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="OrderDate" ColumnName="OrderDate" /> <ScalarProperty Name="RequiredDate" ColumnName="RequiredDate" /> <ScalarProperty Name="ShippedDate" ColumnName="ShippedDate" /> <ScalarProperty Name="ShipperName" ColumnName="ShipperName" /> <ScalarProperty Name="ProductID" ColumnName="ProductID" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="UnitPrice" ColumnName="UnitPrice" /> <ScalarProperty Name="Quantity" ColumnName="Quantity" /> <ScalarProperty Name="Discount" ColumnName="Discount" /> <ScalarProperty Name="ExtendedPrice" ColumnName="ExtendedPrice" /> <ScalarProperty Name="Freight" ColumnName="Freight" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Order_Details_Extendeds"><EntityTypeMapping TypeName="NorthwindModel.Order_Details_Extended"><MappingFragment StoreEntitySet="Order Details Extended"> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="ProductID" ColumnName="ProductID" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="UnitPrice" ColumnName="UnitPrice" /> <ScalarProperty Name="Quantity" ColumnName="Quantity" /> <ScalarProperty Name="Discount" ColumnName="Discount" /> <ScalarProperty Name="ExtendedPrice" ColumnName="ExtendedPrice" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Order_Subtotals"><EntityTypeMapping TypeName="NorthwindModel.Order_Subtotal"><MappingFragment StoreEntitySet="Order Subtotals"> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="Subtotal" ColumnName="Subtotal" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Orders_Qries"><EntityTypeMapping TypeName="NorthwindModel.Orders_Qry"><MappingFragment StoreEntitySet="Orders Qry"> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="CustomerID" ColumnName="CustomerID" /> <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" /> <ScalarProperty Name="OrderDate" ColumnName="OrderDate" /> <ScalarProperty Name="RequiredDate" ColumnName="RequiredDate" /> <ScalarProperty Name="ShippedDate" ColumnName="ShippedDate" /> <ScalarProperty Name="ShipVia" ColumnName="ShipVia" /> <ScalarProperty Name="Freight" ColumnName="Freight" /> <ScalarProperty Name="ShipName" ColumnName="ShipName" /> <ScalarProperty Name="ShipAddress" ColumnName="ShipAddress" /> <ScalarProperty Name="ShipCity" ColumnName="ShipCity" /> <ScalarProperty Name="ShipRegion" ColumnName="ShipRegion" /> <ScalarProperty Name="ShipPostalCode" ColumnName="ShipPostalCode" /> <ScalarProperty Name="ShipCountry" ColumnName="ShipCountry" /> <ScalarProperty Name="CompanyName" ColumnName="CompanyName" /> <ScalarProperty Name="Address" ColumnName="Address" /> <ScalarProperty Name="City" ColumnName="City" /> <ScalarProperty Name="Region" ColumnName="Region" /> <ScalarProperty Name="PostalCode" ColumnName="PostalCode" /> <ScalarProperty Name="Country" ColumnName="Country" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Product_Sales_for_1997"><EntityTypeMapping TypeName="NorthwindModel.Product_Sales_for_1997"><MappingFragment StoreEntitySet="Product Sales for 1997"> <ScalarProperty Name="CategoryName" ColumnName="CategoryName" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="ProductSales" ColumnName="ProductSales" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Products_Above_Average_Prices"><EntityTypeMapping TypeName="NorthwindModel.Products_Above_Average_Price"><MappingFragment StoreEntitySet="Products Above Average Price"> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="UnitPrice" ColumnName="UnitPrice" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Products_by_Categories"><EntityTypeMapping TypeName="NorthwindModel.Products_by_Category"><MappingFragment StoreEntitySet="Products by Category"> <ScalarProperty Name="CategoryName" ColumnName="CategoryName" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="QuantityPerUnit" ColumnName="QuantityPerUnit" /> <ScalarProperty Name="UnitsInStock" ColumnName="UnitsInStock" /> <ScalarProperty Name="Discontinued" ColumnName="Discontinued" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Sales_by_Categories"><EntityTypeMapping TypeName="NorthwindModel.Sales_by_Category"><MappingFragment StoreEntitySet="Sales by Category"> <ScalarProperty Name="CategoryID" ColumnName="CategoryID" /> <ScalarProperty Name="CategoryName" ColumnName="CategoryName" /> <ScalarProperty Name="ProductName" ColumnName="ProductName" /> <ScalarProperty Name="ProductSales" ColumnName="ProductSales" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Sales_Totals_by_Amounts"><EntityTypeMapping TypeName="NorthwindModel.Sales_Totals_by_Amount"><MappingFragment StoreEntitySet="Sales Totals by Amount"> <ScalarProperty Name="SaleAmount" ColumnName="SaleAmount" /> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="CompanyName" ColumnName="CompanyName" /> <ScalarProperty Name="ShippedDate" ColumnName="ShippedDate" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Summary_of_Sales_by_Quarters"><EntityTypeMapping TypeName="NorthwindModel.Summary_of_Sales_by_Quarter"><MappingFragment StoreEntitySet="Summary of Sales by Quarter"> <ScalarProperty Name="ShippedDate" ColumnName="ShippedDate" /> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="Subtotal" ColumnName="Subtotal" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <EntitySetMapping Name="Summary_of_Sales_by_Years"><EntityTypeMapping TypeName="NorthwindModel.Summary_of_Sales_by_Year"><MappingFragment StoreEntitySet="Summary of Sales by Year"> <ScalarProperty Name="ShippedDate" ColumnName="ShippedDate" /> <ScalarProperty Name="OrderID" ColumnName="OrderID" /> <ScalarProperty Name="Subtotal" ColumnName="Subtotal" /> </MappingFragment></EntityTypeMapping></EntitySetMapping> <AssociationSetMapping Name="CustomerCustomerDemo" TypeName="NorthwindModel.CustomerCustomerDemo" StoreEntitySet="CustomerCustomerDemo"> <EndProperty Name="CustomerDemographics"> <ScalarProperty Name="CustomerTypeID" ColumnName="CustomerTypeID" /> </EndProperty> <EndProperty Name="Customers"> <ScalarProperty Name="CustomerID" ColumnName="CustomerID" /> </EndProperty> </AssociationSetMapping> <AssociationSetMapping Name="EmployeeTerritories" TypeName="NorthwindModel.EmployeeTerritories" StoreEntitySet="EmployeeTerritories"> <EndProperty Name="Employees"> <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" /> </EndProperty> <EndProperty Name="Territories"> <ScalarProperty Name="TerritoryID" ColumnName="TerritoryID" /> </EndProperty> </AssociationSetMapping> </EntityContainerMapping> </Mapping> </edmx:Mappings> </edmx:Runtime> <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) --> <Designer xmlns="http://schemas.microsoft.com/ado/2008/10/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" /> </DesignerInfoPropertySet> </Options> <!-- Diagram content (shape and connector positions) --> <Diagrams> <Diagram Name="NorthwindModel"> <EntityTypeShape EntityType="NorthwindModel.Category" Width="1.5" PointX="8.125" PointY="14.75" Height="1.9802864583333317" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.CustomerDemographic" Width="1.5" PointX="0.75" PointY="2.5" Height="1.5956835937499996" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Customer" Width="1.5" PointX="3" PointY="1.5" Height="3.5186979166666656" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Employee" Width="1.5" PointX="3" PointY="9.25" Height="5.2494108072916674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Order_Detail" Width="1.5" PointX="7.5" PointY="2.125" Height="2.3648893229166656" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Order" Width="1.5" PointX="5.25" PointY="1" Height="4.4802050781250031" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Product" Width="1.5" PointX="10.375" PointY="16.125" Height="3.5186979166666674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Region" Width="1.5" PointX="5.75" PointY="7.125" Height="1.5956835937500005" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Shipper" Width="1.5" PointX="3" PointY="15.25" Height="1.7879850260416674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Supplier" Width="1.5" PointX="8.125" PointY="17.5" Height="3.5186979166666674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.sysdiagram" Width="1.5" PointX="7.75" PointY="5.75" Height="1.9802864583333353" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Territory" Width="1.5" PointX="8" PointY="9.875" Height="1.9802864583333317" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Alphabetical_list_of_product" Width="1.5" PointX="9.75" PointY="0.75" Height="3.1340950520833388" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Category_Sales_for_1997" Width="1.5" PointX="0.75" PointY="6.75" Height="1.4033821614583388" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Current_Product_List" Width="1.5" PointX="2.75" PointY="6.75" Height="1.4033821614583388" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Customer_and_Suppliers_by_City" Width="1.5" PointX="9.75" PointY="4.75" Height="1.7879850260416674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Invoice" Width="1.5" PointX="10.75" PointY="7.75" Height="6.0186165364583388" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Order_Details_Extended" Width="1.5" PointX="11.75" PointY="0.75" Height="2.3648893229166674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Order_Subtotal" Width="1.5" PointX="11.75" PointY="4.75" Height="1.4033821614583388" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Orders_Qry" Width="1.5" PointX="5.75" PointY="12.75" Height="4.8648079427083317" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Product_Sales_for_1997" Width="1.5" PointX="12.75" PointY="7.75" Height="1.5956835937500031" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Products_Above_Average_Price" Width="1.5" PointX="7.75" PointY="12.75" Height="1.4033821614583282" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Products_by_Category" Width="1.5" PointX="12.75" PointY="10.75" Height="1.9802864583333246" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Sales_by_Category" Width="1.5" PointX="13.75" PointY="0.75" Height="1.7879850260416674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Sales_Totals_by_Amount" Width="1.5" PointX="13.75" PointY="3.75" Height="1.7879850260416674" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Summary_of_Sales_by_Quarter" Width="1.5" PointX="12.75" PointY="13.75" Height="1.5956835937500102" IsExpanded="true" /> <EntityTypeShape EntityType="NorthwindModel.Summary_of_Sales_by_Year" Width="1.5" PointX="14.75" PointY="6.75" Height="1.5956835937500102" IsExpanded="true" /> <AssociationConnector Association="NorthwindModel.FK_Products_Categories" ManuallyRouted="false"> <ConnectorPoint PointX="9.625" PointY="16.427643229166666" /> <ConnectorPoint PointX="10.375" PointY="16.427643229166666" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Orders_Customers" ManuallyRouted="false"> <ConnectorPoint PointX="4.5" PointY="3.2593489583333328" /> <ConnectorPoint PointX="4.791666666666667" PointY="3.2593489583333324" /> <ConnectorPoint PointX="4.958333333333333" PointY="3.2593489583333328" /> <ConnectorPoint PointX="5.25" PointY="3.2593489583333328" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Employees_Employees" ManuallyRouted="false"> <ConnectorPoint PointX="3.5319230769230767" PointY="14.499410807291667" /> <ConnectorPoint PointX="3.5319230769230767" PointY="14.749410807291667" /> <ConnectorPoint PointX="3.9784615384615383" PointY="14.749410807291667" /> <ConnectorPoint PointX="3.9784615384615383" PointY="14.499410807291667" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Orders_Employees" ManuallyRouted="false"> <ConnectorPoint PointX="4.5" PointY="10.96875" /> <ConnectorPoint PointX="4.791666666666667" PointY="10.96875" /> <ConnectorPoint PointX="4.958333333333333" PointY="10.96875" /> <ConnectorPoint PointX="5.46875" PointY="10.96875" /> <ConnectorPoint PointX="5.46875" PointY="5.4802050781250031" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Order_Details_Orders" ManuallyRouted="false"> <ConnectorPoint PointX="6.75" PointY="3.3074446614583328" /> <ConnectorPoint PointX="7.5" PointY="3.3074446614583328" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Order_Details_Products" ManuallyRouted="false"> <ConnectorPoint PointX="10.375" PointY="17.115143229166666" /> <ConnectorPoint PointX="7.59375" PointY="17.115143229166666" /> <ConnectorPoint PointX="7.59375" PointY="4.4898893229166656" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Orders_Shippers" ManuallyRouted="false"> <ConnectorPoint PointX="4.5" PointY="15.251152846153847" /> <ConnectorPoint PointX="4.875" PointY="14.876152846153847" /> <ConnectorPoint PointX="4.875" PointY="2.0984224791666657" /> <ConnectorPoint PointX="5.25" PointY="2.0984224791666657" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Products_Suppliers" ManuallyRouted="false"> <ConnectorPoint PointX="9.625" PointY="18.571848958333334" /> <ConnectorPoint PointX="10.375" PointY="18.571848958333334" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.FK_Territories_Region" ManuallyRouted="false"> <ConnectorPoint PointX="6.5" PointY="8.72068359375" /> <ConnectorPoint PointX="6.5" PointY="10.865143229166666" /> <ConnectorPoint PointX="7.510416666666667" PointY="10.865143229166666" /> <ConnectorPoint PointX="7.677083333333333" PointY="10.865143229166666" /> <ConnectorPoint PointX="8" PointY="10.865143229166666" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.CustomerCustomerDemo" ManuallyRouted="false"> <ConnectorPoint PointX="2.25" PointY="3.297841796875" /> <ConnectorPoint PointX="3" PointY="3.297841796875" /> </AssociationConnector> <AssociationConnector Association="NorthwindModel.EmployeeTerritories" ManuallyRouted="false"> <ConnectorPoint PointX="4.5" PointY="11.327694740639076" /> <ConnectorPoint PointX="4.9375" PointY="11.327694740639076" /> <ConnectorPoint PointX="4.9375" PointY="11.318800799589202" /> <ConnectorPoint PointX="7.510416666666667" PointY="11.318800799589202" /> <ConnectorPoint PointX="7.677083333333333" PointY="11.318800799589202" /> <ConnectorPoint PointX="8" PointY="11.318800799589202" /> </AssociationConnector> </Diagram> </Diagrams> </Designer> </edmx:Edmx>