123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- <?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="MyTestsDataBaseModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2012" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
- <EntityContainer Name="MyTestsDataBaseModelStoreContainer">
- <EntitySet Name="Answers" EntityType="MyTestsDataBaseModel.Store.Answers" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="Questions" EntityType="MyTestsDataBaseModel.Store.Questions" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="Tests" EntityType="MyTestsDataBaseModel.Store.Tests" store:Type="Tables" Schema="dbo" />
- <EntitySet Name="Users" EntityType="MyTestsDataBaseModel.Store.Users" store:Type="Tables" Schema="dbo" />
- <AssociationSet Name="FK_Answers_Questions" Association="MyTestsDataBaseModel.Store.FK_Answers_Questions">
- <End Role="Questions" EntitySet="Questions" />
- <End Role="Answers" EntitySet="Answers" />
- </AssociationSet>
- <AssociationSet Name="FK_Answers_Users" Association="MyTestsDataBaseModel.Store.FK_Answers_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Answers" EntitySet="Answers" />
- </AssociationSet>
- <AssociationSet Name="FK_Questions_Tests" Association="MyTestsDataBaseModel.Store.FK_Questions_Tests">
- <End Role="Tests" EntitySet="Tests" />
- <End Role="Questions" EntitySet="Questions" />
- </AssociationSet>
- <AssociationSet Name="FK_Tests_Users" Association="MyTestsDataBaseModel.Store.FK_Tests_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Tests" EntitySet="Tests" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="Answers">
- <Key>
- <PropertyRef Name="IdUserAnswer" />
- </Key>
- <Property Name="IdUserAnswer" Type="int" Nullable="false" />
- <Property Name="IdQuestion" Type="int" Nullable="false" />
- <Property Name="IdUser" Type="int" Nullable="false" />
- <Property Name="Answer" Type="nvarchar" Nullable="false" MaxLength="150" />
- </EntityType>
- <EntityType Name="Questions">
- <Key>
- <PropertyRef Name="IdQuestion" />
- </Key>
- <Property Name="IdQuestion" Type="int" Nullable="false" />
- <Property Name="IdTest" Type="int" Nullable="false" />
- <Property Name="Content" Type="nvarchar" Nullable="false" MaxLength="150" />
- <Property Name="Answer" Type="nvarchar" Nullable="false" MaxLength="150" />
- </EntityType>
- <EntityType Name="Tests">
- <Key>
- <PropertyRef Name="IdTest" />
- </Key>
- <Property Name="IdTest" Type="int" Nullable="false" />
- <Property Name="IdUser" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="150" />
- <Property Name="Image" Type="varbinary(max)" Nullable="true" />
- <Property Name="IsAnswersVisible" Type="bit" Nullable="false" />
- <Property Name="IsVisible" Type="bit" Nullable="false" />
- <Property Name="CanAgain" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="IdUser" />
- </Key>
- <Property Name="IdUser" Type="int" Nullable="false" />
- <Property Name="Login" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="Password" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="Email" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="Info" Type="nvarchar" Nullable="true" MaxLength="50" />
- <Property Name="Image" Type="varbinary(max)" Nullable="true" />
- <Property Name="Post" Type="nvarchar" Nullable="false" MaxLength="25" />
- <Property Name="Surname" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" />
- <Property Name="Patronymic" Type="nvarchar" Nullable="false" MaxLength="50" />
- </EntityType>
- <Association Name="FK_Answers_Questions">
- <End Role="Questions" Type="MyTestsDataBaseModel.Store.Questions" Multiplicity="1" />
- <End Role="Answers" Type="MyTestsDataBaseModel.Store.Answers" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Questions">
- <PropertyRef Name="IdQuestion" />
- </Principal>
- <Dependent Role="Answers">
- <PropertyRef Name="IdQuestion" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Answers_Users">
- <End Role="Users" Type="MyTestsDataBaseModel.Store.Users" Multiplicity="1" />
- <End Role="Answers" Type="MyTestsDataBaseModel.Store.Answers" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IdUser" />
- </Principal>
- <Dependent Role="Answers">
- <PropertyRef Name="IdUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Questions_Tests">
- <End Role="Tests" Type="MyTestsDataBaseModel.Store.Tests" Multiplicity="1" />
- <End Role="Questions" Type="MyTestsDataBaseModel.Store.Questions" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tests">
- <PropertyRef Name="IdTest" />
- </Principal>
- <Dependent Role="Questions">
- <PropertyRef Name="IdTest" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tests_Users">
- <End Role="Users" Type="MyTestsDataBaseModel.Store.Users" Multiplicity="1" />
- <End Role="Tests" Type="MyTestsDataBaseModel.Store.Tests" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IdUser" />
- </Principal>
- <Dependent Role="Tests">
- <PropertyRef Name="IdUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="MyTestsDataBaseModel" 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="Answers">
- <Key>
- <PropertyRef Name="IdUserAnswer" />
- </Key>
- <Property Name="IdUserAnswer" Type="Int32" Nullable="false" />
- <Property Name="IdQuestion" Type="Int32" Nullable="false" />
- <Property Name="IdUser" Type="Int32" Nullable="false" />
- <Property Name="Answer" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Questions" Relationship="Self.FK_Answers_Questions" FromRole="Answers" ToRole="Questions" />
- <NavigationProperty Name="Users" Relationship="Self.FK_Answers_Users" FromRole="Answers" ToRole="Users" />
- </EntityType>
- <EntityType Name="Questions">
- <Key>
- <PropertyRef Name="IdQuestion" />
- </Key>
- <Property Name="IdQuestion" Type="Int32" Nullable="false" />
- <Property Name="IdTest" Type="Int32" Nullable="false" />
- <Property Name="Content" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Answer" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Answers" Relationship="Self.FK_Answers_Questions" FromRole="Questions" ToRole="Answers" />
- <NavigationProperty Name="Tests" Relationship="Self.FK_Questions_Tests" FromRole="Questions" ToRole="Tests" />
- </EntityType>
- <EntityType Name="Tests">
- <Key>
- <PropertyRef Name="IdTest" />
- </Key>
- <Property Name="IdTest" Type="Int32" Nullable="false" />
- <Property Name="IdUser" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Image" Type="Binary" MaxLength="Max" FixedLength="false" />
- <NavigationProperty Name="Questions" Relationship="Self.FK_Questions_Tests" FromRole="Tests" ToRole="Questions" />
- <NavigationProperty Name="Users" Relationship="Self.FK_Tests_Users" FromRole="Tests" ToRole="Users" />
- <Property Name="IsAnswersVisible" Type="Boolean" Nullable="false" />
- <Property Name="IsVisible" Type="Boolean" Nullable="false" />
- <Property Name="CanAgain" Type="Boolean" Nullable="false" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="IdUser" />
- </Key>
- <Property Name="IdUser" Type="Int32" Nullable="false" />
- <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="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Info" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Image" Type="Binary" MaxLength="Max" FixedLength="false" />
- <NavigationProperty Name="Answers" Relationship="Self.FK_Answers_Users" FromRole="Users" ToRole="Answers" />
- <NavigationProperty Name="Tests" Relationship="Self.FK_Tests_Users" FromRole="Users" ToRole="Tests" />
- <Property Name="Post" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <Association Name="FK_Answers_Questions">
- <End Role="Questions" Type="Self.Questions" Multiplicity="1" />
- <End Role="Answers" Type="Self.Answers" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Questions">
- <PropertyRef Name="IdQuestion" />
- </Principal>
- <Dependent Role="Answers">
- <PropertyRef Name="IdQuestion" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Answers_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="Answers" Type="Self.Answers" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IdUser" />
- </Principal>
- <Dependent Role="Answers">
- <PropertyRef Name="IdUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Questions_Tests">
- <End Role="Tests" Type="Self.Tests" Multiplicity="1" />
- <End Role="Questions" Type="Self.Questions" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tests">
- <PropertyRef Name="IdTest" />
- </Principal>
- <Dependent Role="Questions">
- <PropertyRef Name="IdTest" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tests_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="Tests" Type="Self.Tests" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IdUser" />
- </Principal>
- <Dependent Role="Tests">
- <PropertyRef Name="IdUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="MyTestsDataBaseEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Answers" EntityType="Self.Answers" />
- <EntitySet Name="Questions" EntityType="Self.Questions" />
- <EntitySet Name="Tests" EntityType="Self.Tests" />
- <EntitySet Name="Users" EntityType="Self.Users" />
- <AssociationSet Name="FK_Answers_Questions" Association="Self.FK_Answers_Questions">
- <End Role="Questions" EntitySet="Questions" />
- <End Role="Answers" EntitySet="Answers" />
- </AssociationSet>
- <AssociationSet Name="FK_Answers_Users" Association="Self.FK_Answers_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Answers" EntitySet="Answers" />
- </AssociationSet>
- <AssociationSet Name="FK_Questions_Tests" Association="Self.FK_Questions_Tests">
- <End Role="Tests" EntitySet="Tests" />
- <End Role="Questions" EntitySet="Questions" />
- </AssociationSet>
- <AssociationSet Name="FK_Tests_Users" Association="Self.FK_Tests_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Tests" EntitySet="Tests" />
- </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="MyTestsDataBaseModelStoreContainer" CdmEntityContainer="MyTestsDataBaseEntities">
- <EntitySetMapping Name="Answers">
- <EntityTypeMapping TypeName="IsTypeOf(MyTestsDataBaseModel.Answers)">
- <MappingFragment StoreEntitySet="Answers">
- <ScalarProperty Name="IdUserAnswer" ColumnName="IdUserAnswer" />
- <ScalarProperty Name="IdQuestion" ColumnName="IdQuestion" />
- <ScalarProperty Name="IdUser" ColumnName="IdUser" />
- <ScalarProperty Name="Answer" ColumnName="Answer" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Questions">
- <EntityTypeMapping TypeName="IsTypeOf(MyTestsDataBaseModel.Questions)">
- <MappingFragment StoreEntitySet="Questions">
- <ScalarProperty Name="IdQuestion" ColumnName="IdQuestion" />
- <ScalarProperty Name="IdTest" ColumnName="IdTest" />
- <ScalarProperty Name="Content" ColumnName="Content" />
- <ScalarProperty Name="Answer" ColumnName="Answer" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Tests">
- <EntityTypeMapping TypeName="IsTypeOf(MyTestsDataBaseModel.Tests)">
- <MappingFragment StoreEntitySet="Tests">
- <ScalarProperty Name="IdTest" ColumnName="IdTest" />
- <ScalarProperty Name="IdUser" ColumnName="IdUser" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- <ScalarProperty Name="IsAnswersVisible" ColumnName="IsAnswersVisible" />
- <ScalarProperty Name="IsVisible" ColumnName="IsVisible" />
- <ScalarProperty Name="CanAgain" ColumnName="CanAgain" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Users">
- <EntityTypeMapping TypeName="IsTypeOf(MyTestsDataBaseModel.Users)">
- <MappingFragment StoreEntitySet="Users">
- <ScalarProperty Name="IdUser" ColumnName="IdUser" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="Info" ColumnName="Info" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- <ScalarProperty Name="Post" ColumnName="Post" />
- <ScalarProperty Name="Surname" ColumnName="Surname" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- </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>
|