|
@@ -4,7 +4,7 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <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">
|
|
|
+ <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">
|
|
|
<EntityType Name="Answers">
|
|
|
<Key>
|
|
|
<PropertyRef Name="IdUserAnswer" />
|
|
@@ -33,6 +33,7 @@
|
|
|
<Property Name="Image" Type="varbinary(max)" />
|
|
|
<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>
|
|
@@ -97,7 +98,7 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <EntityContainer Name="Хранилище MyTestsDataBaseModelContainer">
|
|
|
+ <EntityContainer Name="MyTestsDataBaseModelStoreContainer">
|
|
|
<EntitySet Name="Answers" EntityType="Self.Answers" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Questions" EntityType="Self.Questions" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Tests" EntityType="Self.Tests" Schema="dbo" store:Type="Tables" />
|
|
@@ -157,6 +158,7 @@
|
|
|
<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>
|
|
@@ -249,59 +251,59 @@
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|
|
|
<edmx:Mappings>
|
|
|
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
|
- <EntityContainerMapping StorageEntityContainer="Хранилище MyTestsDataBaseModelContainer" CdmEntityContainer="MyTestsDataBaseEntities">
|
|
|
- <EntitySetMapping Name="Answers">
|
|
|
- <EntityTypeMapping TypeName="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="MyTestsDataBaseModel.Questions">
|
|
|
- <MappingFragment StoreEntitySet="Questions">
|
|
|
- <ScalarProperty Name="IdQuestion" ColumnName="IdQuestion" />
|
|
|
+ <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="CanAgain" ColumnName="CanAgain" />
|
|
|
<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="IsVisible" ColumnName="IsVisible" />
|
|
|
- <ScalarProperty Name="IsAnswersVisible" ColumnName="IsAnswersVisible" />
|
|
|
- <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="Patronymic" ColumnName="Patronymic" />
|
|
|
- <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
- <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
- <ScalarProperty Name="Post" ColumnName="Post" />
|
|
|
- <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>
|
|
|
+ <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" />
|
|
|
+ </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">
|
|
@@ -315,7 +317,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>
|