239 lines
15 KiB
XML
239 lines
15 KiB
XML
<?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="Model.Store" 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="Categories">
|
|
<Key>
|
|
<PropertyRef Name="CategoryID" />
|
|
</Key>
|
|
<Property Name="CategoryID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="CategoryName" Type="varchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="Products">
|
|
<Key>
|
|
<PropertyRef Name="ProductID" />
|
|
</Key>
|
|
<Property Name="ProductID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ProductName" Type="varchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="CategoryID" Type="int" Nullable="false" />
|
|
<Property Name="Description" Type="text" />
|
|
</EntityType>
|
|
<Association Name="FK_Products_Categories">
|
|
<End Role="Categories" Type="Self.Categories" Multiplicity="1" />
|
|
<End Role="Products" Type="Self.Products" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Categories">
|
|
<PropertyRef Name="CategoryID" />
|
|
</Principal>
|
|
<Dependent Role="Products">
|
|
<PropertyRef Name="CategoryID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
|
|
<Function Name="GetNumberEight" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
|
|
<Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="diagramname" Type="nvarchar" Mode="In" />
|
|
<Parameter Name="owner_id" Type="int" Mode="In" />
|
|
<Parameter Name="version" Type="int" Mode="In" />
|
|
<Parameter Name="definition" Type="varbinary(max)" Mode="In" />
|
|
</Function>
|
|
<Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="diagramname" Type="nvarchar" Mode="In" />
|
|
<Parameter Name="owner_id" Type="int" Mode="In" />
|
|
<Parameter Name="version" Type="int" Mode="In" />
|
|
<Parameter Name="definition" Type="varbinary(max)" Mode="In" />
|
|
</Function>
|
|
<Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="diagramname" Type="nvarchar" Mode="In" />
|
|
<Parameter Name="owner_id" Type="int" Mode="In" />
|
|
</Function>
|
|
<Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="diagramname" Type="nvarchar" Mode="In" />
|
|
<Parameter Name="owner_id" Type="int" Mode="In" />
|
|
</Function>
|
|
<Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="diagramname" Type="nvarchar" Mode="In" />
|
|
<Parameter Name="owner_id" Type="int" Mode="In" />
|
|
</Function>
|
|
<Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
|
<Parameter Name="diagramname" Type="nvarchar" Mode="In" />
|
|
<Parameter Name="owner_id" Type="int" Mode="In" />
|
|
<Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
|
|
</Function>
|
|
<Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
|
|
<EntityContainer Name="ModelStoreContainer">
|
|
<EntitySet Name="Categories" EntityType="Self.Categories" Schema="dbo" store:Type="Tables" />
|
|
<EntitySet Name="Products" EntityType="Self.Products" Schema="dbo" store:Type="Tables" />
|
|
<AssociationSet Name="FK_Products_Categories" Association="Self.FK_Products_Categories">
|
|
<End Role="Categories" EntitySet="Categories" />
|
|
<End Role="Products" EntitySet="Products" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</Schema></edmx:StorageModels>
|
|
<!-- CSDL content -->
|
|
<edmx:ConceptualModels>
|
|
<Schema Namespace="Model" 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="ProductsEntities" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="Categories" EntityType="Model.Category" />
|
|
<EntitySet Name="Products" EntityType="Model.Product" />
|
|
<AssociationSet Name="FK_Products_Categories" Association="Model.FK_Products_Categories">
|
|
<End Role="Category" EntitySet="Categories" />
|
|
<End Role="Product" EntitySet="Products" />
|
|
</AssociationSet>
|
|
<FunctionImport Name="GetNumberEight" EntitySet="Products" ReturnType="Collection(Model.Product)" />
|
|
<FunctionImport Name="sp_alterdiagram">
|
|
<Parameter Name="diagramname" Mode="In" Type="String" />
|
|
<Parameter Name="owner_id" Mode="In" Type="Int32" />
|
|
<Parameter Name="version" Mode="In" Type="Int32" />
|
|
<Parameter Name="definition" Mode="In" Type="Binary" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="sp_creatediagram">
|
|
<Parameter Name="diagramname" Mode="In" Type="String" />
|
|
<Parameter Name="owner_id" Mode="In" Type="Int32" />
|
|
<Parameter Name="version" Mode="In" Type="Int32" />
|
|
<Parameter Name="definition" Mode="In" Type="Binary" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="sp_dropdiagram">
|
|
<Parameter Name="diagramname" Mode="In" Type="String" />
|
|
<Parameter Name="owner_id" Mode="In" Type="Int32" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(Model.sp_helpdiagramdefinition_Result)">
|
|
<Parameter Name="diagramname" Mode="In" Type="String" />
|
|
<Parameter Name="owner_id" Mode="In" Type="Int32" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(Model.sp_helpdiagrams_Result)">
|
|
<Parameter Name="diagramname" Mode="In" Type="String" />
|
|
<Parameter Name="owner_id" Mode="In" Type="Int32" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="sp_renamediagram">
|
|
<Parameter Name="diagramname" Mode="In" Type="String" />
|
|
<Parameter Name="owner_id" Mode="In" Type="Int32" />
|
|
<Parameter Name="new_diagramname" Mode="In" Type="String" />
|
|
</FunctionImport>
|
|
<FunctionImport Name="sp_upgraddiagrams" />
|
|
</EntityContainer>
|
|
<EntityType Name="Category">
|
|
<Key>
|
|
<PropertyRef Name="CategoryID" />
|
|
</Key>
|
|
<Property Name="CategoryID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="CategoryName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
<NavigationProperty Name="Products" Relationship="Model.FK_Products_Categories" FromRole="Category" ToRole="Product" />
|
|
</EntityType>
|
|
<EntityType Name="Product">
|
|
<Key>
|
|
<PropertyRef Name="ProductID" />
|
|
</Key>
|
|
<Property Name="ProductID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ProductName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
<Property Name="CategoryID" Type="Int32" Nullable="false" />
|
|
<Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
|
<NavigationProperty Name="Category" Relationship="Model.FK_Products_Categories" FromRole="Product" ToRole="Category" />
|
|
</EntityType>
|
|
<Association Name="FK_Products_Categories">
|
|
<End Type="Model.Category" Role="Category" Multiplicity="1" />
|
|
<End Type="Model.Product" Role="Product" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Category">
|
|
<PropertyRef Name="CategoryID" />
|
|
</Principal>
|
|
<Dependent Role="Product">
|
|
<PropertyRef Name="CategoryID" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<ComplexType Name="GetNumberEight_Result">
|
|
<Property Type="Int32" Name="ProductID" Nullable="false" />
|
|
<Property Type="String" Name="ProductName" Nullable="false" MaxLength="50" />
|
|
<Property Type="Int32" Name="CategoryID" Nullable="false" />
|
|
<Property Type="String" Name="Description" Nullable="true" MaxLength="Max" />
|
|
</ComplexType>
|
|
<ComplexType Name="sp_helpdiagramdefinition_Result">
|
|
<Property Type="Int32" Name="version" Nullable="true" />
|
|
<Property Type="Binary" Name="definition" Nullable="true" />
|
|
</ComplexType>
|
|
<ComplexType Name="sp_helpdiagrams_Result">
|
|
<Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
|
|
<Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
|
|
<Property Type="Int32" Name="ID" Nullable="false" />
|
|
<Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
|
|
<Property Type="Int32" Name="OwnerID" Nullable="false" />
|
|
</ComplexType>
|
|
</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="ModelStoreContainer" CdmEntityContainer="ProductsEntities">
|
|
<EntitySetMapping Name="Categories">
|
|
<EntityTypeMapping TypeName="Model.Category">
|
|
<MappingFragment StoreEntitySet="Categories">
|
|
<ScalarProperty Name="CategoryName" ColumnName="CategoryName" />
|
|
<ScalarProperty Name="CategoryID" ColumnName="CategoryID" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="Products">
|
|
<EntityTypeMapping TypeName="Model.Product">
|
|
<MappingFragment StoreEntitySet="Products">
|
|
<ScalarProperty Name="Description" ColumnName="Description" />
|
|
<ScalarProperty Name="CategoryID" ColumnName="CategoryID" />
|
|
<ScalarProperty Name="ProductName" ColumnName="ProductName" />
|
|
<ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<FunctionImportMapping FunctionImportName="GetNumberEight" FunctionName="Model.Store.GetNumberEight">
|
|
</FunctionImportMapping>
|
|
<FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Model.Store.sp_alterdiagram" />
|
|
<FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Model.Store.sp_creatediagram" />
|
|
<FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Model.Store.sp_dropdiagram" />
|
|
<FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Model.Store.sp_helpdiagramdefinition">
|
|
<ResultMapping>
|
|
<ComplexTypeMapping TypeName="Model.sp_helpdiagramdefinition_Result">
|
|
<ScalarProperty Name="version" ColumnName="version" />
|
|
<ScalarProperty Name="definition" ColumnName="definition" />
|
|
</ComplexTypeMapping>
|
|
</ResultMapping>
|
|
</FunctionImportMapping>
|
|
<FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Model.Store.sp_helpdiagrams">
|
|
<ResultMapping>
|
|
<ComplexTypeMapping TypeName="Model.sp_helpdiagrams_Result">
|
|
<ScalarProperty Name="Database" ColumnName="Database" />
|
|
<ScalarProperty Name="Name" ColumnName="Name" />
|
|
<ScalarProperty Name="ID" ColumnName="ID" />
|
|
<ScalarProperty Name="Owner" ColumnName="Owner" />
|
|
<ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
|
|
</ComplexTypeMapping>
|
|
</ResultMapping>
|
|
</FunctionImportMapping>
|
|
<FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Model.Store.sp_renamediagram" />
|
|
<FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Model.Store.sp_upgraddiagrams" />
|
|
</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="true" />
|
|
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
|
</DesignerInfoPropertySet>
|
|
</Options>
|
|
<!-- Diagram content (shape and connector positions) -->
|
|
<Diagrams></Diagrams>
|
|
</Designer>
|
|
</edmx:Edmx> |