123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675 |
- <?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="Хранилище Mukhina2023Model" 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="BreedTable">
- <Key>
- <PropertyRef Name="idBreed" />
- </Key>
- <Property Name="idBreed" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Breed" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="CatTable">
- <Key>
- <PropertyRef Name="idCat" />
- </Key>
- <Property Name="idCat" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="CatName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="idBreed" Type="int" Nullable="false" />
- <Property Name="Birthday" Type="date" Nullable="false" />
- <Property Name="idGender" Type="int" Nullable="false" />
- <Property Name="Photo" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="feedCatTable">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="idCat" Type="int" Nullable="false" />
- <Property Name="idFeed" Type="int" Nullable="false" />
- <Property Name="Count" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Feedtable">
- <Key>
- <PropertyRef Name="idFeed" />
- </Key>
- <Property Name="idFeed" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Feed" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Price" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="GenderTable">
- <Key>
- <PropertyRef Name="idGender" />
- </Key>
- <Property Name="idGender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Gender" Type="nvarchar" MaxLength="10" Nullable="false" />
- </EntityType>
- <EntityType Name="PasssportTable">
- <Key>
- <PropertyRef Name="idCat" />
- </Key>
- <Property Name="idCat" Type="int" Nullable="false" />
- <Property Name="UniqueNumber" Type="nchar" MaxLength="10" Nullable="false" />
- <Property Name="Color" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="TraitCatTable">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="idCat" Type="int" Nullable="false" />
- <Property Name="idTrait" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="TraitTable">
- <Key>
- <PropertyRef Name="idTrait" />
- </Key>
- <Property Name="idTrait" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Trait" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="User">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Surname" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="DateBirthday" Type="date" Nullable="false" />
- <Property Name="Role" Type="int" Nullable="false" />
- <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Password" Type="int" Nullable="false" />
- <Property Name="Avatar" Type="int" />
- </EntityType>
- <EntityType Name="UserPhoto">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="idUser" Type="int" Nullable="false" />
- <Property Name="Photo" Type="varbinary(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="UserRole">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Role" Type="nvarchar" MaxLength="100" Nullable="false" />
- </EntityType>
- <Association Name="FK_CatTable_BreedTable">
- <End Role="BreedTable" Type="Self.BreedTable" Multiplicity="1" />
- <End Role="CatTable" Type="Self.CatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BreedTable">
- <PropertyRef Name="idBreed" />
- </Principal>
- <Dependent Role="CatTable">
- <PropertyRef Name="idBreed" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CatTable_GenderTable">
- <End Role="GenderTable" Type="Self.GenderTable" Multiplicity="1" />
- <End Role="CatTable" Type="Self.CatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="GenderTable">
- <PropertyRef Name="idGender" />
- </Principal>
- <Dependent Role="CatTable">
- <PropertyRef Name="idGender" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_feedCatTable_CatTable">
- <End Role="CatTable" Type="Self.CatTable" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="feedCatTable" Type="Self.feedCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CatTable">
- <PropertyRef Name="idCat" />
- </Principal>
- <Dependent Role="feedCatTable">
- <PropertyRef Name="idCat" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_feedCatTable_Feedtable">
- <End Role="Feedtable" Type="Self.Feedtable" Multiplicity="1" />
- <End Role="feedCatTable" Type="Self.feedCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Feedtable">
- <PropertyRef Name="idFeed" />
- </Principal>
- <Dependent Role="feedCatTable">
- <PropertyRef Name="idFeed" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_PasssportTable_CatTable">
- <End Role="CatTable" Type="Self.CatTable" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="PasssportTable" Type="Self.PasssportTable" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CatTable">
- <PropertyRef Name="idCat" />
- </Principal>
- <Dependent Role="PasssportTable">
- <PropertyRef Name="idCat" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TraitCatTable_CatTable">
- <End Role="CatTable" Type="Self.CatTable" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="TraitCatTable" Type="Self.TraitCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CatTable">
- <PropertyRef Name="idCat" />
- </Principal>
- <Dependent Role="TraitCatTable">
- <PropertyRef Name="idCat" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TraitCatTable_TraitTable">
- <End Role="TraitTable" Type="Self.TraitTable" Multiplicity="1" />
- <End Role="TraitCatTable" Type="Self.TraitCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="TraitTable">
- <PropertyRef Name="idTrait" />
- </Principal>
- <Dependent Role="TraitCatTable">
- <PropertyRef Name="idTrait" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_User_UserRole">
- <End Role="UserRole" Type="Self.UserRole" Multiplicity="1" />
- <End Role="User" Type="Self.User" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="UserRole">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="User">
- <PropertyRef Name="Role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_UserPhoto_User">
- <End Role="User" Type="Self.User" Multiplicity="1" />
- <End Role="UserPhoto" Type="Self.UserPhoto" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="UserPhoto">
- <PropertyRef Name="idUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище Mukhina2023ModelContainer">
- <EntitySet Name="BreedTable" EntityType="Self.BreedTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="CatTable" EntityType="Self.CatTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="feedCatTable" EntityType="Self.feedCatTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Feedtable" EntityType="Self.Feedtable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="GenderTable" EntityType="Self.GenderTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="PasssportTable" EntityType="Self.PasssportTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TraitCatTable" EntityType="Self.TraitCatTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TraitTable" EntityType="Self.TraitTable" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="UserPhoto" EntityType="Self.UserPhoto" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="UserRole" EntityType="Self.UserRole" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_CatTable_BreedTable" Association="Self.FK_CatTable_BreedTable">
- <End Role="BreedTable" EntitySet="BreedTable" />
- <End Role="CatTable" EntitySet="CatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_CatTable_GenderTable" Association="Self.FK_CatTable_GenderTable">
- <End Role="GenderTable" EntitySet="GenderTable" />
- <End Role="CatTable" EntitySet="CatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_feedCatTable_CatTable" Association="Self.FK_feedCatTable_CatTable">
- <End Role="CatTable" EntitySet="CatTable" />
- <End Role="feedCatTable" EntitySet="feedCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_feedCatTable_Feedtable" Association="Self.FK_feedCatTable_Feedtable">
- <End Role="Feedtable" EntitySet="Feedtable" />
- <End Role="feedCatTable" EntitySet="feedCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_PasssportTable_CatTable" Association="Self.FK_PasssportTable_CatTable">
- <End Role="CatTable" EntitySet="CatTable" />
- <End Role="PasssportTable" EntitySet="PasssportTable" />
- </AssociationSet>
- <AssociationSet Name="FK_TraitCatTable_CatTable" Association="Self.FK_TraitCatTable_CatTable">
- <End Role="CatTable" EntitySet="CatTable" />
- <End Role="TraitCatTable" EntitySet="TraitCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_TraitCatTable_TraitTable" Association="Self.FK_TraitCatTable_TraitTable">
- <End Role="TraitTable" EntitySet="TraitTable" />
- <End Role="TraitCatTable" EntitySet="TraitCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_User_UserRole" Association="Self.FK_User_UserRole">
- <End Role="UserRole" EntitySet="UserRole" />
- <End Role="User" EntitySet="User" />
- </AssociationSet>
- <AssociationSet Name="FK_UserPhoto_User" Association="Self.FK_UserPhoto_User">
- <End Role="User" EntitySet="User" />
- <End Role="UserPhoto" EntitySet="UserPhoto" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="Mukhina2023Model" 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="Mukhina2023Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="BreedTable" EntityType="Mukhina2023Model.BreedTable" />
- <EntitySet Name="CatTable" EntityType="Mukhina2023Model.CatTable" />
- <EntitySet Name="feedCatTable" EntityType="Mukhina2023Model.feedCatTable" />
- <EntitySet Name="Feedtable" EntityType="Mukhina2023Model.Feedtable" />
- <EntitySet Name="GenderTable" EntityType="Mukhina2023Model.GenderTable" />
- <EntitySet Name="PasssportTable" EntityType="Mukhina2023Model.PasssportTable" />
- <EntitySet Name="TraitCatTable" EntityType="Mukhina2023Model.TraitCatTable" />
- <EntitySet Name="TraitTable" EntityType="Mukhina2023Model.TraitTable" />
- <EntitySet Name="User" EntityType="Mukhina2023Model.User" />
- <EntitySet Name="UserPhoto" EntityType="Mukhina2023Model.UserPhoto" />
- <EntitySet Name="UserRole" EntityType="Mukhina2023Model.UserRole" />
- <AssociationSet Name="FK_CatTable_BreedTable" Association="Mukhina2023Model.FK_CatTable_BreedTable">
- <End Role="BreedTable" EntitySet="BreedTable" />
- <End Role="CatTable" EntitySet="CatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_CatTable_GenderTable" Association="Mukhina2023Model.FK_CatTable_GenderTable">
- <End Role="GenderTable" EntitySet="GenderTable" />
- <End Role="CatTable" EntitySet="CatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_feedCatTable_CatTable" Association="Mukhina2023Model.FK_feedCatTable_CatTable">
- <End Role="CatTable" EntitySet="CatTable" />
- <End Role="feedCatTable" EntitySet="feedCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_PasssportTable_CatTable" Association="Mukhina2023Model.FK_PasssportTable_CatTable">
- <End Role="CatTable" EntitySet="CatTable" />
- <End Role="PasssportTable" EntitySet="PasssportTable" />
- </AssociationSet>
- <AssociationSet Name="FK_TraitCatTable_CatTable" Association="Mukhina2023Model.FK_TraitCatTable_CatTable">
- <End Role="CatTable" EntitySet="CatTable" />
- <End Role="TraitCatTable" EntitySet="TraitCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_feedCatTable_Feedtable" Association="Mukhina2023Model.FK_feedCatTable_Feedtable">
- <End Role="Feedtable" EntitySet="Feedtable" />
- <End Role="feedCatTable" EntitySet="feedCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_TraitCatTable_TraitTable" Association="Mukhina2023Model.FK_TraitCatTable_TraitTable">
- <End Role="TraitTable" EntitySet="TraitTable" />
- <End Role="TraitCatTable" EntitySet="TraitCatTable" />
- </AssociationSet>
- <AssociationSet Name="FK_User_UserRole" Association="Mukhina2023Model.FK_User_UserRole">
- <End Role="UserRole" EntitySet="UserRole" />
- <End Role="User" EntitySet="User" />
- </AssociationSet>
- <AssociationSet Name="FK_UserPhoto_User" Association="Mukhina2023Model.FK_UserPhoto_User">
- <End Role="User" EntitySet="User" />
- <End Role="UserPhoto" EntitySet="UserPhoto" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="BreedTable">
- <Key>
- <PropertyRef Name="idBreed" />
- </Key>
- <Property Name="idBreed" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Breed" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CatTable" Relationship="Mukhina2023Model.FK_CatTable_BreedTable" FromRole="BreedTable" ToRole="CatTable" />
- </EntityType>
- <EntityType Name="CatTable">
- <Key>
- <PropertyRef Name="idCat" />
- </Key>
- <Property Name="idCat" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="CatName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="idBreed" Type="Int32" Nullable="false" />
- <Property Name="Birthday" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="idGender" Type="Int32" Nullable="false" />
- <Property Name="Photo" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="BreedTable" Relationship="Mukhina2023Model.FK_CatTable_BreedTable" FromRole="CatTable" ToRole="BreedTable" />
- <NavigationProperty Name="GenderTable" Relationship="Mukhina2023Model.FK_CatTable_GenderTable" FromRole="CatTable" ToRole="GenderTable" />
- <NavigationProperty Name="feedCatTable" Relationship="Mukhina2023Model.FK_feedCatTable_CatTable" FromRole="CatTable" ToRole="feedCatTable" />
- <NavigationProperty Name="PasssportTable" Relationship="Mukhina2023Model.FK_PasssportTable_CatTable" FromRole="CatTable" ToRole="PasssportTable" />
- <NavigationProperty Name="TraitCatTable" Relationship="Mukhina2023Model.FK_TraitCatTable_CatTable" FromRole="CatTable" ToRole="TraitCatTable" />
- </EntityType>
- <EntityType Name="feedCatTable">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="idCat" Type="Int32" Nullable="false" />
- <Property Name="idFeed" Type="Int32" Nullable="false" />
- <Property Name="Count" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CatTable" Relationship="Mukhina2023Model.FK_feedCatTable_CatTable" FromRole="feedCatTable" ToRole="CatTable" />
- <NavigationProperty Name="Feedtable" Relationship="Mukhina2023Model.FK_feedCatTable_Feedtable" FromRole="feedCatTable" ToRole="Feedtable" />
- </EntityType>
- <EntityType Name="Feedtable">
- <Key>
- <PropertyRef Name="idFeed" />
- </Key>
- <Property Name="idFeed" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Feed" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Price" Type="Int32" Nullable="false" />
- <NavigationProperty Name="feedCatTable" Relationship="Mukhina2023Model.FK_feedCatTable_Feedtable" FromRole="Feedtable" ToRole="feedCatTable" />
- </EntityType>
- <EntityType Name="GenderTable">
- <Key>
- <PropertyRef Name="idGender" />
- </Key>
- <Property Name="idGender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Gender" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CatTable" Relationship="Mukhina2023Model.FK_CatTable_GenderTable" FromRole="GenderTable" ToRole="CatTable" />
- </EntityType>
- <EntityType Name="PasssportTable">
- <Key>
- <PropertyRef Name="idCat" />
- </Key>
- <Property Name="idCat" Type="Int32" Nullable="false" />
- <Property Name="UniqueNumber" Type="String" Nullable="false" MaxLength="10" FixedLength="true" Unicode="true" />
- <Property Name="Color" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="CatTable" Relationship="Mukhina2023Model.FK_PasssportTable_CatTable" FromRole="PasssportTable" ToRole="CatTable" />
- </EntityType>
- <EntityType Name="TraitCatTable">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="idCat" Type="Int32" Nullable="false" />
- <Property Name="idTrait" Type="Int32" Nullable="false" />
- <NavigationProperty Name="CatTable" Relationship="Mukhina2023Model.FK_TraitCatTable_CatTable" FromRole="TraitCatTable" ToRole="CatTable" />
- <NavigationProperty Name="TraitTable" Relationship="Mukhina2023Model.FK_TraitCatTable_TraitTable" FromRole="TraitCatTable" ToRole="TraitTable" />
- </EntityType>
- <EntityType Name="TraitTable">
- <Key>
- <PropertyRef Name="idTrait" />
- </Key>
- <Property Name="idTrait" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Trait" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="TraitCatTable" Relationship="Mukhina2023Model.FK_TraitCatTable_TraitTable" FromRole="TraitTable" ToRole="TraitCatTable" />
- </EntityType>
- <EntityType Name="User">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Surname" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="DateBirthday" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="Role" Type="Int32" Nullable="false" />
- <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Password" Type="Int32" Nullable="false" />
- <Property Name="Avatar" Type="Int32" />
- <NavigationProperty Name="UserRole" Relationship="Mukhina2023Model.FK_User_UserRole" FromRole="User" ToRole="UserRole" />
- <NavigationProperty Name="UserPhoto" Relationship="Mukhina2023Model.FK_UserPhoto_User" FromRole="User" ToRole="UserPhoto" />
- </EntityType>
- <EntityType Name="UserPhoto">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="idUser" Type="Int32" Nullable="false" />
- <Property Name="Photo" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" />
- <NavigationProperty Name="User" Relationship="Mukhina2023Model.FK_UserPhoto_User" FromRole="UserPhoto" ToRole="User" />
- </EntityType>
- <EntityType Name="UserRole">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Role" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="User" Relationship="Mukhina2023Model.FK_User_UserRole" FromRole="UserRole" ToRole="User" />
- </EntityType>
- <Association Name="FK_CatTable_BreedTable">
- <End Type="Mukhina2023Model.BreedTable" Role="BreedTable" Multiplicity="1" />
- <End Type="Mukhina2023Model.CatTable" Role="CatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="BreedTable">
- <PropertyRef Name="idBreed" />
- </Principal>
- <Dependent Role="CatTable">
- <PropertyRef Name="idBreed" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_CatTable_GenderTable">
- <End Type="Mukhina2023Model.GenderTable" Role="GenderTable" Multiplicity="1" />
- <End Type="Mukhina2023Model.CatTable" Role="CatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="GenderTable">
- <PropertyRef Name="idGender" />
- </Principal>
- <Dependent Role="CatTable">
- <PropertyRef Name="idGender" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_feedCatTable_CatTable">
- <End Type="Mukhina2023Model.CatTable" Role="CatTable" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="Mukhina2023Model.feedCatTable" Role="feedCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CatTable">
- <PropertyRef Name="idCat" />
- </Principal>
- <Dependent Role="feedCatTable">
- <PropertyRef Name="idCat" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_PasssportTable_CatTable">
- <End Type="Mukhina2023Model.CatTable" Role="CatTable" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="Mukhina2023Model.PasssportTable" Role="PasssportTable" Multiplicity="0..1" />
- <ReferentialConstraint>
- <Principal Role="CatTable">
- <PropertyRef Name="idCat" />
- </Principal>
- <Dependent Role="PasssportTable">
- <PropertyRef Name="idCat" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TraitCatTable_CatTable">
- <End Type="Mukhina2023Model.CatTable" Role="CatTable" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Type="Mukhina2023Model.TraitCatTable" Role="TraitCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="CatTable">
- <PropertyRef Name="idCat" />
- </Principal>
- <Dependent Role="TraitCatTable">
- <PropertyRef Name="idCat" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_feedCatTable_Feedtable">
- <End Type="Mukhina2023Model.Feedtable" Role="Feedtable" Multiplicity="1" />
- <End Type="Mukhina2023Model.feedCatTable" Role="feedCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Feedtable">
- <PropertyRef Name="idFeed" />
- </Principal>
- <Dependent Role="feedCatTable">
- <PropertyRef Name="idFeed" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_TraitCatTable_TraitTable">
- <End Type="Mukhina2023Model.TraitTable" Role="TraitTable" Multiplicity="1" />
- <End Type="Mukhina2023Model.TraitCatTable" Role="TraitCatTable" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="TraitTable">
- <PropertyRef Name="idTrait" />
- </Principal>
- <Dependent Role="TraitCatTable">
- <PropertyRef Name="idTrait" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_User_UserRole">
- <End Type="Mukhina2023Model.UserRole" Role="UserRole" Multiplicity="1" />
- <End Type="Mukhina2023Model.User" Role="User" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="UserRole">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="User">
- <PropertyRef Name="Role" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_UserPhoto_User">
- <End Type="Mukhina2023Model.User" Role="User" Multiplicity="1" />
- <End Type="Mukhina2023Model.UserPhoto" Role="UserPhoto" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="UserPhoto">
- <PropertyRef Name="idUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </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="Хранилище Mukhina2023ModelContainer" CdmEntityContainer="Mukhina2023Entities">
- <EntitySetMapping Name="BreedTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.BreedTable">
- <MappingFragment StoreEntitySet="BreedTable">
- <ScalarProperty Name="Breed" ColumnName="Breed" />
- <ScalarProperty Name="idBreed" ColumnName="idBreed" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="CatTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.CatTable">
- <MappingFragment StoreEntitySet="CatTable">
- <ScalarProperty Name="Photo" ColumnName="Photo" />
- <ScalarProperty Name="idGender" ColumnName="idGender" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="idBreed" ColumnName="idBreed" />
- <ScalarProperty Name="CatName" ColumnName="CatName" />
- <ScalarProperty Name="idCat" ColumnName="idCat" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="feedCatTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.feedCatTable">
- <MappingFragment StoreEntitySet="feedCatTable">
- <ScalarProperty Name="Count" ColumnName="Count" />
- <ScalarProperty Name="idFeed" ColumnName="idFeed" />
- <ScalarProperty Name="idCat" ColumnName="idCat" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Feedtable">
- <EntityTypeMapping TypeName="Mukhina2023Model.Feedtable">
- <MappingFragment StoreEntitySet="Feedtable">
- <ScalarProperty Name="Price" ColumnName="Price" />
- <ScalarProperty Name="Feed" ColumnName="Feed" />
- <ScalarProperty Name="idFeed" ColumnName="idFeed" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="GenderTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.GenderTable">
- <MappingFragment StoreEntitySet="GenderTable">
- <ScalarProperty Name="Gender" ColumnName="Gender" />
- <ScalarProperty Name="idGender" ColumnName="idGender" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="PasssportTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.PasssportTable">
- <MappingFragment StoreEntitySet="PasssportTable">
- <ScalarProperty Name="Color" ColumnName="Color" />
- <ScalarProperty Name="UniqueNumber" ColumnName="UniqueNumber" />
- <ScalarProperty Name="idCat" ColumnName="idCat" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="TraitCatTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.TraitCatTable">
- <MappingFragment StoreEntitySet="TraitCatTable">
- <ScalarProperty Name="idTrait" ColumnName="idTrait" />
- <ScalarProperty Name="idCat" ColumnName="idCat" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="TraitTable">
- <EntityTypeMapping TypeName="Mukhina2023Model.TraitTable">
- <MappingFragment StoreEntitySet="TraitTable">
- <ScalarProperty Name="Trait" ColumnName="Trait" />
- <ScalarProperty Name="idTrait" ColumnName="idTrait" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="User">
- <EntityTypeMapping TypeName="Mukhina2023Model.User">
- <MappingFragment StoreEntitySet="User">
- <ScalarProperty Name="Avatar" ColumnName="Avatar" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="Role" ColumnName="Role" />
- <ScalarProperty Name="DateBirthday" ColumnName="DateBirthday" />
- <ScalarProperty Name="Surname" ColumnName="Surname" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="UserPhoto">
- <EntityTypeMapping TypeName="Mukhina2023Model.UserPhoto">
- <MappingFragment StoreEntitySet="UserPhoto">
- <ScalarProperty Name="Photo" ColumnName="Photo" />
- <ScalarProperty Name="idUser" ColumnName="idUser" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="UserRole">
- <EntityTypeMapping TypeName="Mukhina2023Model.UserRole">
- <MappingFragment StoreEntitySet="UserRole">
- <ScalarProperty Name="Role" ColumnName="Role" />
- <ScalarProperty Name="id" ColumnName="id" />
- </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>
|