123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
- <!-- EF Runtime content -->
- <edmx:Runtime>
- <!-- SSDL content -->
- <edmx:StorageModels>
- <Schema Namespace="Хранилище user3Model" 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="Client">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
- <Property Name="Birthday" Type="date" />
- <Property Name="RegistrationDate" Type="datetime" Nullable="false" />
- <Property Name="Email" Type="nvarchar" MaxLength="255" />
- <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="GenderCode" Type="nchar" MaxLength="1" Nullable="false" />
- <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
- </EntityType>
- <EntityType Name="ClientService">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ClientID" Type="int" Nullable="false" />
- <Property Name="ServiceID" Type="int" Nullable="false" />
- <Property Name="StartTime" Type="datetime" Nullable="false" />
- <Property Name="Comment" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="Gender">
- <Key>
- <PropertyRef Name="Code" />
- </Key>
- <Property Name="Code" Type="nchar" MaxLength="1" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="10" />
- </EntityType>
- <EntityType Name="Service">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Cost" Type="money" Nullable="false" />
- <Property Name="DurationInMinutes" Type="int" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="Discount" Type="float" />
- <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
- </EntityType>
- <Association Name="FK_Client_Gender">
- <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Gender">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="GenderCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Client">
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Client">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ClientID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Service">
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Service">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище user3ModelContainer">
- <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ClientService" EntityType="Self.ClientService" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
- <End Role="Gender" EntitySet="Gender" />
- <End Role="Client" EntitySet="Client" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
- <End Role="Client" EntitySet="Client" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
- <End Role="Service" EntitySet="Service" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="user3Model" 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">
- <EntityType Name="Client">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="FirstName" 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="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Birthday" Type="DateTime" Precision="0" />
- <Property Name="RegistrationDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="GenderCode" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
- <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
- </EntityType>
- <EntityType Name="ClientService">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ClientID" Type="Int32" Nullable="false" />
- <Property Name="ServiceID" Type="Int32" Nullable="false" />
- <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
- <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
- </EntityType>
- <EntityType Name="Gender">
- <Key>
- <PropertyRef Name="Code" />
- </Key>
- <Property Name="Code" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
- </EntityType>
- <EntityType Name="Service">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="DurationInMinutes" Type="Int32" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Discount" Type="Double" />
- <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
- </EntityType>
- <Association Name="FK_Client_Gender">
- <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Gender">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="GenderCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Client">
- <End Role="Client" Type="Self.Client" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Client">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ClientID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ClientService_Service">
- <End Role="Service" Type="Self.Service" Multiplicity="1" />
- <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Service">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ClientService">
- <PropertyRef Name="ServiceID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Client" EntityType="Self.Client" />
- <EntitySet Name="ClientService" EntityType="Self.ClientService" />
- <EntitySet Name="Gender" EntityType="Self.Gender" />
- <EntitySet Name="Service" EntityType="Self.Service" />
- <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
- <End Role="Gender" EntitySet="Gender" />
- <End Role="Client" EntitySet="Client" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
- <End Role="Client" EntitySet="Client" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
- <End Role="Service" EntitySet="Service" />
- <End Role="ClientService" EntitySet="ClientService" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:ConceptualModels>
- <!-- C-S mapping content -->
- <edmx:Mappings>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="Хранилище user3ModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="Client">
- <EntityTypeMapping TypeName="user3Model.Client">
- <MappingFragment StoreEntitySet="Client">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="FirstName" ColumnName="FirstName" />
- <ScalarProperty Name="LastName" ColumnName="LastName" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="Phone" ColumnName="Phone" />
- <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ClientService">
- <EntityTypeMapping TypeName="user3Model.ClientService">
- <MappingFragment StoreEntitySet="ClientService">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ClientID" ColumnName="ClientID" />
- <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
- <ScalarProperty Name="StartTime" ColumnName="StartTime" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Gender">
- <EntityTypeMapping TypeName="user3Model.Gender">
- <MappingFragment StoreEntitySet="Gender">
- <ScalarProperty Name="Code" ColumnName="Code" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Service">
- <EntityTypeMapping TypeName="user3Model.Service">
- <MappingFragment StoreEntitySet="Service">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="DurationInMinutes" ColumnName="DurationInMinutes" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Discount" ColumnName="Discount" />
- <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- </EntityContainerMapping>
- </Mapping>
- </edmx:Mappings>
- </edmx:Runtime>
- <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
- <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
- <Connection>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
- </DesignerInfoPropertySet>
- </Connection>
- <Options>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="ValidateOnBuild" Value="true" />
- <DesignerProperty Name="EnablePluralization" Value="false" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
- <DesignerProperty Name="UseLegacyProvider" Value="false" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|