Advertisement
Guest User

Untitled

a guest
Jun 1st, 2015
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.55 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="ShoppingModel" 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/11/edm/ssdl">
  3.   <EntityContainer Name="ShoppingModelContainer">
  4.     <EntitySet Name="Categories" EntityType="ShoppingModel.Categories" store:Type="Tables" Schema="dbo" />
  5.     <EntitySet Name="Customers" EntityType="ShoppingModel.Customers" store:Type="Tables" Schema="dbo" />
  6.     <EntitySet Name="OrderItems" EntityType="ShoppingModel.OrderItems" store:Type="Tables" Schema="dbo" />
  7.     <EntitySet Name="Orders" EntityType="ShoppingModel.Orders" store:Type="Tables" Schema="dbo" />
  8.     <EntitySet Name="Products" EntityType="ShoppingModel.Products" store:Type="Tables" Schema="dbo" />
  9.     <EntitySet Name="sysdiagrams" EntityType="ShoppingModel.sysdiagrams" store:Type="Tables" Schema="dbo" />
  10.     <AssociationSet Name="ForeignKeyItemsToOrder" Association="ShoppingModel.ForeignKeyItemsToOrder">
  11.       <End Role="Orders" EntitySet="Orders" />
  12.       <End Role="OrderItems" EntitySet="OrderItems" />
  13.     </AssociationSet>
  14.     <AssociationSet Name="ForeignKeyItemToProduct" Association="ShoppingModel.ForeignKeyItemToProduct">
  15.       <End Role="Products" EntitySet="Products" />
  16.       <End Role="OrderItems" EntitySet="OrderItems" />
  17.     </AssociationSet>
  18.     <AssociationSet Name="ForeignKeyOrdersToCustomers" Association="ShoppingModel.ForeignKeyOrdersToCustomers">
  19.       <End Role="Customers" EntitySet="Customers" />
  20.       <End Role="Orders" EntitySet="Orders" />
  21.     </AssociationSet>
  22.     <AssociationSet Name="ForeignKeyProductToCategory" Association="ShoppingModel.ForeignKeyProductToCategory">
  23.       <End Role="Categories" EntitySet="Categories" />
  24.       <End Role="Products" EntitySet="Products" />
  25.     </AssociationSet>
  26.   </EntityContainer>
  27.   <EntityType Name="Categories">
  28.     <Key>
  29.       <PropertyRef Name="Id" />
  30.     </Key>
  31.     <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
  32.     <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="256" />
  33.   </EntityType>
  34.   <EntityType Name="Customers">
  35.     <Key>
  36.       <PropertyRef Name="Id" />
  37.     </Key>
  38.     <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
  39.     <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="256" />
  40.     <Property Name="Surname" Type="nvarchar" Nullable="false" MaxLength="256" />
  41.   </EntityType>
  42.   <EntityType Name="OrderItems">
  43.     <Key>
  44.       <PropertyRef Name="Id" />
  45.     </Key>
  46.     <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
  47.     <Property Name="OrderId" Type="uniqueidentifier" Nullable="false" />
  48.     <Property Name="ProductId" Type="uniqueidentifier" Nullable="false" />
  49.     <Property Name="Count" Type="int" Nullable="false" />
  50.   </EntityType>
  51.   <EntityType Name="Orders">
  52.     <Key>
  53.       <PropertyRef Name="Id" />
  54.     </Key>
  55.     <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
  56.     <Property Name="CustomerId" Type="uniqueidentifier" Nullable="false" />
  57.     <Property Name="TotalPrice" Type="decimal" Nullable="false" />
  58.   </EntityType>
  59.   <EntityType Name="Products">
  60.     <Key>
  61.       <PropertyRef Name="Id" />
  62.     </Key>
  63.     <Property Name="Id" Type="uniqueidentifier" Nullable="false" />
  64.     <Property Name="CategoryId" Type="uniqueidentifier" Nullable="false" />
  65.     <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="256" />
  66.     <Property Name="Price" Type="decimal" Nullable="false" />
  67.   </EntityType>
  68.   <EntityType Name="sysdiagrams">
  69.     <Key>
  70.       <PropertyRef Name="diagram_id" />
  71.     </Key>
  72.     <Property Name="name" Type="nvarchar" Nullable="false" MaxLength="128" />
  73.     <Property Name="principal_id" Type="int" Nullable="false" />
  74.     <Property Name="diagram_id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
  75.     <Property Name="version" Type="int" />
  76.     <Property Name="definition" Type="varbinary(max)" />
  77.   </EntityType>
  78.   <Association Name="ForeignKeyItemsToOrder">
  79.     <End Role="Orders" Type="ShoppingModel.Orders" Multiplicity="1">
  80.       <OnDelete Action="Cascade" />
  81.     </End>
  82.     <End Role="OrderItems" Type="ShoppingModel.OrderItems" Multiplicity="*" />
  83.     <ReferentialConstraint>
  84.       <Principal Role="Orders">
  85.         <PropertyRef Name="Id" />
  86.       </Principal>
  87.       <Dependent Role="OrderItems">
  88.         <PropertyRef Name="OrderId" />
  89.       </Dependent>
  90.     </ReferentialConstraint>
  91.   </Association>
  92.   <Association Name="ForeignKeyItemToProduct">
  93.     <End Role="Products" Type="ShoppingModel.Products" Multiplicity="1">
  94.       <OnDelete Action="Cascade" />
  95.     </End>
  96.     <End Role="OrderItems" Type="ShoppingModel.OrderItems" Multiplicity="*" />
  97.     <ReferentialConstraint>
  98.       <Principal Role="Products">
  99.         <PropertyRef Name="Id" />
  100.       </Principal>
  101.       <Dependent Role="OrderItems">
  102.         <PropertyRef Name="ProductId" />
  103.       </Dependent>
  104.     </ReferentialConstraint>
  105.   </Association>
  106.   <Association Name="ForeignKeyOrdersToCustomers">
  107.     <End Role="Customers" Type="ShoppingModel.Customers" Multiplicity="1">
  108.       <OnDelete Action="Cascade" />
  109.     </End>
  110.     <End Role="Orders" Type="ShoppingModel.Orders" Multiplicity="*" />
  111.     <ReferentialConstraint>
  112.       <Principal Role="Customers">
  113.         <PropertyRef Name="Id" />
  114.       </Principal>
  115.       <Dependent Role="Orders">
  116.         <PropertyRef Name="CustomerId" />
  117.       </Dependent>
  118.     </ReferentialConstraint>
  119.   </Association>
  120.   <Association Name="ForeignKeyProductToCategory">
  121.     <End Role="Categories" Type="ShoppingModel.Categories" Multiplicity="1">
  122.       <OnDelete Action="Cascade" />
  123.     </End>
  124.     <End Role="Products" Type="ShoppingModel.Products" Multiplicity="*" />
  125.     <ReferentialConstraint>
  126.       <Principal Role="Categories">
  127.         <PropertyRef Name="Id" />
  128.       </Principal>
  129.       <Dependent Role="Products">
  130.         <PropertyRef Name="CategoryId" />
  131.       </Dependent>
  132.     </ReferentialConstraint>
  133.   </Association>
  134.   <Function Name="fn_diagramobjects" ReturnType="int" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  135.   <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  136.     <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  137.     <Parameter Name="owner_id" Type="int" Mode="In" />
  138.     <Parameter Name="version" Type="int" Mode="In" />
  139.     <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  140.   </Function>
  141.   <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  142.     <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  143.     <Parameter Name="owner_id" Type="int" Mode="In" />
  144.     <Parameter Name="version" Type="int" Mode="In" />
  145.     <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  146.   </Function>
  147.   <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  148.     <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  149.     <Parameter Name="owner_id" Type="int" Mode="In" />
  150.   </Function>
  151.   <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  152.     <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  153.     <Parameter Name="owner_id" Type="int" Mode="In" />
  154.   </Function>
  155.   <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  156.     <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  157.     <Parameter Name="owner_id" Type="int" Mode="In" />
  158.   </Function>
  159.   <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  160.     <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  161.     <Parameter Name="owner_id" Type="int" Mode="In" />
  162.     <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  163.   </Function>
  164.   <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  165. </Schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement