|
@@ -21,6 +21,14 @@
|
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
<Property Name="Role" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
</EntityType>
|
|
|
+ <EntityType Name="UserImages">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDUser" Type="int" />
|
|
|
+ <Property Name="Image" Type="varbinary(max)" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="UserTable">
|
|
|
<Key>
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -41,6 +49,18 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <Association Name="FK_UserImages_UserTable">
|
|
|
+ <End Role="UserTable" Type="Self.UserTable" Multiplicity="0..1" />
|
|
|
+ <End Role="UserImages" Type="Self.UserImages" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="UserTable">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="UserImages">
|
|
|
+ <PropertyRef Name="IDUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
<Association Name="FK_UserTable_LoginedTable">
|
|
|
<End Role="LoginedTable" Type="Self.LoginedTable" Multiplicity="1" />
|
|
|
<End Role="UserTable" Type="Self.UserTable" Multiplicity="0..1" />
|
|
@@ -56,11 +76,16 @@
|
|
|
<EntityContainer Name="Хранилище Smerdova_PPModelContainer">
|
|
|
<EntitySet Name="LoginedTable" EntityType="Self.LoginedTable" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Roles" EntityType="Self.Roles" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="UserImages" EntityType="Self.UserImages" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="UserTable" EntityType="Self.UserTable" Schema="dbo" store:Type="Tables" />
|
|
|
<AssociationSet Name="FK_LoginedTable_Roles" Association="Self.FK_LoginedTable_Roles">
|
|
|
<End Role="Roles" EntitySet="Roles" />
|
|
|
<End Role="LoginedTable" EntitySet="LoginedTable" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_UserImages_UserTable" Association="Self.FK_UserImages_UserTable">
|
|
|
+ <End Role="UserTable" EntitySet="UserTable" />
|
|
|
+ <End Role="UserImages" EntitySet="UserImages" />
|
|
|
+ </AssociationSet>
|
|
|
<AssociationSet Name="FK_UserTable_LoginedTable" Association="Self.FK_UserTable_LoginedTable">
|
|
|
<End Role="LoginedTable" EntitySet="LoginedTable" />
|
|
|
<End Role="UserTable" EntitySet="UserTable" />
|
|
@@ -73,6 +98,7 @@
|
|
|
<EntityContainer Name="Smerdova_PPEntities" annotation:LazyLoadingEnabled="true">
|
|
|
<EntitySet Name="LoginedTable" EntityType="Smerdova_PPModel.LoginedTable" />
|
|
|
<EntitySet Name="Roles" EntityType="Smerdova_PPModel.Roles" />
|
|
|
+ <EntitySet Name="UserImages" EntityType="Smerdova_PPModel.UserImages" />
|
|
|
<EntitySet Name="UserTable" EntityType="Smerdova_PPModel.UserTable" />
|
|
|
<AssociationSet Name="FK_LoginedTable_Roles" Association="Smerdova_PPModel.FK_LoginedTable_Roles">
|
|
|
<End Role="Roles" EntitySet="Roles" />
|
|
@@ -82,6 +108,10 @@
|
|
|
<End Role="LoginedTable" EntitySet="LoginedTable" />
|
|
|
<End Role="UserTable" EntitySet="UserTable" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_UserImages_UserTable" Association="Smerdova_PPModel.FK_UserImages_UserTable">
|
|
|
+ <End Role="UserTable" EntitySet="UserTable" />
|
|
|
+ <End Role="UserImages" EntitySet="UserImages" />
|
|
|
+ </AssociationSet>
|
|
|
</EntityContainer>
|
|
|
<EntityType Name="LoginedTable">
|
|
|
<Key>
|
|
@@ -102,6 +132,15 @@
|
|
|
<Property Name="Role" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<NavigationProperty Name="LoginedTable" Relationship="Smerdova_PPModel.FK_LoginedTable_Roles" FromRole="Roles" ToRole="LoginedTable" />
|
|
|
</EntityType>
|
|
|
+ <EntityType Name="UserImages">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDUser" Type="Int32" />
|
|
|
+ <Property Name="Image" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
|
+ <NavigationProperty Name="UserTable" Relationship="Smerdova_PPModel.FK_UserImages_UserTable" FromRole="UserImages" ToRole="UserTable" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="UserTable">
|
|
|
<Key>
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -110,6 +149,7 @@
|
|
|
<Property Name="Surname" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="Name" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
<NavigationProperty Name="LoginedTable" Relationship="Smerdova_PPModel.FK_UserTable_LoginedTable" FromRole="UserTable" ToRole="LoginedTable" />
|
|
|
+ <NavigationProperty Name="UserImages" Relationship="Smerdova_PPModel.FK_UserImages_UserTable" FromRole="UserTable" ToRole="UserImages" />
|
|
|
</EntityType>
|
|
|
<Association Name="FK_LoginedTable_Roles">
|
|
|
<End Type="Smerdova_PPModel.Roles" Role="Roles" Multiplicity="1" />
|
|
@@ -135,7 +175,19 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- </Schema>
|
|
|
+ <Association Name="FK_UserImages_UserTable">
|
|
|
+ <End Type="Smerdova_PPModel.UserTable" Role="UserTable" Multiplicity="0..1" />
|
|
|
+ <End Type="Smerdova_PPModel.UserImages" Role="UserImages" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="UserTable">
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="UserImages">
|
|
|
+ <PropertyRef Name="IDUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ </Schema>
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|
|
|
<edmx:Mappings>
|
|
@@ -159,6 +211,15 @@
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="UserImages">
|
|
|
+ <EntityTypeMapping TypeName="Smerdova_PPModel.UserImages">
|
|
|
+ <MappingFragment StoreEntitySet="UserImages">
|
|
|
+ <ScalarProperty Name="Image" ColumnName="Image" />
|
|
|
+ <ScalarProperty Name="IDUser" ColumnName="IDUser" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
<EntitySetMapping Name="UserTable">
|
|
|
<EntityTypeMapping TypeName="Smerdova_PPModel.UserTable">
|
|
|
<MappingFragment StoreEntitySet="UserTable">
|