|
@@ -4,7 +4,7 @@
|
|
<edmx:Runtime>
|
|
<edmx:Runtime>
|
|
<!-- SSDL content -->
|
|
<!-- SSDL content -->
|
|
<edmx:StorageModels>
|
|
<edmx:StorageModels>
|
|
- <Schema Namespace="Хранилище gr672_liiModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
|
|
|
|
|
+ <Schema Namespace="gr672_liiModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
|
<EntityType Name="Card">
|
|
<EntityType Name="Card">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="idCard" />
|
|
<PropertyRef Name="idCard" />
|
|
@@ -80,7 +80,6 @@
|
|
<Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
|
|
<Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
|
|
<Property Name="ContactNumber" Type="int" Nullable="false" />
|
|
<Property Name="ContactNumber" Type="int" Nullable="false" />
|
|
- <Property Name="Role" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
</EntityType>
|
|
</EntityType>
|
|
<Association Name="FK_Card_Client">
|
|
<Association Name="FK_Card_Client">
|
|
<End Role="Client" Type="Self.Client" Multiplicity="1" />
|
|
<End Role="Client" Type="Self.Client" Multiplicity="1" />
|
|
@@ -166,7 +165,7 @@
|
|
</Dependent>
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
- <EntityContainer Name="Хранилище gr672_liiModelContainer">
|
|
|
|
|
|
+ <EntityContainer Name="gr672_liiModelStoreContainer">
|
|
<EntitySet Name="Card" EntityType="Self.Card" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="Card" EntityType="Self.Card" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="CategoryService" EntityType="Self.CategoryService" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="CategoryService" EntityType="Self.CategoryService" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
|
|
@@ -204,75 +203,38 @@
|
|
<End Role="Service" EntitySet="Service" />
|
|
<End Role="Service" EntitySet="Service" />
|
|
</AssociationSet>
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</EntityContainer>
|
|
- </Schema></edmx:StorageModels>
|
|
|
|
|
|
+ </Schema>
|
|
|
|
+ </edmx:StorageModels>
|
|
<!-- CSDL content -->
|
|
<!-- CSDL content -->
|
|
<edmx:ConceptualModels>
|
|
<edmx:ConceptualModels>
|
|
<Schema Namespace="gr672_liiModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
|
<Schema Namespace="gr672_liiModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
|
- <EntityContainer Name="gr672_liiEntities" annotation:LazyLoadingEnabled="true">
|
|
|
|
- <EntitySet Name="Card" EntityType="gr672_liiModel.Card" />
|
|
|
|
- <EntitySet Name="CategoryService" EntityType="gr672_liiModel.CategoryService" />
|
|
|
|
- <EntitySet Name="Client" EntityType="gr672_liiModel.Client" />
|
|
|
|
- <EntitySet Name="Discount" EntityType="gr672_liiModel.Discount" />
|
|
|
|
- <EntitySet Name="Order" EntityType="gr672_liiModel.Order" />
|
|
|
|
- <EntitySet Name="Payment" EntityType="gr672_liiModel.Payment" />
|
|
|
|
- <EntitySet Name="Service" EntityType="gr672_liiModel.Service" />
|
|
|
|
- <EntitySet Name="User" EntityType="gr672_liiModel.User" />
|
|
|
|
- <AssociationSet Name="FK_Card_Client" Association="gr672_liiModel.FK_Card_Client">
|
|
|
|
- <End Role="Client" EntitySet="Client" />
|
|
|
|
- <End Role="Card" EntitySet="Card" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- <AssociationSet Name="FK_Service_CategoryService" Association="gr672_liiModel.FK_Service_CategoryService">
|
|
|
|
- <End Role="CategoryService" EntitySet="CategoryService" />
|
|
|
|
- <End Role="Service" EntitySet="Service" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- <AssociationSet Name="FK_Order_Client" Association="gr672_liiModel.FK_Order_Client">
|
|
|
|
- <End Role="Client" EntitySet="Client" />
|
|
|
|
- <End Role="Order" EntitySet="Order" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- <AssociationSet Name="FK_Discount_Order" Association="gr672_liiModel.FK_Discount_Order">
|
|
|
|
- <End Role="Order" EntitySet="Order" />
|
|
|
|
- <End Role="Discount" EntitySet="Discount" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- <AssociationSet Name="FK_Order_Payment" Association="gr672_liiModel.FK_Order_Payment">
|
|
|
|
- <End Role="Payment" EntitySet="Payment" />
|
|
|
|
- <End Role="Order" EntitySet="Order" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- <AssociationSet Name="FK_Order_Service" Association="gr672_liiModel.FK_Order_Service">
|
|
|
|
- <End Role="Service" EntitySet="Service" />
|
|
|
|
- <End Role="Order" EntitySet="Order" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- <AssociationSet Name="FK_Order_User" Association="gr672_liiModel.FK_Order_User">
|
|
|
|
- <End Role="User" EntitySet="User" />
|
|
|
|
- <End Role="Order" EntitySet="Order" />
|
|
|
|
- </AssociationSet>
|
|
|
|
- </EntityContainer>
|
|
|
|
<EntityType Name="Card">
|
|
<EntityType Name="Card">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="idCard" />
|
|
<PropertyRef Name="idCard" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="idCard" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idCard" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="NumberCard" Type="Int32" Nullable="false" />
|
|
<Property Name="NumberCard" Type="Int32" Nullable="false" />
|
|
- <Property Name="TypeCard" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="TypeCard" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
- <NavigationProperty Name="Client" Relationship="gr672_liiModel.FK_Card_Client" FromRole="Card" ToRole="Client" />
|
|
|
|
|
|
+ <NavigationProperty Name="Client" Relationship="Self.FK_Card_Client" FromRole="Card" ToRole="Client" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="CategoryService">
|
|
<EntityType Name="CategoryService">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="idCategory" />
|
|
<PropertyRef Name="idCategory" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="idCategory" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idCategory" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="NameCategory" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <NavigationProperty Name="Service" Relationship="gr672_liiModel.FK_Service_CategoryService" FromRole="CategoryService" ToRole="Service" />
|
|
|
|
|
|
+ <Property Name="NameCategory" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Services" Relationship="Self.FK_Service_CategoryService" FromRole="CategoryService" ToRole="Service" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Client">
|
|
<EntityType Name="Client">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="idClient" />
|
|
<PropertyRef Name="idClient" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="idClient" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idClient" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="NameClient" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="TypeClient" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <NavigationProperty Name="Card" Relationship="gr672_liiModel.FK_Card_Client" FromRole="Client" ToRole="Card" />
|
|
|
|
- <NavigationProperty Name="Order" Relationship="gr672_liiModel.FK_Order_Client" FromRole="Client" ToRole="Order" />
|
|
|
|
|
|
+ <Property Name="NameClient" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="TypeClient" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Cards" Relationship="Self.FK_Card_Client" FromRole="Client" ToRole="Card" />
|
|
|
|
+ <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Client" FromRole="Client" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Discount">
|
|
<EntityType Name="Discount">
|
|
<Key>
|
|
<Key>
|
|
@@ -281,7 +243,7 @@
|
|
<Property Name="idDiscount" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idDiscount" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Procent" Type="Int32" Nullable="false" />
|
|
<Property Name="Procent" Type="Int32" Nullable="false" />
|
|
<Property Name="idOrder" Type="Int32" Nullable="false" />
|
|
<Property Name="idOrder" Type="Int32" Nullable="false" />
|
|
- <NavigationProperty Name="Order" Relationship="gr672_liiModel.FK_Discount_Order" FromRole="Discount" ToRole="Order" />
|
|
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Discount_Order" FromRole="Discount" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Order">
|
|
<EntityType Name="Order">
|
|
<Key>
|
|
<Key>
|
|
@@ -289,18 +251,18 @@
|
|
</Key>
|
|
</Key>
|
|
<Property Name="idOrder" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idOrder" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="NumberOrder" Type="Int32" Nullable="false" />
|
|
<Property Name="NumberOrder" Type="Int32" Nullable="false" />
|
|
- <Property Name="ViewOrder" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="ViewOrder" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="0" />
|
|
<Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="0" />
|
|
<Property Name="CostOrder" Type="Int32" Nullable="false" />
|
|
<Property Name="CostOrder" Type="Int32" Nullable="false" />
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
<Property Name="idService" Type="Int32" Nullable="false" />
|
|
<Property Name="idService" Type="Int32" Nullable="false" />
|
|
<Property Name="idUser" Type="Int32" Nullable="false" />
|
|
<Property Name="idUser" Type="Int32" Nullable="false" />
|
|
<Property Name="idPayment" Type="Int32" Nullable="false" />
|
|
<Property Name="idPayment" Type="Int32" Nullable="false" />
|
|
- <NavigationProperty Name="Client" Relationship="gr672_liiModel.FK_Order_Client" FromRole="Order" ToRole="Client" />
|
|
|
|
- <NavigationProperty Name="Discount" Relationship="gr672_liiModel.FK_Discount_Order" FromRole="Order" ToRole="Discount" />
|
|
|
|
- <NavigationProperty Name="Payment" Relationship="gr672_liiModel.FK_Order_Payment" FromRole="Order" ToRole="Payment" />
|
|
|
|
- <NavigationProperty Name="Service" Relationship="gr672_liiModel.FK_Order_Service" FromRole="Order" ToRole="Service" />
|
|
|
|
- <NavigationProperty Name="User" Relationship="gr672_liiModel.FK_Order_User" FromRole="Order" ToRole="User" />
|
|
|
|
|
|
+ <NavigationProperty Name="Client" Relationship="Self.FK_Order_Client" FromRole="Order" ToRole="Client" />
|
|
|
|
+ <NavigationProperty Name="Discounts" Relationship="Self.FK_Discount_Order" FromRole="Order" ToRole="Discount" />
|
|
|
|
+ <NavigationProperty Name="Payment" Relationship="Self.FK_Order_Payment" FromRole="Order" ToRole="Payment" />
|
|
|
|
+ <NavigationProperty Name="Service" Relationship="Self.FK_Order_Service" FromRole="Order" ToRole="Service" />
|
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_Order_User" FromRole="Order" ToRole="User" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Payment">
|
|
<EntityType Name="Payment">
|
|
<Key>
|
|
<Key>
|
|
@@ -309,37 +271,36 @@
|
|
<Property Name="idPayment" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idPayment" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="NumberPayment" Type="Int32" Nullable="false" />
|
|
<Property Name="NumberPayment" Type="Int32" Nullable="false" />
|
|
<Property Name="DatePayment" Type="DateTime" Nullable="false" Precision="0" />
|
|
<Property Name="DatePayment" Type="DateTime" Nullable="false" Precision="0" />
|
|
- <NavigationProperty Name="Order" Relationship="gr672_liiModel.FK_Order_Payment" FromRole="Payment" ToRole="Order" />
|
|
|
|
|
|
+ <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Payment" FromRole="Payment" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Service">
|
|
<EntityType Name="Service">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="idService" />
|
|
<PropertyRef Name="idService" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="idService" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idService" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="NameService" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="PriceService" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
|
|
|
|
- <Property Name="DescriptionService" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="NameService" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="PriceService" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
|
|
|
|
+ <Property Name="DescriptionService" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="idCategory" Type="Int32" Nullable="false" />
|
|
<Property Name="idCategory" Type="Int32" Nullable="false" />
|
|
- <NavigationProperty Name="CategoryService" Relationship="gr672_liiModel.FK_Service_CategoryService" FromRole="Service" ToRole="CategoryService" />
|
|
|
|
- <NavigationProperty Name="Order" Relationship="gr672_liiModel.FK_Order_Service" FromRole="Service" ToRole="Order" />
|
|
|
|
|
|
+ <NavigationProperty Name="CategoryService" Relationship="Self.FK_Service_CategoryService" FromRole="Service" ToRole="CategoryService" />
|
|
|
|
+ <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Service" FromRole="Service" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="User">
|
|
<EntityType Name="User">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="idUser" />
|
|
<PropertyRef Name="idUser" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="idUser" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="idUser" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="LastName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="FirstName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="true" />
|
|
|
|
|
|
+ <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="ContactNumber" Type="Int32" Nullable="false" />
|
|
<Property Name="ContactNumber" Type="Int32" Nullable="false" />
|
|
- <Property Name="Role" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <NavigationProperty Name="Order" Relationship="gr672_liiModel.FK_Order_User" FromRole="User" ToRole="Order" />
|
|
|
|
|
|
+ <NavigationProperty Name="Orders" Relationship="Self.FK_Order_User" FromRole="User" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<Association Name="FK_Card_Client">
|
|
<Association Name="FK_Card_Client">
|
|
- <End Type="gr672_liiModel.Client" Role="Client" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Card" Role="Card" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="Client" Type="Self.Client" Multiplicity="1" />
|
|
|
|
+ <End Role="Card" Type="Self.Card" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="Client">
|
|
<Principal Role="Client">
|
|
<PropertyRef Name="idClient" />
|
|
<PropertyRef Name="idClient" />
|
|
@@ -350,8 +311,8 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Service_CategoryService">
|
|
<Association Name="FK_Service_CategoryService">
|
|
- <End Type="gr672_liiModel.CategoryService" Role="CategoryService" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Service" Role="Service" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="CategoryService" Type="Self.CategoryService" Multiplicity="1" />
|
|
|
|
+ <End Role="Service" Type="Self.Service" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="CategoryService">
|
|
<Principal Role="CategoryService">
|
|
<PropertyRef Name="idCategory" />
|
|
<PropertyRef Name="idCategory" />
|
|
@@ -362,8 +323,8 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_Client">
|
|
<Association Name="FK_Order_Client">
|
|
- <End Type="gr672_liiModel.Client" Role="Client" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="Client" Type="Self.Client" Multiplicity="1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="Client">
|
|
<Principal Role="Client">
|
|
<PropertyRef Name="idClient" />
|
|
<PropertyRef Name="idClient" />
|
|
@@ -374,8 +335,8 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Discount_Order">
|
|
<Association Name="FK_Discount_Order">
|
|
- <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Discount" Role="Discount" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1" />
|
|
|
|
+ <End Role="Discount" Type="Self.Discount" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="Order">
|
|
<Principal Role="Order">
|
|
<PropertyRef Name="idOrder" />
|
|
<PropertyRef Name="idOrder" />
|
|
@@ -386,8 +347,8 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_Payment">
|
|
<Association Name="FK_Order_Payment">
|
|
- <End Type="gr672_liiModel.Payment" Role="Payment" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="Payment" Type="Self.Payment" Multiplicity="1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="Payment">
|
|
<Principal Role="Payment">
|
|
<PropertyRef Name="idPayment" />
|
|
<PropertyRef Name="idPayment" />
|
|
@@ -398,8 +359,8 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_Service">
|
|
<Association Name="FK_Order_Service">
|
|
- <End Type="gr672_liiModel.Service" Role="Service" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="Service" Type="Self.Service" Multiplicity="1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="Service">
|
|
<Principal Role="Service">
|
|
<PropertyRef Name="idService" />
|
|
<PropertyRef Name="idService" />
|
|
@@ -410,8 +371,8 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_User">
|
|
<Association Name="FK_Order_User">
|
|
- <End Type="gr672_liiModel.User" Role="User" Multiplicity="1" />
|
|
|
|
- <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<ReferentialConstraint>
|
|
<Principal Role="User">
|
|
<Principal Role="User">
|
|
<PropertyRef Name="idUser" />
|
|
<PropertyRef Name="idUser" />
|
|
@@ -421,94 +382,131 @@
|
|
</Dependent>
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
|
|
+ <EntityContainer Name="gr672_liiEntities" annotation:LazyLoadingEnabled="true">
|
|
|
|
+ <EntitySet Name="Cards" EntityType="Self.Card" />
|
|
|
|
+ <EntitySet Name="CategoryServices" EntityType="Self.CategoryService" />
|
|
|
|
+ <EntitySet Name="Clients" EntityType="Self.Client" />
|
|
|
|
+ <EntitySet Name="Discounts" EntityType="Self.Discount" />
|
|
|
|
+ <EntitySet Name="Orders" EntityType="Self.Order" />
|
|
|
|
+ <EntitySet Name="Payments" EntityType="Self.Payment" />
|
|
|
|
+ <EntitySet Name="Services" EntityType="Self.Service" />
|
|
|
|
+ <EntitySet Name="Users" EntityType="Self.User" />
|
|
|
|
+ <AssociationSet Name="FK_Card_Client" Association="Self.FK_Card_Client">
|
|
|
|
+ <End Role="Client" EntitySet="Clients" />
|
|
|
|
+ <End Role="Card" EntitySet="Cards" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Service_CategoryService" Association="Self.FK_Service_CategoryService">
|
|
|
|
+ <End Role="CategoryService" EntitySet="CategoryServices" />
|
|
|
|
+ <End Role="Service" EntitySet="Services" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Client" Association="Self.FK_Order_Client">
|
|
|
|
+ <End Role="Client" EntitySet="Clients" />
|
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Discount_Order" Association="Self.FK_Discount_Order">
|
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
|
+ <End Role="Discount" EntitySet="Discounts" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Payment" Association="Self.FK_Order_Payment">
|
|
|
|
+ <End Role="Payment" EntitySet="Payments" />
|
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Service" Association="Self.FK_Order_Service">
|
|
|
|
+ <End Role="Service" EntitySet="Services" />
|
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_User" Association="Self.FK_Order_User">
|
|
|
|
+ <End Role="User" EntitySet="Users" />
|
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ </EntityContainer>
|
|
</Schema>
|
|
</Schema>
|
|
</edmx:ConceptualModels>
|
|
</edmx:ConceptualModels>
|
|
<!-- C-S mapping content -->
|
|
<!-- C-S mapping content -->
|
|
<edmx:Mappings>
|
|
<edmx:Mappings>
|
|
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
- <EntityContainerMapping StorageEntityContainer="Хранилище gr672_liiModelContainer" CdmEntityContainer="gr672_liiEntities">
|
|
|
|
- <EntitySetMapping Name="Card">
|
|
|
|
|
|
+ <EntityContainerMapping StorageEntityContainer="gr672_liiModelStoreContainer" CdmEntityContainer="gr672_liiEntities">
|
|
|
|
+ <EntitySetMapping Name="Cards">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Card">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Card">
|
|
<MappingFragment StoreEntitySet="Card">
|
|
<MappingFragment StoreEntitySet="Card">
|
|
- <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
|
- <ScalarProperty Name="TypeCard" ColumnName="TypeCard" />
|
|
|
|
- <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
|
|
|
|
<ScalarProperty Name="idCard" ColumnName="idCard" />
|
|
<ScalarProperty Name="idCard" ColumnName="idCard" />
|
|
|
|
+ <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
|
|
|
|
+ <ScalarProperty Name="TypeCard" ColumnName="TypeCard" />
|
|
|
|
+ <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="CategoryService">
|
|
|
|
|
|
+ <EntitySetMapping Name="CategoryServices">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.CategoryService">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.CategoryService">
|
|
<MappingFragment StoreEntitySet="CategoryService">
|
|
<MappingFragment StoreEntitySet="CategoryService">
|
|
- <ScalarProperty Name="NameCategory" ColumnName="NameCategory" />
|
|
|
|
<ScalarProperty Name="idCategory" ColumnName="idCategory" />
|
|
<ScalarProperty Name="idCategory" ColumnName="idCategory" />
|
|
|
|
+ <ScalarProperty Name="NameCategory" ColumnName="NameCategory" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="Client">
|
|
|
|
|
|
+ <EntitySetMapping Name="Clients">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Client">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Client">
|
|
<MappingFragment StoreEntitySet="Client">
|
|
<MappingFragment StoreEntitySet="Client">
|
|
- <ScalarProperty Name="TypeClient" ColumnName="TypeClient" />
|
|
|
|
- <ScalarProperty Name="NameClient" ColumnName="NameClient" />
|
|
|
|
<ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
<ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
|
+ <ScalarProperty Name="NameClient" ColumnName="NameClient" />
|
|
|
|
+ <ScalarProperty Name="TypeClient" ColumnName="TypeClient" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="Discount">
|
|
|
|
|
|
+ <EntitySetMapping Name="Discounts">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Discount">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Discount">
|
|
<MappingFragment StoreEntitySet="Discount">
|
|
<MappingFragment StoreEntitySet="Discount">
|
|
- <ScalarProperty Name="idOrder" ColumnName="idOrder" />
|
|
|
|
- <ScalarProperty Name="Procent" ColumnName="Procent" />
|
|
|
|
<ScalarProperty Name="idDiscount" ColumnName="idDiscount" />
|
|
<ScalarProperty Name="idDiscount" ColumnName="idDiscount" />
|
|
|
|
+ <ScalarProperty Name="Procent" ColumnName="Procent" />
|
|
|
|
+ <ScalarProperty Name="idOrder" ColumnName="idOrder" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="Order">
|
|
|
|
|
|
+ <EntitySetMapping Name="Orders">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Order">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Order">
|
|
<MappingFragment StoreEntitySet="Order">
|
|
<MappingFragment StoreEntitySet="Order">
|
|
- <ScalarProperty Name="idPayment" ColumnName="idPayment" />
|
|
|
|
- <ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
|
- <ScalarProperty Name="idService" ColumnName="idService" />
|
|
|
|
- <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
|
- <ScalarProperty Name="CostOrder" ColumnName="CostOrder" />
|
|
|
|
- <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
|
|
|
|
- <ScalarProperty Name="ViewOrder" ColumnName="ViewOrder" />
|
|
|
|
- <ScalarProperty Name="NumberOrder" ColumnName="NumberOrder" />
|
|
|
|
<ScalarProperty Name="idOrder" ColumnName="idOrder" />
|
|
<ScalarProperty Name="idOrder" ColumnName="idOrder" />
|
|
|
|
+ <ScalarProperty Name="NumberOrder" ColumnName="NumberOrder" />
|
|
|
|
+ <ScalarProperty Name="ViewOrder" ColumnName="ViewOrder" />
|
|
|
|
+ <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
|
|
|
|
+ <ScalarProperty Name="CostOrder" ColumnName="CostOrder" />
|
|
|
|
+ <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
|
+ <ScalarProperty Name="idService" ColumnName="idService" />
|
|
|
|
+ <ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
|
+ <ScalarProperty Name="idPayment" ColumnName="idPayment" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="Payment">
|
|
|
|
|
|
+ <EntitySetMapping Name="Payments">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Payment">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Payment">
|
|
<MappingFragment StoreEntitySet="Payment">
|
|
<MappingFragment StoreEntitySet="Payment">
|
|
- <ScalarProperty Name="DatePayment" ColumnName="DatePayment" />
|
|
|
|
- <ScalarProperty Name="NumberPayment" ColumnName="NumberPayment" />
|
|
|
|
<ScalarProperty Name="idPayment" ColumnName="idPayment" />
|
|
<ScalarProperty Name="idPayment" ColumnName="idPayment" />
|
|
|
|
+ <ScalarProperty Name="NumberPayment" ColumnName="NumberPayment" />
|
|
|
|
+ <ScalarProperty Name="DatePayment" ColumnName="DatePayment" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="Service">
|
|
|
|
|
|
+ <EntitySetMapping Name="Services">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Service">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Service">
|
|
<MappingFragment StoreEntitySet="Service">
|
|
<MappingFragment StoreEntitySet="Service">
|
|
- <ScalarProperty Name="idCategory" ColumnName="idCategory" />
|
|
|
|
- <ScalarProperty Name="DescriptionService" ColumnName="DescriptionService" />
|
|
|
|
- <ScalarProperty Name="PriceService" ColumnName="PriceService" />
|
|
|
|
- <ScalarProperty Name="NameService" ColumnName="NameService" />
|
|
|
|
<ScalarProperty Name="idService" ColumnName="idService" />
|
|
<ScalarProperty Name="idService" ColumnName="idService" />
|
|
|
|
+ <ScalarProperty Name="NameService" ColumnName="NameService" />
|
|
|
|
+ <ScalarProperty Name="PriceService" ColumnName="PriceService" />
|
|
|
|
+ <ScalarProperty Name="DescriptionService" ColumnName="DescriptionService" />
|
|
|
|
+ <ScalarProperty Name="idCategory" ColumnName="idCategory" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
- <EntitySetMapping Name="User">
|
|
|
|
|
|
+ <EntitySetMapping Name="Users">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.User">
|
|
<EntityTypeMapping TypeName="gr672_liiModel.User">
|
|
<MappingFragment StoreEntitySet="User">
|
|
<MappingFragment StoreEntitySet="User">
|
|
- <ScalarProperty Name="Role" ColumnName="Role" />
|
|
|
|
- <ScalarProperty Name="ContactNumber" ColumnName="ContactNumber" />
|
|
|
|
- <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
|
|
|
|
- <ScalarProperty Name="FirstName" ColumnName="FirstName" />
|
|
|
|
- <ScalarProperty Name="LastName" ColumnName="LastName" />
|
|
|
|
- <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
|
- <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
|
<ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
<ScalarProperty Name="idUser" ColumnName="idUser" />
|
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
|
+ <ScalarProperty Name="LastName" ColumnName="LastName" />
|
|
|
|
+ <ScalarProperty Name="FirstName" ColumnName="FirstName" />
|
|
|
|
+ <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
|
|
|
|
+ <ScalarProperty Name="ContactNumber" ColumnName="ContactNumber" />
|
|
</MappingFragment>
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntitySetMapping>
|
|
@@ -526,10 +524,10 @@
|
|
<Options>
|
|
<Options>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
- <DesignerProperty Name="EnablePluralization" Value="false" />
|
|
|
|
|
|
+ <DesignerProperty Name="EnablePluralization" Value="true" />
|
|
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
|
|
|
|
|
|
+ <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
|
</DesignerInfoPropertySet>
|
|
</DesignerInfoPropertySet>
|
|
</Options>
|
|
</Options>
|
|
<!-- Diagram content (shape and connector positions) -->
|
|
<!-- Diagram content (shape and connector positions) -->
|