|
<?xml version="1.0" encoding="utf-8"?>
<Database Name="Northwind" ContextNamespace="SampleApplication" Serialization="Unidirectional" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
<CustomNamespaces>
<Namespace Name="System.IO" Alias="MyAlias"/>
<Namespace Name="System.Text"/>
</CustomNamespaces>
<Table Name="dbo.Alphabetical list of products" Member="AlphabeticalListOfProducts">
<Type Name="AlphabeticalListOfProduct">
<Column Name="ProductID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="SupplierID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="CategoryID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="QuantityPerUnit" Type="System.String" DbType="NVarChar(20)" CanBeNull="true" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="UnitsInStock" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="UnitsOnOrder" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="ReorderLevel" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="Discontinued" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
<Column Name="CategoryName" Type="System.String" DbType="NVarChar(15) NOT NULL" CanBeNull="false" />
</Type>
</Table>
<Table Name="dbo.Categories" Member="Categories">
<Type Name="Category">
<Column Name="CategoryID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="CategoryName" Type="System.String" DbType="NVarChar(15) NOT NULL" CanBeNull="false">
<CustomAttributes>
<Attribute Name="System.ComponentModel.Description">"Category Name"</Attribute>
<Attribute Name="DisplayName">"Category"</Attribute>
<Attribute Name="Category">"Main Properties"</Attribute>
</CustomAttributes>
</Column>
<Column Name="Description" Type="System.String" DbType="NText" CanBeNull="true" UpdateCheck="Never" />
<Column Name="Picture" Type="System.Data.Linq.Binary" DbType="Image" CanBeNull="true" UpdateCheck="Never" />
<Association Name="FK_Products_Categories" Member="Products" ThisKey="CategoryID" OtherKey="CategoryID" Type="Product" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.Category Sales for 1997" Member="CategorySalesFor1997s">
<Type Name="CategorySalesFor1997">
<Column Name="CategoryName" Type="System.String" DbType="NVarChar(15) NOT NULL" CanBeNull="false" />
<Column Name="CategorySales" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Current Product List" Member="CurrentProductLists">
<Type Name="CurrentProductList">
<Column Name="ProductID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
</Type>
</Table>
<Table Name="dbo.Customer and Suppliers by City" Member="CustomerAndSuppliersByCities">
<Type Name="CustomerAndSuppliersByCity">
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ContactName" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
<Column Name="Relationship" Type="System.String" DbType="VarChar(9) NOT NULL" CanBeNull="false" />
</Type>
</Table>
<Table Name="dbo.CustomerCustomerDemo" Member="CustomerCustomerDemos">
<Type Name="CustomerCustomerDemo">
<Column Name="CustomerID" Type="System.String" DbType="NChar(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CustomerTypeID" Type="System.String" DbType="NChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Association Name="FK_CustomerCustomerDemo" Member="CustomerDemographic" ThisKey="CustomerTypeID" OtherKey="CustomerTypeID" Type="CustomerDemographic" IsForeignKey="true" />
<Association Name="FK_CustomerCustomerDemo_Customers" Member="Customer" ThisKey="CustomerID" OtherKey="CustomerID" Type="Customer" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.CustomerDemographics" Member="CustomerDemographics">
<Type Name="CustomerDemographic">
<Column Name="CustomerTypeID" Type="System.String" DbType="NChar(10) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CustomerDesc" Type="System.String" DbType="NText" CanBeNull="true" UpdateCheck="Never" />
<Association Name="FK_CustomerCustomerDemo" Member="CustomerCustomerDemos" ThisKey="CustomerTypeID" OtherKey="CustomerTypeID" Type="CustomerCustomerDemo" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.Customers" Member="Customers">
<Type Name="Customer">
<Column Name="CustomerID" Type="System.String" DbType="NChar(5) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ContactName" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
<Column Name="ContactTitle" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
<Column Name="Address" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Region" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="PostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Phone" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" />
<Column Name="Fax" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" />
<Association Name="FK_CustomerCustomerDemo_Customers" Member="CustomerCustomerDemos" ThisKey="CustomerID" OtherKey="CustomerID" Type="CustomerCustomerDemo" DeleteRule="NO ACTION" />
<Association Name="FK_Orders_Customers" Member="Orders" ThisKey="CustomerID" OtherKey="CustomerID" Type="Order" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.Employees" Member="Employees">
<Type Name="Employee">
<Column Name="EmployeeID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="LastName" Type="System.String" DbType="NVarChar(20) NOT NULL" CanBeNull="false" />
<Column Name="FirstName" Type="System.String" DbType="NVarChar(10) NOT NULL" CanBeNull="false" />
<Column Name="Title" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
<Column Name="TitleOfCourtesy" Type="System.String" DbType="NVarChar(25)" CanBeNull="true" />
<Column Name="BirthDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="HireDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="Address" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Region" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="PostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="HomePhone" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" />
<Column Name="Extension" Type="System.String" DbType="NVarChar(4)" CanBeNull="true" />
<Column Name="Photo" Type="System.Data.Linq.Binary" DbType="Image" CanBeNull="true" UpdateCheck="Never" />
<Column Name="Notes" Type="System.String" DbType="NText" CanBeNull="true" UpdateCheck="Never" />
<Column Name="ReportsTo" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="PhotoPath" Type="System.String" DbType="NVarChar(255)" CanBeNull="true" />
<Association Name="FK_Employees_Employees" Member="ReportsToEmployee" ThisKey="ReportsTo" OtherKey="EmployeeID" Type="Employee" IsForeignKey="true" />
<Association Name="FK_Employees_Employees" Member="Employees" ThisKey="EmployeeID" OtherKey="ReportsTo" Type="Employee" DeleteRule="NO ACTION" />
<Association Name="FK_EmployeeTerritories_Employees" Member="EmployeeTerritories" ThisKey="EmployeeID" OtherKey="EmployeeID" Type="EmployeeTerritory" DeleteRule="NO ACTION" />
<Association Name="FK_Orders_Employees" Member="Orders" ThisKey="EmployeeID" OtherKey="EmployeeID" Type="Order" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.EmployeeTerritories" Member="EmployeeTerritories">
<Type Name="EmployeeTerritory">
<Column Name="EmployeeID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="TerritoryID" Type="System.String" DbType="NVarChar(20) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Association Name="FK_EmployeeTerritories_Employees" Member="Employee" ThisKey="EmployeeID" OtherKey="EmployeeID" Type="Employee" IsForeignKey="true" />
<Association Name="FK_EmployeeTerritories_Territories" Member="Territory" ThisKey="TerritoryID" OtherKey="TerritoryID" Type="Territory" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.Invoices" Member="Invoices">
<Type Name="Invoice">
<Column Name="ShipName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="ShipAddress" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="ShipCity" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="ShipRegion" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="ShipPostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="ShipCountry" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="CustomerID" Type="System.String" DbType="NChar(5)" CanBeNull="true" />
<Column Name="CustomerName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="Address" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Region" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="PostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Salesperson" Type="System.String" DbType="NVarChar(31) NOT NULL" CanBeNull="false" />
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="OrderDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="RequiredDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShipperName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ProductID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money NOT NULL" CanBeNull="false" />
<Column Name="Quantity" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="Discount" Type="System.Single" DbType="Real NOT NULL" CanBeNull="false" />
<Column Name="ExtendedPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="Freight" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Order Details" Member="OrderDetails">
<Type Name="OrderDetail">
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="ProductID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money NOT NULL" CanBeNull="false" />
<Column Name="Quantity" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="Discount" Type="System.Single" DbType="Real NOT NULL" CanBeNull="false" />
<Association Name="FK_Order_Details_Orders" Member="Order" ThisKey="OrderID" OtherKey="OrderID" Type="Order" IsForeignKey="true" />
<Association Name="FK_Order_Details_Products" Member="Product" ThisKey="ProductID" OtherKey="ProductID" Type="Product" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.Order Details Extended" Member="OrderDetailsExtendeds">
<Type Name="OrderDetailsExtended">
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="ProductID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money NOT NULL" CanBeNull="false" />
<Column Name="Quantity" Type="System.Int16" DbType="SmallInt NOT NULL" CanBeNull="false" />
<Column Name="Discount" Type="System.Single" DbType="Real NOT NULL" CanBeNull="false" />
<Column Name="ExtendedPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Order Subtotals" Member="OrderSubtotals">
<Type Name="OrderSubtotal">
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Column Name="Subtotal" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Orders" Member="Orders">
<Type Name="Order">
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="CustomerID" Type="System.String" DbType="NChar(5)" CanBeNull="true" />
<Column Name="EmployeeID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="OrderDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="RequiredDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShipVia" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="Freight" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="ShipName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="ShipAddress" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="ShipCity" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="ShipRegion" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="ShipPostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="ShipCountry" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Association Name="FK_Order_Details_Orders" Member="OrderDetails" ThisKey="OrderID" OtherKey="OrderID" Type="OrderDetail" DeleteRule="NO ACTION" />
<Association Name="FK_Orders_Customers" Member="Customer" ThisKey="CustomerID" OtherKey="CustomerID" Type="Customer" IsForeignKey="true" />
<Association Name="FK_Orders_Employees" Member="Employee" ThisKey="EmployeeID" OtherKey="EmployeeID" Type="Employee" IsForeignKey="true" />
<Association Name="FK_Orders_Shippers" Member="Shipper" ThisKey="ShipVia" OtherKey="ShipperID" Type="Shipper" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.Orders Qry" Member="OrdersQries">
<Type Name="OrdersQry">
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="CustomerID" Type="System.String" DbType="NChar(5)" CanBeNull="true" />
<Column Name="EmployeeID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="OrderDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="RequiredDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShipVia" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="Freight" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="ShipName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="ShipAddress" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="ShipCity" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="ShipRegion" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="ShipPostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="ShipCountry" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="Address" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Region" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="PostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Product Sales for 1997" Member="ProductSalesFor1997s">
<Type Name="ProductSalesFor1997">
<Column Name="CategoryName" Type="System.String" DbType="NVarChar(15) NOT NULL" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ProductSales" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Products" Member="Products">
<Type Name="Product">
<Column Name="ProductID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="SupplierID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="CategoryID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="QuantityPerUnit" Type="System.String" DbType="NVarChar(20)" CanBeNull="true" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="UnitsInStock" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="UnitsOnOrder" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="ReorderLevel" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="Discontinued" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
<Association Name="FK_Order_Details_Products" Member="OrderDetails" ThisKey="ProductID" OtherKey="ProductID" Type="OrderDetail" DeleteRule="NO ACTION" />
<Association Name="FK_Products_Categories" Member="Category" ThisKey="CategoryID" OtherKey="CategoryID" Type="Category" IsForeignKey="true" />
<Association Name="FK_Products_Suppliers" Member="Supplier" ThisKey="SupplierID" OtherKey="SupplierID" Type="Supplier" IsForeignKey="true" />
</Type>
</Table>
<Table Name="dbo.Products Above Average Price" Member="ProductsAboveAveragePrices">
<Type Name="ProductsAboveAveragePrice">
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Products by Category" Member="ProductsByCategories">
<Type Name="ProductsByCategory">
<Column Name="CategoryName" Type="System.String" DbType="NVarChar(15) NOT NULL" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="QuantityPerUnit" Type="System.String" DbType="NVarChar(20)" CanBeNull="true" />
<Column Name="UnitsInStock" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="Discontinued" Type="System.Boolean" DbType="Bit NOT NULL" CanBeNull="false" />
</Type>
</Table>
<Table Name="dbo.Quarterly Orders" Member="QuarterlyOrders">
<Type Name="QuarterlyOrder">
<Column Name="CustomerID" Type="System.String" DbType="NChar(5)" CanBeNull="true" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Region" Member="Regions">
<Type Name="Region">
<Column Name="RegionID" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="RegionDescription" Type="System.String" DbType="NChar(50) NOT NULL" CanBeNull="false" />
<Association Name="FK_Territories_Region" Member="Territories" ThisKey="RegionID" OtherKey="RegionID" Type="Territory" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.Sales by Category" Member="SalesByCategories">
<Type Name="SalesByCategory">
<Column Name="CategoryID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="CategoryName" Type="System.String" DbType="NVarChar(15) NOT NULL" CanBeNull="false" />
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ProductSales" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Sales Totals by Amount" Member="SalesTotalsByAmounts">
<Type Name="SalesTotalsByAmount">
<Column Name="SaleAmount" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Shippers" Member="Shippers">
<Type Name="Shipper">
<Column Name="ShipperID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="Phone" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" />
<Association Name="FK_Orders_Shippers" Member="Orders" ThisKey="ShipperID" OtherKey="ShipVia" Type="Order" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.Summary of Sales by Quarter" Member="SummaryOfSalesByQuarters">
<Type Name="SummaryOfSalesByQuarter">
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="Subtotal" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Summary of Sales by Year" Member="SummaryOfSalesByYears">
<Type Name="SummaryOfSalesByYear">
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="OrderID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" CanBeNull="false" />
<Column Name="Subtotal" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</Type>
</Table>
<Table Name="dbo.Suppliers" Member="Suppliers">
<Type Name="Supplier">
<Column Name="SupplierID" Type="System.Int32" DbType="Int NOT NULL IDENTITY" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
<Column Name="CompanyName" Type="System.String" DbType="NVarChar(40) NOT NULL" CanBeNull="false" />
<Column Name="ContactName" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
<Column Name="ContactTitle" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
<Column Name="Address" Type="System.String" DbType="NVarChar(60)" CanBeNull="true" />
<Column Name="City" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Region" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="PostalCode" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="Phone" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" />
<Column Name="Fax" Type="System.String" DbType="NVarChar(24)" CanBeNull="true" />
<Column Name="HomePage" Type="System.String" DbType="NText" CanBeNull="true" UpdateCheck="Never" />
<Association Name="FK_Products_Suppliers" Member="Products" ThisKey="SupplierID" OtherKey="SupplierID" Type="Product" DeleteRule="NO ACTION" />
</Type>
</Table>
<Table Name="dbo.Territories" Member="Territories">
<Type Name="Territory">
<Column Name="TerritoryID" Type="System.String" DbType="NVarChar(20) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
<Column Name="TerritoryDescription" Type="System.String" DbType="NChar(50) NOT NULL" CanBeNull="false" />
<Column Name="RegionID" Type="System.Int32" DbType="Int NOT NULL" CanBeNull="false" />
<Association Name="FK_EmployeeTerritories_Territories" Member="EmployeeTerritories" ThisKey="TerritoryID" OtherKey="TerritoryID" Type="EmployeeTerritory" DeleteRule="NO ACTION" />
<Association Name="FK_Territories_Region" Member="Region" ThisKey="RegionID" OtherKey="RegionID" Type="Region" IsForeignKey="true" />
</Type>
</Table>
<Function Name="dbo.CustOrderHist" Method="CustOrderHist">
<Parameter Name="CustomerID" Parameter="customerID" Type="System.String" DbType="NChar(5)" />
<ElementType Name="CustOrderHistResult">
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="Total" Type="System.Int32" DbType="Int" CanBeNull="true" />
</ElementType>
</Function>
<Function Name="dbo.CustOrdersDetail" Method="CustOrdersDetail">
<Parameter Name="OrderID" Parameter="orderID" Type="System.Int32" DbType="Int" />
<ElementType Name="CustOrdersDetailResult">
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="Quantity" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
<Column Name="Discount" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="ExtendedPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</ElementType>
</Function>
<Function Name="dbo.CustOrdersOrders" Method="CustOrdersOrders">
<Parameter Name="CustomerID" Parameter="customerID" Type="System.String" DbType="NChar(5)" />
<ElementType Name="CustOrdersOrdersResult">
<Column Name="OrderID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="OrderDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="RequiredDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
</ElementType>
</Function>
<Function Name="dbo.Employee Sales by Country" Method="EmployeeSalesByCountry">
<Parameter Name="Beginning_Date" Parameter="beginning_Date" Type="System.DateTime" DbType="DateTime" />
<Parameter Name="Ending_Date" Parameter="ending_Date" Type="System.DateTime" DbType="DateTime" />
<ElementType Name="EmployeeSalesByCountryResult">
<Column Name="Country" Type="System.String" DbType="NVarChar(15)" CanBeNull="true" />
<Column Name="LastName" Type="System.String" DbType="NVarChar(20)" CanBeNull="true" />
<Column Name="FirstName" Type="System.String" DbType="NVarChar(10)" CanBeNull="true" />
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="OrderID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="SaleAmount" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</ElementType>
</Function>
<Function Name="dbo.Sales by Year" Method="SalesByYear">
<Parameter Name="Beginning_Date" Parameter="beginning_Date" Type="System.DateTime" DbType="DateTime" />
<Parameter Name="Ending_Date" Parameter="ending_Date" Type="System.DateTime" DbType="DateTime" />
<ElementType Name="SalesByYearResult">
<Column Name="ShippedDate" Type="System.DateTime" DbType="DateTime" CanBeNull="true" />
<Column Name="OrderID" Type="System.Int32" DbType="Int" CanBeNull="true" />
<Column Name="Subtotal" Type="System.Decimal" DbType="Money" CanBeNull="true" />
<Column Name="Year" Type="System.String" DbType="NVarChar(30)" CanBeNull="true" />
</ElementType>
</Function>
<Function Name="dbo.SalesByCategory" Method="SalesByCategory">
<Parameter Name="CategoryName" Parameter="categoryName" Type="System.String" DbType="NVarChar(15)" />
<Parameter Name="OrdYear" Parameter="ordYear" Type="System.String" DbType="NVarChar(4)" />
<ElementType Name="SalesByCategoryResult">
<Column Name="ProductName" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="TotalPurchase" Type="System.Decimal" DbType="Decimal(38,2)" CanBeNull="true" />
</ElementType>
</Function>
<Function Name="dbo.Ten Most Expensive Products" Method="TenMostExpensiveProducts">
<ElementType Name="TenMostExpensiveProductsResult">
<Column Name="TenMostExpensiveProducts" Type="System.String" DbType="NVarChar(40)" CanBeNull="true" />
<Column Name="UnitPrice" Type="System.Decimal" DbType="Money" CanBeNull="true" />
</ElementType>
</Function>
</Database>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.