home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Introducing the New Way to Shop from Home
/
Iceland.iso
/
pc
/
unipower
/
Data1.cab
/
IcelandRevisions_Client.xml1
< prev
next >
Wrap
Text File
|
2003-03-05
|
71KB
|
1,320 lines
<models>
<model name="IcelandRevisions">
<dataconnections>
<dataconnection name="Iceland" type="dcserver" connectionstring="IcelandOffline_Sync"/>
<dataconnection name="IcelandMain" type="dcserver" connectionstring="IcelandOffline"/>
<dataconnection name="IcelandRevisions" type="dcserver" connectionstring=""/>
<dataconnection name="MediaWWWRoot" type="file" connectionstring="%SMRuntime\Applications\IcelandOffline\Media_WWWRoot_Path%"/>
<dataconnection name="MediaStoreContent" type="file" connectionstring="%SMRuntime\Applications\IcelandOfflineStoreContent\Media_WWWRoot_Path%"/>
<dataconnection name="MediaRepository" type="file" connectionstring="%SMRuntime\Applications\IcelandOffline\Media_Repository_Path%"/>
<dataconnection name="MediaSoftware" type="file" connectionstring="%SMRuntime\Applications\IcelandOffline\Media_Software_Path%"/>
</dataconnections>
<objects>
<!-- Count set -->
<object name="Count">
<datasource>
<query id="Attributes" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Attribute" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="AttributeGroups" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM AttributeGroup" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="AttributeMaps" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM AttributeMap" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Barcodes" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Barcode" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Campaigns" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Campaign" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Categories" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Category" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Parameters" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Parameter" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="PriceChanges" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM PriceChange" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Products" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Product" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductAttributeValues" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductAttributeValue" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductGroups" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductGroup" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductInCategories" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductInCategory" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductInPromosets" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductInPromoset" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductOptions" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductOption" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductOptionValues" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductOptionValue" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Promos" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Promo" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="PromoSets" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Promoset" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="RelatedProductInProducts" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM RelatedProductInProduct" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="SelectableAttributeInProdGroups" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM SelectableAttributeInProdGroup" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="StoreGroups" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM StoreGroup" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="SubstituteProductInProducts" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM SubstituteProductInProduct" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="Units" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM Unit" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="UnitGroups" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM UnitGroup" connection="Iceland" type="replace" use="raw"/>
</query>
</datasource>
<properties>
<property name="RowCnt" alias="RowCnt" datatype="integer" nullable="false"/>
</properties>
<relationships>
<relationship name="Store" collection="true" keyprop="none" object="StoreCount" query="Store">
<key fkey="StoreID" pkey="StoreID" to="child" from="parent"/>
</relationship>
<relationship name="Stores" collection="true" keyprop="none" object="StoreCount" query="Stores"/>
<relationship name="Attributes" collection="false" keyprop="none" object="Count" query="Attributes"/>
<relationship name="AttributeGroups" collection="false" keyprop="none" object="Count" query="AttributeGroups"/>
<relationship name="AttributeMaps" collection="false" keyprop="none" object="Count" query="AttributeMaps"/>
<relationship name="Barcodes" collection="false" keyprop="none" object="Count" query="Barcodes"/>
<relationship name="Campaigns" collection="false" keyprop="none" object="Count" query="Campaigns"/>
<relationship name="Categories" collection="false" keyprop="none" object="Count" query="Categories"/>
<relationship name="Parameters" collection="false" keyprop="none" object="Count" query="Parameters"/>
<relationship name="PriceChanges" collection="false" keyprop="none" object="Count" query="PriceChanges"/>
<relationship name="Products" collection="false" keyprop="none" object="Count" query="Products"/>
<relationship name="ProductAttributeValues" collection="false" keyprop="none" object="Count" query="ProductAttributeValues"/>
<relationship name="ProductGroups" collection="false" keyprop="none" object="Count" query="ProductGroups"/>
<relationship name="ProductInCategories" collection="false" keyprop="none" object="Count" query="ProductInCategories"/>
<relationship name="ProductInPromosets" collection="false" keyprop="none" object="Count" query="ProductInPromosets"/>
<relationship name="ProductOptions" collection="false" keyprop="none" object="Count" query="ProductOptions"/>
<relationship name="ProductOptionValues" collection="false" keyprop="none" object="Count" query="ProductOptionValues"/>
<relationship name="Promos" collection="false" keyprop="none" object="Count" query="Promos"/>
<relationship name="Promosets" collection="false" keyprop="none" object="Count" query="Promosets"/>
<relationship name="RelatedProductInProducts" collection="false" keyprop="none" object="Count" query="RelatedProductInProducts"/>
<relationship name="SelectableAttributeInProdGroups" collection="false" keyprop="none" object="Count" query="SelectableAttributeInProdGroups"/>
<relationship name="StoreGroups" collection="false" keyprop="none" object="Count" query="StoreGroups"/>
<relationship name="SubstituteProductInProducts" collection="false" keyprop="none" object="Count" query="SubstituteProductInProducts"/>
<relationship name="Units" collection="false" keyprop="none" object="Count" query="Units"/>
<relationship name="UnitGroups" collection="false" keyprop="none" object="Count" query="UnitGroups"/>
</relationships>
</object>
<object name="StoreCount">
<datasource>
<query id="Store" default="true">
<select name="SELECT StoreID, 1 AS RowCnt FROM Store WHERE StoreID=@StoreID" connection="Iceland" type="replace" use="raw">
<parameter name="StoreID" datatype="integer" direction="in"/>
</select>
</query>
<query id="Stores" default="true">
<select name="SELECT StoreID, 1 AS RowCnt FROM Store" connection="Iceland" type="replace" use="raw"/>
</query>
<query id="ProductInStore" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM ProductInStore WHERE StoreID=@StoreID" connection="Iceland" type="replace" use="raw">
<parameter name="StoreID" datatype="integer" direction="in"/>
</select>
</query>
<query id="PromoInStore" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM PromoInStore WHERE StoreID=@StoreID" connection="Iceland" type="replace" use="raw">
<parameter name="StoreID" datatype="integer" direction="in"/>
</select>
</query>
<query id="CategoryInStore" default="false">
<select name="SELECT COUNT(*) AS RowCnt FROM CategoryInStore WHERE StoreID=@StoreID" connection="Iceland" type="replace" use="raw">
<parameter name="StoreID" datatype="integer" direction="in"/>
</select>
</query>
</datasource>
<properties>
<property name="RowCnt" alias="RowCnt" datatype="integer" nullable="false"/>
<property name="StoreID" alias="StoreID" datatype="integer" nullable="false"/>
</properties>
<relationships>
<relationship object="StoreCount" name="ProductInStore" keyprop="down" collection="false" query="ProductInStore">
<key fkey="StoreID" pkey="StoreID" to="child" from="parent"/>
</relationship>
<relationship object="StoreCount" name="PromoInStore" keyprop="down" collection="false" query="PromoInStore">
<key fkey="StoreID" pkey="StoreID" to="child" from="parent"/>
</relationship>
<relationship object="StoreCount" name="CategoryInStore" keyprop="down" collection="false" query="CategoryInStore">
<key fkey="StoreID" pkey="StoreID" to="child" from="parent"/>
</relationship>
</relationships>
</object>
<!-- Revision set -->
<object name="Attribute">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Attribute" connection="Iceland" type="table" use="dcserver"/>
<select name="Attribute" connection="Iceland" type="table" use="raw"/>
<insert name="Attribute" connection="Iceland" type="table" use="raw"/>
<update name="Attribute" connection="Iceland" type="table" use="raw"/>
<delete name="Attribute" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="AttributeID" alias="AttributeID" datatype="long" pkey="true"/>
<property name="AttributeGroupID" alias="AttributeGroupID" datatype="long"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="SortValue" alias="SortValue" datatype="short"/>
<property name="IsAllowedInList" alias="IsAllowedInList" datatype="boolean"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Attribute" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="AttributeGroup">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="AttributeGroup" connection="Iceland" type="table" use="dcserver"/>
<select name="AttributeGroup" connection="Iceland" type="table" use="raw"/>
<insert name="AttributeGroup" connection="Iceland" type="table" use="raw"/>
<update name="AttributeGroup" connection="Iceland" type="table" use="raw"/>
<delete name="AttributeGroup" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="AttributeGroupID" alias="AttributeGroupID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="AttributeMapID" alias="AttributeMapID" datatype="long"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="AttributeGroup" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="AttributeMap">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="AttributeMap" connection="Iceland" type="table" use="dcserver"/>
<select name="AttributeMap" connection="Iceland" type="table" use="raw"/>
<insert name="AttributeMap" connection="Iceland" type="table" use="raw"/>
<update name="AttributeMap" connection="Iceland" type="table" use="raw"/>
<delete name="AttributeMap" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="AttributeMapID" alias="AttributeMapID" datatype="long" pkey="true"/>
<property name="AttributeMapName" alias="AttributeMapName" datatype="string"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="AttributeMap" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Barcode">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Barcode" connection="Iceland" type="table" use="dcserver"/>
<select name="Barcode" connection="Iceland" type="table" use="raw"/>
<insert name="Barcode" connection="Iceland" type="table" use="raw"/>
<update name="Barcode" connection="Iceland" type="table" use="raw"/>
<delete name="Barcode" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="Barcode" alias="Barcode" datatype="string" pkey="true"/>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Barcode" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Campaign">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Campaign" connection="Iceland" type="table" use="dcserver"/>
<select name="Campaign" connection="Iceland" type="table" use="raw"/>
<insert name="Campaign" connection="Iceland" type="table" use="raw"/>
<update name="Campaign" connection="Iceland" type="table" use="raw"/>
<delete name="Campaign" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="CampaignID" alias="CampaignID" datatype="long" pkey="true"/>
<property name="Description" alias="Description" datatype="string"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Campaign" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Category">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Category" connection="Iceland" type="table" use="dcserver"/>
<select name="Category" connection="Iceland" type="table" use="raw"/>
<insert name="Category" connection="Iceland" type="table" use="raw"/>
<update name="Category" connection="Iceland" type="table" use="raw"/>
<delete name="Category" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="CategoryID" alias="CategoryID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="ParentID" alias="ParentID" datatype="long"/>
<property name="LevelNo" alias="LevelNo" datatype="short"/>
<property name="IsLeaf" alias="IsLeaf" datatype="boolean"/>
<property name="TopLevelID" alias="TopLevelID" datatype="long"/>
<property name="ColorCode" alias="ColorCode" datatype="string"/>
<property name="SortOrder" alias="SortOrder" datatype="long"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Category" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="CategoryInStore">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="false">
<select name="CategoryInStore" connection="Iceland" type="table" use="dcserver"/>
<select name="CategoryInStore" connection="Iceland" type="table" use="raw"/>
<insert name="CategoryInStore" connection="Iceland" type="table" use="raw"/>
<update name="CategoryInStore" connection="Iceland" type="table" use="raw"/>
<delete name="CategoryInStore" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="StoreID" alias="StoreID" datatype="long" pkey="true"/>
<property name="CategoryID" alias="CategoryID" datatype="long" pkey="true"/>
<property name="Revision" alias="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<!--<relationship name="Revisions" object="CategoryInStore" collection="true" keyprop="none" query="RS"/>-->
</relationships>
</object>
<object name="Parameter">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Parameter" connection="Iceland" type="table" use="dcserver"/>
<select name="Parameter" connection="Iceland" type="table" use="raw"/>
<insert name="Parameter" connection="Iceland" type="table" use="raw"/>
<update name="Parameter" connection="Iceland" type="table" use="raw"/>
<delete name="Parameter" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ParameterID" alias="ParameterID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="ParameterValue" alias="ParameterValue" datatype="string"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Parameter" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="PostcodeZone">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="PostcodeZone" connection="Iceland" type="table" use="dcserver"/>
<select name="PostcodeZone" connection="Iceland" type="table" use="raw"/>
<insert name="PostcodeZone" connection="Iceland" type="table" use="raw"/>
<update name="PostcodeZone" connection="Iceland" type="table" use="raw"/>
<delete name="PostcodeZone" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="Postcode" alias="Postcode" datatype="string" pkey="true"/>
<property name="ZoneID" alias="ZoneID" datatype="long"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="PostcodeZone" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="PriceChange">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="PriceChange" connection="Iceland" type="table" use="dcserver"/>
<select name="PriceChange" connection="Iceland" type="table" use="raw"/>
<insert name="PriceChange" connection="Iceland" type="table" use="raw"/>
<update name="PriceChange" connection="Iceland" type="table" use="raw"/>
<delete name="PriceChange" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="PriceChangeID" alias="PriceChangeID" datatype="long" pkey="true"/>
<property name="PriceChangeDate" alias="PriceChangeDate" datatype="date"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="PriceChange" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Product">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Product" connection="Iceland" type="table" use="dcserver"/>
<select name="Product" connection="Iceland" type="table" use="raw"/>
<insert name="Product" connection="Iceland" type="table" use="raw"/>
<update name="Product" connection="Iceland" type="table" use="raw"/>
<delete name="Product" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="ProductGroupID" alias="ProductGroupID" datatype="long" nullable="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="Description" alias="Description" datatype="string" nullable="true"/>
<property name="PackSize" alias="PackSize" datatype="short"/>
<property name="UnitSize" alias="UnitSize" datatype="double" nullable="true"/>
<property name="UnitID" alias="UnitID" datatype="long"/>
<property name="IsUnitSelectable" alias="IsUnitSelectable" datatype="boolean"/>
<property name="ProductCode" alias="ProductCode" datatype="string" nullable="true"/>
<property name="CaseDealParentID" alias="CaseDealParentID" datatype="long" nullable="true"/>
<property name="HasLabelData" alias="hasLabelData" datatype="boolean" nullable="false"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Product" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="ProductAttributeValue">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="ProductAttributeValue" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductAttributeValue" connection="Iceland" type="table" use="raw"/>
<insert name="ProductAttributeValue" connection="Iceland" type="table" use="raw"/>
<update name="ProductAttributeValue" connection="Iceland" type="table" use="raw"/>
<delete name="ProductAttributeValue" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="PAVID" alias="PAVID" datatype="long" pkey="true"/>
<property name="ProductID" alias="ProductID" datatype="long"/>
<property name="AttributeID" alias="AttributeID" datatype="long"/>
<property name="AttributeValue" alias="AttributeValue" datatype="string"/>
<property name="UnitID" alias="UnitID" datatype="long" nullable="true"/>
<property name="OrderNumber" alias="OrderNumber" datatype="long"/>
<property name="PartName" alias="PartName" datatype="string" nullable="true"/>
<property name="ColumnNumber" alias="ColumnNumber" datatype="long" nullable="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="ProductAttributeValue" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="ProductGroup">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="ProductGroup" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductGroup" connection="Iceland" type="table" use="raw"/>
<insert name="ProductGroup" connection="Iceland" type="table" use="raw"/>
<update name="ProductGroup" connection="Iceland" type="table" use="raw"/>
<delete name="ProductGroup" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductGroupID" alias="ProductGroupID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="ProductGroup" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="ProductInCategory">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="ProductInCategory" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductInCategory" connection="Iceland" type="table" use="raw"/>
<insert name="ProductInCategory" connection="Iceland" type="table" use="raw"/>
<update name="ProductInCategory" connection="Iceland" type="table" use="raw"/>
<delete name="ProductInCategory" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="CategoryID" alias="CategoryID" datatype="long" pkey="true"/>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="ProductInCategory" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="ProductInPromoSet">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="ProductInPromoSet" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductInPromoSet" connection="Iceland" type="table" use="raw"/>
<insert name="ProductInPromoSet" connection="Iceland" type="table" use="raw"/>
<update name="ProductInPromoSet" connection="Iceland" type="table" use="raw"/>
<delete name="ProductInPromoSet" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="PromoSetID" alias="PromoSetID" datatype="long" pkey="true"/>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="ProductInPromoSet" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="ProductInStore">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="false">
<select name="ProductInStore" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductInStore" connection="Iceland" type="table" use="raw"/>
<insert name="ProductInStore" connection="Iceland" type="table" use="raw"/>
<update name="ProductInStore" connection="Iceland" type="table" use="raw"/>
<delete name="ProductInStore" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="StoreID" alias="StoreID" datatype="long" pkey="true"/>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="Price" alias="Price" datatype="currency"/>
<property name="IntroductionDate" alias="IntroductionDate" datatype="date" pkey="true"/>
<property name="ComparativeSizeInfo" alias="ComparativeSizeInfo" datatype="string"/>
<property name="IsNew" alias="IsNew" datatype="boolean"/>
<property name="Saving" alias="Saving" datatype="currency" nullable="true"/>
<property name="AddedVal" alias="AddedVal" datatype="string" nullable="true"/>
<property name="IsCaseDealParent" alias="IsCaseDealParent" datatype="boolean" nullable="false"/>
<property name="CaseDealSaving" alias="CaseDealSaving" datatype="long" nullable="true"/>
<property name="CaseDealImageID" alias="CaseDealImageID" datatype="string" nullable="true"/>
<property name="Revision" alias="Revision" datatype="integer" nullable="true"/>
</properties>
<relationships>
<!--<relationship name="Revisions" object="ProductInStore" collection="true" keyprop="none" query="RS"/>-->
</relationships>
</object>
<object name="ProductOption">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="ProductOption" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductOption" connection="Iceland" type="table" use="raw"/>
<insert name="ProductOption" connection="Iceland" type="table" use="raw"/>
<update name="ProductOption" connection="Iceland" type="table" use="raw"/>
<delete name="ProductOption" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductOptionID" alias="ProductOptionID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="SortValue" alias="SortValue" datatype="short"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="ProductOption" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="ProductOptionValue">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="ProductOptionValue" connection="Iceland" type="table" use="dcserver"/>
<select name="ProductOptionValue" connection="Iceland" type="table" use="raw"/>
<insert name="ProductOptionValue" connection="Iceland" type="table" use="raw"/>
<update name="ProductOptionValue" connection="Iceland" type="table" use="raw"/>
<delete name="ProductOptionValue" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="ProductOptionID" alias="ProductOptionID" datatype="long" pkey="true"/>
<property name="SortValue" alias="SortValue" datatype="short"/>
<property name="OptionValue" alias="OptionValue" datatype="string"/>
<property name="IsDefault" alias="IsDefault" datatype="boolean"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="ProductOptionValue" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Promo">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Promo" connection="Iceland" type="table" use="dcserver"/>
<select name="Promo" connection="Iceland" type="table" use="raw"/>
<insert name="Promo" connection="Iceland" type="table" use="raw"/>
<update name="Promo" connection="Iceland" type="table" use="raw"/>
<delete name="Promo" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="PromoID" alias="PromoID" datatype="long" pkey="true"/>
<property name="PromoType" alias="PromoType" datatype="long"/>
<property name="ImageID" alias="ImageID" datatype="long"/>
<property name="Description" alias="Description" datatype="string"/>
<property name="StartDate" alias="StartDate" datatype="date"/>
<property name="EndDate" alias="EndDate" datatype="date"/>
<property name="LoyaltyClubOnly" alias="LoyaltyClubOnly" datatype="boolean"/>
<property name="IsOneTime" alias="IsOneTime" datatype="boolean"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Promo" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="PromoInStore">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="false">
<select name="PromoInStore" connection="Iceland" type="table" use="dcserver"/>
<select name="PromoInStore" connection="Iceland" type="table" use="raw"/>
<insert name="PromoInStore" connection="Iceland" type="table" use="raw"/>
<update name="PromoInStore" connection="Iceland" type="table" use="raw"/>
<delete name="PromoInStore" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="StoreID" alias="StoreID" datatype="long" pkey="true"/>
<property name="PromoID" alias="PromoID" datatype="long" pkey="true"/>
<property name="Revision" alias="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="PromoInStore" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="PromoSet">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="PromoSet" connection="Iceland" type="table" use="dcserver"/>
<select name="PromoSet" connection="Iceland" type="table" use="raw"/>
<insert name="PromoSet" connection="Iceland" type="table" use="raw"/>
<update name="PromoSet" connection="Iceland" type="table" use="raw"/>
<delete name="PromoSet" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="PromoSetID" alias="PromoSetID" datatype="long" pkey="true"/>
<property name="PromoID" alias="PromoID" datatype="long"/>
<property name="Quantity" alias="Quantity" datatype="double" nullable="true"/>
<property name="MaxQuantity" alias="MaxQuantity" datatype="double" nullable="true"/>
<property name="LoyaltyPointsReward" alias="LoyaltyPointsReward" datatype="long" nullable="true"/>
<property name="Reduction" alias="Reduction" datatype="currency" nullable="true"/>
<property name="DiscountQuantity" alias="DiscountQuantity" datatype="long" nullable="true"/>
<property name="Discount" alias="Discount" datatype="double" nullable="true"/>
<property name="CostThreshold" alias="CostThreshold" datatype="currency" nullable="true"/>
<property name="CostMultiplier" alias="CostMultiplier" datatype="currency" nullable="true"/>
<property name="CostFrom" alias="CostFrom" datatype="currency" nullable="true"/>
<property name="CostTo" alias="CostTo" datatype="string" nullable="true"/>
<property name="CouponPromoID" alias="CouponPromoID" datatype="long" nullable="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="PromoSet" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="RelatedProductInProduct">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="RelatedProductInProduct" connection="Iceland" type="table" use="dcserver"/>
<select name="RelatedProductInProduct" connection="Iceland" type="table" use="raw"/>
<insert name="RelatedProductInProduct" connection="Iceland" type="table" use="raw"/>
<update name="RelatedProductInProduct" connection="Iceland" type="table" use="raw"/>
<delete name="RelatedProductInProduct" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="RelatedProductID" alias="RelatedProductID" datatype="long" pkey="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="RelatedProductInProduct" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="SelectableAttributeInProdGroup">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="SelectableAttributeInProdGroup" connection="Iceland" type="table" use="dcserver"/>
<select name="SelectableAttributeInProdGroup" connection="Iceland" type="table" use="raw"/>
<insert name="SelectableAttributeInProdGroup" connection="Iceland" type="table" use="raw"/>
<update name="SelectableAttributeInProdGroup" connection="Iceland" type="table" use="raw"/>
<delete name="SelectableAttributeInProdGroup" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductGroupID" alias="ProductGroupID" datatype="long" pkey="true"/>
<property name="AttributeID" alias="AttributeID" datatype="long" pkey="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="SelectableAttributeInProdGroup" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Store">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Store" connection="Iceland" type="table" use="dcserver"/>
<select name="Store" connection="Iceland" type="table" use="raw"/>
<insert name="Store" connection="Iceland" type="table" use="raw"/>
<update name="Store" connection="Iceland" type="table" use="raw"/>
<delete name="Store" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="StoreID" alias="StoreID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="Enabled" alias="Enabled" datatype="boolean"/>
<property name="Revision" alias="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Store" collection="true" keyprop="none" query="RS"/>
<relationship name="Products" object="ProductInStore" collection="true" keyprop="down" query="RS">
<key pkey="StoreID" fkey="StoreID" from="parent" to="child"/>
</relationship>
<relationship name="Categories" object="CategoryInStore" collection="true" keyprop="down" query="RS">
<key pkey="StoreID" fkey="StoreID" from="parent" to="child"/>
</relationship>
<relationship name="Promos" object="PromoInStore" collection="true" keyprop="down" query="RS">
<key pkey="StoreID" fkey="StoreID" from="parent" to="child"/>
</relationship>
</relationships>
</object>
<object name="StoreGroup">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="StoreGroup" connection="Iceland" type="table" use="dcserver"/>
<select name="StoreGroup" connection="Iceland" type="table" use="raw"/>
<insert name="StoreGroup" connection="Iceland" type="table" use="raw"/>
<update name="StoreGroup" connection="Iceland" type="table" use="raw"/>
<delete name="StoreGroup" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="StoreGroupID" alias="StoreGroupID" datatype="long" pkey="true"/>
<property name="StoreGroupName" alias="StoreGroupName" datatype="string"/>
<property name="ContentPath" alias="ContentPath" datatype="string"/>
<property name="AllowProductNotes" alias="AllowProductNotes" datatype="boolean"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="StoreGroup" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="StoreInStoreGroup">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="StoreInStoreGroup" connection="Iceland" type="table" use="dcserver"/>
<select name="StoreInStoreGroup" connection="Iceland" type="table" use="raw"/>
<insert name="StoreInStoreGroup" connection="Iceland" type="table" use="raw"/>
<update name="StoreInStoreGroup" connection="Iceland" type="table" use="raw"/>
<delete name="StoreInStoreGroup" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="StoreGroupID" alias="StoreGroupID" datatype="long" pkey="true"/>
<property name="StoreID" alias="StoreID" datatype="long" pkey="true"/>
<property name="Revision" alias="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="StoreInStoreGroup" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="SubstituteProductInProduct">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="SubstituteProductInProduct" connection="Iceland" type="table" use="dcserver"/>
<select name="SubstituteProductInProduct" connection="Iceland" type="table" use="raw"/>
<insert name="SubstituteProductInProduct" connection="Iceland" type="table" use="raw"/>
<update name="SubstituteProductInProduct" connection="Iceland" type="table" use="raw"/>
<delete name="SubstituteProductInProduct" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="ProductID" alias="ProductID" datatype="long" pkey="true"/>
<property name="SubstituteProductID" alias="SubstituteProductID" datatype="long" pkey="true"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="SubstituteProductInProduct" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="Unit">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="Unit" connection="Iceland" type="table" use="dcserver"/>
<select name="Unit" connection="Iceland" type="table" use="raw"/>
<insert name="Unit" connection="Iceland" type="table" use="raw"/>
<update name="Unit" connection="Iceland" type="table" use="raw"/>
<delete name="Unit" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="UnitID" alias="UnitID" datatype="long" pkey="true"/>
<property name="UnitGroupID" alias="UnitGroupID" datatype="long" nullable="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="Description" alias="Description" datatype="string"/>
<property name="ConvertRate" alias="ConvertRate" datatype="single"/>
<property name="IsInteger" alias="IsInteger" datatype="boolean"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="Unit" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<object name="UnitGroup">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="RS" default="true">
<select name="UnitGroup" connection="Iceland" type="table" use="dcserver"/>
<select name="UnitGroup" connection="Iceland" type="table" use="raw"/>
<insert name="UnitGroup" connection="Iceland" type="table" use="raw"/>
<update name="UnitGroup" connection="Iceland" type="table" use="raw"/>
<delete name="UnitGroup" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="UnitGroupID" alias="UnitGroupID" datatype="long" pkey="true"/>
<property name="Name" alias="Name" datatype="string"/>
<property name="ConvertRateUnitID" alias="ConvertRateUnitID" datatype="long"/>
<property name="Revision" nullable="true" datatype="integer"/>
</properties>
<relationships>
<relationship name="Revisions" object="UnitGroup" collection="true" keyprop="none" query="RS"/>
</relationships>
</object>
<!-- Customer Data set -->
<object name="Customer">
<datasource>
<query id="Customer" default="true">
<select name="Customer" connection="Iceland" type="table" use="raw"/>
<insert name="Customer" connection="Iceland" type="table" use="raw"/>
<update name="Customer" connection="Iceland" type="table" use="raw"/>
<delete name="Customer" connection="Iceland" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="CustomerID" alias="CustomerID" datatype="integer" nullable="false" pkey="true" identity="true"/>
<property name="SessionGuid" alias="SessionGuid" datatype="guid" nullable="false"/>
<property name="LastLogin" alias="LastLogin" datatype="date" nullable="false"/>
<property name="CreationDate" alias="CreationDate" datatype="date" nullable="true"/>
<property name="Title" alias="Title" datatype="string" nullable="false"/>
<property name="Surname" alias="Surname" datatype="string" nullable="false"/>
<property name="Forename" alias="Forename" datatype="string" nullable="false"/>
<property name="EMail" alias="EMail" datatype="string" nullable="true"/>
<property name="Password" alias="Password" datatype="string" nullable="true"/>
<property name="HomeTel" alias="HomeTel" datatype="string" nullable="true"/>
<property name="CustomerType" alias="CustomerType" datatype="short" nullable="true"/>
<property name="Status" alias="Status" datatype="short" nullable="true"/>
<property name="GuestPostcode" alias="GuestPostcode" datatype="string" nullable="true"/>
<property name="LoyaltyPoints" alias="LoyaltyPoints" datatype="float" nullable="true"/>
<property name="LoginID" alias="LoginID" datatype="string" nullable="true"/>
<property name="LastAddressID" alias="LastAddressID" datatype="integer" nullable="true"/>
<property name="IsAdmin" alias="IsAdmin" datatype="boolean" nullable="true"/>
<property name="CCNo" alias="CCNo" datatype="string" nullable="true"/>
<property name="CCName" alias="CCName" datatype="string" nullable="true"/>
<property name="CCFromDate" alias="CCFromDate" datatype="date" nullable="true"/>
<property name="CCExpDate" alias="CCExpDate" datatype="date" nullable="true"/>
<property name="CCIssueNo" alias="CCIssueNo" datatype="integer" nullable="true"/>
<property name="CCSave" alias="CCSave" datatype="boolean" nullable="true"/>
<property name="RecieveInfoIceland" alias="RecieveInfoIceland" datatype="boolean" nullable="true"/>
<property name="RecieveInfoOther" alias="RecieveInfoOther" datatype="boolean" nullable="true"/>
<property name="UpdateFlag" alias="UpdateFlag" datatype="boolean" nullable="true"/>
<property name="Source" alias="Source" datatype="string" nullable="true"/>
</properties>
<relationships>
<relationship name="BasketItems" object="BasketItem" collection="true" keyprop="down" query="BasketItems">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
<relationship name="Lists" object="List" collection="true" keyprop="down" query="CustomerLists">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
<relationship name="Favourites" object="Favourite" collection="true" keyprop="down" query="CustomerFavourites">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
<relationship name="Addresses" object="Address" collection="true" keyprop="down" query="CustomerAddresses">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
<relationship name="Orders" object="Order" collection="true" keyprop="down" query="CustomerOrders">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
<relationship name="Zones" object="Zone" collection="true" keyprop="down" query="CustomerZones">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
<relationship name="Deliveries" object="Delivery" collection="true" keyprop="down" query="CustomerDeliveries">
<key fkey="SessionGuid" pkey="SessionGuid" to="child" from="parent"/>
</relationship>
</relationships>
</object>
<object name="Order">
<datasource>
<query id="CustomerOrders" default="true">
<select connection="Iceland" name="SELECT
Orders.OrderID,
Orders.CustomerID,
Orders.StoreID,
Orders.OrderCost,
Orders.TotalItemCost,
Orders.TotalItems,
Orders.OrderDate,
Orders.Status,
Orders.PromoReduction,
Orders.LoyaltyPoints,
Orders.InvoiceAddress,
Orders.DeliveryHouseName,
Orders.DeliveryStreet,
Orders.DeliveryArea,
Orders.DeliveryTown,
Orders.DeliveryCounty,
Orders.DeliveryPostcode,
Orders.IsMailingAddress,
Orders.DeliveryID,
Orders.DeliveryStartDate,
Orders.DeliveryEndDate,
Orders.AcceptSubs,
Orders.Instructions,
Orders.DeliveryInstructions,
Orders.Source
FROM Orders
INNER JOIN Customer
ON Orders.CustomerID=Customer.CustomerID
WHERE Customer.SessionGuid=@SessionGuid
AND Orders.OrderID>@MaxOrderID" type="replace" use="raw">
<parameter name="SessionGuid" datatype="string" direction="in"/>
<parameter name="MaxOrderID" datatype="long" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="Orders" type="table"/>
<update use="raw" connection="Iceland" name="Orders" type="table"/>
<delete use="raw" connection="Iceland" name="Orders" type="table"/>
</query>
</datasource>
<properties>
<property name="OrderID" alias="OrderID" datatype="integer" nullable="false" pkey="true" identity="true"/>
<property name="StoreID" alias="StoreID" datatype="integer" nullable="false"/>
<property name="CustomerID" alias="CustomerID" datatype="integer" nullable="true"/>
<property name="OrderCost" alias="OrderCost" datatype="money" nullable="true"/>
<property name="TotalItemCost" alias="TotalItemCost" datatype="money" nullable="true"/>
<property name="TotalItems" alias="TotalItems" datatype="short" nullable="true"/>
<property name="OrderDate" alias="OrderDate" datatype="date" nullable="true"/>
<property name="Status" alias="Status" datatype="short" nullable="true"/>
<property name="PromoReduction" alias="PromoReduction" datatype="money" nullable="true"/>
<property name="LoyaltyPoints" alias="LoyaltyPoints" datatype="integer" nullable="true"/>
<property name="InvoiceAddress" alias="InvoiceAddress" datatype="string" nullable="true"/>
<property name="DeliveryHouseName" alias="DeliveryHouseName" datatype="string" nullable="true"/>
<property name="DeliveryStreet" alias="DeliveryStreet" datatype="string" nullable="true"/>
<property name="DeliveryArea" alias="DeliveryArea" datatype="string" nullable="true"/>
<property name="DeliveryTown" alias="DeliveryTown" datatype="string" nullable="true"/>
<property name="DeliveryCounty" alias="DeliveryCounty" datatype="string" nullable="true"/>
<property name="DeliveryPostcode" alias="DeliveryPostcode" datatype="string" nullable="true"/>
<property name="IsMailingAddress" alias="IsMailingAddress" datatype="boolean" nullable="true"/>
<property name="DeliveryID" alias="DeliveryID" datatype="integer" nullable="true"/>
<property name="DeliveryStartDate" alias="DeliveryStartDate" datatype="date" nullable="true"/>
<property name="DeliveryEndDate" alias="DeliveryEndDate" datatype="date" nullable="true"/>
<property name="AcceptSubs" alias="AcceptSubs" datatype="boolean" nullable="true"/>
<property name="Instructions" alias="Instructions" datatype="string" nullable="true"/>
<property name="DeliveryInstructions" alias="DeliveryInstructions" datatype="string" nullable="true"/>
<property name="Source" alias="Source" datatype="string" nullable="true"/>
</properties>
<relationships>
<relationship name="Items" object="OrderItem" collection="true" keyprop="down" query="OrderItems">
<key fkey="OrderID" pkey="OrderID" to="child" from="parent"/>
</relationship>
</relationships>
</object>
<object name="OrderItem">
<datasource>
<query id="OrderItems" default="true">
<select name="SELECT
OrderItem.OrderItemID,
OrderItem.OrderID,
OrderItem.ProductID,
OrderItem.Quantity,
OrderItem.UnitID,
OrderItem.ItemCost,
OrderItem.ItemNo,
OrderItem.Note,
OrderItem.PromoReduction
FROM OrderItem
WHERE OrderID=@OrderID" type="replace" use="raw" connection="Iceland">
<parameter name="OrderID" datatype="long" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="OrderItem" type="table"/>
<update use="raw" connection="Iceland" name="OrderItem" type="table"/>
<delete use="raw" connection="Iceland" name="OrderItem" type="table"/>
</query>
</datasource>
<properties>
<property name="OrderItemID" alias="OrderItemID" datatype="long" nullable="false" pkey="true" identity="true"/>
<property name="OrderID" alias="OrderID" datatype="long" nullable="false"/>
<property name="ProductID" alias="ProductID" datatype="integer" nullable="false"/>
<property name="Quantity" alias="Quantity" datatype="integer" nullable="false"/>
<property name="UnitID" alias="UnitID" datatype="integer" nullable="false"/>
<property name="ItemNo" alias="ItemNo" datatype="integer" nullable="false"/>
<property name="ItemCost" alias="ItemCost" datatype="float" nullable="false"/>
<property name="Note" alias="Note" datatype="string" nullable="false"/>
<property name="PromoReduction" alias="PromoReduction" datatype="float" nullable="false"/>
</properties>
<relationships/>
</object>
<object name="List">
<datasource>
<query id="CustomerLists" default="true">
<select connection="Iceland" name="SELECT
List.ListID,
List.Name,
List.CustomerID
FROM List
INNER JOIN Customer
ON List.CustomerID = Customer.CustomerID
WHERE Customer.SessionGuid=@SessionGUID" type="replace" use="raw">
<parameter name="SessionGuid" datatype="string" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="List" type="table"/>
<update use="raw" connection="Iceland" name="List" type="table"/>
<delete use="raw" connection="Iceland" name="List" type="table"/>
</query>
</datasource>
<properties>
<property name="ListID" alias="ListID" datatype="integer" nullable="false" pkey="true" identity="true"/>
<property name="CustomerID" alias="CustomerID" datatype="integer" nullable="false"/>
<property name="Name" alias="Name" datatype="string" nullable="true"/>
</properties>
<relationships>
<relationship name="Items" object="ListItem" collection="true" keyprop="down" query="ListItems">
<key fkey="ListID" pkey="ListID" to="child" from="parent"/>
</relationship>
</relationships>
</object>
<object name="ListItem">
<datasource>
<query id="ListItems" default="true">
<select name="SELECT
ListItemID,
ListID,
ProductID,
Quantity,
UnitID,
ItemNo,
Note
FROM ListItem
WHERE ListID=@ListID" type="replace" use="raw" connection="Iceland">
<parameter name="ListID" datatype="long" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="ListItem" type="table"/>
<update use="raw" connection="Iceland" name="ListItem" type="table"/>
<delete use="raw" connection="Iceland" name="ListItem" type="table"/>
</query>
</datasource>
<properties>
<property name="ListItemID" alias="ListItemID" datatype="long" nullable="false" pkey="true" identity="true"/>
<property name="ListID" alias="ListID" datatype="long" nullable="false"/>
<property name="ProductID" alias="ProductID" datatype="integer" nullable="false"/>
<property name="Quantity" alias="Quantity" datatype="integer" nullable="false"/>
<property name="UnitID" alias="UnitID" datatype="integer" nullable="false"/>
<property name="ItemNo" alias="ItemNo" datatype="integer" nullable="false"/>
<property name="Note" alias="Note" datatype="string" nullable="false"/>
</properties>
<relationships/>
</object>
<object name="BasketItem">
<datasource>
<query id="BasketItems" default="true">
<select name="SELECT
BasketItem.BasketItemID,
BasketItem.CustomerID,
BasketItem.ProductID,
BasketItem.Quantity,
BasketItem.UnitID,
BasketItem.ItemNo,
BasketItem.Note
FROM BasketItem
INNER JOIN Customer
ON Customer.CustomerID = BasketItem.CustomerID
WHERE Customer.SessionGuid=@SessionGUID" type="replace" use="raw" connection="Iceland">
<parameter name="SessionGuid" datatype="string" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="BasketItem" type="table"/>
<update use="raw" connection="Iceland" name="BasketItem" type="table"/>
<delete use="raw" connection="Iceland" name="BasketItem" type="table"/>
</query>
</datasource>
<properties>
<property name="BasketItemID" alias="BasketItemID" datatype="long" nullable="false" pkey="true" identity="true"/>
<property name="CustomerID" alias="CustomerID" datatype="long" nullable="false"/>
<property name="ProductID" alias="ProductID" datatype="integer" nullable="false"/>
<property name="Quantity" alias="Quantity" datatype="integer" nullable="false"/>
<property name="UnitID" alias="UnitID" datatype="integer" nullable="false"/>
<property name="ItemNo" alias="ItemNo" datatype="integer" nullable="false"/>
<property name="Note" alias="Note" datatype="string" nullable="false"/>
</properties>
<relationships/>
</object>
<object name="Favourite">
<datasource>
<query id="CustomerFavourites">
<select name="SELECT
Favourite.CustomerID,
Favourite.ProductID,
Favourite.TotalQtyBought,
Favourite.NumberOfOrders,
Favourite.LastPurchaseDate,
Favourite.FirstPurchasedate,
Favourite.IsVisible
FROM Favourite
INNER JOIN Customer
ON Favourite.CustomerID = Customer.CustomerID
WHERE Customer.SessionGuid=@sessionGUID
" type="replace" connection="Iceland" use="raw">
<parameter name="SessionGuid" datatype="string" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="Favourite" type="table"/>
<update use="raw" connection="Iceland" name="Favourite" type="table"/>
<delete use="raw" connection="Iceland" name="Favourite" type="table"/>
</query>
</datasource>
<properties>
<property name="CustomerID" alias="CustomerID" datatype="integer" nullable="false" pkey="true"/>
<property name="ProductID" alias="ProductID" datatype="integer" nullable="false" pkey="true"/>
<property name="TotalQtyBought" alias="TotalQtyBought" datatype="float" nullable="true"/>
<property name="NumberOfOrders" alias="NumberOfOrders" datatype="integer" nullable="true"/>
<property name="LastPurchaseDate" alias="LastPurchaseDate" datatype="date" nullable="true"/>
<property name="FirstPurchaseDate" alias="FirstPurchaseDate" datatype="date" nullable="true"/>
<property name="IsVisible" alias="IsVisible" datatype="integer" nullable="true"/>
</properties>
<relationships/>
</object>
<object name="Address">
<datasource>
<query id="CustomerAddresses">
<select name="SELECT
Address.AddressID,
Address.CustomerID,
Address.AddressTypeID,
Address.HouseName,
Address.Street,
Address.Area,
Address.Town,
Address.County,
Address.Postcode,
Address.ShowTerms,
Address.StoreID,
Address.ZoneID
FROM
Address
INNER JOIN Customer
ON Address.CustomerID = Customer.CustomerID
WHERE Customer.SessionGuid=@SessionGuid" type="replace" connection="Iceland" use="raw">
<parameter name="SessionGuid" datatype="string" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="Address" type="table"/>
<update use="raw" connection="Iceland" name="Address" type="table"/>
<delete use="raw" connection="Iceland" name="Address" type="table"/>
</query>
</datasource>
<properties>
<property name="AddressID" alias="AddressID" datatype="integer" nullable="false" pkey="true"/>
<property name="CustomerID" alias="CustomerID" datatype="integer" nullable="false" pkey="true"/>
<property name="AddressTypeID" alias="AddressTypeID" datatype="integer" nullable="false" pkey="true"/>
<property name="HouseName" alias="HouseName" datatype="string" nullable="false"/>
<property name="Street" alias="Street" datatype="string" nullable="false"/>
<property name="Area" alias="Area" datatype="string" nullable="true"/>
<property name="Town" alias="Town" datatype="string" nullable="false"/>
<property name="County" alias="County" datatype="string" nullable="true"/>
<property name="Postcode" alias="Postcode" datatype="string" nullable="false"/>
<property name="ShowTerms" alias="ShowTerms" datatype="boolean" nullable="false"/>
<property name="StoreID" alias="StoreID" datatype="integer" nullable="false"/>
<property name="ZoneID" alias="ZoneID" datatype="integer" nullable="false"/>
</properties>
<relationships/>
</object>
<object name="Zone">
<datasource>
<query default="true" id="CustomerZones">
<select name="SELECT Zone.ZoneID,Zone.Description,Zone.StoreID FROM Zone
INNER JOIN Address ON Zone.ZoneID=Address.ZoneID
INNER JOIN Customer ON Customer.CustomerID=Address.CustomerID
WHERE Customer.SessionGuid=@SessionGuid" connection="Iceland" use="raw" type="replace">
<parameter name="SessionGuid" datatype="string" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="Zone" type="table"/>
<update use="raw" connection="Iceland" name="Zone" type="table"/>
<delete use="raw" connection="Iceland" name="Zone" type="table"/>
</query>
</datasource>
<properties>
<property name="ZoneID" alias="ZoneID" datatype="integer" pkey="true"/>
<property name="Description" alias="Description" datatype="string"/>
<property name="StoreID" alias="StoreID" datatype="integer"/>
</properties>
<relationships/>
</object>
<object name="Delivery">
<datasource>
<query id="CustomerDeliveries">
<select name="SELECT
Delivery.DeliveryID,
Delivery.StartDate,
Delivery.EndDate,
Delivery.Cost,
Delivery.SlotCount,
Delivery.ZoneID,
Delivery.CutOffdate
FROM Delivery
INNER JOIN Address
ON Delivery.ZoneID=Address.ZoneID
INNER JOIN Customer
ON Address.CustomerID = Customer.CustomerID
WHERE Customer.SessionGuid = @SessionGuid" connection="Iceland" use="raw" type="replace">
<parameter name="SessionGuid" datatype="string" direction="in"/>
</select>
<insert use="raw" connection="Iceland" name="Delivery" type="table"/>
<update use="raw" connection="Iceland" name="Delivery" type="table"/>
<delete use="raw" connection="Iceland" name="Delivery" type="table"/>
</query>
</datasource>
<properties>
<property name="DeliveryID" alias="DeliveryID" datatype="integer" pkey="true"/>
<property name="StartDate" alias="StartDate" datatype="date"/>
<property name="EndDate" alias="EndDate" datatype="date"/>
<property name="Cost" alias="Cost" datatype="float"/>
<property name="SlotCount" alias="SlotCount" datatype="integer"/>
<property name="ZoneID" alias="ZoneID" datatype="integer"/>
<property name="CutOffDate" alias="CutOffDate" datatype="date"/>
</properties>
<relationships/>
</object>
<object name="CustomerPostcodeStore">
<datasource>
<query id="CustomerPostcodeStore" default="true">
<select use="raw" connection="IcelandMain" name="CustomerPostcodeStore" type="table"/>
<insert use="raw" connection="IcelandMain" name="CustomerPostcodeStore" type="table"/>
<update use="raw" connection="IcelandMain" name="CustomerPostcodeStore" type="table"/>
<delete use="raw" connection="IcelandMain" name="CustomerPostcodeStore" type="table"/>
</query>
</datasource>
<properties>
<property name="Postcode" alias="Postcode" datatype="string" nullable="false"/>
<property name="StoreID" alias="StoreID" datatype="integer" nullable="false"/>
<property name="ZoneID" alias="ZoneID" datatype="integer" nullable="false"/>
<property name="CustomerID" alias="CustomerID" datatype="integer" nullable="false"/>
</properties>
<relationships/>
</object>
<!-- Media Data set -->
<object name="MediaWWWRoot">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="WWWRoot" default="true">
<select name="" connection="MediaWWWRoot" type="table" use="dcserver"/>
<select name="" connection="MediaWWWRoot" type="table" use="raw"/>
<update name="" connection="MediaWWWRoot" type="table" use="raw"/>
<insert name="" connection="MediaWWWRoot" type="table" use="raw"/>
<delete name="" connection="MediaWWWRoot" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="Name" alias="Name" datatype="string" nullable="false" pkey="true"/>
<property name="Size" alias="Size" datatype="integer" nullable="false"/>
<property name="Data" alias="Data" datatype="string" nullable="true"/>
<property name="Revision" alias="" datatype="long" nullable="true"/>
</properties>
<relationships>
<relationship name="Revisions" object="MediaWWWRoot" keyprop="down" collection="true" query="WWWRoot"/>
</relationships>
</object>
<object name="MediaStoreContent">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="StoreContent" default="true">
<select name="" connection="MediaStoreContent" type="table" use="dcserver"/>
<select name="" connection="MediaStoreContent" type="table" use="raw"/>
<update name="" connection="MediaStoreContent" type="table" use="raw"/>
<insert name="" connection="MediaStoreContent" type="table" use="raw"/>
<delete name="" connection="MediaStoreContent" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="Name" alias="Name" datatype="string" nullable="false" pkey="true"/>
<property name="Size" alias="Size" datatype="integer" nullable="false"/>
<property name="Data" alias="Data" datatype="string" nullable="true"/>
<property name="Revision" alias="" datatype="long" nullable="true"/>
</properties>
<relationships>
<relationship name="Revisions" object="MediaStoreContent" keyprop="down" collection="true" query="StoreContent"/>
</relationships>
</object>
<object name="MediaRepository">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="Repository" default="true">
<select name="" connection="MediaRepository" type="table" use="dcserver"/>
<select name="" connection="MediaRepository" type="table" use="raw"/>
<update name="" connection="MediaRepository" type="table" use="raw"/>
<insert name="" connection="MediaRepository" type="table" use="raw"/>
<delete name="" connection="MediaRepository" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="Name" alias="Name" datatype="string" nullable="false" pkey="true"/>
<property name="Size" alias="Size" datatype="integer" nullable="false"/>
<property name="Data" alias="Data" datatype="string" nullable="true"/>
<property name="Revision" alias="" datatype="long" nullable="true"/>
</properties>
<relationships>
<relationship name="Revisions" object="MediaRepository" keyprop="down" collection="true" query="Repository"/>
</relationships>
</object>
<object name="MediaSoftware">
<dcserver dc="IcelandRevisions" enable="true"/>
<datasource>
<query id="Repository" default="true">
<select name="" connection="MediaSoftware" type="table" use="dcserver"/>
<select name="" connection="MediaSoftware" type="table" use="raw"/>
<update name="" connection="MediaSoftware" type="table" use="raw"/>
<insert name="" connection="MediaSoftware" type="table" use="raw"/>
<delete name="" connection="MediaSoftware" type="table" use="raw"/>
</query>
</datasource>
<properties>
<property name="Name" alias="Name" datatype="string" nullable="false" pkey="true"/>
<property name="Size" alias="Size" datatype="integer" nullable="false"/>
<property name="Data" alias="Data" datatype="string" nullable="true"/>
<property name="Revision" alias="" datatype="long" nullable="true"/>
</properties>
<relationships>
<relationship name="Revisions" object="MediaSoftware" keyprop="down" collection="true" query="Repository"/>
</relationships>
</object>
</objects>
</model>
</models>