|
@@ -14,17 +14,14 @@
|
|
|
<Property Name="Titlee" Type="nvarchar(max)" Nullable="false" />
|
|
|
<Property Name="NumderOfRooms" Type="int" Nullable="false" />
|
|
|
</EntityType>
|
|
|
- <!--Ошибки, обнаруженные при создании:
|
|
|
-предупреждение 6002: В таблице или представлении "sm_RDK.dbo.ConcertProgram" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
|
|
|
<EntityType Name="ConcertProgram">
|
|
|
<Key>
|
|
|
- <PropertyRef Name="IDConcert" />
|
|
|
- <PropertyRef Name="IDNumber" />
|
|
|
- <PropertyRef Name="IndexNumber" />
|
|
|
+ <PropertyRef Name="IDConcertProgram" />
|
|
|
</Key>
|
|
|
- <Property Name="IDConcert" Type="int" Nullable="false" />
|
|
|
- <Property Name="IDNumber" Type="int" Nullable="false" />
|
|
|
- <Property Name="IndexNumber" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDConcertProgram" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="IDConcert" Type="int" />
|
|
|
+ <Property Name="IDNumber" Type="int" />
|
|
|
+ <Property Name="IndexNumber" Type="int" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Logined">
|
|
|
<Key>
|
|
@@ -64,14 +61,11 @@
|
|
|
<Property Name="IDData" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
<Property Name="RehearsalDate" Type="date" Nullable="false" />
|
|
|
</EntityType>
|
|
|
- <!--Ошибки, обнаруженные при создании:
|
|
|
-предупреждение 6002: В таблице или представлении "sm_RDK.dbo.RehearsalSchedule" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
|
|
|
<EntityType Name="RehearsalSchedule">
|
|
|
<Key>
|
|
|
- <PropertyRef Name="IDSchedule" />
|
|
|
- <PropertyRef Name="IDUser" />
|
|
|
- <PropertyRef Name="RehearsalTime" />
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
</Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
<Property Name="IDSchedule" Type="int" Nullable="false" />
|
|
|
<Property Name="IDUser" Type="int" Nullable="false" />
|
|
|
<Property Name="RehearsalTime" Type="nvarchar" MaxLength="5" Nullable="false" />
|
|
@@ -89,7 +83,7 @@
|
|
|
<Property Name="IDPost" Type="int" Nullable="false" />
|
|
|
</EntityType>
|
|
|
<Association Name="FK_ConcertProgram_Concert">
|
|
|
- <End Role="Concert" Type="Self.Concert" Multiplicity="1" />
|
|
|
+ <End Role="Concert" Type="Self.Concert" Multiplicity="0..1" />
|
|
|
<End Role="ConcertProgram" Type="Self.ConcertProgram" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Concert">
|
|
@@ -101,7 +95,7 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ConcertProgram_Numbers">
|
|
|
- <End Role="Numbers" Type="Self.Numbers" Multiplicity="1" />
|
|
|
+ <End Role="Numbers" Type="Self.Numbers" Multiplicity="0..1" />
|
|
|
<End Role="ConcertProgram" Type="Self.ConcertProgram" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Numbers">
|
|
@@ -186,26 +180,14 @@
|
|
|
</Association>
|
|
|
<EntityContainer Name="Хранилище sm_RDKModelContainer">
|
|
|
<EntitySet Name="Concert" EntityType="Self.Concert" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="ConcertProgram" EntityType="Self.ConcertProgram" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Logined" EntityType="Self.Logined" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Numbers" EntityType="Self.Numbers" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Post" EntityType="Self.Post" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Power" EntityType="Self.Power" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="RehearsalDate" EntityType="Self.RehearsalDate" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="RehearsalSchedule" EntityType="Self.RehearsalSchedule" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
|
|
|
- <EntitySet Name="ConcertProgram" EntityType="Self.ConcertProgram" store:Type="Tables" store:Schema="dbo">
|
|
|
- <DefiningQuery>SELECT
|
|
|
- [ConcertProgram].[IDConcert] AS [IDConcert],
|
|
|
- [ConcertProgram].[IDNumber] AS [IDNumber],
|
|
|
- [ConcertProgram].[IndexNumber] AS [IndexNumber]
|
|
|
- FROM [dbo].[ConcertProgram] AS [ConcertProgram]</DefiningQuery>
|
|
|
- </EntitySet>
|
|
|
- <EntitySet Name="RehearsalSchedule" EntityType="Self.RehearsalSchedule" store:Type="Tables" store:Schema="dbo">
|
|
|
- <DefiningQuery>SELECT
|
|
|
- [RehearsalSchedule].[IDSchedule] AS [IDSchedule],
|
|
|
- [RehearsalSchedule].[IDUser] AS [IDUser],
|
|
|
- [RehearsalSchedule].[RehearsalTime] AS [RehearsalTime]
|
|
|
- FROM [dbo].[RehearsalSchedule] AS [RehearsalSchedule]</DefiningQuery>
|
|
|
- </EntitySet>
|
|
|
<AssociationSet Name="FK_ConcertProgram_Concert" Association="Self.FK_ConcertProgram_Concert">
|
|
|
<End Role="Concert" EntitySet="Concert" />
|
|
|
<End Role="ConcertProgram" EntitySet="ConcertProgram" />
|
|
@@ -245,26 +227,26 @@
|
|
|
<Schema Namespace="sm_RDKModel" 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">
|
|
|
<EntityContainer Name="sm_RDKEntities" annotation:LazyLoadingEnabled="true">
|
|
|
<EntitySet Name="Concert" EntityType="sm_RDKModel.Concert" />
|
|
|
+ <EntitySet Name="ConcertProgram" EntityType="sm_RDKModel.ConcertProgram" />
|
|
|
<EntitySet Name="Logined" EntityType="sm_RDKModel.Logined" />
|
|
|
<EntitySet Name="Numbers" EntityType="sm_RDKModel.Numbers" />
|
|
|
<EntitySet Name="Post" EntityType="sm_RDKModel.Post" />
|
|
|
<EntitySet Name="Power" EntityType="sm_RDKModel.Power" />
|
|
|
<EntitySet Name="RehearsalDate" EntityType="sm_RDKModel.RehearsalDate" />
|
|
|
- <EntitySet Name="Users" EntityType="sm_RDKModel.Users" />
|
|
|
- <EntitySet Name="ConcertProgram" EntityType="sm_RDKModel.ConcertProgram" />
|
|
|
<EntitySet Name="RehearsalSchedule" EntityType="sm_RDKModel.RehearsalSchedule" />
|
|
|
+ <EntitySet Name="Users" EntityType="sm_RDKModel.Users" />
|
|
|
<AssociationSet Name="FK_ConcertProgram_Concert" Association="sm_RDKModel.FK_ConcertProgram_Concert">
|
|
|
<End Role="Concert" EntitySet="Concert" />
|
|
|
<End Role="ConcertProgram" EntitySet="ConcertProgram" />
|
|
|
</AssociationSet>
|
|
|
- <AssociationSet Name="FK_Users_Logined" Association="sm_RDKModel.FK_Users_Logined">
|
|
|
- <End Role="Logined" EntitySet="Logined" />
|
|
|
- <End Role="Users" EntitySet="Users" />
|
|
|
- </AssociationSet>
|
|
|
<AssociationSet Name="FK_ConcertProgram_Numbers" Association="sm_RDKModel.FK_ConcertProgram_Numbers">
|
|
|
<End Role="Numbers" EntitySet="Numbers" />
|
|
|
<End Role="ConcertProgram" EntitySet="ConcertProgram" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Users_Logined" Association="sm_RDKModel.FK_Users_Logined">
|
|
|
+ <End Role="Logined" EntitySet="Logined" />
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ </AssociationSet>
|
|
|
<AssociationSet Name="FK_Numbers_Users" Association="sm_RDKModel.FK_Numbers_Users">
|
|
|
<End Role="Users" EntitySet="Users" />
|
|
|
<End Role="Numbers" EntitySet="Numbers" />
|
|
@@ -296,6 +278,17 @@
|
|
|
<Property Name="NumderOfRooms" Type="Int32" Nullable="false" />
|
|
|
<NavigationProperty Name="ConcertProgram" Relationship="sm_RDKModel.FK_ConcertProgram_Concert" FromRole="Concert" ToRole="ConcertProgram" />
|
|
|
</EntityType>
|
|
|
+ <EntityType Name="ConcertProgram">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IDConcertProgram" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IDConcertProgram" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="IDConcert" Type="Int32" />
|
|
|
+ <Property Name="IDNumber" Type="Int32" />
|
|
|
+ <Property Name="IndexNumber" Type="Int32" />
|
|
|
+ <NavigationProperty Name="Concert" Relationship="sm_RDKModel.FK_ConcertProgram_Concert" FromRole="ConcertProgram" ToRole="Concert" />
|
|
|
+ <NavigationProperty Name="Numbers" Relationship="sm_RDKModel.FK_ConcertProgram_Numbers" FromRole="ConcertProgram" ToRole="Numbers" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="Logined">
|
|
|
<Key>
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -340,6 +333,17 @@
|
|
|
<Property Name="RehearsalDate1" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
<NavigationProperty Name="RehearsalSchedule" Relationship="sm_RDKModel.FK_RehearsalSchedule_RehearsalDate" FromRole="RehearsalDate" ToRole="RehearsalSchedule" />
|
|
|
</EntityType>
|
|
|
+ <EntityType Name="RehearsalSchedule">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="IDSchedule" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDUser" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="RehearsalTime" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="RehearsalDate" Relationship="sm_RDKModel.FK_RehearsalSchedule_RehearsalDate" FromRole="RehearsalSchedule" ToRole="RehearsalDate" />
|
|
|
+ <NavigationProperty Name="Users" Relationship="sm_RDKModel.FK_RehearsalSchedule_Users" FromRole="RehearsalSchedule" ToRole="Users" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="Users">
|
|
|
<Key>
|
|
|
<PropertyRef Name="IDUser" />
|
|
@@ -357,32 +361,8 @@
|
|
|
<NavigationProperty Name="Power" Relationship="sm_RDKModel.FK_Users_Power" FromRole="Users" ToRole="Power" />
|
|
|
<NavigationProperty Name="RehearsalSchedule" Relationship="sm_RDKModel.FK_RehearsalSchedule_Users" FromRole="Users" ToRole="RehearsalSchedule" />
|
|
|
</EntityType>
|
|
|
- <EntityType Name="ConcertProgram">
|
|
|
- <Key>
|
|
|
- <PropertyRef Name="IDConcert" />
|
|
|
- <PropertyRef Name="IDNumber" />
|
|
|
- <PropertyRef Name="IndexNumber" />
|
|
|
- </Key>
|
|
|
- <Property Name="IDConcert" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="IDNumber" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="IndexNumber" Type="Int32" Nullable="false" />
|
|
|
- <NavigationProperty Name="Concert" Relationship="sm_RDKModel.FK_ConcertProgram_Concert" FromRole="ConcertProgram" ToRole="Concert" />
|
|
|
- <NavigationProperty Name="Numbers" Relationship="sm_RDKModel.FK_ConcertProgram_Numbers" FromRole="ConcertProgram" ToRole="Numbers" />
|
|
|
- </EntityType>
|
|
|
- <EntityType Name="RehearsalSchedule">
|
|
|
- <Key>
|
|
|
- <PropertyRef Name="IDSchedule" />
|
|
|
- <PropertyRef Name="IDUser" />
|
|
|
- <PropertyRef Name="RehearsalTime" />
|
|
|
- </Key>
|
|
|
- <Property Name="IDSchedule" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="IDUser" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="RehearsalTime" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
|
|
|
- <NavigationProperty Name="RehearsalDate" Relationship="sm_RDKModel.FK_RehearsalSchedule_RehearsalDate" FromRole="RehearsalSchedule" ToRole="RehearsalDate" />
|
|
|
- <NavigationProperty Name="Users" Relationship="sm_RDKModel.FK_RehearsalSchedule_Users" FromRole="RehearsalSchedule" ToRole="Users" />
|
|
|
- </EntityType>
|
|
|
<Association Name="FK_ConcertProgram_Concert">
|
|
|
- <End Type="sm_RDKModel.Concert" Role="Concert" Multiplicity="1" />
|
|
|
+ <End Type="sm_RDKModel.Concert" Role="Concert" Multiplicity="0..1" />
|
|
|
<End Type="sm_RDKModel.ConcertProgram" Role="ConcertProgram" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Concert">
|
|
@@ -393,6 +373,18 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <Association Name="FK_ConcertProgram_Numbers">
|
|
|
+ <End Type="sm_RDKModel.Numbers" Role="Numbers" Multiplicity="0..1" />
|
|
|
+ <End Type="sm_RDKModel.ConcertProgram" Role="ConcertProgram" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Numbers">
|
|
|
+ <PropertyRef Name="IDNumber" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ConcertProgram">
|
|
|
+ <PropertyRef Name="IDNumber" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
<Association Name="FK_Users_Logined">
|
|
|
<End Type="sm_RDKModel.Logined" Role="Logined" Multiplicity="1" />
|
|
|
<End Type="sm_RDKModel.Users" Role="Users" Multiplicity="0..1" />
|
|
@@ -405,18 +397,6 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <Association Name="FK_ConcertProgram_Numbers">
|
|
|
- <End Type="sm_RDKModel.Numbers" Role="Numbers" Multiplicity="1" />
|
|
|
- <End Type="sm_RDKModel.ConcertProgram" Role="ConcertProgram" Multiplicity="*" />
|
|
|
- <ReferentialConstraint>
|
|
|
- <Principal Role="Numbers">
|
|
|
- <PropertyRef Name="IDNumber" />
|
|
|
- </Principal>
|
|
|
- <Dependent Role="ConcertProgram">
|
|
|
- <PropertyRef Name="IDNumber" />
|
|
|
- </Dependent>
|
|
|
- </ReferentialConstraint>
|
|
|
- </Association>
|
|
|
<Association Name="FK_Numbers_Users">
|
|
|
<End Type="sm_RDKModel.Users" Role="Users" Multiplicity="1" />
|
|
|
<End Type="sm_RDKModel.Numbers" Role="Numbers" Multiplicity="*" />
|
|
@@ -477,7 +457,7 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- </Schema>
|
|
|
+ </Schema>
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|
|
|
<edmx:Mappings>
|
|
@@ -493,6 +473,16 @@
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="ConcertProgram">
|
|
|
+ <EntityTypeMapping TypeName="sm_RDKModel.ConcertProgram">
|
|
|
+ <MappingFragment StoreEntitySet="ConcertProgram">
|
|
|
+ <ScalarProperty Name="IndexNumber" ColumnName="IndexNumber" />
|
|
|
+ <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
|
|
|
+ <ScalarProperty Name="IDConcert" ColumnName="IDConcert" />
|
|
|
+ <ScalarProperty Name="IDConcertProgram" ColumnName="IDConcertProgram" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
<EntitySetMapping Name="Logined">
|
|
|
<EntityTypeMapping TypeName="sm_RDKModel.Logined">
|
|
|
<MappingFragment StoreEntitySet="Logined">
|
|
@@ -536,6 +526,16 @@
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="RehearsalSchedule">
|
|
|
+ <EntityTypeMapping TypeName="sm_RDKModel.RehearsalSchedule">
|
|
|
+ <MappingFragment StoreEntitySet="RehearsalSchedule">
|
|
|
+ <ScalarProperty Name="RehearsalTime" ColumnName="RehearsalTime" />
|
|
|
+ <ScalarProperty Name="IDUser" ColumnName="IDUser" />
|
|
|
+ <ScalarProperty Name="IDSchedule" ColumnName="IDSchedule" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
<EntitySetMapping Name="Users">
|
|
|
<EntityTypeMapping TypeName="sm_RDKModel.Users">
|
|
|
<MappingFragment StoreEntitySet="Users">
|
|
@@ -549,24 +549,6 @@
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
- <EntitySetMapping Name="ConcertProgram">
|
|
|
- <EntityTypeMapping TypeName="sm_RDKModel.ConcertProgram">
|
|
|
- <MappingFragment StoreEntitySet="ConcertProgram">
|
|
|
- <ScalarProperty Name="IndexNumber" ColumnName="IndexNumber" />
|
|
|
- <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
|
|
|
- <ScalarProperty Name="IDConcert" ColumnName="IDConcert" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="RehearsalSchedule">
|
|
|
- <EntityTypeMapping TypeName="sm_RDKModel.RehearsalSchedule">
|
|
|
- <MappingFragment StoreEntitySet="RehearsalSchedule">
|
|
|
- <ScalarProperty Name="RehearsalTime" ColumnName="RehearsalTime" />
|
|
|
- <ScalarProperty Name="IDUser" ColumnName="IDUser" />
|
|
|
- <ScalarProperty Name="IDSchedule" ColumnName="IDSchedule" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
</EntityContainerMapping>
|
|
|
</Mapping>
|
|
|
</edmx:Mappings>
|