123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- <?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="Хранилище ExamPm01Model" 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="metrics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="metric" Type="varchar(max)" />
- </EntityType>
- <EntityType Name="posts">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="title" Type="varchar" MaxLength="30" />
- <Property Name="id_role" Type="int" />
- </EntityType>
- <EntityType Name="postsmetrics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="id_metric" Type="int" />
- <Property Name="id_post" Type="int" />
- </EntityType>
- <EntityType Name="roles">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="role" Type="varchar" MaxLength="15" />
- </EntityType>
- <EntityType Name="users">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="surname" Type="varchar" MaxLength="30" />
- <Property Name="firstname" Type="varchar" MaxLength="20" />
- <Property Name="patronymic" Type="varchar" MaxLength="35" />
- <Property Name="id_post" Type="int" />
- <Property Name="email" Type="varchar" MaxLength="50" />
- <Property Name="password" Type="varchar(max)" />
- </EntityType>
- <EntityType Name="usersmetrics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="id_user" Type="int" />
- <Property Name="id_metric" Type="int" />
- <Property Name="coefficient" Type="float" />
- <Property Name="dateofachievement" Type="date" />
- </EntityType>
- <Association Name="posts_roles_fk">
- <End Role="roles" Type="Self.roles" Multiplicity="0..1" />
- <End Role="posts" Type="Self.posts" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="roles">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="posts">
- <PropertyRef Name="id_role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="postsmetrics_id_metric_fkey">
- <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
- <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="metrics">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="postsmetrics">
- <PropertyRef Name="id_metric" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="postsmetrics_id_post_fkey">
- <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
- <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="posts">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="postsmetrics">
- <PropertyRef Name="id_post" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="users_id_post_fkey">
- <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
- <End Role="users" Type="Self.users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="posts">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="users">
- <PropertyRef Name="id_post" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="usersmetrics_id_metric_fkey">
- <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
- <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="metrics">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="usersmetrics">
- <PropertyRef Name="id_metric" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="usersmetrics_id_user_fkey">
- <End Role="users" Type="Self.users" Multiplicity="0..1" />
- <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="users">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="usersmetrics">
- <PropertyRef Name="id_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище ExamPm01ModelContainer">
- <EntitySet Name="metrics" EntityType="Self.metrics" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="posts" EntityType="Self.posts" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="postsmetrics" EntityType="Self.postsmetrics" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="roles" EntityType="Self.roles" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="users" EntityType="Self.users" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="usersmetrics" EntityType="Self.usersmetrics" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="posts_roles_fk" Association="Self.posts_roles_fk">
- <End Role="roles" EntitySet="roles" />
- <End Role="posts" EntitySet="posts" />
- </AssociationSet>
- <AssociationSet Name="postsmetrics_id_metric_fkey" Association="Self.postsmetrics_id_metric_fkey">
- <End Role="metrics" EntitySet="metrics" />
- <End Role="postsmetrics" EntitySet="postsmetrics" />
- </AssociationSet>
- <AssociationSet Name="postsmetrics_id_post_fkey" Association="Self.postsmetrics_id_post_fkey">
- <End Role="posts" EntitySet="posts" />
- <End Role="postsmetrics" EntitySet="postsmetrics" />
- </AssociationSet>
- <AssociationSet Name="users_id_post_fkey" Association="Self.users_id_post_fkey">
- <End Role="posts" EntitySet="posts" />
- <End Role="users" EntitySet="users" />
- </AssociationSet>
- <AssociationSet Name="usersmetrics_id_metric_fkey" Association="Self.usersmetrics_id_metric_fkey">
- <End Role="metrics" EntitySet="metrics" />
- <End Role="usersmetrics" EntitySet="usersmetrics" />
- </AssociationSet>
- <AssociationSet Name="usersmetrics_id_user_fkey" Association="Self.usersmetrics_id_user_fkey">
- <End Role="users" EntitySet="users" />
- <End Role="usersmetrics" EntitySet="usersmetrics" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="ExamPm01Model" 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="metrics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="metric" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="postsmetrics" Relationship="Self.postsmetrics_id_metric_fkey" FromRole="metrics" ToRole="postsmetrics" />
- <NavigationProperty Name="usersmetrics" Relationship="Self.usersmetrics_id_metric_fkey" FromRole="metrics" ToRole="usersmetrics" />
- </EntityType>
- <EntityType Name="posts">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="title" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
- <Property Name="id_role" Type="Int32" />
- <NavigationProperty Name="roles" Relationship="Self.posts_roles_fk" FromRole="posts" ToRole="roles" />
- <NavigationProperty Name="postsmetrics" Relationship="Self.postsmetrics_id_post_fkey" FromRole="posts" ToRole="postsmetrics" />
- <NavigationProperty Name="users" Relationship="Self.users_id_post_fkey" FromRole="posts" ToRole="users" />
- </EntityType>
- <EntityType Name="postsmetrics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="id_metric" Type="Int32" />
- <Property Name="id_post" Type="Int32" />
- <NavigationProperty Name="metrics" Relationship="Self.postsmetrics_id_metric_fkey" FromRole="postsmetrics" ToRole="metrics" />
- <NavigationProperty Name="posts" Relationship="Self.postsmetrics_id_post_fkey" FromRole="postsmetrics" ToRole="posts" />
- </EntityType>
- <EntityType Name="roles">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="role" Type="String" MaxLength="15" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="posts" Relationship="Self.posts_roles_fk" FromRole="roles" ToRole="posts" />
- </EntityType>
- <EntityType Name="users">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="surname" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
- <Property Name="firstname" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
- <Property Name="patronymic" Type="String" MaxLength="35" FixedLength="false" Unicode="false" />
- <Property Name="id_post" Type="Int32" />
- <Property Name="email" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="password" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="posts" Relationship="Self.users_id_post_fkey" FromRole="users" ToRole="posts" />
- <NavigationProperty Name="usersmetrics" Relationship="Self.usersmetrics_id_user_fkey" FromRole="users" ToRole="usersmetrics" />
- </EntityType>
- <EntityType Name="usersmetrics">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="id_user" Type="Int32" />
- <Property Name="id_metric" Type="Int32" />
- <Property Name="coefficient" Type="Double" />
- <Property Name="dateofachievement" Type="DateTime" Precision="0" />
- <NavigationProperty Name="metrics" Relationship="Self.usersmetrics_id_metric_fkey" FromRole="usersmetrics" ToRole="metrics" />
- <NavigationProperty Name="users" Relationship="Self.usersmetrics_id_user_fkey" FromRole="usersmetrics" ToRole="users" />
- </EntityType>
- <Association Name="postsmetrics_id_metric_fkey">
- <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
- <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="metrics">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="postsmetrics">
- <PropertyRef Name="id_metric" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="usersmetrics_id_metric_fkey">
- <End Role="metrics" Type="Self.metrics" Multiplicity="0..1" />
- <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="metrics">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="usersmetrics">
- <PropertyRef Name="id_metric" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="posts_roles_fk">
- <End Role="roles" Type="Self.roles" Multiplicity="0..1" />
- <End Role="posts" Type="Self.posts" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="roles">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="posts">
- <PropertyRef Name="id_role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="postsmetrics_id_post_fkey">
- <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
- <End Role="postsmetrics" Type="Self.postsmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="posts">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="postsmetrics">
- <PropertyRef Name="id_post" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="users_id_post_fkey">
- <End Role="posts" Type="Self.posts" Multiplicity="0..1" />
- <End Role="users" Type="Self.users" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="posts">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="users">
- <PropertyRef Name="id_post" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="usersmetrics_id_user_fkey">
- <End Role="users" Type="Self.users" Multiplicity="0..1" />
- <End Role="usersmetrics" Type="Self.usersmetrics" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="users">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="usersmetrics">
- <PropertyRef Name="id_user" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="metrics" EntityType="Self.metrics" />
- <EntitySet Name="posts" EntityType="Self.posts" />
- <EntitySet Name="postsmetrics" EntityType="Self.postsmetrics" />
- <EntitySet Name="roles" EntityType="Self.roles" />
- <EntitySet Name="users" EntityType="Self.users" />
- <EntitySet Name="usersmetrics" EntityType="Self.usersmetrics" />
- <AssociationSet Name="postsmetrics_id_metric_fkey" Association="Self.postsmetrics_id_metric_fkey">
- <End Role="metrics" EntitySet="metrics" />
- <End Role="postsmetrics" EntitySet="postsmetrics" />
- </AssociationSet>
- <AssociationSet Name="usersmetrics_id_metric_fkey" Association="Self.usersmetrics_id_metric_fkey">
- <End Role="metrics" EntitySet="metrics" />
- <End Role="usersmetrics" EntitySet="usersmetrics" />
- </AssociationSet>
- <AssociationSet Name="posts_roles_fk" Association="Self.posts_roles_fk">
- <End Role="roles" EntitySet="roles" />
- <End Role="posts" EntitySet="posts" />
- </AssociationSet>
- <AssociationSet Name="postsmetrics_id_post_fkey" Association="Self.postsmetrics_id_post_fkey">
- <End Role="posts" EntitySet="posts" />
- <End Role="postsmetrics" EntitySet="postsmetrics" />
- </AssociationSet>
- <AssociationSet Name="users_id_post_fkey" Association="Self.users_id_post_fkey">
- <End Role="posts" EntitySet="posts" />
- <End Role="users" EntitySet="users" />
- </AssociationSet>
- <AssociationSet Name="usersmetrics_id_user_fkey" Association="Self.usersmetrics_id_user_fkey">
- <End Role="users" EntitySet="users" />
- <End Role="usersmetrics" EntitySet="usersmetrics" />
- </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="Хранилище ExamPm01ModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="metrics">
- <EntityTypeMapping TypeName="ExamPm01Model.metrics">
- <MappingFragment StoreEntitySet="metrics">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="metric" ColumnName="metric" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="posts">
- <EntityTypeMapping TypeName="ExamPm01Model.posts">
- <MappingFragment StoreEntitySet="posts">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="title" ColumnName="title" />
- <ScalarProperty Name="id_role" ColumnName="id_role" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="postsmetrics">
- <EntityTypeMapping TypeName="ExamPm01Model.postsmetrics">
- <MappingFragment StoreEntitySet="postsmetrics">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="id_metric" ColumnName="id_metric" />
- <ScalarProperty Name="id_post" ColumnName="id_post" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="roles">
- <EntityTypeMapping TypeName="ExamPm01Model.roles">
- <MappingFragment StoreEntitySet="roles">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="role" ColumnName="role" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="users">
- <EntityTypeMapping TypeName="ExamPm01Model.users">
- <MappingFragment StoreEntitySet="users">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="surname" ColumnName="surname" />
- <ScalarProperty Name="firstname" ColumnName="firstname" />
- <ScalarProperty Name="patronymic" ColumnName="patronymic" />
- <ScalarProperty Name="id_post" ColumnName="id_post" />
- <ScalarProperty Name="email" ColumnName="email" />
- <ScalarProperty Name="password" ColumnName="password" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="usersmetrics">
- <EntityTypeMapping TypeName="ExamPm01Model.usersmetrics">
- <MappingFragment StoreEntitySet="usersmetrics">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="id_user" ColumnName="id_user" />
- <ScalarProperty Name="id_metric" ColumnName="id_metric" />
- <ScalarProperty Name="coefficient" ColumnName="coefficient" />
- <ScalarProperty Name="dateofachievement" ColumnName="dateofachievement" />
- </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>
|