|
@@ -208,6 +208,10 @@
|
|
|
<Property Name="version" Type="int" />
|
|
|
<Property Name="definition" Type="varbinary(max)" />
|
|
|
</EntityType>
|
|
|
+ <!--Ошибки, обнаруженные при создании:
|
|
|
+предупреждение 6002: В таблице или представлении "SAS.dbo.TempBrand" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
|
|
|
+ <!--Ошибки, обнаруженные при создании:
|
|
|
+предупреждение 6002: В таблице или представлении "SAS.dbo.TempD" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
|
|
|
<EntityType Name="Transport">
|
|
|
<Key>
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -420,6 +424,78 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <Association Name="FK_Transport_Category">
|
|
|
+ <End Role="Category" Type="Self.Category" Multiplicity="0..1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Category">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Category" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_Color">
|
|
|
+ <End Role="Color" Type="Self.Color" Multiplicity="1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Color">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Color" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_DriveType">
|
|
|
+ <End Role="DriveType" Type="Self.DriveType" Multiplicity="1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="DriveType">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="DriveType" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_Model">
|
|
|
+ <End Role="Model" Type="Self.Model" Multiplicity="1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Model">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Model" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_Region">
|
|
|
+ <End Role="Region" Type="Self.Region" Multiplicity="0..1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Region">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Region" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_TransportType">
|
|
|
+ <End Role="TransportType" Type="Self.TransportType" Multiplicity="0..1" />
|
|
|
+ <End Role="Transport" Type="Self.Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="TransportType">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="TransportType" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
<Association Name="FK_TransportOwnership_Citizen">
|
|
|
<End Role="Citizen" Type="Self.Citizen" Multiplicity="1" />
|
|
|
<End Role="TransportOwnership" Type="Self.TransportOwnership" Multiplicity="*" />
|
|
@@ -551,6 +627,30 @@
|
|
|
<End Role="Region" EntitySet="Region" />
|
|
|
<End Role="RegionCode" EntitySet="RegionCode" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Category" Association="Self.FK_Transport_Category">
|
|
|
+ <End Role="Category" EntitySet="Category" />
|
|
|
+ <End Role="Transport" EntitySet="Transport" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Color" Association="Self.FK_Transport_Color">
|
|
|
+ <End Role="Color" EntitySet="Color" />
|
|
|
+ <End Role="Transport" EntitySet="Transport" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_DriveType" Association="Self.FK_Transport_DriveType">
|
|
|
+ <End Role="DriveType" EntitySet="DriveType" />
|
|
|
+ <End Role="Transport" EntitySet="Transport" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Model" Association="Self.FK_Transport_Model">
|
|
|
+ <End Role="Model" EntitySet="Model" />
|
|
|
+ <End Role="Transport" EntitySet="Transport" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Region" Association="Self.FK_Transport_Region">
|
|
|
+ <End Role="Region" EntitySet="Region" />
|
|
|
+ <End Role="Transport" EntitySet="Transport" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_TransportType" Association="Self.FK_Transport_TransportType">
|
|
|
+ <End Role="TransportType" EntitySet="TransportType" />
|
|
|
+ <End Role="Transport" EntitySet="Transport" />
|
|
|
+ </AssociationSet>
|
|
|
<AssociationSet Name="FK_TransportOwnership_Citizen" Association="Self.FK_TransportOwnership_Citizen">
|
|
|
<End Role="Citizen" EntitySet="Citizen" />
|
|
|
<End Role="TransportOwnership" EntitySet="TransportOwnership" />
|
|
@@ -671,6 +771,30 @@
|
|
|
<End Role="Transport" EntitySet="Transports" />
|
|
|
<End Role="TransportPhoto" EntitySet="TransportPhotoes" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Category" Association="SASModel.FK_Transport_Category">
|
|
|
+ <End Role="Category" EntitySet="Categories" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Color" Association="SASModel.FK_Transport_Color">
|
|
|
+ <End Role="Color" EntitySet="Colors" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_DriveType" Association="SASModel.FK_Transport_DriveType">
|
|
|
+ <End Role="DriveType" EntitySet="DriveTypes" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Model" Association="SASModel.FK_Transport_Model">
|
|
|
+ <End Role="Model" EntitySet="Models" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_Region" Association="SASModel.FK_Transport_Region">
|
|
|
+ <End Role="Region" EntitySet="Regions" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Transport_TransportType" Association="SASModel.FK_Transport_TransportType">
|
|
|
+ <End Role="TransportType" EntitySet="TransportTypes" />
|
|
|
+ <End Role="Transport" EntitySet="Transports" />
|
|
|
+ </AssociationSet>
|
|
|
</EntityContainer>
|
|
|
<EntityType Name="Brand">
|
|
|
<Key>
|
|
@@ -687,6 +811,7 @@
|
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="Name" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
|
|
|
<NavigationProperty Name="LicenseCategories" Relationship="SASModel.FK_LicenseCategory_Category" FromRole="Category" ToRole="LicenseCategory" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Category" FromRole="Category" ToRole="Transport" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Citizen">
|
|
|
<Key>
|
|
@@ -724,6 +849,7 @@
|
|
|
<Property Name="NameEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
|
|
|
<Property Name="DiscriptionEng" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
|
|
|
<Property Name="IsMetallic" Type="Boolean" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Color" FromRole="Color" ToRole="Transport" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Company">
|
|
|
<Key>
|
|
@@ -747,6 +873,7 @@
|
|
|
</Key>
|
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="Name" Type="String" Nullable="false" MaxLength="35" FixedLength="false" Unicode="false" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_DriveType" FromRole="DriveType" ToRole="Transport" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Employee">
|
|
|
<Key>
|
|
@@ -865,6 +992,7 @@
|
|
|
<Property Name="Brand" Type="Int32" Nullable="false" />
|
|
|
<Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
|
|
|
<NavigationProperty Name="Brand1" Relationship="SASModel.FK_Model_Brand" FromRole="Model" ToRole="Brand" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Model" FromRole="Model" ToRole="Transport" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Region">
|
|
|
<Key>
|
|
@@ -877,6 +1005,7 @@
|
|
|
<Property Name="OKATO" Type="String" MaxLength="3" FixedLength="false" Unicode="false" />
|
|
|
<Property Name="ISO3166_2" Type="String" MaxLength="7" FixedLength="false" Unicode="false" />
|
|
|
<NavigationProperty Name="RegionCodes" Relationship="SASModel.FK_RegionCode_Region" FromRole="Region" ToRole="RegionCode" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_Region" FromRole="Region" ToRole="Transport" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="RegionCode">
|
|
|
<Key>
|
|
@@ -925,6 +1054,12 @@
|
|
|
<Property Name="MaxLoadKg" Type="Int32" />
|
|
|
<NavigationProperty Name="TransportOwnerships" Relationship="SASModel.FK_TransportOwnership_Transport" FromRole="Transport" ToRole="TransportOwnership" />
|
|
|
<NavigationProperty Name="TransportPhotoes" Relationship="SASModel.FK_TransportPhoto_Transport" FromRole="Transport" ToRole="TransportPhoto" />
|
|
|
+ <NavigationProperty Name="Category1" Relationship="SASModel.FK_Transport_Category" FromRole="Transport" ToRole="Category" />
|
|
|
+ <NavigationProperty Name="Color1" Relationship="SASModel.FK_Transport_Color" FromRole="Transport" ToRole="Color" />
|
|
|
+ <NavigationProperty Name="DriveType1" Relationship="SASModel.FK_Transport_DriveType" FromRole="Transport" ToRole="DriveType" />
|
|
|
+ <NavigationProperty Name="Model1" Relationship="SASModel.FK_Transport_Model" FromRole="Transport" ToRole="Model" />
|
|
|
+ <NavigationProperty Name="Region1" Relationship="SASModel.FK_Transport_Region" FromRole="Transport" ToRole="Region" />
|
|
|
+ <NavigationProperty Name="TransportType1" Relationship="SASModel.FK_Transport_TransportType" FromRole="Transport" ToRole="TransportType" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="TransportOwnership">
|
|
|
<Key>
|
|
@@ -954,6 +1089,7 @@
|
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="NameRus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
|
<Property Name="NameEng" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
|
+ <NavigationProperty Name="Transports" Relationship="SASModel.FK_Transport_TransportType" FromRole="TransportType" ToRole="Transport" />
|
|
|
</EntityType>
|
|
|
<Association Name="FK_Model_Brand">
|
|
|
<End Type="SASModel.Brand" Role="Brand" Multiplicity="1" />
|
|
@@ -1171,6 +1307,78 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <Association Name="FK_Transport_Category">
|
|
|
+ <End Type="SASModel.Category" Role="Category" Multiplicity="0..1" />
|
|
|
+ <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Category">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Category" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_Color">
|
|
|
+ <End Type="SASModel.Color" Role="Color" Multiplicity="1" />
|
|
|
+ <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Color">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Color" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_DriveType">
|
|
|
+ <End Type="SASModel.DriveType" Role="DriveType" Multiplicity="1" />
|
|
|
+ <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="DriveType">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="DriveType" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_Model">
|
|
|
+ <End Type="SASModel.Model" Role="Model" Multiplicity="1" />
|
|
|
+ <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Model">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Model" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_Region">
|
|
|
+ <End Type="SASModel.Region" Role="Region" Multiplicity="0..1" />
|
|
|
+ <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Region">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="Region" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Transport_TransportType">
|
|
|
+ <End Type="SASModel.TransportType" Role="TransportType" Multiplicity="0..1" />
|
|
|
+ <End Type="SASModel.Transport" Role="Transport" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="TransportType">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Transport">
|
|
|
+ <PropertyRef Name="TransportType" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
</Schema>
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|