640 lines
38 KiB
XML
640 lines
38 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Schema Namespace="NorthwindEF" Alias="Self" p1:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:p1="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
|
<EntityContainer Name="NorthwindEFContext" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="Categories" EntityType="NorthwindEF.Categories" />
|
|
<EntitySet Name="CustomerDemographics" EntityType="NorthwindEF.CustomerDemographics" />
|
|
<EntitySet Name="Customers" EntityType="NorthwindEF.Customers" />
|
|
<EntitySet Name="Employees" EntityType="NorthwindEF.Employees" />
|
|
<EntitySet Name="InternationalOrders" EntityType="NorthwindEF.InternationalOrders" />
|
|
<EntitySet Name="Order_Details" EntityType="NorthwindEF.Order_Details" />
|
|
<EntitySet Name="OrderDetails" EntityType="NorthwindEF.OrderDetails" />
|
|
<EntitySet Name="Orders" EntityType="NorthwindEF.Orders" />
|
|
<EntitySet Name="PreviousEmployees" EntityType="NorthwindEF.PreviousEmployees" />
|
|
<EntitySet Name="Products" EntityType="NorthwindEF.Products" />
|
|
<EntitySet Name="Region" EntityType="NorthwindEF.Region" />
|
|
<EntitySet Name="Shippers" EntityType="NorthwindEF.Shippers" />
|
|
<EntitySet Name="Suppliers" EntityType="NorthwindEF.Suppliers" />
|
|
<EntitySet Name="Territories" EntityType="NorthwindEF.Territories" />
|
|
<EntitySet Name="Alphabetical_list_of_products" EntityType="NorthwindEF.Alphabetical_list_of_products" />
|
|
<EntitySet Name="Category_Sales_for_1997" EntityType="NorthwindEF.Category_Sales_for_1997" />
|
|
<EntitySet Name="Current_Product_List" EntityType="NorthwindEF.Current_Product_List" />
|
|
<EntitySet Name="Customer_and_Suppliers_by_City" EntityType="NorthwindEF.Customer_and_Suppliers_by_City" />
|
|
<EntitySet Name="Invoices" EntityType="NorthwindEF.Invoices" />
|
|
<EntitySet Name="Order_Details_Extended" EntityType="NorthwindEF.Order_Details_Extended" />
|
|
<EntitySet Name="Order_Subtotals" EntityType="NorthwindEF.Order_Subtotals" />
|
|
<EntitySet Name="Orders_Qry" EntityType="NorthwindEF.Orders_Qry" />
|
|
<EntitySet Name="Product_Sales_for_1997" EntityType="NorthwindEF.Product_Sales_for_1997" />
|
|
<EntitySet Name="Products_Above_Average_Price" EntityType="NorthwindEF.Products_Above_Average_Price" />
|
|
<EntitySet Name="Products_by_Category" EntityType="NorthwindEF.Products_by_Category" />
|
|
<EntitySet Name="Sales_by_Category" EntityType="NorthwindEF.Sales_by_Category" />
|
|
<EntitySet Name="Sales_Totals_by_Amount" EntityType="NorthwindEF.Sales_Totals_by_Amount" />
|
|
<EntitySet Name="Summary_of_Sales_by_Quarter" EntityType="NorthwindEF.Summary_of_Sales_by_Quarter" />
|
|
<EntitySet Name="Summary_of_Sales_by_Year" EntityType="NorthwindEF.Summary_of_Sales_by_Year" />
|
|
<AssociationSet Name="FK_Products_Categories" Association="NorthwindEF.FK_Products_Categories">
|
|
<End Role="Categories" EntitySet="Categories" />
|
|
<End Role="Products" EntitySet="Products" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Orders_Customers" Association="NorthwindEF.FK_Orders_Customers">
|
|
<End Role="Customers" EntitySet="Customers" />
|
|
<End Role="Orders" EntitySet="Orders" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Employees_Employees" Association="NorthwindEF.FK_Employees_Employees">
|
|
<End Role="Employees" EntitySet="Employees" />
|
|
<End Role="Employees1" EntitySet="Employees" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Orders_Employees" Association="NorthwindEF.FK_Orders_Employees">
|
|
<End Role="Employees" EntitySet="Employees" />
|
|
<End Role="Orders" EntitySet="Orders" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Order_Details_Orders" Association="NorthwindEF.FK_Order_Details_Orders">
|
|
<End Role="Orders" EntitySet="Orders" />
|
|
<End Role="Order_Details" EntitySet="Order_Details" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Order_Details_Products" Association="NorthwindEF.FK_Order_Details_Products">
|
|
<End Role="Products" EntitySet="Products" />
|
|
<End Role="Order_Details" EntitySet="Order_Details" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Orders_Shippers" Association="NorthwindEF.FK_Orders_Shippers">
|
|
<End Role="Shippers" EntitySet="Shippers" />
|
|
<End Role="Orders" EntitySet="Orders" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Products_Suppliers" Association="NorthwindEF.FK_Products_Suppliers">
|
|
<End Role="Suppliers" EntitySet="Suppliers" />
|
|
<End Role="Products" EntitySet="Products" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="FK_Territories_Region" Association="NorthwindEF.FK_Territories_Region">
|
|
<End Role="Region" EntitySet="Region" />
|
|
<End Role="Territories" EntitySet="Territories" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="CustomerCustomerDemo" Association="NorthwindEF.CustomerCustomerDemo">
|
|
<End Role="CustomerDemographics" EntitySet="CustomerDemographics" />
|
|
<End Role="Customers" EntitySet="Customers" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="EmployeesTerritories" Association="NorthwindEF.EmployeesTerritories">
|
|
<End Role="Employees" EntitySet="Employees" />
|
|
<End Role="Territories" EntitySet="Territories" />
|
|
</AssociationSet>
|
|
<FunctionImport Name="fx_CustomerLocationForCountry" ReturnType="Collection(NorthwindEF.fx_CustomerLocationForCountry_Result)" IsComposable="true">
|
|
<Parameter Name="country" Type="String" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="fx_OrdersForShippingStatus" ReturnType="Collection(NorthwindEF.fx_OrdersForShippingStatus_Result)" IsComposable="true">
|
|
<Parameter Name="shippingStatus" Type="Int32" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="fx_SuppliersWithinRange" ReturnType="Collection(NorthwindEF.fx_SuppliersWithinRange_Result)" IsComposable="true">
|
|
<Parameter Name="miles" Type="Int32" />
|
|
<Parameter Name="location" Type="Geography" />
|
|
</FunctionImport>
|
|
</EntityContainer>
|
|
<ComplexType Name="fx_CustomerLocationForCountry_Result">
|
|
<Property Name="Location" Type="Geography" />
|
|
</ComplexType>
|
|
<ComplexType Name="fx_OrdersForShippingStatus_Result">
|
|
<Property Name="OrderID" Type="Int32" />
|
|
<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="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="ShipLocation" Type="Geography" />
|
|
<Property Name="ContainerSize" Type="Geometry" />
|
|
<Property Name="ShippingStatus" Type="Int32" />
|
|
</ComplexType>
|
|
<ComplexType Name="fx_SuppliersWithinRange_Result">
|
|
<Property Name="SupplierID" Type="Int32" Nullable="false" />
|
|
<Property Name="CompanyName" Type="String" Nullable="false" MaxLength="40" Unicode="true" FixedLength="false" />
|
|
<Property Name="Location" Type="Geography" />
|
|
</ComplexType>
|
|
<EntityType Name="Categories">
|
|
<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="4000" Unicode="true" FixedLength="false" />
|
|
<Property Name="Picture" Type="Binary" MaxLength="8000" FixedLength="false" />
|
|
<NavigationProperty Name="Products" Relationship="NorthwindEF.FK_Products_Categories" FromRole="Categories" ToRole="Products" />
|
|
</EntityType>
|
|
<EntityType Name="CustomerDemographics">
|
|
<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="NorthwindEF.CustomerCustomerDemo" FromRole="CustomerDemographics" ToRole="Customers" />
|
|
</EntityType>
|
|
<EntityType Name="Customers">
|
|
<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" />
|
|
<Property Name="Location" Type="Geography" />
|
|
<NavigationProperty Name="Orders" Relationship="NorthwindEF.FK_Orders_Customers" FromRole="Customers" ToRole="Orders" />
|
|
<NavigationProperty Name="CustomerDemographics" Relationship="NorthwindEF.CustomerCustomerDemo" FromRole="Customers" ToRole="CustomerDemographics" />
|
|
</EntityType>
|
|
<EntityType Name="Employees">
|
|
<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" />
|
|
<Property Name="Location" Type="Geography" />
|
|
<NavigationProperty Name="Employees1" Relationship="NorthwindEF.FK_Employees_Employees" FromRole="Employees" ToRole="Employees1" />
|
|
<NavigationProperty Name="Employees2" Relationship="NorthwindEF.FK_Employees_Employees" FromRole="Employees1" ToRole="Employees" />
|
|
<NavigationProperty Name="Orders" Relationship="NorthwindEF.FK_Orders_Employees" FromRole="Employees" ToRole="Orders" />
|
|
<NavigationProperty Name="Territories" Relationship="NorthwindEF.EmployeesTerritories" FromRole="Employees" ToRole="Territories" />
|
|
</EntityType>
|
|
<EntityType Name="InternationalOrders">
|
|
<Key>
|
|
<PropertyRef Name="OrderID" />
|
|
</Key>
|
|
<Property Name="OrderID" Type="Int32" Nullable="false" />
|
|
<Property Name="CustomsDescription" Type="String" Nullable="false" MaxLength="100" Unicode="true" FixedLength="false" />
|
|
<Property Name="ExciseTax" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
|
|
</EntityType>
|
|
<EntityType Name="Order_Details">
|
|
<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="Orders" Relationship="NorthwindEF.FK_Order_Details_Orders" FromRole="Order_Details" ToRole="Orders" />
|
|
<NavigationProperty Name="Products" Relationship="NorthwindEF.FK_Order_Details_Products" FromRole="Order_Details" ToRole="Products" />
|
|
</EntityType>
|
|
<EntityType Name="OrderDetails">
|
|
<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" />
|
|
</EntityType>
|
|
<EntityType Name="Orders">
|
|
<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" />
|
|
<Property Name="ShipLocation" Type="Geography" />
|
|
<Property Name="ContainerSize" Type="Geometry" />
|
|
<Property Name="ShippingStatus" Type="Int32" />
|
|
<NavigationProperty Name="Customers" Relationship="NorthwindEF.FK_Orders_Customers" FromRole="Orders" ToRole="Customers" />
|
|
<NavigationProperty Name="Employees" Relationship="NorthwindEF.FK_Orders_Employees" FromRole="Orders" ToRole="Employees" />
|
|
<NavigationProperty Name="Order_Details" Relationship="NorthwindEF.FK_Order_Details_Orders" FromRole="Orders" ToRole="Order_Details" />
|
|
<NavigationProperty Name="Shippers" Relationship="NorthwindEF.FK_Orders_Shippers" FromRole="Orders" ToRole="Shippers" />
|
|
</EntityType>
|
|
<EntityType Name="PreviousEmployees">
|
|
<Key>
|
|
<PropertyRef Name="EmployeeID" />
|
|
</Key>
|
|
<Property Name="EmployeeID" Type="Int32" Nullable="false" />
|
|
<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="PhotoPath" Type="String" MaxLength="255" Unicode="true" FixedLength="false" />
|
|
<Property Name="Location" Type="Geography" />
|
|
</EntityType>
|
|
<EntityType Name="Products">
|
|
<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" />
|
|
<Property Name="DiscontinuedDate" Type="DateTime" />
|
|
<NavigationProperty Name="Categories" Relationship="NorthwindEF.FK_Products_Categories" FromRole="Products" ToRole="Categories" />
|
|
<NavigationProperty Name="Order_Details" Relationship="NorthwindEF.FK_Order_Details_Products" FromRole="Products" ToRole="Order_Details" />
|
|
<NavigationProperty Name="Suppliers" Relationship="NorthwindEF.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="NorthwindEF.FK_Territories_Region" FromRole="Region" ToRole="Territories" />
|
|
</EntityType>
|
|
<EntityType Name="Shippers">
|
|
<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="NorthwindEF.FK_Orders_Shippers" FromRole="Shippers" ToRole="Orders" />
|
|
</EntityType>
|
|
<EntityType Name="Suppliers">
|
|
<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" />
|
|
<Property Name="Location" Type="Geography" />
|
|
<NavigationProperty Name="Products" Relationship="NorthwindEF.FK_Products_Suppliers" FromRole="Suppliers" ToRole="Products" />
|
|
</EntityType>
|
|
<EntityType Name="Territories">
|
|
<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="NorthwindEF.FK_Territories_Region" FromRole="Territories" ToRole="Region" />
|
|
<NavigationProperty Name="Employees" Relationship="NorthwindEF.EmployeesTerritories" FromRole="Territories" ToRole="Employees" />
|
|
</EntityType>
|
|
<EntityType Name="Alphabetical_list_of_products">
|
|
<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="DiscontinuedDate" Type="DateTime" />
|
|
<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="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="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_Subtotals">
|
|
<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="NorthwindEF.Categories" Multiplicity="0..1" />
|
|
<End Role="Products" Type="NorthwindEF.Products" 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="NorthwindEF.Customers" Multiplicity="0..1" />
|
|
<End Role="Orders" Type="NorthwindEF.Orders" 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="NorthwindEF.Employees" Multiplicity="0..1" />
|
|
<End Role="Employees1" Type="NorthwindEF.Employees" 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="NorthwindEF.Employees" Multiplicity="0..1" />
|
|
<End Role="Orders" Type="NorthwindEF.Orders" 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="NorthwindEF.Orders" Multiplicity="1" />
|
|
<End Role="Order_Details" Type="NorthwindEF.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="NorthwindEF.Products" Multiplicity="1" />
|
|
<End Role="Order_Details" Type="NorthwindEF.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_Shippers">
|
|
<End Role="Shippers" Type="NorthwindEF.Shippers" Multiplicity="0..1" />
|
|
<End Role="Orders" Type="NorthwindEF.Orders" 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="NorthwindEF.Suppliers" Multiplicity="0..1" />
|
|
<End Role="Products" Type="NorthwindEF.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="NorthwindEF.Region" Multiplicity="1" />
|
|
<End Role="Territories" Type="NorthwindEF.Territories" 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="NorthwindEF.CustomerDemographics" Multiplicity="*" />
|
|
<End Role="Customers" Type="NorthwindEF.Customers" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="EmployeesTerritories">
|
|
<End Role="Employees" Type="NorthwindEF.Employees" Multiplicity="*" />
|
|
<End Role="Territories" Type="NorthwindEF.Territories" Multiplicity="*" />
|
|
</Association>
|
|
</Schema> |