|
@@ -5,6 +5,14 @@
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
<Schema Namespace="Хранилище ToursModel" 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="Auth">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Login" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="Country">
|
|
|
<Key>
|
|
|
<PropertyRef Name="Code" />
|
|
@@ -176,6 +184,7 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<EntityContainer Name="Хранилище ToursModelContainer">
|
|
|
+ <EntitySet Name="Auth" EntityType="Self.Auth" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
|
|
@@ -222,6 +231,7 @@
|
|
|
<edmx:ConceptualModels>
|
|
|
<Schema Namespace="ToursModel" 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="ToursEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Auth" EntityType="ToursModel.Auth" />
|
|
|
<EntitySet Name="Country" EntityType="ToursModel.Country" />
|
|
|
<EntitySet Name="Hotel" EntityType="ToursModel.Hotel" />
|
|
|
<EntitySet Name="HotelComment" EntityType="ToursModel.HotelComment" />
|
|
@@ -253,6 +263,14 @@
|
|
|
<End Role="Type" EntitySet="Type" />
|
|
|
</AssociationSet>
|
|
|
</EntityContainer>
|
|
|
+ <EntityType Name="Auth">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
|
+ <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
|
+ </EntityType>
|
|
|
<EntityType Name="Country">
|
|
|
<Key>
|
|
|
<PropertyRef Name="Code" />
|
|
@@ -379,12 +397,21 @@
|
|
|
<End Type="ToursModel.Tour" Role="Tour" Multiplicity="*" />
|
|
|
<End Type="ToursModel.Type" Role="Type" Multiplicity="*" />
|
|
|
</Association>
|
|
|
- </Schema>
|
|
|
+ </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="Хранилище ToursModelContainer" CdmEntityContainer="ToursEntities">
|
|
|
+ <EntitySetMapping Name="Auth">
|
|
|
+ <EntityTypeMapping TypeName="ToursModel.Auth">
|
|
|
+ <MappingFragment StoreEntitySet="Auth">
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
+ <ScalarProperty Name="id" ColumnName="id" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
<EntitySetMapping Name="Country">
|
|
|
<EntityTypeMapping TypeName="ToursModel.Country">
|
|
|
<MappingFragment StoreEntitySet="Country">
|