| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?xml version="1.0" encoding="utf-8" standalone="yes"?>
- <edmx:Edmx Version="1.0"
- xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
- <edmx:DataServices
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
- <Schema Namespace="NorthwindModel"
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
- xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
- <EntityType Name="Customer">
- <Key>
- <PropertyRef Name="CustomerID"/>
- </Key>
- <Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true"
- FixedLength="true"/>
- <Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true"
- FixedLength="false"/>
- </EntityType>
- <EntityType Name="Employee">
- <Key>
- <PropertyRef Name="EmployeeID"/>
- </Key>
- <Property Name="EmployeeID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
- xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
- <Property Name="LastName" Type="Edm.String" Nullable="false" MaxLength="20" Unicode="true"
- FixedLength="false"/>
- <Property Name="FirstName" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="true"
- FixedLength="false"/>
- <Property Name="Title" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true"
- FixedLength="false"/>
- <Property Name="HomePhone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true"
- FixedLength="false"/>
- <Property Name="Photo" Type="Edm.Binary" Nullable="true" MaxLength="Max" FixedLength="false"/>
- </EntityType>
- <EntityType Name="Order_Detail">
- <Key>
- <PropertyRef Name="OrderID"/>
- <PropertyRef Name="ProductID"/>
- </Key>
- <Property Name="OrderID" Type="Edm.Int32" Nullable="false"/>
- <Property Name="ProductID" Type="Edm.Int32" Nullable="false"/>
- <Property Name="UnitPrice" Type="Edm.Decimal" Nullable="false" Precision="19" Scale="4"/>
- <Property Name="Quantity" Type="Edm.Int16" Nullable="false"/>
- <Property Name="Discount" Type="Edm.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="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
- xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
- <Property Name="CustomerID" Type="Edm.String" Nullable="true" MaxLength="5" Unicode="true"
- FixedLength="true"/>
- <Property Name="CustomerName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true"
- FixedLength="false"/>
- <Property Name="EmployeeID" Type="Edm.Int32" Nullable="true"/>
- <Property Name="OrderDate" Type="Edm.DateTime" Nullable="true"/>
- <Property Name="RequiredDate" Type="Edm.DateTime" Nullable="true"/>
- <Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true"/>
- <Property Name="ShipVia" Type="Edm.Int32" Nullable="true"/>
- <Property Name="Freight" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4"/>
- <Property Name="ShipName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true"
- FixedLength="false"/>
- <Property Name="ShipAddress" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true"
- FixedLength="false"/>
- <Property Name="ShipCity" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true"
- FixedLength="false"/>
- <Property Name="ShipRegion" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true"
- FixedLength="false"/>
- <Property Name="ShipPostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true"
- FixedLength="false"/>
- <Property Name="ShipCountry" Type="Edm.String" Nullable="true" 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="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
- xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
- <Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true"
- FixedLength="false"/>
- </EntityType>
- <EntityType Name="Shipper">
- <Key>
- <PropertyRef Name="ShipperID"/>
- </Key>
- <Property Name="ShipperID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
- xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
- <Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true"
- FixedLength="false"/>
- <Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true"
- FixedLength="false"/>
- <NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Shippers"
- ToRole="Orders"/>
- </EntityType>
- <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>
- </Schema>
- <Schema Namespace="ODataWeb.Northwind.Model"
- xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
- xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
- <EntityContainer Name="NorthwindEntities" p7:LazyLoadingEnabled="true" m:IsDefaultEntityContainer="true"
- xmlns:p7="http://schemas.microsoft.com/ado/2009/02/edm/annotation">
- <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"/>
- <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>
- </EntityContainer>
- </Schema>
- </edmx:DataServices>
- </edmx:Edmx>
|