|
@@ -4,7 +4,7 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <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">
|
|
|
+ <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">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idCard" />
|
|
@@ -65,7 +65,7 @@
|
|
|
</Key>
|
|
|
<Property Name="idService" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
<Property Name="NameService" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
- <Property Name="PriceService" Type="money" Nullable="false" />
|
|
|
+ <Property Name="PriceService" Type="int" Nullable="false" />
|
|
|
<Property Name="DescriptionService" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
<Property Name="idCategory" Type="int" Nullable="false" />
|
|
|
</EntityType>
|
|
@@ -94,7 +94,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Discount_Order">
|
|
|
- <End Role="Order" Type="Self.Order" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Discount" Type="Self.Discount" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Order">
|
|
@@ -118,7 +120,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Order_Payment">
|
|
|
- <End Role="Payment" Type="Self.Payment" Multiplicity="1" />
|
|
|
+ <End Role="Payment" Type="Self.Payment" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Payment">
|
|
@@ -130,7 +134,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Order_Service">
|
|
|
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
|
|
|
+ <End Role="Service" Type="Self.Service" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Service">
|
|
@@ -154,7 +160,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Service_CategoryService">
|
|
|
- <End Role="CategoryService" Type="Self.CategoryService" Multiplicity="1" />
|
|
|
+ <End Role="CategoryService" Type="Self.CategoryService" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="Service" Type="Self.Service" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="CategoryService">
|
|
@@ -203,38 +211,75 @@
|
|
|
<End Role="Service" EntitySet="Service" />
|
|
|
</AssociationSet>
|
|
|
</EntityContainer>
|
|
|
- </Schema>
|
|
|
- </edmx:StorageModels>
|
|
|
+ </Schema></edmx:StorageModels>
|
|
|
<!-- CSDL content -->
|
|
|
<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">
|
|
|
+ <EntityContainer Name="gr672_liiEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Cards" EntityType="gr672_liiModel.Card" />
|
|
|
+ <EntitySet Name="CategoryServices" EntityType="gr672_liiModel.CategoryService" />
|
|
|
+ <EntitySet Name="Clients" EntityType="gr672_liiModel.Client" />
|
|
|
+ <EntitySet Name="Discounts" EntityType="gr672_liiModel.Discount" />
|
|
|
+ <EntitySet Name="Orders" EntityType="gr672_liiModel.Order" />
|
|
|
+ <EntitySet Name="Payments" EntityType="gr672_liiModel.Payment" />
|
|
|
+ <EntitySet Name="Services" EntityType="gr672_liiModel.Service" />
|
|
|
+ <EntitySet Name="Users" EntityType="gr672_liiModel.User" />
|
|
|
+ <AssociationSet Name="FK_Card_Client" Association="gr672_liiModel.FK_Card_Client">
|
|
|
+ <End Role="Client" EntitySet="Clients" />
|
|
|
+ <End Role="Card" EntitySet="Cards" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Service_CategoryService" Association="gr672_liiModel.FK_Service_CategoryService">
|
|
|
+ <End Role="CategoryService" EntitySet="CategoryServices" />
|
|
|
+ <End Role="Service" EntitySet="Services" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_Client" Association="gr672_liiModel.FK_Order_Client">
|
|
|
+ <End Role="Client" EntitySet="Clients" />
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Discount_Order" Association="gr672_liiModel.FK_Discount_Order">
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ <End Role="Discount" EntitySet="Discounts" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_Payment" Association="gr672_liiModel.FK_Order_Payment">
|
|
|
+ <End Role="Payment" EntitySet="Payments" />
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_Service" Association="gr672_liiModel.FK_Order_Service">
|
|
|
+ <End Role="Service" EntitySet="Services" />
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_User" Association="gr672_liiModel.FK_Order_User">
|
|
|
+ <End Role="User" EntitySet="Users" />
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
<EntityType Name="Card">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idCard" />
|
|
|
</Key>
|
|
|
<Property Name="idCard" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="NumberCard" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="TypeCard" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="TypeCard" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
|
- <NavigationProperty Name="Client" Relationship="Self.FK_Card_Client" FromRole="Card" ToRole="Client" />
|
|
|
+ <NavigationProperty Name="Client" Relationship="gr672_liiModel.FK_Card_Client" FromRole="Card" ToRole="Client" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="CategoryService">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idCategory" />
|
|
|
</Key>
|
|
|
<Property Name="idCategory" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <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" />
|
|
|
+ <Property Name="NameCategory" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Services" Relationship="gr672_liiModel.FK_Service_CategoryService" FromRole="CategoryService" ToRole="Service" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Client">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idClient" />
|
|
|
</Key>
|
|
|
<Property Name="idClient" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <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" />
|
|
|
+ <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="Cards" Relationship="gr672_liiModel.FK_Card_Client" FromRole="Client" ToRole="Card" />
|
|
|
+ <NavigationProperty Name="Orders" Relationship="gr672_liiModel.FK_Order_Client" FromRole="Client" ToRole="Order" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Discount">
|
|
|
<Key>
|
|
@@ -243,7 +288,7 @@
|
|
|
<Property Name="idDiscount" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="Procent" Type="Int32" Nullable="false" />
|
|
|
<Property Name="idOrder" Type="Int32" Nullable="false" />
|
|
|
- <NavigationProperty Name="Order" Relationship="Self.FK_Discount_Order" FromRole="Discount" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="gr672_liiModel.FK_Discount_Order" FromRole="Discount" ToRole="Order" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Order">
|
|
|
<Key>
|
|
@@ -251,18 +296,18 @@
|
|
|
</Key>
|
|
|
<Property Name="idOrder" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="NumberOrder" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="ViewOrder" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ViewOrder" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
<Property Name="CostOrder" Type="Int32" Nullable="false" />
|
|
|
<Property Name="idClient" Type="Int32" Nullable="false" />
|
|
|
<Property Name="idService" Type="Int32" Nullable="false" />
|
|
|
<Property Name="idUser" Type="Int32" Nullable="false" />
|
|
|
<Property Name="idPayment" Type="Int32" Nullable="false" />
|
|
|
- <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" />
|
|
|
+ <NavigationProperty Name="Client" Relationship="gr672_liiModel.FK_Order_Client" FromRole="Order" ToRole="Client" />
|
|
|
+ <NavigationProperty Name="Discounts" 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" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Payment">
|
|
|
<Key>
|
|
@@ -271,36 +316,36 @@
|
|
|
<Property Name="idPayment" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="NumberPayment" Type="Int32" Nullable="false" />
|
|
|
<Property Name="DatePayment" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
- <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Payment" FromRole="Payment" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Orders" Relationship="gr672_liiModel.FK_Order_Payment" FromRole="Payment" ToRole="Order" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Service">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idService" />
|
|
|
</Key>
|
|
|
<Property Name="idService" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <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="NameService" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="PriceService" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="DescriptionService" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="idCategory" Type="Int32" Nullable="false" />
|
|
|
- <NavigationProperty Name="CategoryService" Relationship="Self.FK_Service_CategoryService" FromRole="Service" ToRole="CategoryService" />
|
|
|
- <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Service" FromRole="Service" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="CategoryService" Relationship="gr672_liiModel.FK_Service_CategoryService" FromRole="Service" ToRole="CategoryService" />
|
|
|
+ <NavigationProperty Name="Orders" Relationship="gr672_liiModel.FK_Order_Service" FromRole="Service" ToRole="Order" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="User">
|
|
|
<Key>
|
|
|
<PropertyRef Name="idUser" />
|
|
|
</Key>
|
|
|
<Property Name="idUser" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <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="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" />
|
|
|
<Property Name="ContactNumber" Type="Int32" Nullable="false" />
|
|
|
- <NavigationProperty Name="Orders" Relationship="Self.FK_Order_User" FromRole="User" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Orders" Relationship="gr672_liiModel.FK_Order_User" FromRole="User" ToRole="Order" />
|
|
|
</EntityType>
|
|
|
<Association Name="FK_Card_Client">
|
|
|
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
|
|
|
- <End Role="Card" Type="Self.Card" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.Client" Role="Client" Multiplicity="1" />
|
|
|
+ <End Type="gr672_liiModel.Card" Role="Card" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Client">
|
|
|
<PropertyRef Name="idClient" />
|
|
@@ -311,8 +356,10 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Service_CategoryService">
|
|
|
- <End Role="CategoryService" Type="Self.CategoryService" Multiplicity="1" />
|
|
|
- <End Role="Service" Type="Self.Service" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.CategoryService" Role="CategoryService" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Type="gr672_liiModel.Service" Role="Service" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="CategoryService">
|
|
|
<PropertyRef Name="idCategory" />
|
|
@@ -323,8 +370,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Order_Client">
|
|
|
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
|
|
|
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.Client" Role="Client" Multiplicity="1" />
|
|
|
+ <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Client">
|
|
|
<PropertyRef Name="idClient" />
|
|
@@ -335,8 +382,10 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Discount_Order">
|
|
|
- <End Role="Order" Type="Self.Order" Multiplicity="1" />
|
|
|
- <End Role="Discount" Type="Self.Discount" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Type="gr672_liiModel.Discount" Role="Discount" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Order">
|
|
|
<PropertyRef Name="idOrder" />
|
|
@@ -347,8 +396,10 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Order_Payment">
|
|
|
- <End Role="Payment" Type="Self.Payment" Multiplicity="1" />
|
|
|
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.Payment" Role="Payment" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Payment">
|
|
|
<PropertyRef Name="idPayment" />
|
|
@@ -359,8 +410,10 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Order_Service">
|
|
|
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
|
|
|
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.Service" Role="Service" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Service">
|
|
|
<PropertyRef Name="idService" />
|
|
@@ -371,8 +424,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Order_User">
|
|
|
- <End Role="User" Type="Self.User" Multiplicity="1" />
|
|
|
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <End Type="gr672_liiModel.User" Role="User" Multiplicity="1" />
|
|
|
+ <End Type="gr672_liiModel.Order" Role="Order" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="User">
|
|
|
<PropertyRef Name="idUser" />
|
|
@@ -382,44 +435,6 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</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>
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|
|
@@ -429,84 +444,84 @@
|
|
|
<EntitySetMapping Name="Cards">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Card">
|
|
|
<MappingFragment StoreEntitySet="Card">
|
|
|
- <ScalarProperty Name="idCard" ColumnName="idCard" />
|
|
|
- <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
|
|
|
- <ScalarProperty Name="TypeCard" ColumnName="TypeCard" />
|
|
|
<ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
+ <ScalarProperty Name="TypeCard" ColumnName="TypeCard" />
|
|
|
+ <ScalarProperty Name="NumberCard" ColumnName="NumberCard" />
|
|
|
+ <ScalarProperty Name="idCard" ColumnName="idCard" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="CategoryServices">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.CategoryService">
|
|
|
<MappingFragment StoreEntitySet="CategoryService">
|
|
|
- <ScalarProperty Name="idCategory" ColumnName="idCategory" />
|
|
|
<ScalarProperty Name="NameCategory" ColumnName="NameCategory" />
|
|
|
+ <ScalarProperty Name="idCategory" ColumnName="idCategory" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Clients">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Client">
|
|
|
<MappingFragment StoreEntitySet="Client">
|
|
|
- <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
- <ScalarProperty Name="NameClient" ColumnName="NameClient" />
|
|
|
<ScalarProperty Name="TypeClient" ColumnName="TypeClient" />
|
|
|
+ <ScalarProperty Name="NameClient" ColumnName="NameClient" />
|
|
|
+ <ScalarProperty Name="idClient" ColumnName="idClient" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Discounts">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Discount">
|
|
|
<MappingFragment StoreEntitySet="Discount">
|
|
|
- <ScalarProperty Name="idDiscount" ColumnName="idDiscount" />
|
|
|
- <ScalarProperty Name="Procent" ColumnName="Procent" />
|
|
|
<ScalarProperty Name="idOrder" ColumnName="idOrder" />
|
|
|
+ <ScalarProperty Name="Procent" ColumnName="Procent" />
|
|
|
+ <ScalarProperty Name="idDiscount" ColumnName="idDiscount" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Orders">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Order">
|
|
|
<MappingFragment StoreEntitySet="Order">
|
|
|
- <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" />
|
|
|
+ <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" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Payments">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Payment">
|
|
|
<MappingFragment StoreEntitySet="Payment">
|
|
|
- <ScalarProperty Name="idPayment" ColumnName="idPayment" />
|
|
|
- <ScalarProperty Name="NumberPayment" ColumnName="NumberPayment" />
|
|
|
<ScalarProperty Name="DatePayment" ColumnName="DatePayment" />
|
|
|
+ <ScalarProperty Name="NumberPayment" ColumnName="NumberPayment" />
|
|
|
+ <ScalarProperty Name="idPayment" ColumnName="idPayment" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Services">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.Service">
|
|
|
<MappingFragment StoreEntitySet="Service">
|
|
|
- <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" />
|
|
|
+ <ScalarProperty Name="DescriptionService" ColumnName="DescriptionService" />
|
|
|
+ <ScalarProperty Name="PriceService" ColumnName="PriceService" />
|
|
|
+ <ScalarProperty Name="NameService" ColumnName="NameService" />
|
|
|
+ <ScalarProperty Name="idService" ColumnName="idService" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Users">
|
|
|
<EntityTypeMapping TypeName="gr672_liiModel.User">
|
|
|
<MappingFragment StoreEntitySet="User">
|
|
|
- <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" />
|
|
|
+ <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" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|