123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
- <!-- EF Runtime content -->
- <edmx:Runtime>
- <!-- SSDL content -->
- <edmx:StorageModels>
- <Schema Namespace="Хранилище B0Model" 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="Dish">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="name" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="DishCompound">
- <Key>
- <PropertyRef Name="dish" />
- <PropertyRef Name="ingredient" />
- </Key>
- <Property Name="dish" Type="bigint" Nullable="false" />
- <Property Name="ingredient" Type="bigint" Nullable="false" />
- <Property Name="volume" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="Ingredient">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="name" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <Association Name="FK_DishCompound_Dish">
- <End Role="Dish" Type="Self.Dish" Multiplicity="1" />
- <End Role="DishCompound" Type="Self.DishCompound" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Dish">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="DishCompound">
- <PropertyRef Name="dish" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_DishCompound_Ingredient">
- <End Role="Ingredient" Type="Self.Ingredient" Multiplicity="1" />
- <End Role="DishCompound" Type="Self.DishCompound" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Ingredient">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="DishCompound">
- <PropertyRef Name="ingredient" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище B0ModelContainer">
- <EntitySet Name="Dish" EntityType="Self.Dish" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="DishCompound" EntityType="Self.DishCompound" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Ingredient" EntityType="Self.Ingredient" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_DishCompound_Dish" Association="Self.FK_DishCompound_Dish">
- <End Role="Dish" EntitySet="Dish" />
- <End Role="DishCompound" EntitySet="DishCompound" />
- </AssociationSet>
- <AssociationSet Name="FK_DishCompound_Ingredient" Association="Self.FK_DishCompound_Ingredient">
- <End Role="Ingredient" EntitySet="Ingredient" />
- <End Role="DishCompound" EntitySet="DishCompound" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="B0Model" 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="Dish">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="name" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="DishCompound" Relationship="Self.FK_DishCompound_Dish" FromRole="Dish" ToRole="DishCompound" />
- </EntityType>
- <EntityType Name="DishCompound">
- <Key>
- <PropertyRef Name="dish" />
- <PropertyRef Name="ingredient" />
- </Key>
- <Property Name="dish" Type="Int64" Nullable="false" />
- <Property Name="ingredient" Type="Int64" Nullable="false" />
- <Property Name="volume" Type="Double" Nullable="false" />
- <NavigationProperty Name="Dish1" Relationship="Self.FK_DishCompound_Dish" FromRole="DishCompound" ToRole="Dish" />
- <NavigationProperty Name="Ingredient1" Relationship="Self.FK_DishCompound_Ingredient" FromRole="DishCompound" ToRole="Ingredient" />
- </EntityType>
- <EntityType Name="Ingredient">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="name" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="DishCompound" Relationship="Self.FK_DishCompound_Ingredient" FromRole="Ingredient" ToRole="DishCompound" />
- </EntityType>
- <Association Name="FK_DishCompound_Dish">
- <End Role="Dish" Type="Self.Dish" Multiplicity="1" />
- <End Role="DishCompound" Type="Self.DishCompound" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Dish">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="DishCompound">
- <PropertyRef Name="dish" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_DishCompound_Ingredient">
- <End Role="Ingredient" Type="Self.Ingredient" Multiplicity="1" />
- <End Role="DishCompound" Type="Self.DishCompound" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Ingredient">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="DishCompound">
- <PropertyRef Name="ingredient" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="B0Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Dish" EntityType="Self.Dish" />
- <EntitySet Name="DishCompound" EntityType="Self.DishCompound" />
- <EntitySet Name="Ingredient" EntityType="Self.Ingredient" />
- <AssociationSet Name="FK_DishCompound_Dish" Association="Self.FK_DishCompound_Dish">
- <End Role="Dish" EntitySet="Dish" />
- <End Role="DishCompound" EntitySet="DishCompound" />
- </AssociationSet>
- <AssociationSet Name="FK_DishCompound_Ingredient" Association="Self.FK_DishCompound_Ingredient">
- <End Role="Ingredient" EntitySet="Ingredient" />
- <End Role="DishCompound" EntitySet="DishCompound" />
- </AssociationSet>
- </EntityContainer>
- </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="Хранилище B0ModelContainer" CdmEntityContainer="B0Entities">
- <EntitySetMapping Name="Dish">
- <EntityTypeMapping TypeName="B0Model.Dish">
- <MappingFragment StoreEntitySet="Dish">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="name" ColumnName="name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="DishCompound">
- <EntityTypeMapping TypeName="B0Model.DishCompound">
- <MappingFragment StoreEntitySet="DishCompound">
- <ScalarProperty Name="dish" ColumnName="dish" />
- <ScalarProperty Name="ingredient" ColumnName="ingredient" />
- <ScalarProperty Name="volume" ColumnName="volume" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Ingredient">
- <EntityTypeMapping TypeName="B0Model.Ingredient">
- <MappingFragment StoreEntitySet="Ingredient">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="name" ColumnName="name" />
- </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">
- <Connection>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
- </DesignerInfoPropertySet>
- </Connection>
- <Options>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="ValidateOnBuild" Value="true" />
- <DesignerProperty Name="EnablePluralization" Value="false" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
- <DesignerProperty Name="UseLegacyProvider" Value="false" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|