c9e3374d5d
---------- VS Solutions are setup. Additions made to web project. Directory cleanup and movement completed. Updated with publish settings for website project (password NOT inlucded). Pub settings with password are saved in a localized file set that will be stored somewhere and backedup somewhere safe and private to avoid intrusions to webhosting rss. New: ------ Added Basic Models, SQL, EDMX, T4 Text Gen Files, and Auto-Gen'd the backing CS/SQL files. There is a database file added (not tested). There's also a backup of the sql files and other necessary tidbits included. Not Included: --------------- We do not yet have capacity for Scaffolding with current EF version and VS2017 because the backing database either is missing the table(s) OR because there's another issue caused by weirdness with the auto-gen process. No controllers/views/etc exist beyond the default template/wizard junk and the model system employed above. Expectations: --------------- Will need to test further once we've had a chance to back this up and walk through the manual steps to see what got missed by the auto-magic. Next Steps: ------------- Next step(s)/commit(s)/push(es) should include getting the datasbase populated with data-less tables, verifying the entity associations, scaffolding a very basic controller for each major entity, and testing basic add-update-view-delete logic (limited due to the tight relationships between certain tables/entities). More Info: ------------ Once we have the basic skeleton up and working, we can either dig into the Web side OR one of the front-end sides for devices (desktop.winforms, desktop.uwp.touch, mobile.xamarin, etc)...
310 lines
19 KiB
XML
310 lines
19 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 xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl" Namespace="Item.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005">
|
|
<EntityContainer Name="ItemTargetContainer" >
|
|
</EntityContainer>
|
|
</Schema>
|
|
</edmx:StorageModels>
|
|
<!-- CSDL content -->
|
|
<edmx:ConceptualModels>
|
|
<Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="Item" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
|
|
<EntityContainer Name="ItemContainer" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="Items" EntityType="Item.Item" />
|
|
<EntitySet Name="ItemCategories" EntityType="Item.ItemCategory" />
|
|
<EntitySet Name="PriceCategories" EntityType="Item.PriceCategory" />
|
|
<EntitySet Name="PricePoints" EntityType="Item.PricePoint" />
|
|
<AssociationSet Name="ItemCategoryItem" Association="Item.ItemCategoryItem">
|
|
<End Role="ItemCategory" EntitySet="ItemCategories" />
|
|
<End Role="Item" EntitySet="Items" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="PriceCategoryItem" Association="Item.PriceCategoryItem">
|
|
<End Role="PriceCategory" EntitySet="PriceCategories" />
|
|
<End Role="Item" EntitySet="Items" />
|
|
</AssociationSet>
|
|
<EntitySet Name="Deals" EntityType="Item.Deal" />
|
|
<EntitySet Name="DealItems" EntityType="Item.DealItem" />
|
|
<AssociationSet Name="DealsDealItems" Association="Item.DealsDealItems">
|
|
<End Role="Deals" EntitySet="Deals" />
|
|
<End Role="DealItems" EntitySet="DealItems" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="DealItemsItems" Association="Item.DealItemsItems">
|
|
<End Role="DealItems" EntitySet="DealItems" />
|
|
<End Role="Items" EntitySet="Items" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="DealItemsPriceCategories" Association="Item.DealItemsPriceCategories">
|
|
<End Role="DealItems" EntitySet="DealItems" />
|
|
<End Role="PriceCategories" EntitySet="PriceCategories" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="DealItemsPricePoints" Association="Item.DealItemsPricePoints">
|
|
<End Role="DealItems" EntitySet="DealItems" />
|
|
<End Role="PricePoints" EntitySet="PricePoints" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="PriceCategoriesPricePoints" Association="Item.PriceCategoriesPricePoints">
|
|
<End Role="PriceCategories" EntitySet="PriceCategories" />
|
|
<End Role="PricePoints" EntitySet="PricePoints" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="DealItemsItemCategories" Association="Item.DealItemsItemCategories">
|
|
<End Role="DealItems" EntitySet="DealItems" />
|
|
<End Role="ItemCategories" EntitySet="ItemCategories" />
|
|
</AssociationSet>
|
|
<EntitySet Name="ItemImages" EntityType="Item.ItemImage" />
|
|
<AssociationSet Name="ImagesItems" Association="Item.ImagesItems">
|
|
<End Role="Images" EntitySet="ItemImages" />
|
|
<End Role="Items" EntitySet="Items" />
|
|
</AssociationSet>
|
|
<EntitySet Name="Currencies" EntityType="Item.Currency" />
|
|
<EntitySet Name="CurrencyCategories" EntityType="Item.CurrencyCategory" />
|
|
<AssociationSet Name="CurrencyCategoryCurrencies" Association="Item.CurrencyCategoryCurrencies">
|
|
<End Role="CurrencyCategory" EntitySet="CurrencyCategories" />
|
|
<End Role="Currencies" EntitySet="Currencies" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="PricePointsCurrencies" Association="Item.PricePointsCurrencies">
|
|
<End Role="PricePoints" EntitySet="PricePoints" />
|
|
<End Role="Currencies" EntitySet="Currencies" />
|
|
</AssociationSet>
|
|
<EntitySet Name="ItemCategoryImages" EntityType="Item.ItemCategoryImage" />
|
|
<AssociationSet Name="ItemCategoryImageItemCategory" Association="Item.ItemCategoryImageItemCategory">
|
|
<End Role="ItemCategoryImage" EntitySet="ItemCategoryImages" />
|
|
<End Role="ItemCategory" EntitySet="ItemCategories" />
|
|
</AssociationSet>
|
|
<EntitySet Name="CurrencyImages" EntityType="Item.CurrencyImage" />
|
|
<EntitySet Name="CurrencyCategoryImages" EntityType="Item.CurrencyCategoryImage" />
|
|
<AssociationSet Name="CurrencyCategoryImageCurrencyCategory" Association="Item.CurrencyCategoryImageCurrencyCategory">
|
|
<End Role="CurrencyCategoryImage" EntitySet="CurrencyCategoryImages" />
|
|
<End Role="CurrencyCategory" EntitySet="CurrencyCategories" />
|
|
</AssociationSet>
|
|
<AssociationSet Name="CurrencyImageCurrency" Association="Item.CurrencyImageCurrency">
|
|
<End Role="CurrencyImage" EntitySet="CurrencyImages" />
|
|
<End Role="Currency" EntitySet="Currencies" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
<EntityType Name="Item">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<NavigationProperty Name="ItemCategory" Relationship="Item.ItemCategoryItem" FromRole="Item" ToRole="ItemCategory" />
|
|
<NavigationProperty Name="PriceCategory" Relationship="Item.PriceCategoryItem" FromRole="Item" ToRole="PriceCategory" />
|
|
<NavigationProperty Name="DealItem" Relationship="Item.DealItemsItems" FromRole="Items" ToRole="DealItems" />
|
|
<Property Name="Info" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="ItemImages" Relationship="Item.ImagesItems" FromRole="Items" ToRole="Images" />
|
|
</EntityType>
|
|
<EntityType Name="ItemCategory">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="Items" Relationship="Item.ItemCategoryItem" FromRole="ItemCategory" ToRole="Item" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="Info" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="DealItem" Relationship="Item.DealItemsItemCategories" FromRole="ItemCategories" ToRole="DealItems" />
|
|
<Property Name="Tangibility" Type="Item.Tangibility" Nullable="false" />
|
|
<NavigationProperty Name="ItemCategoryImage" Relationship="Item.ItemCategoryImageItemCategory" FromRole="ItemCategory" ToRole="ItemCategoryImage" />
|
|
</EntityType>
|
|
<EntityType Name="PriceCategory">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="Items" Relationship="Item.PriceCategoryItem" FromRole="PriceCategory" ToRole="Item" />
|
|
<NavigationProperty Name="DealItem" Relationship="Item.DealItemsPriceCategories" FromRole="PriceCategories" ToRole="DealItems" />
|
|
<NavigationProperty Name="PricePoints" Relationship="Item.PriceCategoriesPricePoints" FromRole="PriceCategories" ToRole="PricePoints" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="Info" Type="String" Nullable="true" />
|
|
</EntityType>
|
|
<EntityType Name="PricePoint">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="DealItem" Relationship="Item.DealItemsPricePoints" FromRole="PricePoints" ToRole="DealItems" />
|
|
<NavigationProperty Name="PriceCategory" Relationship="Item.PriceCategoriesPricePoints" FromRole="PricePoints" ToRole="PriceCategories" />
|
|
<Property Name="Qty" Type="Double" Nullable="false" />
|
|
<NavigationProperty Name="Currency" Relationship="Item.PricePointsCurrencies" FromRole="PricePoints" ToRole="Currencies" />
|
|
</EntityType>
|
|
<Association Name="ItemCategoryItem">
|
|
<End Type="Item.ItemCategory" Role="ItemCategory" Multiplicity="1" />
|
|
<End Type="Item.Item" Role="Item" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="PriceCategoryItem">
|
|
<End Type="Item.PriceCategory" Role="PriceCategory" Multiplicity="1" />
|
|
<End Type="Item.Item" Role="Item" Multiplicity="*" />
|
|
</Association>
|
|
<EntityType Name="Deal">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="Info" Type="String" Nullable="false" />
|
|
<Property Name="DateBegin" Type="DateTime" Nullable="false" />
|
|
<Property Name="DateEnd" Type="DateTime" Nullable="true" annotation:StoreGeneratedPattern="None" />
|
|
<NavigationProperty Name="DealItems" Relationship="Item.DealsDealItems" FromRole="Deals" ToRole="DealItems" />
|
|
</EntityType>
|
|
<EntityType Name="DealItem">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<NavigationProperty Name="Deal" Relationship="Item.DealsDealItems" FromRole="DealItems" ToRole="Deals" />
|
|
<NavigationProperty Name="Items" Relationship="Item.DealItemsItems" FromRole="DealItems" ToRole="Items" />
|
|
<NavigationProperty Name="PriceCategory" Relationship="Item.DealItemsPriceCategories" FromRole="DealItems" ToRole="PriceCategories" />
|
|
<NavigationProperty Name="PricePoints" Relationship="Item.DealItemsPricePoints" FromRole="DealItems" ToRole="PricePoints" />
|
|
<NavigationProperty Name="ItemCategories" Relationship="Item.DealItemsItemCategories" FromRole="DealItems" ToRole="ItemCategories" />
|
|
</EntityType>
|
|
<Association Name="DealsDealItems">
|
|
<End Type="Item.Deal" Role="Deals" Multiplicity="1" />
|
|
<End Type="Item.DealItem" Role="DealItems" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="DealItemsItems">
|
|
<End Type="Item.DealItem" Role="DealItems" Multiplicity="1" />
|
|
<End Type="Item.Item" Role="Items" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="DealItemsPriceCategories">
|
|
<End Type="Item.DealItem" Role="DealItems" Multiplicity="*" />
|
|
<End Type="Item.PriceCategory" Role="PriceCategories" Multiplicity="0..1" />
|
|
</Association>
|
|
<Association Name="DealItemsPricePoints">
|
|
<End Type="Item.DealItem" Role="DealItems" Multiplicity="*" />
|
|
<End Type="Item.PricePoint" Role="PricePoints" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="PriceCategoriesPricePoints">
|
|
<End Type="Item.PriceCategory" Role="PriceCategories" Multiplicity="*" />
|
|
<End Type="Item.PricePoint" Role="PricePoints" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="DealItemsItemCategories">
|
|
<End Type="Item.DealItem" Role="DealItems" Multiplicity="1" />
|
|
<End Type="Item.ItemCategory" Role="ItemCategories" Multiplicity="*" />
|
|
</Association>
|
|
<EntityType Name="ItemImage">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="ImageURL" Type="String" Nullable="true" />
|
|
<Property Name="Image" Type="String" Nullable="false" />
|
|
<Property Name="Author" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="Items" Relationship="Item.ImagesItems" FromRole="Images" ToRole="Items" />
|
|
</EntityType>
|
|
<Association Name="ImagesItems">
|
|
<End Type="Item.ItemImage" Role="Images" Multiplicity="*" />
|
|
<End Type="Item.Item" Role="Items" Multiplicity="0..1" />
|
|
</Association>
|
|
<EntityType Name="Currency">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="Type" Type="String" Nullable="false" />
|
|
<Property Name="Info" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="CurrencyCategory" Relationship="Item.CurrencyCategoryCurrencies" FromRole="Currencies" ToRole="CurrencyCategory" />
|
|
<NavigationProperty Name="PricePoint" Relationship="Item.PricePointsCurrencies" FromRole="Currencies" ToRole="PricePoints" />
|
|
<NavigationProperty Name="CurrencyImage" Relationship="Item.CurrencyImageCurrency" FromRole="Currency" ToRole="CurrencyImage" />
|
|
</EntityType>
|
|
<EntityType Name="CurrencyCategory">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="Type" Type="String" Nullable="false" />
|
|
<NavigationProperty Name="Currencies" Relationship="Item.CurrencyCategoryCurrencies" FromRole="CurrencyCategory" ToRole="Currencies" />
|
|
<NavigationProperty Name="CurrencyCategoryImage" Relationship="Item.CurrencyCategoryImageCurrencyCategory" FromRole="CurrencyCategory" ToRole="CurrencyCategoryImage" />
|
|
</EntityType>
|
|
<Association Name="CurrencyCategoryCurrencies">
|
|
<End Type="Item.CurrencyCategory" Role="CurrencyCategory" Multiplicity="1" />
|
|
<End Type="Item.Currency" Role="Currencies" Multiplicity="*" />
|
|
</Association>
|
|
<Association Name="PricePointsCurrencies">
|
|
<End Type="Item.PricePoint" Role="PricePoints" Multiplicity="*" />
|
|
<End Type="Item.Currency" Role="Currencies" Multiplicity="1" />
|
|
</Association>
|
|
<EnumType Name="Tangibility">
|
|
<Member Name="Unknown" Value="1" />
|
|
<Member Name="Tangible" Value="2" />
|
|
<Member Name="Intangible" Value="4" />
|
|
</EnumType>
|
|
<EntityType Name="ItemCategoryImage">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="ImageURL" Type="String" Nullable="true" />
|
|
<Property Name="Image" Type="Binary" Nullable="true" />
|
|
<Property Name="Author" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="ItemCategories" Relationship="Item.ItemCategoryImageItemCategory" FromRole="ItemCategoryImage" ToRole="ItemCategory" />
|
|
</EntityType>
|
|
<Association Name="ItemCategoryImageItemCategory">
|
|
<End Type="Item.ItemCategoryImage" Role="ItemCategoryImage" Multiplicity="0..1" />
|
|
<End Type="Item.ItemCategory" Role="ItemCategory" Multiplicity="0..1" />
|
|
</Association>
|
|
<EntityType Name="CurrencyImage">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="ImageURL" Type="String" Nullable="true" />
|
|
<Property Name="Image" Type="Binary" Nullable="true" />
|
|
<Property Name="Author" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="Currencies" Relationship="Item.CurrencyImageCurrency" FromRole="CurrencyImage" ToRole="Currency" />
|
|
</EntityType>
|
|
<EntityType Name="CurrencyCategoryImage">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Name" Type="String" Nullable="false" />
|
|
<Property Name="ImageURL" Type="String" Nullable="true" />
|
|
<Property Name="Image" Type="Binary" Nullable="true" />
|
|
<Property Name="Author" Type="String" Nullable="true" />
|
|
<NavigationProperty Name="CurrencyCategories" Relationship="Item.CurrencyCategoryImageCurrencyCategory" FromRole="CurrencyCategoryImage" ToRole="CurrencyCategory" />
|
|
</EntityType>
|
|
<Association Name="CurrencyCategoryImageCurrencyCategory">
|
|
<End Type="Item.CurrencyCategoryImage" Role="CurrencyCategoryImage" Multiplicity="0..1" />
|
|
<End Type="Item.CurrencyCategory" Role="CurrencyCategory" Multiplicity="0..1" />
|
|
</Association>
|
|
<Association Name="CurrencyImageCurrency">
|
|
<End Type="Item.CurrencyImage" Role="CurrencyImage" Multiplicity="*" />
|
|
<End Type="Item.Currency" Role="Currency" Multiplicity="0..1" />
|
|
</Association>
|
|
</Schema>
|
|
</edmx:ConceptualModels>
|
|
<!-- C-S mapping content -->
|
|
<edmx:Mappings>
|
|
<Mapping xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs" Space="C-S">
|
|
<Alias Key="Model" Value="Item" />
|
|
<Alias Key="Target" Value="Item.Store" />
|
|
<EntityContainerMapping CdmEntityContainer="ItemContainer" StorageEntityContainer="ItemTargetContainer">
|
|
</EntityContainerMapping>
|
|
</Mapping>
|
|
</edmx:Mappings>
|
|
</edmx:Runtime>
|
|
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
|
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
<edmx:Connection>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
|
</DesignerInfoPropertySet>
|
|
</edmx:Connection>
|
|
<edmx:Options>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
<DesignerProperty Name="EnablePluralization" Value="True" />
|
|
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
|
</DesignerInfoPropertySet>
|
|
</edmx:Options>
|
|
<!-- Diagram content (shape and connector positions) -->
|
|
<edmx:Diagrams>
|
|
</edmx:Diagrams>
|
|
</edmx:Designer>
|
|
</edmx:Edmx>
|