|
@@ -4,7 +4,7 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <Schema Namespace="MyTestsDataBaseModel.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="Хранилище MyTestsDataBaseModel" 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="Answers">
|
|
|
<Key>
|
|
|
<PropertyRef Name="IdUserAnswer" />
|
|
@@ -23,16 +23,6 @@
|
|
|
<Property Name="Content" Type="nvarchar" MaxLength="150" Nullable="false" />
|
|
|
<Property Name="Answer" Type="nvarchar" MaxLength="150" Nullable="false" />
|
|
|
</EntityType>
|
|
|
- <EntityType Name="sysdiagrams">
|
|
|
- <Key>
|
|
|
- <PropertyRef Name="diagram_id" />
|
|
|
- </Key>
|
|
|
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
|
|
|
- <Property Name="principal_id" Type="int" Nullable="false" />
|
|
|
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
- <Property Name="version" Type="int" />
|
|
|
- <Property Name="definition" Type="varbinary(max)" />
|
|
|
- </EntityType>
|
|
|
<EntityType Name="Tests">
|
|
|
<Key>
|
|
|
<PropertyRef Name="IdTest" />
|
|
@@ -101,10 +91,9 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <EntityContainer Name="MyTestsDataBaseModelStoreContainer">
|
|
|
+ <EntityContainer Name="Хранилище MyTestsDataBaseModelContainer">
|
|
|
<EntitySet Name="Answers" EntityType="Self.Answers" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Questions" EntityType="Self.Questions" Schema="dbo" store:Type="Tables" />
|
|
|
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Tests" EntityType="Self.Tests" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
|
|
|
<AssociationSet Name="FK_Answers_Questions" Association="Self.FK_Answers_Questions">
|
|
@@ -124,10 +113,22 @@
|
|
|
<End Role="Tests" EntitySet="Tests" />
|
|
|
</AssociationSet>
|
|
|
</EntityContainer>
|
|
|
- </Schema></edmx:StorageModels>
|
|
|
+ </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" />
|
|
@@ -135,9 +136,9 @@
|
|
|
<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" />
|
|
|
- <Property Name="Answer" Type="String" Nullable="false" MaxLength="150" FixedLength="false" Unicode="true" />
|
|
|
- <NavigationProperty Name="Answers" Relationship="MyTestsDataBaseModel.FK_Answers_Questions" FromRole="Questions" ToRole="Answers" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Tests">
|
|
|
<Key>
|
|
@@ -160,9 +161,33 @@
|
|
|
<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" />
|
|
|
- <NavigationProperty Name="Answers" Relationship="MyTestsDataBaseModel.FK_Answers_Users" FromRole="Users" ToRole="Answers" />
|
|
|
</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="*" />
|
|
@@ -188,134 +213,78 @@
|
|
|
</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_Questions_Tests" Association="Self.FK_Questions_Tests">
|
|
|
- <End Role="Tests" EntitySet="Tests" />
|
|
|
+ <AssociationSet Name="FK_Answers_Questions" Association="Self.FK_Answers_Questions">
|
|
|
<End Role="Questions" EntitySet="Questions" />
|
|
|
+ <End Role="Answers" EntitySet="Answers" />
|
|
|
</AssociationSet>
|
|
|
- <AssociationSet Name="FK_Tests_Users" Association="Self.FK_Tests_Users">
|
|
|
+ <AssociationSet Name="FK_Answers_Users" Association="Self.FK_Answers_Users">
|
|
|
<End Role="Users" EntitySet="Users" />
|
|
|
- <End Role="Tests" EntitySet="Tests" />
|
|
|
+ <End Role="Answers" EntitySet="Answers" />
|
|
|
</AssociationSet>
|
|
|
- <EntitySet Name="sysdiagrams" EntityType="MyTestsDataBaseModel.sysdiagrams" />
|
|
|
- <EntitySet Name="Answers" EntityType="MyTestsDataBaseModel.Answers" />
|
|
|
- <AssociationSet Name="FK_Answers_Questions" Association="MyTestsDataBaseModel.FK_Answers_Questions">
|
|
|
+ <AssociationSet Name="FK_Questions_Tests" Association="Self.FK_Questions_Tests">
|
|
|
+ <End Role="Tests" EntitySet="Tests" />
|
|
|
<End Role="Questions" EntitySet="Questions" />
|
|
|
- <End Role="Answers" EntitySet="Answers" />
|
|
|
</AssociationSet>
|
|
|
- <AssociationSet Name="FK_Answers_Users" Association="MyTestsDataBaseModel.FK_Answers_Users">
|
|
|
+ <AssociationSet Name="FK_Tests_Users" Association="Self.FK_Tests_Users">
|
|
|
<End Role="Users" EntitySet="Users" />
|
|
|
- <End Role="Answers" EntitySet="Answers" />
|
|
|
+ <End Role="Tests" EntitySet="Tests" />
|
|
|
</AssociationSet>
|
|
|
</EntityContainer>
|
|
|
- <EntityType Name="sysdiagrams">
|
|
|
- <Key>
|
|
|
- <PropertyRef Name="diagram_id" />
|
|
|
- </Key>
|
|
|
- <Property Name="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
|
|
|
- <Property Name="principal_id" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <Property Name="version" Type="Int32" />
|
|
|
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
|
- </EntityType>
|
|
|
- <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" Nullable="false" MaxLength="150" FixedLength="false" Unicode="true" />
|
|
|
- <NavigationProperty Name="Questions" Relationship="MyTestsDataBaseModel.FK_Answers_Questions" FromRole="Answers" ToRole="Questions" />
|
|
|
- <NavigationProperty Name="Users" Relationship="MyTestsDataBaseModel.FK_Answers_Users" FromRole="Answers" ToRole="Users" />
|
|
|
- </EntityType>
|
|
|
- <Association Name="FK_Answers_Questions">
|
|
|
- <End Type="MyTestsDataBaseModel.Questions" Role="Questions" Multiplicity="1" />
|
|
|
- <End Type="MyTestsDataBaseModel.Answers" Role="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 Type="MyTestsDataBaseModel.Users" Role="Users" Multiplicity="1" />
|
|
|
- <End Type="MyTestsDataBaseModel.Answers" Role="Answers" Multiplicity="*" />
|
|
|
- <ReferentialConstraint>
|
|
|
- <Principal Role="Users">
|
|
|
- <PropertyRef Name="IdUser" />
|
|
|
- </Principal>
|
|
|
- <Dependent Role="Answers">
|
|
|
- <PropertyRef Name="IdUser" />
|
|
|
- </Dependent>
|
|
|
- </ReferentialConstraint>
|
|
|
- </Association>
|
|
|
</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="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" />
|
|
|
- </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" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="sysdiagrams">
|
|
|
- <EntityTypeMapping TypeName="MyTestsDataBaseModel.sysdiagrams">
|
|
|
- <MappingFragment StoreEntitySet="sysdiagrams">
|
|
|
- <ScalarProperty Name="definition" ColumnName="definition" />
|
|
|
- <ScalarProperty Name="version" ColumnName="version" />
|
|
|
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
|
|
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
|
|
- <ScalarProperty Name="name" ColumnName="name" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
+ <EntityContainerMapping StorageEntityContainer="Хранилище MyTestsDataBaseModelContainer" CdmEntityContainer="MyTestsDataBaseEntities">
|
|
|
<EntitySetMapping Name="Answers">
|
|
|
<EntityTypeMapping TypeName="MyTestsDataBaseModel.Answers">
|
|
|
<MappingFragment StoreEntitySet="Answers">
|
|
|
- <ScalarProperty Name="Answer" ColumnName="Answer" />
|
|
|
+ <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="MyTestsDataBaseModel.Questions">
|
|
|
+ <MappingFragment StoreEntitySet="Questions">
|
|
|
<ScalarProperty Name="IdQuestion" ColumnName="IdQuestion" />
|
|
|
- <ScalarProperty Name="IdUserAnswer" ColumnName="IdUserAnswer" />
|
|
|
+ <ScalarProperty Name="IdTest" ColumnName="IdTest" />
|
|
|
+ <ScalarProperty Name="Content" ColumnName="Content" />
|
|
|
+ <ScalarProperty Name="Answer" ColumnName="Answer" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Tests">
|
|
|
+ <EntityTypeMapping TypeName="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" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Users">
|
|
|
+ <EntityTypeMapping TypeName="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" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
</EntityContainerMapping>
|
|
|
-</Mapping></edmx:Mappings>
|
|
|
+ </Mapping>
|
|
|
+ </edmx:Mappings>
|
|
|
</edmx:Runtime>
|
|
|
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
|
|
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
@@ -329,7 +298,7 @@
|
|
|
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
|
<DesignerProperty Name="EnablePluralization" Value="false" />
|
|
|
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
|
- <DesignerProperty Name="UseLegacyProvider" Value="False" />
|
|
|
+ <DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
|
<DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
|
|
|
</DesignerInfoPropertySet>
|
|
|
</Options>
|