test/wwi-dw-ssdt/obj/Debug/Model.xml

<?xml version="1.0" encoding="utf-8"?>
<DataSchemaModel FileFormatVersion="1.2" SchemaVersion="2.9" DspName="Microsoft.Data.Tools.Schema.Sql.Sql130DatabaseSchemaProvider" CollationLcid="1033" CollationCaseSensitive="False" xmlns="http://schemas.microsoft.com/sqlserver/dac/Serialization/2012/02">
    <Header>
        <CustomData Category="AnsiNulls">
            <Metadata Name="AnsiNulls" Value="True" />
        </CustomData>
        <CustomData Category="QuotedIdentifier">
            <Metadata Name="QuotedIdentifier" Value="True" />
        </CustomData>
        <CustomData Category="CompatibilityMode">
            <Metadata Name="CompatibilityMode" Value="130" />
        </CustomData>
        <CustomData Category="Reference" Type="Assembly">
            <Metadata Name="LogicalName" Value="wwi_dw_ssdt.dll" />
            <Metadata Name="FileName" Value="C:\USERS\RICHIE\SOURCE\REPOS\POSHSSDTBUILDDEPLOY\POSHSSDTBUILDDEPLOY\TEST\WWI-DW-SSDT\OBJ\DEBUG\WWI_DW_SSDT.DLL" />
            <Metadata Name="AssemblyName" Value="wwi_dw_ssdt" />
            <Metadata Name="PermissionSet" Value="SAFE" />
            <Metadata Name="Owner" Value="" />
            <Metadata Name="GenerateSqlClrDdl" Value="True" />
            <Metadata Name="IsVisible" Value="True" />
            <Metadata Name="IsModelAware" Value="True" />
            <Metadata Name="SkipCreationIfEmpty" Value="True" />
            <Metadata Name="AssemblySymbolsName" Value="C:\Users\Richie\Source\Repos\PoshSSDTBuildDeploy\PoshSSDTBuildDeploy\test\wwi-dw-ssdt\obj\Debug\wwi_dw_ssdt.pdb" />
        </CustomData>
        <CustomData Category="SqlCmdVariables" Type="SqlCmdVariable" />
    </Header>
    <Model>
        <Element Type="SqlDatabaseOptions">
            <Property Name="Collation" Value="Latin1_General_100_CI_AS" />
            <Property Name="IsAnsiNullDefaultOn" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Property Name="IsAnsiWarningsOn" Value="True" />
            <Property Name="IsConcatNullYieldsNullOn" Value="True" />
            <Property Name="IsTornPageProtectionOn" Value="False" />
            <Property Name="IsFullTextEnabled" Value="True" />
            <Property Name="IsAutoUpdateStatisticsAsyncOn" Value="True" />
            <Property Name="PageVerifyMode" Value="3" />
            <Property Name="IsMemoryOptimizedElevatedToSnapshot" Value="True" />
            <Property Name="DefaultLanguage" Value="" />
            <Property Name="DefaultFullTextLanguage" Value="" />
            <Property Name="QueryStoreDesiredState" Value="2" />
            <Property Name="QueryStoreStaleQueryThreshold" Value="367" />
            <Relationship Name="DefaultFilegroup">
                <Entry>
                    <References Name="[USERDATA]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlDefaultConstraint">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(1)]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[dbo].[SampleVersion]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[dbo].[SampleVersion].[RowCount]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="3" />
        </Element>
        <Element Type="SqlSchema" Name="[Application]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlProcedure" Name="[Application].[Configuration_ApplyPolybase]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    IF SERVERPROPERTY(N'IsPolybaseInstalled') = 0
    BEGIN
        PRINT N'Warning: Either Polybase cannot be created on this edition or it has not been installed.';
    END ELSE BEGIN -- if installed
        IF (SELECT value FROM sys.configurations WHERE name = 'hadoop connectivity') NOT IN (1, 4, 7)
        BEGIN
            PRINT N'Warning: Hadoop connectivity has not been enabled. It must be set to 1, 4, or 7 for Azure Storage connectivity.';
        END ELSE BEGIN -- if Polybase can be created
 
            DECLARE @SQL nvarchar(max) = N'';
 
            BEGIN TRY
 
                SET @SQL = N'
CREATE EXTERNAL DATA SOURCE AzureStorage
WITH
(
    TYPE=HADOOP, LOCATION = ''wasbs://data@sqldwdatasets.blob.core.windows.net''
);';
                EXECUTE (@SQL);
 
                SET @SQL = N'
CREATE EXTERNAL FILE FORMAT CommaDelimitedTextFileFormat
WITH
(
    FORMAT_TYPE = DELIMITEDTEXT,
    FORMAT_OPTIONS
    (
        FIELD_TERMINATOR = '',''
    )
);';
                EXECUTE (@SQL);
 
                SET @SQL = N'
CREATE EXTERNAL TABLE dbo.CityPopulationStatistics
(
    CityID int NOT NULL,
    StateProvinceCode nvarchar(5) NOT NULL,
    CityName nvarchar(50) NOT NULL,
    YearNumber int NOT NULL,
    LatestRecordedPopulation bigint NULL
)
WITH
(
    LOCATION = ''/'',
    DATA_SOURCE = AzureStorage,
    FILE_FORMAT = CommaDelimitedTextFileFormat,
    REJECT_TYPE = VALUE,
    REJECT_VALUE = 4 -- skipping 1 header row per file
);';
                EXECUTE (@SQL);
 
            END TRY
            BEGIN CATCH
                PRINT N'Unable to apply Polybase connectivity to Azure storage';
                THROW;
            END CATCH;
        END; -- if connectivity enabled
    END; -- of Polybase is allowed and installed
END;]]></Value>
            </Property>
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry />
                <Entry />
                <Entry />
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Application]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1716" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE [Application].Configuration_ApplyPolybase&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Application].[Configuration_PopulateLargeSaleTable]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    EXEC Integration.PopulateDateDimensionForYear 2012;
    DECLARE @ReturnValue int;
 
    EXEC @ReturnValue = [Application].Configuration_ApplyPartitionedColumnstoreIndexing;
    DECLARE @LineageKey int = NEXT VALUE FOR Sequences.LineageKey;
 
    INSERT Integration.Lineage
        ([Lineage Key], [Data Load Started], [Table Name], [Data Load Completed], [Was Successful],
         [Source System Cutoff Time])
    VALUES
        (@LineageKey, SYSDATETIME(), N'Sale', NULL, 0, '20121231')
 
    DECLARE @OrderCounter bigint = 0;
    DECLARE @NumberOfSalesPerDay bigint = @EstimatedRowsFor2012 / 365;
    DECLARE @DateCounter date = '20120101';
    DECLARE @StartingSaleKey bigint;
    DECLARE @MaximumSaleKey bigint = (SELECT MAX([Sale Key]) FROM Fact.Sale);
 
    PRINT 'Targeting ' + CAST(@NumberOfSalesPerDay AS varchar(20)) + ' sales per day.';
    IF @NumberOfSalesPerDay > 50000
    BEGIN
        PRINT 'WARNING: Limiting sales to 40000 per day';
        SET @NumberOfSalesPerDay = 50000;
    END;
 
    DECLARE @OutputCounter varchar(20);
 
 
-- DROP CONSTRAINTS
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_City_Key_Dimension_City]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_Customer_Key_Dimension_Customer]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_Delivery_Date_Key_Dimension_Date]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_Invoice_Date_Key_Dimension_Date]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_Salesperson_Key_Dimension_Employee]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer]
    ALTER TABLE [Fact].[Sale] DROP CONSTRAINT [PK_Fact_Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_Bill_To_Customer_Key] ON [Fact].[Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_City_Key] ON [Fact].[Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_Customer_Key] ON [Fact].[Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_Delivery_Date_Key] ON [Fact].[Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_Invoice_Date_Key] ON [Fact].[Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_Salesperson_Key] ON [Fact].[Sale]
    DROP INDEX IF EXISTS [FK_Fact_Sale_Stock_Item_Key] ON [Fact].[Sale]
 
    WHILE @DateCounter < '20121231'
    BEGIN
        SET @OutputCounter = CONVERT(varchar(20), @DateCounter, 112);
        RAISERROR(@OutputCounter, 0, 1) WITH NOWAIT;
 
        SET @StartingSaleKey = @MaximumSaleKey - @NumberOfSalesPerDay - FLOOR(RAND() * 20000);
        SET @OrderCounter = 0;
 
        INSERT Fact.Sale WITH (TABLOCK)
            ([City Key], [Customer Key], [Bill To Customer Key], [Stock Item Key], [Invoice Date Key],
             [Delivery Date Key], [Salesperson Key], [WWI Invoice ID], [Description],
             Package, Quantity, [Unit Price], [Tax Rate], [Total Excluding Tax],
             [Tax Amount], Profit, [Total Including Tax], [Total Dry Items], [Total Chiller Items],
             [Lineage Key])
        SELECT TOP(@NumberOfSalesPerDay)
               [City Key], [Customer Key], [Bill To Customer Key], [Stock Item Key], @DateCounter,
               DATEADD(day, 1, @DateCounter), [Salesperson Key], [WWI Invoice ID], [Description],
               Package, Quantity, [Unit Price], [Tax Rate], [Total Excluding Tax],
               [Tax Amount], Profit, [Total Including Tax], [Total Dry Items], [Total Chiller Items],
               @LineageKey
        FROM Fact.Sale
        WHERE [Sale Key] > @StartingSaleKey
            and [Invoice Date Key] >='2013-01-01'
        ORDER BY [Sale Key];
 
        SET @DateCounter = DATEADD(day, 1, @DateCounter);
    END;
 
    RAISERROR('Compressing all open Rowgroups', 0, 1) WITH NOWAIT;
 
    ALTER INDEX CCX_Fact_Sale
    ON Fact.Sale
    REORGANIZE WITH (COMPRESS_ALL_ROW_GROUPS = ON);
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1;
 
    -- Add back Constraints
    RAISERROR('Adding Constraints', 0, 1) WITH NOWAIT;
 
    ALTER TABLE [Fact].[Sale]
    ADD CONSTRAINT [PK_Fact_Sale] PRIMARY KEY NONCLUSTERED
    (
        [Sale Key] ASC,
        [Invoice Date Key] ASC
    );
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer]
    FOREIGN KEY([Bill To Customer Key])
    REFERENCES [Dimension].[Customer] ([Customer Key]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer];
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item]
    FOREIGN KEY([Stock Item Key])
    REFERENCES [Dimension].[Stock Item] ([Stock Item Key]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item];
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_Salesperson_Key_Dimension_Employee]
    FOREIGN KEY([Salesperson Key])
    REFERENCES [Dimension].[Employee] ([Employee Key]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_Salesperson_Key_Dimension_Employee];
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_Invoice_Date_Key_Dimension_Date]
    FOREIGN KEY([Invoice Date Key])
    REFERENCES [Dimension].[Date] ([Date]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_Invoice_Date_Key_Dimension_Date];
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_Delivery_Date_Key_Dimension_Date]
    FOREIGN KEY([Delivery Date Key])
    REFERENCES [Dimension].[Date] ([Date]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_Delivery_Date_Key_Dimension_Date];
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_Customer_Key_Dimension_Customer]
    FOREIGN KEY([Customer Key])
    REFERENCES [Dimension].[Customer] ([Customer Key]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_Customer_Key_Dimension_Customer];
 
    ALTER TABLE [Fact].[Sale]
    WITH CHECK ADD CONSTRAINT [FK_Fact_Sale_City_Key_Dimension_City]
    FOREIGN KEY([City Key])
    REFERENCES [Dimension].[City] ([City Key]);
 
    ALTER TABLE [Fact].[Sale] CHECK CONSTRAINT [FK_Fact_Sale_City_Key_Dimension_City];
 
    -- Recreate indexes
    RAISERROR('Adding Non-clustered Indexes', 0, 1) WITH NOWAIT;
    CREATE NONCLUSTERED INDEX [FK_Fact_Sale_Salesperson_Key] ON [Fact].[Sale] ([Salesperson Key] ASC);
    CREATE NONCLUSTERED INDEX [FK_Fact_Sale_Invoice_Date_Key] ON [Fact].[Sale] ([Invoice Date Key] ASC);
    CREATE NONCLUSTERED INDEX [FK_Fact_Sale_Delivery_Date_Key] ON [Fact].[Sale] ([Delivery Date Key] ASC);
    CREATE NONCLUSTERED INDEX [FK_Fact_Sale_Bill_To_Customer_Key] ON [Fact].[Sale] ([Bill To Customer Key] ASC);
    CREATE NONCLUSTERED INDEX [FK_Fact_Sale_City_Key] ON [Fact].[Sale] ([City Key] ASC);
    CREATE NONCLUSTERED INDEX [FK_Fact_Sale_Customer_Key] ON [Fact].[Sale] ([Customer Key] ASC);
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[LineageKey]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry>
                    <References Name="[Application].[Configuration_PopulateLargeSaleTable].[@EstimatedRowsFor2012]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Sale Key]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[varchar]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PopulateDateDimensionForYear]" />
                </Entry>
                <Entry />
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Started]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[varchar]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_City_Key_Dimension_City]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Customer_Key_Dimension_Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Delivery_Date_Key_Dimension_Date]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Invoice_Date_Key_Dimension_Date]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Salesperson_Key_Dimension_Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[PK_Fact_Sale]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Bill_To_Customer_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_City_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Customer_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Delivery_Date_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Invoice_Date_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Salesperson_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Stock_Item_Key]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[varchar]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Delivery Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Description]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Profit]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Dry Items]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Chiller Items]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Sale Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[CCX_Fact_Sale]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[PK_Fact_Sale]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Salesperson_Key_Dimension_Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Salesperson_Key_Dimension_Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Invoice_Date_Key_Dimension_Date]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Invoice_Date_Key_Dimension_Date]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Delivery_Date_Key_Dimension_Date]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Delivery_Date_Key_Dimension_Date]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Customer_Key_Dimension_Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_Customer_Key_Dimension_Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_City_Key_Dimension_City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[FK_Fact_Sale_City_Key_Dimension_City]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Salesperson_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Invoice_Date_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Delivery_Date_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Bill_To_Customer_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_City_Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[FK_Fact_Sale_Customer_Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="Parameters">
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Application].[Configuration_PopulateLargeSaleTable].[@EstimatedRowsFor2012]">
                        <Property Name="DefaultExpressionScript">
                            <Value><![CDATA[12000000]]></Value>
                        </Property>
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Application]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="6872" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE [Application].[Configuration_PopulateLargeSaleTable]&#xD;&#xA;@EstimatedRowsFor2012 bigint = 12000000&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Application].[Configuration_ReseedETL]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
 
    DECLARE @StartingETLCutoffTime datetime2(7) = '20121231';
    DECLARE @StartOfTime datetime2(7) = '20130101';
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = @StartingETLCutoffTime;
 
    TRUNCATE TABLE Fact.Movement;
    TRUNCATE TABLE Fact.[Order];
    TRUNCATE TABLE Fact.Purchase;
    TRUNCATE TABLE Fact.Sale;
    TRUNCATE TABLE Fact.[Stock Holding];
    TRUNCATE TABLE Fact.[Transaction];
 
    DELETE Dimension.City;
    DELETE Dimension.Customer;
    DELETE Dimension.Employee;
    DELETE Dimension.[Payment Method];
    DELETE Dimension.[Stock Item];
    DELETE Dimension.Supplier;
    DELETE Dimension.[Transaction Type];
 
    INSERT Dimension.City
        ([City Key], [WWI City ID], City, [State Province], Country, Continent, [Sales Territory], Region, Subregion,
         [Location], [Latest Recorded Population], [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', N'N/A', N'N/A', N'N/A', N'N/A', N'N/A', N'N/A',
         NULL, 0, @StartOfTime, @EndOfTime, 0);
 
    INSERT Dimension.Customer
        ([Customer Key], [WWI Customer ID], [Customer], [Bill To Customer], Category, [Buying Group],
         [Primary Contact], [Postal Code], [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', N'N/A', N'N/A', N'N/A',
         N'N/A', N'N/A', @StartOfTime, @EndOfTime, 0);
 
    INSERT Dimension.Employee
        ([Employee Key], [WWI Employee ID], Employee, [Preferred Name],
         [Is Salesperson], Photo, [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', N'N/A',
         0, NULL, @StartOfTime, @EndOfTime, 0);
 
    INSERT Dimension.[Payment Method]
        ([Payment Method Key], [WWI Payment Method ID], [Payment Method], [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', @StartOfTime, @EndOfTime, 0);
 
    INSERT Dimension.[Stock Item]
        ([Stock Item Key], [WWI Stock Item ID], [Stock Item], Color, [Selling Package], [Buying Package],
         Brand, Size, [Lead Time Days], [Quantity Per Outer], [Is Chiller Stock],
         Barcode, [Tax Rate], [Unit Price], [Recommended Retail Price], [Typical Weight Per Unit],
         Photo, [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', N'N/A', N'N/A', N'N/A',
         N'N/A', N'N/A', 0, 0, 0,
         N'N/A', 0, 0, 0, 0,
         NULL, @StartOfTime, @EndOfTime, 0);
 
    INSERT Dimension.[Supplier]
        ([Supplier Key], [WWI Supplier ID], Supplier, Category, [Primary Contact], [Supplier Reference],
         [Payment Days], [Postal Code], [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', N'N/A', N'N/A', N'N/A',
         0, N'N/A', @StartOfTime, @EndOfTime, 0);
 
    INSERT Dimension.[Transaction Type]
        ([Transaction Type Key], [WWI Transaction Type ID], [Transaction Type], [Valid From], [Valid To], [Lineage Key])
    VALUES
        (0, 0, N'Unknown', @StartOfTime, @EndOfTime, 0);
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[State Province]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Country]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Continent]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Sales Territory]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Region]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Subregion]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Location]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Latest Recorded Population]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Bill To Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Category]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Buying Group]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Primary Contact]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Postal Code]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Preferred Name]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Is Salesperson]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Photo]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Color]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Selling Package]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Buying Package]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Brand]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Size]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Lead Time Days]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Quantity Per Outer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Is Chiller Stock]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Barcode]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Recommended Retail Price]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Typical Weight Per Unit]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Photo]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Category]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Primary Contact]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Reference]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Payment Days]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Postal Code]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Lineage Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Application]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="3157" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE [Application].Configuration_ReseedETL&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlCheckConstraint" Name="[dbo].[chk_SampleVersion_Cardinality]">
            <Property Name="CheckExpressionScript">
                <Value><![CDATA[[RowCount]= 1]]></Value>
            </Property>
            <Relationship Name="CheckExpressionDependencies">
                <Entry>
                    <References Name="[dbo].[SampleVersion].[RowCount]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[dbo].[SampleVersion]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="4" />
        </Element>
        <Element Type="SqlTable" Name="[dbo].[SampleVersion]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[dbo].[SampleVersion].[MajorSampleVersion]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[dbo].[SampleVersion].[MinorSampleVersion]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[dbo].[SampleVersion].[MinSQLServerBuild]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="25" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[dbo].[SampleVersion].[RowCount]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="3" />
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="5" />
            <AttachedAnnotation Disambiguator="4" />
        </Element>
        <Element Type="SqlUniqueConstraint" Name="[dbo].[uq_SampleVersion_RowCount]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[dbo].[SampleVersion].[RowCount]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[dbo].[SampleVersion]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="5" />
        </Element>
        <Element Type="SqlSchema" Name="[Dimension]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[City]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[City Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="6" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[WWI City ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[City]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[State Province]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Country]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="60" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Continent]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="30" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Sales Territory]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Region]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="30" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Subregion]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="30" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Location]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[geography]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Latest Recorded Population]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[City].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="7" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[City].[IX_Dimension_City_WWICityID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[City].[WWI City ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[City].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[City].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Customer]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Customer Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="8" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[WWI Customer ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Customer]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Bill To Customer]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Category]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Buying Group]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Primary Contact]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Postal Code]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Customer].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="9" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[Customer].[IX_Dimension_Customer_WWICustomerID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Customer].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Customer].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Date]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Date]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[DateKey]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Day Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Day]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Day of Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="5" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Day of Year Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Day of Week]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Day of Week Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Week of Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="5" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Month]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Short Month]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="3" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Quarter]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="2" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Half of Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="3" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Month]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Quarter]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Half Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Month Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Month Label Short]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Quarter Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Quarter Label Short]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Half Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Half Year Label Short]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Year Label Short]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="40" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Day Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Day Label Short]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Week Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Week Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Month Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Month Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Month Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Quarter Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Quarter Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Quarter Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Half of Year Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Half of Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Year Half of Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Calendar Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Month Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Month Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Quarter Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Quarter Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Half of Year Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Half of Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Year]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Year Label]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Date Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Year Week Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Year Month Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Year Quarter Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Year Half of Year Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Year Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Month Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Quarter Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Half Year Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Beginning of Year Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Year Month Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Year Quarter Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[Fiscal Year Half of Year Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Date].[ISO Week Number]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="10" />
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_City_City_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[CityKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[CityKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="6" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_Customer_Customer_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[CustomerKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[CustomerKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="8" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_Employee_Employee_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[EmployeeKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[EmployeeKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="11" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_Payment_Method_Payment_Method_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[PaymentMethodKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[PaymentMethodKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method Key]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="12" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_Stock_Item_Stock_Item_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[StockItemKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[StockItemKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="13" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_Supplier_Supplier_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[SupplierKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[SupplierKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="14" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Dimension].[DF_Dimension_Transaction_Type_Transaction_Type_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[TransactionTypeKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[TransactionTypeKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="15" />
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Employee]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Employee Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="11" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[WWI Employee ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Employee]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Preferred Name]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Is Salesperson]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Photo]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="IsMax" Value="True" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[varbinary]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Employee].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="16" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[Employee].[IX_Dimension_Employee_WWIEmployeeID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Employee].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Employee].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Payment Method]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Payment Method].[Payment Method Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="12" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Payment Method].[WWI Payment Method ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Payment Method].[Payment Method]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Payment Method].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Payment Method].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Payment Method].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="17" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[Payment Method].[IX_Dimension_Payment_Method_WWIPaymentMethodID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Payment Method].[WWI Payment Method ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Payment Method].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Payment Method].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_City]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[City].[City Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="7" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Customer]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Customer].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="9" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Date]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Date].[Date]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="10" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Employee]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Employee].[Employee Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="16" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Payment_Method]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Payment Method].[Payment Method Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="17" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Stock_Item]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="18" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Supplier]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Supplier].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="19" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Dimension].[PK_Dimension_Transaction_Type]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="20" />
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Stock Item]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Stock Item Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="13" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[WWI Stock Item ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Stock Item]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Color]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Selling Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Buying Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Brand]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Size]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Lead Time Days]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Quantity Per Outer]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Is Chiller Stock]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Barcode]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Tax Rate]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Unit Price]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Recommended Retail Price]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Typical Weight Per Unit]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Photo]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="IsMax" Value="True" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[varbinary]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Stock Item].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="18" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[Stock Item].[IX_Dimension_Stock_Item_WWIStockItemID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Stock Item].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Stock Item].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Supplier]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Supplier Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="14" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[WWI Supplier ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Supplier]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Category]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Primary Contact]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Supplier Reference]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Payment Days]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Postal Code]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Supplier].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="19" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[Supplier].[IX_Dimension_Supplier_WWISupplierID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Supplier].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Supplier].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Dimension].[Transaction Type]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Transaction Type].[Transaction Type Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="15" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Transaction Type].[Transaction Type]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Transaction Type].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Transaction Type].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Dimension].[Transaction Type].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="20" />
        </Element>
        <Element Type="SqlIndex" Name="[Dimension].[Transaction Type].[IX_Dimension_Transaction_Type_WWITransactionTypeID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Transaction Type].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Dimension].[Transaction Type].[Valid To]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSchema" Name="[Fact]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Movement_Customer_Key_Dimension_Customer]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Movement].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="21" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Movement_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="22" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Movement_Stock_Item_Key_Dimension_Stock Item]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Movement].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="23" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Movement_Supplier_Key_Dimension_Supplier]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Movement].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="24" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Movement_Transaction_Type_Key_Dimension_Transaction Type]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Movement].[Transaction Type Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="25" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_City_Key_Dimension_City]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[City Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="26" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_Customer_Key_Dimension_Customer]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="27" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_Order_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="28" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_Picked_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[Picked Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="29" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_Picker_Key_Dimension_Employee]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[Picker Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="30" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_Salesperson_Key_Dimension_Employee]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[Salesperson Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="31" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Order_Stock_Item_Key_Dimension_Stock Item]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Order].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="32" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Purchase_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="33" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Purchase_Stock_Item_Key_Dimension_Stock Item]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Purchase].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="34" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Purchase_Supplier_Key_Dimension_Supplier]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Purchase].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="35" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_Bill_To_Customer_Key_Dimension_Customer]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[Bill To Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="36" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_City_Key_Dimension_City]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[City Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="37" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_Customer_Key_Dimension_Customer]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="38" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_Delivery_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[Delivery Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="39" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_Invoice_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="40" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_Salesperson_Key_Dimension_Employee]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[Salesperson Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="41" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Sale_Stock_Item_Key_Dimension_Stock Item]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Sale].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="42" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Stock_Holding_Stock_Item_Key_Dimension_Stock Item]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="43" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Transaction_Bill_To_Customer_Key_Dimension_Customer]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Transaction].[Bill To Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="44" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Transaction_Customer_Key_Dimension_Customer]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Transaction].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="45" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Transaction_Date_Key_Dimension_Date]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="46" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Transaction_Payment_Method_Key_Dimension_Payment Method]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Transaction].[Payment Method Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="47" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Transaction_Supplier_Key_Dimension_Supplier]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Transaction].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="48" />
        </Element>
        <Element Type="SqlForeignKeyConstraint" Name="[Fact].[FK_Fact_Transaction_Transaction_Type_Key_Dimension_Transaction Type]">
            <Relationship Name="Columns">
                <Entry>
                    <References Name="[Fact].[Transaction].[Transaction Type Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignColumns">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForeignTable">
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="49" />
        </Element>
        <Element Type="SqlTable" Name="[Fact].[Movement]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Movement Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Date Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Stock Item Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Supplier Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Transaction Type Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[WWI Stock Item Transaction ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[WWI Invoice ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[WWI Purchase Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Quantity]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Movement].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="50" />
            <AttachedAnnotation Disambiguator="21" />
            <AttachedAnnotation Disambiguator="22" />
            <AttachedAnnotation Disambiguator="23" />
            <AttachedAnnotation Disambiguator="24" />
            <AttachedAnnotation Disambiguator="25" />
        </Element>
        <Element Type="SqlColumnStoreIndex" Name="[Fact].[Movement].[CCX_Fact_Movement]">
            <Property Name="IsClustered" Value="True" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Movement Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Transaction Type Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[WWI Stock Item Transaction ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[WWI Invoice ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[WWI Purchase Order ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Quantity]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Movement].[FK_Fact_Movement_Customer_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Movement].[FK_Fact_Movement_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Movement].[FK_Fact_Movement_Stock_Item_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Movement].[FK_Fact_Movement_Supplier_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Movement].[FK_Fact_Movement_Transaction_Type_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Transaction Type Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Movement].[IX_Integration_Movement_WWI_Stock_Item_Transaction_ID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[WWI Stock Item Transaction ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Fact].[Order]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Order Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[City Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Customer Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Stock Item Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Order Date Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Picked Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Salesperson Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Picker Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[WWI Order ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[WWI Backorder ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Description]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Quantity]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Unit Price]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Tax Rate]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Total Excluding Tax]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Tax Amount]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Total Including Tax]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Order].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="51" />
            <AttachedAnnotation Disambiguator="26" />
            <AttachedAnnotation Disambiguator="27" />
            <AttachedAnnotation Disambiguator="28" />
            <AttachedAnnotation Disambiguator="29" />
            <AttachedAnnotation Disambiguator="30" />
            <AttachedAnnotation Disambiguator="31" />
            <AttachedAnnotation Disambiguator="32" />
        </Element>
        <Element Type="SqlColumnStoreIndex" Name="[Fact].[Order].[CCX_Fact_Order]">
            <Property Name="IsClustered" Value="True" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Order Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[City Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Order Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Picked Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Salesperson Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Picker Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[WWI Order ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[WWI Backorder ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Description]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Package]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Quantity]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Unit Price]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Tax Rate]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Total Excluding Tax]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Tax Amount]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Total Including Tax]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_City_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[City Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_Customer_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_Order_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Order Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_Picked_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Picked Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_Picker_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Picker Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_Salesperson_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Salesperson Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[FK_Fact_Order_Stock_Item_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Order].[IX_Integration_Order_WWI_Order_ID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[WWI Order ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Fact].[PK_Fact_Movement]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Movement Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Movement].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="50" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Fact].[PK_Fact_Order]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Order Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Order].[Order Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="51" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Fact].[PK_Fact_Purchase]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Purchase Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="52" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Fact].[PK_Fact_Sale]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Sale Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Invoice Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="53" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Fact].[PK_Fact_Stock_Holding]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Stock Holding Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="54" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Fact].[PK_Fact_Transaction]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Transaction Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="55" />
        </Element>
        <Element Type="SqlTable" Name="[Fact].[Purchase]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Purchase Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Date Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Supplier Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Stock Item Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[WWI Purchase Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Ordered Outers]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Ordered Quantity]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Received Outers]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Is Order Finalized]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Purchase].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="52" />
            <AttachedAnnotation Disambiguator="33" />
            <AttachedAnnotation Disambiguator="34" />
            <AttachedAnnotation Disambiguator="35" />
        </Element>
        <Element Type="SqlColumnStoreIndex" Name="[Fact].[Purchase].[CCX_Fact_Purchase]">
            <Property Name="IsClustered" Value="True" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Purchase Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[WWI Purchase Order ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Ordered Outers]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Ordered Quantity]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Received Outers]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Package]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Is Order Finalized]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Purchase].[FK_Fact_Purchase_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Purchase].[FK_Fact_Purchase_Stock_Item_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Purchase].[FK_Fact_Purchase_Supplier_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Purchase].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Fact].[Sale]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Sale Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[City Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Customer Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Bill To Customer Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Stock Item Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Invoice Date Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Delivery Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Salesperson Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[WWI Invoice ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Description]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Quantity]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Unit Price]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Tax Rate]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Total Excluding Tax]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Tax Amount]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Profit]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Total Including Tax]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Total Dry Items]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Total Chiller Items]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Sale].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="53" />
            <AttachedAnnotation Disambiguator="36" />
            <AttachedAnnotation Disambiguator="37" />
            <AttachedAnnotation Disambiguator="38" />
            <AttachedAnnotation Disambiguator="39" />
            <AttachedAnnotation Disambiguator="40" />
            <AttachedAnnotation Disambiguator="41" />
            <AttachedAnnotation Disambiguator="42" />
        </Element>
        <Element Type="SqlColumnStoreIndex" Name="[Fact].[Sale].[CCX_Fact_Sale]">
            <Property Name="IsClustered" Value="True" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Sale Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[City Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Bill To Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Invoice Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Delivery Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Salesperson Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[WWI Invoice ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Description]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Package]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Quantity]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Unit Price]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Tax Rate]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Total Excluding Tax]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Tax Amount]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Profit]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Total Including Tax]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Total Dry Items]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Total Chiller Items]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_Bill_To_Customer_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Bill To Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_City_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[City Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_Customer_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_Delivery_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Delivery Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_Invoice_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Invoice Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_Salesperson_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Salesperson Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Sale].[FK_Fact_Sale_Stock_Item_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Sale].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Fact].[Stock Holding]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Stock Holding Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Stock Item Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Quantity On Hand]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Bin Location]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Last Stocktake Quantity]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Last Cost Price]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Reorder Level]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Target Stock Level]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Stock Holding].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="54" />
            <AttachedAnnotation Disambiguator="43" />
        </Element>
        <Element Type="SqlColumnStoreIndex" Name="[Fact].[Stock Holding].[CCX_Fact_Stock_Holding]">
            <Property Name="IsClustered" Value="True" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Stock Holding Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Quantity On Hand]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Bin Location]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Last Stocktake Quantity]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Last Cost Price]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Reorder Level]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Target Stock Level]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Stock Holding].[FK_Fact_Stock_Holding_Stock_Item_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Stock Holding].[Stock Item Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Fact].[Transaction]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Transaction Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Date Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Bill To Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Supplier Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Transaction Type Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Payment Method Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[WWI Customer Transaction ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[WWI Supplier Transaction ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[WWI Invoice ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[WWI Purchase Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Supplier Invoice Number]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Total Excluding Tax]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Tax Amount]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Total Including Tax]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Outstanding Balance]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Is Finalized]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Fact].[Transaction].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="55" />
            <AttachedAnnotation Disambiguator="44" />
            <AttachedAnnotation Disambiguator="45" />
            <AttachedAnnotation Disambiguator="46" />
            <AttachedAnnotation Disambiguator="47" />
            <AttachedAnnotation Disambiguator="48" />
            <AttachedAnnotation Disambiguator="49" />
        </Element>
        <Element Type="SqlColumnStoreIndex" Name="[Fact].[Transaction].[CCX_Fact_Transaction]">
            <Property Name="IsClustered" Value="True" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Transaction Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Bill To Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Transaction Type Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Payment Method Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[WWI Customer Transaction ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[WWI Supplier Transaction ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[WWI Invoice ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[WWI Purchase Order ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Supplier Invoice Number]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Total Excluding Tax]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Tax Amount]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Total Including Tax]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Outstanding Balance]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Is Finalized]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Transaction].[FK_Fact_Transaction_Bill_To_Customer_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Bill To Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Transaction].[FK_Fact_Transaction_Customer_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Customer Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Transaction].[FK_Fact_Transaction_Date_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Date Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Transaction].[FK_Fact_Transaction_Payment_Method_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Payment Method Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Transaction].[FK_Fact_Transaction_Supplier_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Supplier Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlIndex" Name="[Fact].[Transaction].[FK_Fact_Transaction_Transaction_Type_Key]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Fact].[Transaction].[Transaction Type Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionColumn">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="PartitionScheme">
                <Entry>
                    <References Name="[PS_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSchema" Name="[Integration]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Integration].[City_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[City Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[WWI City ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[City]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[State Province]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Country]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="60" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Continent]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="30" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Sales Territory]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Region]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="30" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Subregion]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="30" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Location]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[geography]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Latest Recorded Population]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[City_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="56" />
        </Element>
        <Element Type="SqlIndex" Name="[Integration].[City_Staging].[IX_Integration_City_Staging_WWI_City_ID]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[City_Staging].[WWI City ID]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="IndexedObject">
                <Entry>
                    <References Name="[Integration].[City_Staging]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Customer_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Customer Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[WWI Customer ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Customer]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Bill To Customer]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Category]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Buying Group]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Primary Contact]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Postal Code]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Customer_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="57" />
        </Element>
        <Element Type="SqlDefaultConstraint" Name="[Integration].[DF_Integration_Lineage_Lineage_Key]">
            <Property Name="DefaultExpressionScript">
                <Value><![CDATA[(NEXT VALUE FOR [Sequences].[LineageKey])]]></Value>
            </Property>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
            </Relationship>
            <Relationship Name="ExpressionDependencies">
                <Entry>
                    <References Name="[Sequences].[LineageKey]" />
                </Entry>
            </Relationship>
            <Relationship Name="ForColumn">
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="58" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Employee_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Employee Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[WWI Employee ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Employee]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Preferred Name]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Is Salesperson]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Photo]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="IsMax" Value="True" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[varbinary]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Employee_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="59" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[ETL Cutoff]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[ETL Cutoff].[Table Name]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[ETL Cutoff].[Cutoff Time]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="60" />
        </Element>
        <Element Type="SqlInlineTableValuedFunction" Name="[Integration].[GenerateDateDimensionColumns]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[@Date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
            </Relationship>
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Date]">
                        <Relationship Name="ExpressionDependencies">
                            <Entry>
                                <References Name="[Integration].[GenerateDateDimensionColumns].[@Date]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[DateKey]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Day Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Day]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Day of Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Day of Year Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Day of Week]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Day of Week Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Week of Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Month]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Short Month]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Quarter]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Half of Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half of Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month Label Short]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter Label Short]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half Year Label Short]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year Label Short]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Day Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Day Label Short]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Week Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Week Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Month Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Month Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Month Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Quarter Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Quarter Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Quarter Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Half of Year Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Half of Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Year Half of Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Calendar Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Month Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Month Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Quarter Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Quarter Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Half of Year Number]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Half of Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Label]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Date Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Year Week Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Year Month Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Year Quarter Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Year Half of Year Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Year Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Month Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half of Year Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Quarter Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Half of Year Key]" />
                </Entry>
                <Entry>
                    <Element Type="SqlComputedColumn" Name="[Integration].[GenerateDateDimensionColumns].[ISO Week Number]" />
                </Entry>
            </Relationship>
            <Relationship Name="FunctionBody">
                <Entry>
                    <Element Type="SqlScriptFunctionImplementation">
                        <Property Name="BodyScript">
                            <Value><![CDATA[
SELECT @Date AS [Date] -- 2013-01-01
     , YEAR(@Date) * 10000
       + MONTH(@Date) * 100 + DAY(@Date) AS [DateKey] -- 20130101 (to 20131231)
     , DAY(@Date) AS [Day Number] -- 1 (to last day of month)
     , DATENAME(day, @Date) AS [Day] -- 1 (to last day of month)
     , CAST(DATEPART(dy, @Date) AS NVARCHAR(5)) AS [Day of Year] -- 1 (to 365)
     , DATEPART(day, @Date) AS [Day of Year Number] -- 1 (to 365)
     , DATENAME(weekday, @Date) AS [Day of Week] -- Tuesday
     , DATEPART(weekday, @Date) AS [Day of Week Number] -- 3
     , DATENAME(week, @Date) AS [Week of Year] -- 1
     , DATENAME(month, @Date) AS [Month] -- January
     , SUBSTRING(DATENAME(month, @Date), 1, 3) AS [Short Month] -- Jan
     , N'Q' + DATENAME(quarter, @Date) AS [Quarter] -- Q1 (to Q4)
     , N'H' + CASE WHEN DATEPART(month, @Date) < 7
                   THEN N'1'
                   ELSE N'2'
               END AS [Half of Year] -- H1 (or H2)
     , CAST(DATENAME(year, @Date) + N'-'
           + DATENAME(month, @Date) + N'-01'
           AS DATE
           ) AS [Beginning of Month] -- 2013-01-01
     , CASE WHEN MONTH(@Date) BETWEEN 1 AND 3
            THEN CAST(DATENAME(year, @Date)
                     + '-01-01' AS DATE
                     )
            WHEN MONTH(@Date) BETWEEN 4 AND 6
            THEN CAST(DATENAME(year, @Date)
                     + '-04-01' AS DATE
                     )
            WHEN MONTH(@Date) BETWEEN 7 AND 9
            THEN CAST(DATENAME(year, @Date)
                     + '-07-01' AS DATE
                     )
            WHEN MONTH(@Date) BETWEEN 10 AND 12
            THEN CAST(DATENAME(year, @Date)
                     + '-10-01' AS DATE
                     )
        END AS [Beginning of Quarter] -- 2013-01-01
     , CASE WHEN DATEPART(month, @Date) < 7
            THEN CAST(DATENAME(year, @Date)
                     + '-01-01' AS DATE
                     )
            ELSE CAST(DATENAME(year, @Date)
                     + '-07-01' AS DATE
                     )
        END AS [Beginning of Half of Year] -- 2013-01-01
     , CAST(DATENAME(year, @Date) + N'-01-01' AS DATE) AS [Beginning of Year] -- 2013-01-01
     , N'Beginning of Month ' + DATENAME(month, @Date) + N'-'
       + DATENAME(year, @Date) AS [Beginning of Month Label]
     , N'BOM ' + SUBSTRING(DATENAME(month, @Date), 1, 3) + N'-'
       + DATENAME(year, @Date) AS [Beginning of Month Label Short]
     , CASE WHEN MONTH(@Date) BETWEEN 1 AND 3
            THEN N'Beginning Of Quarter ' + DATENAME(year, @Date) + N'-Q1'
            WHEN MONTH(@Date) BETWEEN 4 AND 6
            THEN N'Beginning Of Quarter ' + DATENAME(year, @Date) + N'-Q2'
            WHEN MONTH(@Date) BETWEEN 7 AND 9
            THEN N'Beginning Of Quarter ' + DATENAME(year, @Date) + N'-Q3'
            WHEN MONTH(@Date) BETWEEN 10 AND 12
            THEN N'Beginning Of Quarter ' + DATENAME(year, @Date) + N'-Q4'
        END AS [Beginning of Quarter Label]
     , CASE WHEN MONTH(@Date) BETWEEN 1 AND 3
            THEN N'BOQ ' + DATENAME(year, @Date) + N'-Q1'
            WHEN MONTH(@Date) BETWEEN 4 AND 6
            THEN N'BOQ ' + DATENAME(year, @Date) + N'-Q2'
            WHEN MONTH(@Date) BETWEEN 7 AND 9
            THEN N'BOQ ' + DATENAME(year, @Date) + N'-Q3'
            WHEN MONTH(@Date) BETWEEN 10 AND 12
            THEN N'BOQ ' + DATENAME(year, @Date) + N'-Q4'
        END AS [Beginning of Quarter Label Short]
 
     , CASE WHEN DATEPART(month, @Date) < 7
            THEN N'Beginning of Half Year ' + DATENAME(year, @Date) + N'-H1'
            ELSE N'Beginning of Half Year ' + DATENAME(year, @Date) + N'-H2'
        END AS [Beginning of Half Year Label] -- Beginning of Half Year 2013-H1
     , CASE WHEN DATEPART(month, @Date) < 7
            THEN N'BOH ' + DATENAME(year, @Date) + N'-H1'
            ELSE N'BOH ' + DATENAME(year, @Date) + N'-H2'
        END AS [Beginning of Half Year Label Short] -- BOH 2013-H1
     , N'Beginning of Year ' + DATENAME(year, @Date) AS [Beginning of Year Label] -- Beginning of Year 2013
     , N'BOY ' + DATENAME(year, @Date) AS [Beginning of Year Label Short] -- BOY 2013
     , DATENAME(month, @Date) + N' '
       + DATENAME(day, @Date) + N', '
       + DATENAME(year, @Date) AS [Calendar Day Label] -- January 1, 2013
     , SUBSTRING(DATENAME(month, @Date), 1, 3) + N' '
       + DATENAME(day, @Date) + N', '
       + DATENAME(year, @Date) AS [Calendar Day Label Short] -- Jan 1, 2013
     , DATEPART(week, @Date) AS [Calendar Week Number] -- 1
     , N'CY' + DATENAME(year, @Date)
       + '-W' + RIGHT(N'00' + DATENAME(week, @Date), 2) AS [Calendar Week Label] -- CY2013-W1
     , MONTH(@Date) AS [Calendar Month Number] -- 1 (to 12)
     , N'CY' + DATENAME(year, @Date)
       + N'-' + SUBSTRING(DATENAME(month, @Date), 1, 3) AS [Calendar Month Label] -- CY2013-Jan
     , SUBSTRING(DATENAME(month, @Date), 1, 3)
       + N'-' + DATENAME(year, @Date) AS [Calendar Month Year Label] -- Jan-2013
     , DATEPART(quarter, @Date) AS [Calendar Quarter Number] -- 1 (to 4)
     , N'CY' + DATENAME(year, @Date)
       + N'-Q' + DATENAME(quarter, @Date) AS [Calendar Quarter Label] -- CY2013-Q1
     , N'Q' + DATENAME(quarter, @Date)
       + N'-' + DATENAME(year, @Date) AS [Calendar Quarter Year Label] -- CY2013-Q1
     , CASE WHEN DATEPART(month, @Date) < 7
            THEN 1
            ELSE 2
        END AS [Calendar Half of Year Number] -- 1 (to 2)
     , N'CY' + DATENAME(year, @Date)
       + N'-H' + CASE WHEN DATEPART(month, @Date) < 7
                      THEN N'1'
                      ELSE N'2'
                  END AS [Calendar Half of Year Label] -- CY2013-H1
     , N'H' + CASE WHEN DATEPART(month, @Date) < 7
                   THEN N'1'
                   ELSE N'2'
               END
       + N'-' + DATENAME(year, @Date) AS [Calendar Year Half of Year Label] -- H1-2013
     , YEAR(@Date) AS [Calendar Year] -- 2013
     , N'CY' + DATENAME(year, @Date) AS [Calendar Year Label] -- CY2013
     , CASE WHEN MONTH(@Date) > 6
            THEN MONTH(@Date) - 6
            ELSE MONTH(@Date) + 6
        END AS [Fiscal Month Number] -- 7
     , CAST(N'FY' + CAST(CASE WHEN MONTH(@Date) > 6
                              THEN YEAR(@Date) + 1
                              ELSE YEAR(@Date)
                          END AS NVARCHAR(4)
                        )
           + N'-'
           + SUBSTRING(DATENAME(month, @Date), 1, 3)
           AS NVARCHAR(20)
           ) AS [Fiscal Month Label] -- FY2013-Jan
     , CASE WHEN MONTH(@Date) > 6
            THEN DATEPART(quarter, @Date) - 2
            ELSE DATEPART(quarter, @Date) + 2
        END AS [Fiscal Quarter Number] -- 2
     , N'FY' + CAST(CASE WHEN MONTH(@Date) > 6
                         THEN YEAR(@Date) + 1
                         ELSE YEAR(@Date)
                     END AS NVARCHAR(4))
       + N'-Q'
       + CASE WHEN MONTH(@Date) > 6
              THEN CAST(DATEPART(quarter, @Date) - 2
                        AS NVARCHAR(2)
                       )
              ELSE CAST(DATEPART(quarter, @Date) + 2
                        AS NVARCHAR(2)
                       )
          END AS [Fiscal Quarter Label] -- FY2013-Q2
     , CASE WHEN MONTH(@Date) > 6 THEN 1 ELSE 2 END AS [Fiscal Half of Year Number] -- 1 (to 2)
     , N'FY' + CAST(CASE WHEN MONTH(@Date) > 6
                         THEN YEAR(@Date) + 1
                         ELSE YEAR(@Date)
                     END AS NVARCHAR(4))
       + N'-H'
       + CASE WHEN MONTH(@Date) > 6
              THEN N'1'
              ELSE N'2'
          END AS [Fiscal Half of Year Label] -- FY2013-H2
     , CASE WHEN MONTH(@Date) > 6
            THEN YEAR(@Date) + 1
            ELSE YEAR(@Date)
        END AS [Fiscal Year] -- 2013
     , N'FY' + CAST(CASE WHEN MONTH(@Date) > 6
                         THEN YEAR(@Date) + 1
                         ELSE YEAR(@Date)
                     END AS NVARCHAR(4)) AS [Fiscal Year Label] -- FY2013
     , YEAR(@Date) * 10000
       + MONTH(@Date) * 100 + DAY(@Date) AS [Date Key] -- 20130101 (to 20131231)
     , YEAR(@Date) * 100 + DATEPART(week, @Date) AS [Year Week Key] -- 201301 (to 201353)
     , YEAR(@Date) * 100
       + MONTH(@Date) AS [Year Month Key] -- 201301 (to 201312)
     , YEAR(@Date) * 10
       + DATEPART(quarter, @Date) AS [Year Quarter Key] -- 20131 (to 20134)
     , YEAR(@Date) * 10
       + CASE WHEN DATEPART(month, @Date) < 7
              THEN 1
              ELSE 2
          END AS [Year Half of Year Key] -- 20131 (to 20132)
     , YEAR(@Date) AS [Year Key] -- 2013
     , CASE WHEN MONTH(@Date) > 6
            THEN (YEAR(@Date) + 1) * 100
                  + MONTH(@Date)
            ELSE YEAR(@Date) * 100
                  + MONTH(@Date)
        END AS [Fiscal Year Month Key] -- 201301 (to 201312)
     , (YEAR(@Date) * 10000) + (MONTH(@Date) * 100) + 1 AS [Beginning of Month Key] -- 20130101
     , CASE WHEN MONTH(@Date) BETWEEN 1 AND 3
            THEN (YEAR(@Date) * 10000) + 0101
            WHEN MONTH(@Date) BETWEEN 4 AND 6
            THEN (YEAR(@Date) * 10000) + 0401
            WHEN MONTH(@Date) BETWEEN 7 AND 9
            THEN (YEAR(@Date) * 10000) + 0701
            WHEN MONTH(@Date) BETWEEN 10 AND 12
            THEN (YEAR(@Date) * 10000) + 1001
        END AS [Beginning of Quarter Key] -- 20130101
 
     , CASE WHEN DATEPART(month, @Date) < 7
            THEN (YEAR(@Date) * 10000) + 0101
            ELSE (YEAR(@Date) * 10000) + 0701
        END AS [Beginning of Half of Year Key]
     , (YEAR(@Date) * 10000) + 0101 AS [Beginning of Year Key] -- 20130101
     , CASE WHEN MONTH(@Date) > 6
            THEN ((YEAR(@Date) + 1 ) * 10)
                 + DATEPART(quarter, @Date) - 2
            ELSE (YEAR(@Date) * 10)
                 + DATEPART(quarter, @Date) + 2
        END AS [Fiscal Year Quarter Key] -- 20131
     , CASE WHEN MONTH(@Date) > 6
            THEN ((YEAR(@Date) + 1 ) * 10) + 1
            ELSE (YEAR(@Date) * 10) + 2
        END AS [Fiscal Year Half of Year Key] -- 20131
     , DATEPART(ISO_WEEK, @Date) AS [ISO Week Number] -- 1
     ]]></Value>
                        </Property>
                        <Annotation Type="SysCommentsObjectAnnotation">
                            <Property Name="CreateOffset" Value="2" />
                            <Property Name="Length" Value="14820" />
                            <Property Name="StartLine" Value="1" />
                            <Property Name="StartColumn" Value="1" />
                            <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE FUNCTION Integration.GenerateDateDimensionColumns(@Date date)&#xD;&#xA;RETURNS TABLE&#xD;&#xA;AS&#xD;&#xA;RETURN" />
                            <Property Name="FooterContents" Value=";" />
                        </Annotation>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Parameters">
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Integration].[GenerateDateDimensionColumns].[@Date]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[GetLastETLCutoffTime]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    SELECT [Cutoff Time] AS CutoffTime
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = @TableName;
 
    IF @@ROWCOUNT = 0
    BEGIN
        PRINT N'Invalid ETL table name';
        THROW 51000, N'Invalid ETL table name', 1;
        RETURN -1;
    END;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GetLastETLCutoffTime].[@TableName]" />
                </Entry>
            </Relationship>
            <Relationship Name="Parameters">
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Integration].[GetLastETLCutoffTime].[@TableName]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="448" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.GetLastETLCutoffTime&#xD;&#xA;@TableName sysname&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[GetLineageKey]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @DataLoadStartedWhen datetime2(7) = SYSDATETIME();
 
    INSERT Integration.Lineage
        ([Data Load Started], [Table Name], [Data Load Completed],
         [Was Successful], [Source System Cutoff Time])
    VALUES
        (@DataLoadStartedWhen, @TableName, NULL,
         0, @NewCutoffTime);
 
    SELECT TOP(1) [Lineage Key] AS LineageKey
    FROM Integration.Lineage
    WHERE [Table Name] = @TableName
    AND [Data Load Started] = @DataLoadStartedWhen
    ORDER BY LineageKey DESC;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Started]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GetLineageKey].[@TableName]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GetLineageKey].[@NewCutoffTime]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
            </Relationship>
            <Relationship Name="Parameters">
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Integration].[GetLineageKey].[@TableName]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Integration].[GetLineageKey].[@NewCutoffTime]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="712" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.GetLineageKey&#xD;&#xA;@TableName sysname,&#xD;&#xA;@NewCutoffTime datetime2(7)&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Lineage]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Lineage].[Lineage Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                        <AttachedAnnotation Disambiguator="58" />
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Lineage].[Data Load Started]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Lineage].[Table Name]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Lineage].[Data Load Completed]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Lineage].[Was Successful]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Lineage].[Source System Cutoff Time]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="61" />
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedCityData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'City'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT c.[WWI City ID], MIN(c.[Valid From]) AS [Valid From]
        FROM Integration.City_Staging AS c
        GROUP BY c.[WWI City ID]
    )
    UPDATE c
        SET c.[Valid To] = rtco.[Valid From]
    FROM Dimension.City AS c
    INNER JOIN RowsToCloseOff AS rtco
    ON c.[WWI City ID] = rtco.[WWI City ID]
    WHERE c.[Valid To] = @EndOfTime;
 
    INSERT Dimension.City
        ([WWI City ID], City, [State Province], Country, Continent,
         [Sales Territory], Region, Subregion, [Location],
         [Latest Recorded Population], [Valid From], [Valid To],
         [Lineage Key])
    SELECT [WWI City ID], City, [State Province], Country, Continent,
           [Sales Territory], Region, Subregion, [Location],
           [Latest Recorded Population], [Valid From], [Valid To],
           @LineageKey
    FROM Integration.City_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'City';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[State Province]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Country]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Continent]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Sales Territory]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Region]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Subregion]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Location]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Latest Recorded Population]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[State Province]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Country]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Continent]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Sales Territory]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Region]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Subregion]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Location]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Latest Recorded Population]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[City_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedCityData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedCityData].[CTE1].[RowsToCloseOff].[WWI City ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[City_Staging].[WWI City ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedCityData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1939" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedCityData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedCustomerData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Customer'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT c.[WWI Customer ID], MIN(c.[Valid From]) AS [Valid From]
        FROM Integration.Customer_Staging AS c
        GROUP BY c.[WWI Customer ID]
    )
    UPDATE c
        SET c.[Valid To] = rtco.[Valid From]
    FROM Dimension.Customer AS c
    INNER JOIN RowsToCloseOff AS rtco
    ON c.[WWI Customer ID] = rtco.[WWI Customer ID]
    WHERE c.[Valid To] = @EndOfTime;
 
    INSERT Dimension.Customer
        ([WWI Customer ID], Customer, [Bill To Customer], Category,
         [Buying Group], [Primary Contact], [Postal Code], [Valid From], [Valid To],
         [Lineage Key])
    SELECT [WWI Customer ID], Customer, [Bill To Customer], Category,
           [Buying Group], [Primary Contact], [Postal Code], [Valid From], [Valid To],
           @LineageKey
    FROM Integration.Customer_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Customer';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Bill To Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Category]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Buying Group]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Primary Contact]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Postal Code]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Bill To Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Category]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Buying Group]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Primary Contact]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Postal Code]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Customer_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedCustomerData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedCustomerData].[CTE1].[RowsToCloseOff].[WWI Customer ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[Customer_Staging].[WWI Customer ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedCustomerData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1901" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedCustomerData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedEmployeeData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Employee'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT e.[WWI Employee ID], MIN(e.[Valid From]) AS [Valid From]
        FROM Integration.Employee_Staging AS e
        GROUP BY e.[WWI Employee ID]
    )
    UPDATE e
        SET e.[Valid To] = rtco.[Valid From]
    FROM Dimension.Employee AS e
    INNER JOIN RowsToCloseOff AS rtco
    ON e.[WWI Employee ID] = rtco.[WWI Employee ID]
    WHERE e.[Valid To] = @EndOfTime;
 
    INSERT Dimension.Employee
        ([WWI Employee ID], Employee, [Preferred Name], [Is Salesperson], Photo, [Valid From], [Valid To], [Lineage Key])
    SELECT [WWI Employee ID], Employee, [Preferred Name], [Is Salesperson], Photo, [Valid From], [Valid To],
           @LineageKey
    FROM Integration.Employee_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Employee';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Preferred Name]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Is Salesperson]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Photo]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Preferred Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Is Salesperson]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Photo]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Employee_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedEmployeeData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedEmployeeData].[CTE1].[RowsToCloseOff].[WWI Employee ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[Employee_Staging].[WWI Employee ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedEmployeeData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1795" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedEmployeeData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedMovementData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Movement'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    -- Find the dimension keys required
 
    UPDATE m
        SET m.[Stock Item Key] = COALESCE((SELECT TOP(1) si.[Stock Item Key]
                                           FROM Dimension.[Stock Item] AS si
                                           WHERE si.[WWI Stock Item ID] = m.[WWI Stock Item ID]
                                           AND m.[Last Modifed When] > si.[Valid From]
                                           AND m.[Last Modifed When] <= si.[Valid To]
                                           ORDER BY si.[Valid From]), 0),
            m.[Customer Key] = COALESCE((SELECT TOP(1) c.[Customer Key]
                                         FROM Dimension.Customer AS c
                                         WHERE c.[WWI Customer ID] = m.[WWI Customer ID]
                                         AND m.[Last Modifed When] > c.[Valid From]
                                         AND m.[Last Modifed When] <= c.[Valid To]
                                         ORDER BY c.[Valid From]), 0),
            m.[Supplier Key] = COALESCE((SELECT TOP(1) s.[Supplier Key]
                                         FROM Dimension.Supplier AS s
                                         WHERE s.[WWI Supplier ID] = m.[WWI Supplier ID]
                                         AND m.[Last Modifed When] > s.[Valid From]
                                         AND m.[Last Modifed When] <= s.[Valid To]
                                         ORDER BY s.[Valid From]), 0),
            m.[Transaction Type Key] = COALESCE((SELECT TOP(1) tt.[Transaction Type Key]
                                                 FROM Dimension.[Transaction Type] AS tt
                                                 WHERE tt.[WWI Transaction Type ID] = m.[WWI Transaction Type ID]
                                                 AND m.[Last Modifed When] > tt.[Valid From]
                                                 AND m.[Last Modifed When] <= tt.[Valid To]
                                                 ORDER BY tt.[Valid From]), 0)
    FROM Integration.Movement_Staging AS m;
 
    -- Merge the data into the fact table
 
    MERGE Fact.Movement AS m
    USING Integration.Movement_Staging AS ms
    ON m.[WWI Stock Item Transaction ID] = ms.[WWI Stock Item Transaction ID]
    WHEN MATCHED THEN
        UPDATE SET m.[Date Key] = ms.[Date Key],
                   m.[Stock Item Key] = ms.[Stock Item Key],
                   m.[Customer Key] = ms.[Customer Key],
                   m.[Supplier Key] = ms.[Supplier Key],
                   m.[Transaction Type Key] = ms.[Transaction Type Key],
                   m.[WWI Invoice ID] = ms.[WWI Invoice ID],
                   m.[WWI Purchase Order ID] = ms.[WWI Purchase Order ID],
                   m.Quantity = ms.Quantity,
                   m.[Lineage Key] = @LineageKey
    WHEN NOT MATCHED THEN
        INSERT ([Date Key], [Stock Item Key], [Customer Key], [Supplier Key], [Transaction Type Key],
                [WWI Stock Item Transaction ID], [WWI Invoice ID], [WWI Purchase Order ID], Quantity, [Lineage Key])
        VALUES (ms.[Date Key], ms.[Stock Item Key], ms.[Customer Key], ms.[Supplier Key], ms.[Transaction Type Key],
                ms.[WWI Stock Item Transaction ID], ms.[WWI Invoice ID], ms.[WWI Purchase Order ID], ms.Quantity, @LineageKey);
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Movement';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Last Modifed When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Last Modifed When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Last Modifed When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Last Modifed When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Stock Item Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Stock Item Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Movement_Staging].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Stock Item Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Movement].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="4229" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedMovementData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedOrderData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Order'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    -- Find the dimension keys required
 
    UPDATE o
        SET o.[City Key] = COALESCE((SELECT TOP(1) c.[City Key]
                                     FROM Dimension.City AS c
                                     WHERE c.[WWI City ID] = o.[WWI City ID]
                                     AND o.[Last Modified When] > c.[Valid From]
                                     AND o.[Last Modified When] <= c.[Valid To]
                                     ORDER BY c.[Valid From]), 0),
            o.[Customer Key] = COALESCE((SELECT TOP(1) c.[Customer Key]
                                         FROM Dimension.Customer AS c
                                         WHERE c.[WWI Customer ID] = o.[WWI Customer ID]
                                         AND o.[Last Modified When] > c.[Valid From]
                                         AND o.[Last Modified When] <= c.[Valid To]
                                         ORDER BY c.[Valid From]), 0),
            o.[Stock Item Key] = COALESCE((SELECT TOP(1) si.[Stock Item Key]
                                           FROM Dimension.[Stock Item] AS si
                                           WHERE si.[WWI Stock Item ID] = o.[WWI Stock Item ID]
                                           AND o.[Last Modified When] > si.[Valid From]
                                           AND o.[Last Modified When] <= si.[Valid To]
                                           ORDER BY si.[Valid From]), 0),
            o.[Salesperson Key] = COALESCE((SELECT TOP(1) e.[Employee Key]
                                         FROM Dimension.Employee AS e
                                         WHERE e.[WWI Employee ID] = o.[WWI Salesperson ID]
                                         AND o.[Last Modified When] > e.[Valid From]
                                         AND o.[Last Modified When] <= e.[Valid To]
                                         ORDER BY e.[Valid From]), 0),
            o.[Picker Key] = COALESCE((SELECT TOP(1) e.[Employee Key]
                                       FROM Dimension.Employee AS e
                                       WHERE e.[WWI Employee ID] = o.[WWI Picker ID]
                                       AND o.[Last Modified When] > e.[Valid From]
                                       AND o.[Last Modified When] <= e.[Valid To]
                                       ORDER BY e.[Valid From]), 0)
    FROM Integration.Order_Staging AS o;
 
    -- Remove any existing entries for any of these orders
 
    DELETE o
    FROM Fact.[Order] AS o
    WHERE o.[WWI Order ID] IN (SELECT [WWI Order ID] FROM Integration.Order_Staging);
 
    -- Insert all current details for these orders
 
    INSERT Fact.[Order]
        ([City Key], [Customer Key], [Stock Item Key], [Order Date Key], [Picked Date Key],
         [Salesperson Key], [Picker Key], [WWI Order ID], [WWI Backorder ID], [Description],
         Package, Quantity, [Unit Price], [Tax Rate], [Total Excluding Tax], [Tax Amount],
         [Total Including Tax], [Lineage Key])
    SELECT [City Key], [Customer Key], [Stock Item Key], [Order Date Key], [Picked Date Key],
           [Salesperson Key], [Picker Key], [WWI Order ID], [WWI Backorder ID], [Description],
           Package, Quantity, [Unit Price], [Tax Rate], [Total Excluding Tax], [Tax Amount],
           [Total Including Tax], @LineageKey
    FROM Integration.Order_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Order';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Salesperson ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Picker Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Picker ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[WWI Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Picked Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Picker Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[WWI Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[WWI Backorder ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Description]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Order].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Order Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Picked Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Picker Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[WWI Backorder ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Description]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Order_Staging].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="4265" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedOrderData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedPaymentMethodData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Payment Method'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT pm.[WWI Payment Method ID], MIN(pm.[Valid From]) AS [Valid From]
        FROM Integration.PaymentMethod_Staging AS pm
        GROUP BY pm.[WWI Payment Method ID]
    )
    UPDATE pm
        SET pm.[Valid To] = rtco.[Valid From]
    FROM Dimension.[Payment Method] AS pm
    INNER JOIN RowsToCloseOff AS rtco
    ON pm.[WWI Payment Method ID] = rtco.[WWI Payment Method ID]
    WHERE pm.[Valid To] = @EndOfTime;
 
    INSERT Dimension.[Payment Method]
        ([WWI Payment Method ID], [Payment Method], [Valid From], [Valid To], [Lineage Key])
    SELECT [WWI Payment Method ID], [Payment Method], [Valid From], [Valid To],
           @LineageKey
    FROM Integration.PaymentMethod_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Payment Method';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[Payment Method]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedPaymentMethodData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedPaymentMethodData].[CTE1].[RowsToCloseOff].[WWI Payment Method ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[PaymentMethod_Staging].[WWI Payment Method ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedPaymentMethodData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1813" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedPaymentMethodData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedPurchaseData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Purchase'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    -- Find the dimension keys required
 
    UPDATE p
        SET p.[Supplier Key] = COALESCE((SELECT TOP(1) s.[Supplier Key]
                                     FROM Dimension.Supplier AS s
                                     WHERE s.[WWI Supplier ID] = p.[WWI Supplier ID]
                                     AND p.[Last Modified When] > s.[Valid From]
                                     AND p.[Last Modified When] <= s.[Valid To]
                                     ORDER BY s.[Valid From]), 0),
            p.[Stock Item Key] = COALESCE((SELECT TOP(1) si.[Stock Item Key]
                                           FROM Dimension.[Stock Item] AS si
                                           WHERE si.[WWI Stock Item ID] = p.[WWI Stock Item ID]
                                           AND p.[Last Modified When] > si.[Valid From]
                                           AND p.[Last Modified When] <= si.[Valid To]
                                           ORDER BY si.[Valid From]), 0)
    FROM Integration.Purchase_Staging AS p;
 
    -- Remove any existing entries for any of these purchase orders
 
    DELETE p
    FROM Fact.Purchase AS p
    WHERE p.[WWI Purchase Order ID] IN (SELECT [WWI Purchase Order ID] FROM Integration.Purchase_Staging);
 
    -- Insert all current details for these purchase orders
 
    INSERT Fact.Purchase
        ([Date Key], [Supplier Key], [Stock Item Key], [WWI Purchase Order ID], [Ordered Outers], [Ordered Quantity],
         [Received Outers], Package, [Is Order Finalized], [Lineage Key])
    SELECT [Date Key], [Supplier Key], [Stock Item Key], [WWI Purchase Order ID], [Ordered Outers], [Ordered Quantity],
           [Received Outers], Package, [Is Order Finalized], @LineageKey
    FROM Integration.Purchase_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Purchase';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Ordered Outers]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Ordered Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Received Outers]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Is Order Finalized]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Purchase].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Ordered Outers]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Ordered Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Received Outers]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Purchase_Staging].[Is Order Finalized]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="2717" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedPurchaseData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedSaleData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Sale'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    -- Find the dimension keys required
 
    UPDATE s
        SET s.[City Key] = COALESCE((SELECT TOP(1) c.[City Key]
                                     FROM Dimension.City AS c
                                     WHERE c.[WWI City ID] = s.[WWI City ID]
                                     AND s.[Last Modified When] > c.[Valid From]
                                     AND s.[Last Modified When] <= c.[Valid To]
                                     ORDER BY c.[Valid From]), 0),
            s.[Customer Key] = COALESCE((SELECT TOP(1) c.[Customer Key]
                                           FROM Dimension.Customer AS c
                                           WHERE c.[WWI Customer ID] = s.[WWI Customer ID]
                                           AND s.[Last Modified When] > c.[Valid From]
                                           AND s.[Last Modified When] <= c.[Valid To]
                                           ORDER BY c.[Valid From]), 0),
            s.[Bill To Customer Key] = COALESCE((SELECT TOP(1) c.[Customer Key]
                                                 FROM Dimension.Customer AS c
                                                 WHERE c.[WWI Customer ID] = s.[WWI Bill To Customer ID]
                                                 AND s.[Last Modified When] > c.[Valid From]
                                                 AND s.[Last Modified When] <= c.[Valid To]
                                                 ORDER BY c.[Valid From]), 0),
            s.[Stock Item Key] = COALESCE((SELECT TOP(1) si.[Stock Item Key]
                                           FROM Dimension.[Stock Item] AS si
                                           WHERE si.[WWI Stock Item ID] = s.[WWI Stock Item ID]
                                           AND s.[Last Modified When] > si.[Valid From]
                                           AND s.[Last Modified When] <= si.[Valid To]
                                           ORDER BY si.[Valid From]), 0),
            s.[Salesperson Key] = COALESCE((SELECT TOP(1) e.[Employee Key]
                                            FROM Dimension.Employee AS e
                                            WHERE e.[WWI Employee ID] = s.[WWI Salesperson ID]
                                            AND s.[Last Modified When] > e.[Valid From]
                                            AND s.[Last Modified When] <= e.[Valid To]
                                            ORDER BY e.[Valid From]), 0)
    FROM Integration.Sale_Staging AS s;
 
    -- Remove any existing entries for any of these invoices
 
    DELETE s
    FROM Fact.Sale AS s
    WHERE s.[WWI Invoice ID] IN (SELECT [WWI Invoice ID] FROM Integration.Sale_Staging);
 
    -- Insert all current details for these invoices
 
    INSERT Fact.Sale
        ([City Key], [Customer Key], [Bill To Customer Key], [Stock Item Key], [Invoice Date Key], [Delivery Date Key],
         [Salesperson Key], [WWI Invoice ID], [Description], Package, Quantity, [Unit Price], [Tax Rate],
         [Total Excluding Tax], [Tax Amount], Profit, [Total Including Tax], [Total Dry Items], [Total Chiller Items], [Lineage Key])
    SELECT [City Key], [Customer Key], [Bill To Customer Key], [Stock Item Key], [Invoice Date Key], [Delivery Date Key],
           [Salesperson Key], [WWI Invoice ID], [Description], Package, Quantity, [Unit Price], [Tax Rate],
           [Total Excluding Tax], [Tax Amount], Profit, [Total Including Tax], [Total Dry Items], [Total Chiller Items], @LineageKey
    FROM Integration.Sale_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Sale';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI City ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[City].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI Bill To Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI Salesperson ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Delivery Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Description]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Profit]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Dry Items]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Total Chiller Items]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Sale].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[City Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Invoice Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Delivery Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Salesperson Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Description]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Package]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Profit]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Total Dry Items]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Sale_Staging].[Total Chiller Items]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="4414" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedSaleData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedStockHoldingData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Stock Holding'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    -- Find the dimension keys required
 
    UPDATE s
        SET s.[Stock Item Key] = COALESCE((SELECT TOP(1) si.[Stock Item Key]
                                           FROM Dimension.[Stock Item] AS si
                                           WHERE si.[WWI Stock Item ID] = s.[WWI Stock Item ID]
                                           ORDER BY si.[Valid To] DESC), 0)
    FROM Integration.StockHolding_Staging AS s;
 
    -- Remove all existing holdings
 
    TRUNCATE TABLE Fact.[Stock Holding];
 
    -- Insert all current stock holdings
 
    INSERT Fact.[Stock Holding]
        ([Stock Item Key], [Quantity On Hand], [Bin Location], [Last Stocktake Quantity],
         [Last Cost Price], [Reorder Level], [Target Stock Level], [Lineage Key])
    SELECT [Stock Item Key], [Quantity On Hand], [Bin Location], [Last Stocktake Quantity],
           [Last Cost Price], [Reorder Level], [Target Stock Level], @LineageKey
    FROM Integration.StockHolding_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Stock Holding';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Quantity On Hand]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Bin Location]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Last Stocktake Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Last Cost Price]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Reorder Level]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Target Stock Level]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Stock Item Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Quantity On Hand]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Bin Location]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Last Stocktake Quantity]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Last Cost Price]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Reorder Level]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging].[Target Stock Level]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1969" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedStockHoldingData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedStockItemData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Stock Item'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT s.[WWI Stock Item ID], MIN(s.[Valid From]) AS [Valid From]
        FROM Integration.StockItem_Staging AS s
        GROUP BY s.[WWI Stock Item ID]
    )
    UPDATE s
        SET s.[Valid To] = rtco.[Valid From]
    FROM Dimension.[Stock Item] AS s
    INNER JOIN RowsToCloseOff AS rtco
    ON s.[WWI Stock Item ID] = rtco.[WWI Stock Item ID]
    WHERE s.[Valid To] = @EndOfTime;
 
    INSERT Dimension.[Stock Item]
        ([WWI Stock Item ID], [Stock Item], Color, [Selling Package], [Buying Package],
         Brand, Size, [Lead Time Days], [Quantity Per Outer], [Is Chiller Stock],
         Barcode, [Tax Rate], [Unit Price], [Recommended Retail Price], [Typical Weight Per Unit],
         Photo, [Valid From], [Valid To], [Lineage Key])
    SELECT [WWI Stock Item ID], [Stock Item], Color, [Selling Package], [Buying Package],
           Brand, Size, [Lead Time Days], [Quantity Per Outer], [Is Chiller Stock],
           Barcode, [Tax Rate], [Unit Price], [Recommended Retail Price], [Typical Weight Per Unit],
           Photo, [Valid From], [Valid To],
           @LineageKey
    FROM Integration.StockItem_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Stock Item';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Color]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Selling Package]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Buying Package]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Brand]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Size]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Lead Time Days]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Quantity Per Outer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Is Chiller Stock]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Barcode]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Recommended Retail Price]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Typical Weight Per Unit]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Photo]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[WWI Stock Item ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Stock Item]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Color]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Selling Package]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Buying Package]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Brand]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Size]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Lead Time Days]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Quantity Per Outer]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Is Chiller Stock]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Barcode]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Tax Rate]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Unit Price]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Recommended Retail Price]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Typical Weight Per Unit]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Photo]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[StockItem_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedStockItemData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedStockItemData].[CTE1].[RowsToCloseOff].[WWI Stock Item ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[StockItem_Staging].[WWI Stock Item ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedStockItemData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="2238" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedStockItemData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedSupplierData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Supplier'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT s.[WWI Supplier ID], MIN(s.[Valid From]) AS [Valid From]
        FROM Integration.Supplier_Staging AS s
        GROUP BY s.[WWI Supplier ID]
    )
    UPDATE s
        SET s.[Valid To] = rtco.[Valid From]
    FROM Dimension.[Supplier] AS s
    INNER JOIN RowsToCloseOff AS rtco
    ON s.[WWI Supplier ID] = rtco.[WWI Supplier ID]
    WHERE s.[Valid To] = @EndOfTime;
 
    INSERT Dimension.[Supplier]
        ([WWI Supplier ID], Supplier, Category, [Primary Contact], [Supplier Reference],
         [Payment Days], [Postal Code], [Valid From], [Valid To], [Lineage Key])
    SELECT [WWI Supplier ID], Supplier, Category, [Primary Contact], [Supplier Reference],
           [Payment Days], [Postal Code], [Valid From], [Valid To],
           @LineageKey
    FROM Integration.Supplier_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Supplier';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Category]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Primary Contact]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Reference]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Payment Days]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Postal Code]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Category]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Primary Contact]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Supplier Reference]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Payment Days]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Postal Code]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Supplier_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedSupplierData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedSupplierData].[CTE1].[RowsToCloseOff].[WWI Supplier ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[Supplier_Staging].[WWI Supplier ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedSupplierData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1899" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedSupplierData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedTransactionData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Transaction'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    -- Find the dimension keys required
 
    UPDATE t
        SET t.[Customer Key] = COALESCE((SELECT TOP(1) c.[Customer Key]
                                         FROM Dimension.Customer AS c
                                         WHERE c.[WWI Customer ID] = t.[WWI Customer ID]
                                         AND t.[Last Modified When] > c.[Valid From]
                                         AND t.[Last Modified When] <= c.[Valid To]
                                         ORDER BY c.[Valid From]), 0),
            t.[Bill To Customer Key] = COALESCE((SELECT TOP(1) c.[Customer Key]
                                                 FROM Dimension.Customer AS c
                                                 WHERE c.[WWI Customer ID] = t.[WWI Bill To Customer ID]
                                                 AND t.[Last Modified When] > c.[Valid From]
                                                 AND t.[Last Modified When] <= c.[Valid To]
                                                 ORDER BY c.[Valid From]), 0),
            t.[Supplier Key] = COALESCE((SELECT TOP(1) s.[Supplier Key]
                                         FROM Dimension.Supplier AS s
                                         WHERE s.[WWI Supplier ID] = t.[WWI Supplier ID]
                                         AND t.[Last Modified When] > s.[Valid From]
                                         AND t.[Last Modified When] <= s.[Valid To]
                                         ORDER BY s.[Valid From]), 0),
            t.[Transaction Type Key] = COALESCE((SELECT TOP(1) tt.[Transaction Type Key]
                                                 FROM Dimension.[Transaction Type] AS tt
                                                 WHERE tt.[WWI Transaction Type ID] = t.[WWI Transaction Type ID]
                                                 AND t.[Last Modified When] > tt.[Valid From]
                                                 AND t.[Last Modified When] <= tt.[Valid To]
                                                 ORDER BY tt.[Valid From]), 0),
            t.[Payment Method Key] = COALESCE((SELECT TOP(1) pm.[Payment Method Key]
                                                 FROM Dimension.[Payment Method] AS pm
                                                 WHERE pm.[WWI Payment Method ID] = t.[WWI Payment Method ID]
                                                 AND t.[Last Modified When] > pm.[Valid From]
                                                 AND t.[Last Modified When] <= pm.[Valid To]
                                                 ORDER BY pm.[Valid From]), 0)
    FROM Integration.Transaction_Staging AS t;
 
    -- Insert all the transactions
 
    INSERT Fact.[Transaction]
        ([Date Key], [Customer Key], [Bill To Customer Key], [Supplier Key], [Transaction Type Key],
         [Payment Method Key], [WWI Customer Transaction ID], [WWI Supplier Transaction ID],
         [WWI Invoice ID], [WWI Purchase Order ID], [Supplier Invoice Number], [Total Excluding Tax],
         [Tax Amount], [Total Including Tax], [Outstanding Balance], [Is Finalized], [Lineage Key])
    SELECT [Date Key], [Customer Key], [Bill To Customer Key], [Supplier Key], [Transaction Type Key],
         [Payment Method Key], [WWI Customer Transaction ID], [WWI Supplier Transaction ID],
         [WWI Invoice ID], [WWI Purchase Order ID], [Supplier Invoice Number], [Total Excluding Tax],
         [Tax Amount], [Total Including Tax], [Outstanding Balance], [Is Finalized], @LineageKey
    FROM Integration.Transaction_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Transaction';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Bill To Customer ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Supplier ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Payment Method Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Payment Method ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Last Modified When]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Payment Method Key]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Customer Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Supplier Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Supplier Invoice Number]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Outstanding Balance]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Is Finalized]" />
                </Entry>
                <Entry>
                    <References Name="[Fact].[Transaction].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Bill To Customer Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Supplier Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Transaction Type Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Payment Method Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Customer Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Supplier Transaction ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Invoice ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[WWI Purchase Order ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Supplier Invoice Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Total Excluding Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Tax Amount]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Total Including Tax]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Outstanding Balance]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Transaction_Staging].[Is Finalized]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="4462" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedTransactionData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[MigrateStagedTransactionTypeData]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999';
 
    BEGIN TRAN;
 
    DECLARE @LineageKey int = (SELECT TOP(1) [Lineage Key]
                               FROM Integration.Lineage
                               WHERE [Table Name] = N'Transaction Type'
                               AND [Data Load Completed] IS NULL
                               ORDER BY [Lineage Key] DESC);
 
    WITH RowsToCloseOff
    AS
    (
        SELECT pm.[WWI Transaction Type ID], MIN(pm.[Valid From]) AS [Valid From]
        FROM Integration.TransactionType_Staging AS pm
        GROUP BY pm.[WWI Transaction Type ID]
    )
    UPDATE pm
        SET pm.[Valid To] = rtco.[Valid From]
    FROM Dimension.[Transaction Type] AS pm
    INNER JOIN RowsToCloseOff AS rtco
    ON pm.[WWI Transaction Type ID] = rtco.[WWI Transaction Type ID]
    WHERE pm.[Valid To] = @EndOfTime;
 
    INSERT Dimension.[Transaction Type]
        ([WWI Transaction Type ID], [Transaction Type], [Valid From], [Valid To], [Lineage Key])
    SELECT [WWI Transaction Type ID], [Transaction Type], [Valid From], [Valid To],
           @LineageKey
    FROM Integration.TransactionType_Staging;
 
    UPDATE Integration.Lineage
        SET [Data Load Completed] = SYSDATETIME(),
            [Was Successful] = 1
    WHERE [Lineage Key] = @LineageKey;
 
    UPDATE Integration.[ETL Cutoff]
        SET [Cutoff Time] = (SELECT [Source System Cutoff Time]
                             FROM Integration.Lineage
                             WHERE [Lineage Key] = @LineageKey)
    FROM Integration.[ETL Cutoff]
    WHERE [Table Name] = N'Transaction Type';
 
    COMMIT;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[datetime2]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[int]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[WWI Transaction Type ID]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[Transaction Type]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[Valid From]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging].[Valid To]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Integration].[MigrateStagedTransactionTypeData].[CTE1].[RowsToCloseOff]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedTransactionTypeData].[CTE1].[RowsToCloseOff].[WWI Transaction Type ID]">
                                    <Relationship Name="ExpressionDependencies">
                                        <Entry>
                                            <References Name="[Integration].[TransactionType_Staging].[WWI Transaction Type ID]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                            <Entry>
                                <Element Type="SqlComputedColumn" Name="[Integration].[MigrateStagedTransactionTypeData].[CTE1].[RowsToCloseOff].[Valid From]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="2" />
                <Property Name="Length" Value="1843" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="&#xD;&#xA;CREATE PROCEDURE Integration.MigrateStagedTransactionTypeData&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Movement_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Movement Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Stock Item Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Supplier Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Transaction Type Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Stock Item Transaction ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Invoice ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Purchase Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Quantity]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Stock Item ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Customer ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Supplier ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[WWI Transaction Type ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Movement_Staging].[Last Modifed When]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="62" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Order_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Order Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[City Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Stock Item Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Order Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Picked Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Salesperson Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Picker Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI Backorder ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Description]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Package]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Quantity]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Unit Price]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Tax Rate]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Total Excluding Tax]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Tax Amount]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Total Including Tax]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Lineage Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI City ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI Customer ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI Stock Item ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI Salesperson ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[WWI Picker ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Order_Staging].[Last Modified When]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="63" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[PaymentMethod_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[PaymentMethod_Staging].[Payment Method Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[PaymentMethod_Staging].[WWI Payment Method ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[PaymentMethod_Staging].[Payment Method]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[PaymentMethod_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[PaymentMethod_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="64" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_City_Staging]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[City_Staging].[City Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[City_Staging]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="56" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Customer_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Customer_Staging].[Customer Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Customer_Staging]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="57" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Employee_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Employee_Staging].[Employee Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Employee_Staging]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="59" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_ETL_Cutoff]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="60" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Lineage]">
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Lineage].[Lineage Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="61" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Movement_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Movement_Staging].[Movement Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Movement_Staging]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="62" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Order_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Order_Staging].[Order Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Order_Staging]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="63" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Payment_Method_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[PaymentMethod_Staging].[Payment Method Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[PaymentMethod_Staging]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="64" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Purchase_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Purchase_Staging].[Purchase Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Purchase_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="65" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Sale_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Sale_Staging].[Sale Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Sale_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="66" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Stock_Holding_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[StockHolding_Staging].[Stock Holding Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[StockHolding_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="67" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Stock_Item_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[StockItem_Staging].[Stock Item Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[StockItem_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="68" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Supplier_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Supplier_Staging].[Supplier Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Supplier_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="69" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Transaction_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[Transaction_Staging].[Transaction Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[Transaction_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="70" />
        </Element>
        <Element Type="SqlPrimaryKeyConstraint" Name="[Integration].[PK_Integration_Transaction_Type_Staging]">
            <Property Name="IsClustered" Value="False" />
            <Relationship Name="ColumnSpecifications">
                <Entry>
                    <Element Type="SqlIndexedColumnSpecification">
                        <Relationship Name="Column">
                            <Entry>
                                <References Name="[Integration].[TransactionType_Staging].[Transaction Type Staging Key]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="DefiningTable">
                <Entry>
                    <References Name="[Integration].[TransactionType_Staging]" />
                </Entry>
            </Relationship>
            <Annotation Type="SqlInlineConstraintAnnotation" Disambiguator="71" />
        </Element>
        <Element Type="SqlProcedure" Name="[Integration].[PopulateDateDimensionForYear]">
            <Property Name="BodyScript">
                <Value><![CDATA[
BEGIN
    SET NOCOUNT ON;
    SET XACT_ABORT ON;
 
    DECLARE @DateCounter date = DATEFROMPARTS(@YearNumber, 1, 1);
 
    BEGIN TRY;
 
        BEGIN TRAN;
 
        WHILE YEAR(@DateCounter) = @YearNumber
        BEGIN
            IF NOT EXISTS (SELECT 1 FROM Dimension.[Date] WHERE [Date] = @DateCounter)
            BEGIN
                INSERT Dimension.[Date]
                       ( [Date]
                       , [DateKey]
                       , [Day Number]
                       , [Day]
                       , [Day of Year]
                       , [Day of Year Number]
                       , [Day of Week]
                       , [Day of Week Number]
                       , [Week of Year]
                       , [Month]
                       , [Short Month]
                       , [Quarter]
                       , [Half of Year]
                       , [Beginning of Month]
                       , [Beginning of Quarter]
                       , [Beginning of Half Year]
                       , [Beginning of Year]
                       , [Beginning of Month Label]
                       , [Beginning of Month Label Short]
                       , [Beginning of Quarter Label]
                       , [Beginning of Quarter Label Short]
                       , [Beginning of Half Year Label]
                       , [Beginning of Half Year Label Short]
                       , [Beginning of Year Label]
                       , [Beginning of Year Label Short]
                       , [Calendar Day Label]
                       , [Calendar Day Label Short]
                       , [Calendar Week Number]
                       , [Calendar Week Label]
                       , [Calendar Month Number]
                       , [Calendar Month Label]
                       , [Calendar Month Year Label]
                       , [Calendar Quarter Number]
                       , [Calendar Quarter Label]
                       , [Calendar Quarter Year Label]
                       , [Calendar Half of Year Number]
                       , [Calendar Half of Year Label]
                       , [Calendar Year Half of Year Label]
                       , [Calendar Year]
                       , [Calendar Year Label]
                       , [Fiscal Month Number]
                       , [Fiscal Month Label]
                       , [Fiscal Quarter Number]
                       , [Fiscal Quarter Label]
                       , [Fiscal Half of Year Number]
                       , [Fiscal Half of Year Label]
                       , [Fiscal Year]
                       , [Fiscal Year Label]
                       , [Date Key]
                       , [Year Week Key]
                       , [Year Month Key]
                       , [Year Quarter Key]
                       , [Year Half of Year Key]
                       , [Year Key]
                       , [Beginning of Month Key]
                       , [Beginning of Quarter Key]
                       , [Beginning of Half Year Key]
                       , [Beginning of Year Key]
                       , [Fiscal Year Month Key]
                       , [Fiscal Year Quarter Key]
                       , [Fiscal Year Half of Year Key]
                       , [ISO Week Number]
                       )
                SELECT [Date]
                       , [DateKey]
                       , [Day Number]
                       , [Day]
                       , [Day of Year]
                       , [Day of Year Number]
                       , [Day of Week]
                       , [Day of Week Number]
                       , [Week of Year]
                       , [Month]
                       , [Short Month]
                       , [Quarter]
                       , [Half of Year]
                       , [Beginning of Month]
                       , [Beginning of Quarter]
                       , [Beginning of Half of Year]
                       , [Beginning of Year]
                       , [Beginning of Month Label]
                       , [Beginning of Month Label Short]
                       , [Beginning of Quarter Label]
                       , [Beginning of Quarter Label Short]
                       , [Beginning of Half Year Label]
                       , [Beginning of Half Year Label Short]
                       , [Beginning of Year Label]
                       , [Beginning of Year Label Short]
                       , [Calendar Day Label]
                       , [Calendar Day Label Short]
                       , [Calendar Week Number]
                       , [Calendar Week Label]
                       , [Calendar Month Number]
                       , [Calendar Month Label]
                       , [Calendar Month Year Label]
                       , [Calendar Quarter Number]
                       , [Calendar Quarter Label]
                       , [Calendar Quarter Year Label]
                       , [Calendar Half of Year Number]
                       , [Calendar Half of Year Label]
                       , [Calendar Year Half of Year Label]
                       , [Calendar Year]
                       , [Calendar Year Label]
                       , [Fiscal Month Number]
                       , [Fiscal Month Label]
                       , [Fiscal Quarter Number]
                       , [Fiscal Quarter Label]
                       , [Fiscal Half of Year Number]
                       , [Fiscal Half of Year Label]
                       , [Fiscal Year]
                       , [Fiscal Year Label]
                       , [Date Key]
                       , [Year Week Key]
                       , [Year Month Key]
                       , [Year Quarter Key]
                       , [Year Half of Year Key]
                       , [Year Key]
                       , [Beginning of Month Key]
                       , [Beginning of Quarter Key]
                       , [Beginning of Half of Year Key]
                       , [Beginning of Year Key]
                       , [Fiscal Year Month Key]
                       , [Fiscal Year Quarter Key]
                       , [Fiscal Year Half of Year Key]
                       , [ISO Week Number]
                    FROM Integration.GenerateDateDimensionColumns(@DateCounter);
            END;
            SET @DateCounter = DATEADD(day, 1, @DateCounter);
        END;
 
        COMMIT;
    END TRY
    BEGIN CATCH
        IF XACT_STATE() <> 0 ROLLBACK;
        PRINT N'Unable to populate dates for the year';
        THROW;
        RETURN -1;
    END CATCH;
 
    RETURN 0;
END;]]></Value>
            </Property>
            <Property Name="IsCaller" Value="False" />
            <Property Name="IsOwner" Value="True" />
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[date]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[PopulateDateDimensionForYear].[@YearNumber]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[DateKey]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Day Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Day]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Year Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Week]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Week Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Week of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Month]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Short Month]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Quarter]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Half of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Day Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Day Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Week Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Week Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Month Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Month Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Month Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Quarter Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Quarter Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Quarter Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Half of Year Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Half of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Year Half of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Month Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Month Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Quarter Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Quarter Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Half of Year Number]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Half of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Year Week Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Year Month Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Year Quarter Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Year Half of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Month Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Quarter Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Half of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Dimension].[Date].[ISO Week Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Date]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[DateKey]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Day Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Day]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Day of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Day of Year Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Day of Week]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Day of Week Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Week of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Month]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Short Month]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Quarter]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Half of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half Year Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Day Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Day Label Short]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Week Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Week Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Month Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Month Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Month Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Quarter Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Quarter Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Quarter Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Half of Year Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Half of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Year Half of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Calendar Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Month Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Month Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Quarter Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Quarter Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Half of Year Number]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Half of Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Label]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Date Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Year Week Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Year Month Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Year Quarter Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Year Half of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Month Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Quarter Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Half of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Beginning of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Month Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Quarter Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[Fiscal Year Half of Year Key]" />
                </Entry>
                <Entry>
                    <References Name="[Integration].[GenerateDateDimensionColumns].[ISO Week Number]" />
                </Entry>
            </Relationship>
            <Relationship Name="Parameters">
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Integration].[PopulateDateDimensionForYear].[@YearNumber]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="Length" Value="8527" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value="CREATE PROCEDURE Integration.PopulateDateDimensionForYear&#xD;&#xA;@YearNumber int&#xD;&#xA;WITH EXECUTE AS OWNER&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Purchase_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Purchase Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Supplier Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Stock Item Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[WWI Purchase Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Ordered Outers]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Ordered Quantity]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Received Outers]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Package]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Is Order Finalized]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[WWI Supplier ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[WWI Stock Item ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Purchase_Staging].[Last Modified When]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="65" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Sale_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Sale Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[City Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Bill To Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Stock Item Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Invoice Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Delivery Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Salesperson Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[WWI Invoice ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Description]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Package]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Quantity]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Unit Price]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Tax Rate]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Total Excluding Tax]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Tax Amount]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Profit]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Total Including Tax]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Total Dry Items]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Total Chiller Items]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[WWI City ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[WWI Customer ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[WWI Bill To Customer ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[WWI Stock Item ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[WWI Salesperson ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Sale_Staging].[Last Modified When]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="66" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[StockHolding_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Stock Holding Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Stock Item Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Quantity On Hand]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Bin Location]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Last Stocktake Quantity]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Last Cost Price]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Reorder Level]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[Target Stock Level]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockHolding_Staging].[WWI Stock Item ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="67" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[StockItem_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Stock Item Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[WWI Stock Item ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Stock Item]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Color]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Selling Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Buying Package]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Brand]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Size]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Lead Time Days]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Quantity Per Outer]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Is Chiller Stock]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Barcode]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Tax Rate]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Unit Price]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Recommended Retail Price]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Typical Weight Per Unit]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="3" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Photo]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="IsMax" Value="True" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[varbinary]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[StockItem_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="68" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Supplier_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Supplier Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[WWI Supplier ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Supplier]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="100" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Category]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Primary Contact]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Supplier Reference]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Payment Days]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Postal Code]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="10" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Supplier_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="69" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[Transaction_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Transaction Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bigint]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Date Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[date]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Bill To Customer Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Supplier Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Transaction Type Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Payment Method Key]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Customer Transaction ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Supplier Transaction ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Invoice ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Purchase Order ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Supplier Invoice Number]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="20" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Total Excluding Tax]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Tax Amount]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Total Including Tax]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Outstanding Balance]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="2" />
                                    <Property Name="Precision" Value="18" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[decimal]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Is Finalized]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[bit]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Customer ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Bill To Customer ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Supplier ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Transaction Type ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[WWI Payment Method ID]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[Transaction_Staging].[Last Modified When]">
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="70" />
        </Element>
        <Element Type="SqlTable" Name="[Integration].[TransactionType_Staging]">
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="Columns">
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[TransactionType_Staging].[Transaction Type Staging Key]">
                        <Property Name="IsNullable" Value="False" />
                        <Property Name="IsIdentity" Value="True" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[TransactionType_Staging].[WWI Transaction Type ID]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[int]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[TransactionType_Staging].[Transaction Type]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Length" Value="50" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[TransactionType_Staging].[Valid From]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSimpleColumn" Name="[Integration].[TransactionType_Staging].[Valid To]">
                        <Property Name="IsNullable" Value="False" />
                        <Relationship Name="TypeSpecifier">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Property Name="Scale" Value="7" />
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[datetime2]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
            <AttachedAnnotation Disambiguator="71" />
        </Element>
        <Element Type="SqlPartitionFunction" Name="[PF_Date]">
            <Property Name="Range" Value="2" />
            <Relationship Name="BoundaryValues">
                <Entry>
                    <Element Type="SqlPartitionValue">
                        <Property Name="ExpressionScript">
                            <Value><![CDATA['01/01/2012 00:00:00']]></Value>
                        </Property>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlPartitionValue">
                        <Property Name="ExpressionScript">
                            <Value><![CDATA['01/01/2013 00:00:00']]></Value>
                        </Property>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlPartitionValue">
                        <Property Name="ExpressionScript">
                            <Value><![CDATA['01/01/2014 00:00:00']]></Value>
                        </Property>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlPartitionValue">
                        <Property Name="ExpressionScript">
                            <Value><![CDATA['01/01/2015 00:00:00']]></Value>
                        </Property>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlPartitionValue">
                        <Property Name="ExpressionScript">
                            <Value><![CDATA['01/01/2016 00:00:00']]></Value>
                        </Property>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlPartitionValue">
                        <Property Name="ExpressionScript">
                            <Value><![CDATA['01/01/2017 00:00:00']]></Value>
                        </Property>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="ParameterType">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[date]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSchema" Name="[PowerBI]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlPartitionScheme" Name="[PS_Date]">
            <Relationship Name="Filegroups">
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlFilegroupSpecifier">
                        <Relationship Name="Filegroup">
                            <Entry>
                                <References Name="[USERDATA]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="PartitionFunction">
                <Entry>
                    <References Name="[PF_Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSchema" Name="[Reports]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSchema" Name="[Sequences]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[CityKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[CustomerKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[EmployeeKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[LineageKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[PaymentMethodKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlProcedure" Name="[Sequences].[ReseedAllSequences]">
            <Property Name="BodyScript">
                <Value><![CDATA[ BEGIN
    -- Ensures that the next sequence values are above the maximum value of the related table columns
    SET NOCOUNT ON;
  
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'CityKey', @SchemaName = 'Dimension', @TableName = 'City', @ColumnName = 'City Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'CustomerKey', @SchemaName = 'Dimension', @TableName = 'Customer', @ColumnName = 'Customer Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'EmployeeKey', @SchemaName = 'Dimension', @TableName = 'Employee', @ColumnName = 'Employee Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'LineageKey', @SchemaName = 'Integration', @TableName = 'Lineage', @ColumnName = 'Lineage Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'PaymentMethodKey', @SchemaName = 'Dimension', @TableName = 'Payment Method', @ColumnName = 'Payment Method Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'StockItemKey', @SchemaName = 'Dimension', @TableName = 'Stock Item', @ColumnName = 'Stock Item Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'SupplierKey', @SchemaName = 'Dimension', @TableName = 'Supplier', @ColumnName = 'Supplier Key';
    EXEC Sequences.ReseedSequenceBeyondTableValues @SequenceName = 'TransactionTypeKey', @SchemaName = 'Dimension', @TableName = 'Transaction Type', @ColumnName = 'Transaction Type Key';
END;]]></Value>
            </Property>
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@SequenceName]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@SchemaName]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@TableName]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@ColumnName]" />
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="3" />
                <Property Name="Length" Value="1543" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value=" &#xD;&#xA;CREATE PROCEDURE Sequences.ReseedAllSequences&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlProcedure" Name="[Sequences].[ReseedSequenceBeyondTableValues]">
            <Property Name="BodyScript">
                <Value><![CDATA[ BEGIN
    -- Ensures that the next sequence value is above the maximum value of the supplied table column
    SET NOCOUNT ON;
  
    DECLARE @SQL nvarchar(max);
    DECLARE @CurrentTableMaximumValue bigint;
    DECLARE @NewSequenceValue bigint;
    DECLARE @CurrentSequenceMaximumValue bigint
        = (SELECT CAST(current_value AS bigint) FROM sys.sequences
                                                WHERE name = @SequenceName
                                                AND SCHEMA_NAME(schema_id) = N'Sequences');
    CREATE TABLE #CurrentValue
    (
        CurrentValue bigint
    )
  
    SET @SQL = N'INSERT #CurrentValue (CurrentValue) SELECT COALESCE(MAX(' + QUOTENAME(@ColumnName) + N'), 0) FROM ' + QUOTENAME(@SchemaName) + N'.' + QUOTENAME(@TableName) + N';';
    EXECUTE (@SQL);
    SET @CurrentTableMaximumValue = (SELECT CurrentValue FROM #CurrentValue);
    DROP TABLE #CurrentValue;
  
    IF @CurrentTableMaximumValue >= @CurrentSequenceMaximumValue
    BEGIN
        SET @NewSequenceValue = @CurrentTableMaximumValue + 1;
        SET @SQL = N'ALTER SEQUENCE Sequences.' + QUOTENAME(@SequenceName) + N' RESTART WITH ' + CAST(@NewSequenceValue AS nvarchar(20)) + N';';
        EXECUTE (@SQL);
    END;
END;]]></Value>
            </Property>
            <Property Name="IsAnsiNullsOn" Value="True" />
            <Relationship Name="BodyDependencies">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry />
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[bigint]" />
                </Entry>
                <Entry />
                <Entry />
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@SequenceName]" />
                </Entry>
                <Entry />
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@ColumnName]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@SchemaName]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[@TableName]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[#CurrentValue]" />
                </Entry>
                <Entry>
                    <References Name="[Sequences].[ReseedSequenceBeyondTableValues].[#CurrentValue].[CurrentValue]" />
                </Entry>
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[nvarchar]" />
                </Entry>
            </Relationship>
            <Relationship Name="DynamicObjects">
                <Entry>
                    <Element Type="SqlDynamicColumnSource" Name="[Sequences].[ReseedSequenceBeyondTableValues].[#CurrentValue]">
                        <Relationship Name="Columns">
                            <Entry>
                                <Element Type="SqlSimpleColumn" Name="[Sequences].[ReseedSequenceBeyondTableValues].[#CurrentValue].[CurrentValue]">
                                    <Relationship Name="TypeSpecifier">
                                        <Entry>
                                            <Element Type="SqlTypeSpecifier">
                                                <Relationship Name="Type">
                                                    <Entry>
                                                        <References ExternalSource="BuiltIns" Name="[bigint]" />
                                                    </Entry>
                                                </Relationship>
                                            </Element>
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Parameters">
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Sequences].[ReseedSequenceBeyondTableValues].[@SequenceName]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Sequences].[ReseedSequenceBeyondTableValues].[@SchemaName]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Sequences].[ReseedSequenceBeyondTableValues].[@TableName]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
                <Entry>
                    <Element Type="SqlSubroutineParameter" Name="[Sequences].[ReseedSequenceBeyondTableValues].[@ColumnName]">
                        <Relationship Name="Type">
                            <Entry>
                                <Element Type="SqlTypeSpecifier">
                                    <Relationship Name="Type">
                                        <Entry>
                                            <References ExternalSource="BuiltIns" Name="[sys].[sysname]" />
                                        </Entry>
                                    </Relationship>
                                </Element>
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Annotation Type="SysCommentsObjectAnnotation">
                <Property Name="CreateOffset" Value="3" />
                <Property Name="Length" Value="1411" />
                <Property Name="StartLine" Value="1" />
                <Property Name="StartColumn" Value="1" />
                <Property Name="HeaderContents" Value=" &#xD;&#xA;CREATE PROCEDURE Sequences.ReseedSequenceBeyondTableValues&#xD;&#xA;@SequenceName sysname,&#xD;&#xA;@SchemaName sysname,&#xD;&#xA;@TableName sysname,&#xD;&#xA;@ColumnName sysname&#xD;&#xA;AS" />
            </Annotation>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[StockItemKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[SupplierKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlSequence" Name="[Sequences].[TransactionTypeKey]">
            <Property Name="Increment" Value="1" />
            <Property Name="StartValue" Value="1" />
            <Relationship Name="Schema">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
            <Relationship Name="TypeSpecifier">
                <Entry>
                    <Element Type="SqlTypeSpecifier">
                        <Relationship Name="Type">
                            <Entry>
                                <References ExternalSource="BuiltIns" Name="[int]" />
                            </Entry>
                        </Relationship>
                    </Element>
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[City].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Formal name of the city']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[City]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[City Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the city dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[City Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Continent].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Continent that this city is on']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Continent]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Country].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Country name']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Country]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Latest Recorded Population].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Latest available population for the City']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Latest Recorded Population]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Location].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Geographic location of the city']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Location]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Region].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Name of the region']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Region]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Sales Territory].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Sales territory for this StateProvince']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Sales Territory]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[State Province].[Description]">
            <Property Name="Value">
                <Value><![CDATA['State or province for this city']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[State Province]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Subregion].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Name of the subregion']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Subregion]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[City].[WWI City ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID used for reference to a city within the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[WWI City ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Bill To Customer].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Bill to customer''s full name']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Bill To Customer]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Buying Group].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer''s buying group']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Buying Group]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Category].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer''s category']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Category]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Customer].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer''s full name (usually a trading name)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the customer dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Postal Code].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Delivery postal code for the customer']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Postal Code]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Primary Contact].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Primary contact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Primary Contact]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Customer].[WWI Customer ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID used for reference to a customer within the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[WWI Customer ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Half Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The first date of the current half of year in date format']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Half Year Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current beginning of the half year (20130101)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Half Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the current half of the year as a string (January 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Half Year Label Short].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the current half year as a string with the month abbreviated (Jan 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Half Year Label Short]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Month].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The first day of the month in date format']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Month Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current beginning of the month (20130101)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Month Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the month as a string (January 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Month Label Short].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the month as a string with the month abbreviated (Jan 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Month Label Short]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Quarter].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The first day of the quarter in date format']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Quarter Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current beginning of quarter (20130101)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Quarter Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the quarter as a string (January 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Quarter Label Short].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the quarter as a string with the month abbreviated (Jan 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Quarter Label Short]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The first day of the year in date format']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Year Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current beginning of the year (20130101)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the year as a string (January 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Beginning of Year Label Short].[Description]">
            <Property Name="Value">
                <Value><![CDATA['First day of the year as a string with the month abbreviated (Jan 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Beginning of Year Label Short]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Day Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Current day of the year as a string (January 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Day Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Day Label Short].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Current day of the year as a string with abbreviated month (Jan 1, 2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Day Label Short]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Half of Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Year and half the year (CY2013-H1)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Half of Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Half of Year Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Number denoting which half of the year (1 or 2)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Half of Year Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Month Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Year and month as a string (CY2013-Jan)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Month Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Month Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Month of the year as a number']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Month Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Month Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Alternate format for year month with month first (Jan-2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Month Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Quarter Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Year and Quarter as string (CY2013-Q1)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Quarter Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Quarter Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quarter number of the year (1 to 4)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Quarter Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Quarter Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Alternate form of Year/Quarter with Quarter first (Q1-2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Quarter Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Week Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Week of the year as a displayable string (CY2013-W01)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Week Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Week Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Week Number of the Year']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Week Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Calendar Year as an integer']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Year Half of Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Alternate form of half the year label (H1-2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Year Half of Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Calendar Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Calendar Year as a formatted string (CY2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Calendar Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Date].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for date dimension (actual date is used for key)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current date (20130101 to 20131231)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[DateKey].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The date in integer format, can be used as the DW Key if desired']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[DateKey]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Day].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Day of the month in string format (1 to the last day of the month, 28 30 or 31 typically)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Day]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Day Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Day of the month in integer format (1 to the last day of the month, 28 30 or 31 typically)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Day Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Day of Week].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Day of the week (Monday, Tuesday, etc)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Week]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Day of Week Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric day of the week (1=Sunday, etc)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Week Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Day of Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Day number of year (1 to 365) as a string']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Day of Year Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Day number of year (1 to 365) as an integer']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Day of Year Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Half of Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Fiscal Half of Year as a formatted string (FY2013-H2)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Half of Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Half of Year Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Fiscal Half of Year as a number (1 or 2)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Half of Year Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Month Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Fiscal Year Month formatted as a string (FY2013-Jan)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Month Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Month Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Month Number of the Fiscal year']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Month Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Quarter Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Fiscal Year and Quarter as a string (FY2013-Q3)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Quarter Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Quarter Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Quarter Number of the Fiscal year (1 to 4)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Quarter Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Fiscal Year as a number (2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Year Half of Year Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current fiscal year half of year (20131 to 20132)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Half of Year Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Year Label].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Fiscal Year as a formatted string (FY2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Label]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Year Month Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current fiscal year month (201301 to 201312)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Month Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Fiscal Year Quarter Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current fiscal year quarter (20131 to 20134)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Fiscal Year Quarter Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Half of Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The Half of the year (H1, H2)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Half of Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[ISO Week Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The ISO Week Number']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[ISO Week Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Month].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The full month name (January)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Month]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Quarter].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The current quarter as text (Q1, Q2, etc)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Quarter]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Short Month].[Description]">
            <Property Name="Value">
                <Value><![CDATA['The abbreviated current month (Jan)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Short Month]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Week of Year].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Week number of the year as a string']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Week of Year]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Year Half of Year Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current year-half of year (20131 to 20132)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Year Half of Year Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Year Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current year (2013)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Year Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Year Month Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current year-month (201301 to 201312)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Year Month Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Year Quarter Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current year-quarter (20131 to 20134)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Year Quarter Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Date].[Year Week Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['An integer that can be used as a key for the current year-week (201301 to 201353)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date].[Year Week Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Employee].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Full name for this person']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Employee Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the employee dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Employee Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Is Salesperson].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Is this person a staff salesperson?']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Is Salesperson]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Photo].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Photo of this person']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Photo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Preferred Name].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Name that this person prefers to be called']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Preferred Name]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Employee].[WWI Employee ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID (PersonID) in the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[WWI Employee ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Payment Method].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Payment Method].[Payment Method].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Payment method name']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Payment Method].[Payment Method Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the payment method dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Payment Method Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Payment Method].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Payment Method].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Payment Method].[WWI Payment Method ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID for the payment method in the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[WWI Payment Method ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Barcode].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Barcode for this stock item']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Barcode]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Brand].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Brand for the stock item (if the item is branded)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Brand]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Buying Package].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Usual package for selling outers of this stock item (ie cartons, boxes, etc.)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Buying Package]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Color].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Color (optional) for this stock item']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Color]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Is Chiller Stock].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Does this stock item need to be in a chiller?']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Is Chiller Stock]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Lead Time Days].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Number of days typically taken from order to receipt of this stock item']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Lead Time Days]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Photo].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Photo of the product']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Photo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Quantity Per Outer].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity of the stock item in an outer package']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Quantity Per Outer]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Recommended Retail Price].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Recommended retail price for this stock item']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Recommended Retail Price]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Selling Package].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Usual package for selling units of this stock item']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Selling Package]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Size].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Size of this item (eg: 100mm)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Size]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Stock Item].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Full name of a stock item (but not a full description)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Stock Item Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the stock item dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Stock Item Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Tax Rate].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Tax rate to be applied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Tax Rate]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Typical Weight Per Unit].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Typical weight for one unit of this product (packaged)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Typical Weight Per Unit]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Unit Price].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Selling price (ex-tax) for one unit of this product']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Unit Price]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Stock Item].[WWI Stock Item ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID used for reference to a stock item within the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[WWI Stock Item ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Category].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier''s category']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Category]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Payment Days].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Number of days for payment of an invoice (ie payment terms)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Payment Days]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Postal Code].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Delivery postal code for the supplier']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Postal Code]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Primary Contact].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Primary contact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Primary Contact]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Supplier].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier''s full name (usually a trading name)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Supplier Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the supplier dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Supplier Reference].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier reference for our organization (might be our account number at the supplier)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Supplier Reference]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Supplier].[WWI Supplier ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID used for reference to a supplier within the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[WWI Supplier ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Transaction Type].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Transaction Type].[Transaction Type].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Full name of the transaction type']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Transaction Type].[Transaction Type Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for the transaction type dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Transaction Type Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Transaction Type].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Transaction Type].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Dimension].[Transaction Type].[WWI Transaction Type ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID used for reference to a transaction type within the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[WWI Transaction Type ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Transaction date']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Movement Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for a row in the Movement fact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Movement Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Quantity].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity of stock movement (positive is incoming stock, negative is outgoing)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Quantity]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Stock Item Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Stock item for this purchase order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Stock Item Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Supplier Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Supplier Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[Transaction Type Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Type of transaction']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[Transaction Type Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[WWI Invoice ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Invoice ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Invoice ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[WWI Purchase Order ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Purchase order ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Purchase Order ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Movement].[WWI Stock Item Transaction ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Stock item transaction ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement].[WWI Stock Item Transaction ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[City Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['City for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[City Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Description].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Description of the item supplied (Usually the stock item name but can be overridden)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Description]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Order Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Order date for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Order Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Order Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for a row in the Order fact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Order Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Package].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Type of package to be supplied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Package]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Picked Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Picked date for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Picked Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Picker Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Picker for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Picker Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Quantity].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity to be supplied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Quantity]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Salesperson Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Salesperson for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Salesperson Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Stock Item Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Stock item for this order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Stock Item Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Tax Amount].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount of tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Tax Amount]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Tax Rate].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Tax rate to be applied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Tax Rate]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Total Excluding Tax].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount excluding tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Total Excluding Tax]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Total Including Tax].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount including tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Total Including Tax]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[Unit Price].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Unit price to be charged']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[Unit Price]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[WWI Backorder ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['BackorderID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[WWI Backorder ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Order].[WWI Order ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['OrderID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order].[WWI Order ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Purchase order date']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Is Order Finalized].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Is this purchase order now finalized?']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Is Order Finalized]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Ordered Outers].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity of outers (ordering packages)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Ordered Outers]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Ordered Quantity].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity of inners (selling packages)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Ordered Quantity]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Package].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Package ordered']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Package]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Purchase Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for a row in the Purchase fact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Purchase Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Received Outers].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Received outers (so far)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Received Outers]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Stock Item Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Stock item for this purchase order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Stock Item Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[Supplier Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier for this purchase order']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[Supplier Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Purchase].[WWI Purchase Order ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Purchase order ID in source system ']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase].[WWI Purchase Order ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Bill To Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Bill To Customer for this invoice']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Bill To Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[City Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['City for this invoice']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[City Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer for this invoice']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Delivery Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Date that these items were delivered']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Delivery Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Description].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Description of the item supplied (Usually the stock item name but can be overridden)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Description]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Invoice Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Invoice date for this invoice']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Invoice Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Package].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Type of package supplied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Package]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Profit].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount of profit']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Profit]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Quantity].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity supplied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Quantity]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Sale Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for a row in the Sale fact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Sale Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Salesperson Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Salesperson for this invoice']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Salesperson Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Stock Item Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Stock item for this invoice']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Stock Item Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Tax Amount].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount of tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Tax Amount]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Tax Rate].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Tax rate applied']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Tax Rate]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Total Chiller Items].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total number of chiller items']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Total Chiller Items]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Total Dry Items].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total number of dry items']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Total Dry Items]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Total Excluding Tax].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount excluding tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Total Excluding Tax]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Total Including Tax].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount including tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Total Including Tax]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[Unit Price].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Unit price charged']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[Unit Price]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Sale].[WWI Invoice ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['InvoiceID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale].[WWI Invoice ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Bin Location].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Bin location (where is this stock in the warehouse)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Bin Location]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Last Cost Price].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Unit cost when the stock item was last purchased']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Last Cost Price]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Last Stocktake Quantity].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity present at last stocktake']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Last Stocktake Quantity]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Quantity On Hand].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity on hand']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Quantity On Hand]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Reorder Level].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Quantity below which reordering should take place']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Reorder Level]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Stock Holding Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for a row in the Stock Holding fact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Stock Holding Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Stock Item Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Stock item being held']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Stock Item Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Stock Holding].[Target Stock Level].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Typical stock level held']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[Target Stock Level]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Bill To Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Bill to customer (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Bill To Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Customer Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Customer Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Date Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Transaction date']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Date Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Is Finalized].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Has this transaction been finalized?']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Is Finalized]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Lineage Key for the data load for this row']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Outstanding Balance].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Amount still outstanding for this transaction']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Outstanding Balance]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Payment Method Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Payment method (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Payment Method Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Supplier Invoice Number].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier invoice number (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Supplier Invoice Number]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Supplier Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier (if applicable)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Supplier Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Tax Amount].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount of tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Tax Amount]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Total Excluding Tax].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount excluding tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Total Excluding Tax]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Total Including Tax].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Total amount including tax']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Total Including Tax]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Transaction Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for a row in the Transaction fact']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Transaction Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[Transaction Type Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Type of transaction']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[Transaction Type Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[WWI Customer Transaction ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Customer transaction ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Customer Transaction ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[WWI Invoice ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Invoice ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Invoice ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[WWI Purchase Order ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Purchase order ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Purchase Order ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Fact].[Transaction].[WWI Supplier Transaction ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Supplier transaction ID in source system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction].[WWI Supplier Transaction ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[City].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Formal name of the city']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[City]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[City Staging Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Row ID within the staging table']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[City Staging Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Continent].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Continent that this city is on']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Continent]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Country].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Country name']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Country]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Latest Recorded Population].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Latest available population for the City']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Latest Recorded Population]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Location].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Geographic location of the city']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Location]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Region].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Name of the region']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Region]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Sales Territory].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Sales territory for this StateProvince']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Sales Territory]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[State Province].[Description]">
            <Property Name="Value">
                <Value><![CDATA['State or province for this city']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[State Province]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Subregion].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Name of the subregion']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Subregion]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Valid From].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid from this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Valid From]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[Valid To].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Valid until this date and time']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[Valid To]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[City_Staging].[WWI City ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Numeric ID used for reference to a city within the WWI database']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[WWI City ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[ETL Cutoff].[Cutoff Time].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Time up to which data has been loaded']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Cutoff Time]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[ETL Cutoff].[Table Name].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Table name']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[ETL Cutoff].[Table Name]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[Lineage].[Data Load Completed].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Time when the data load attempt completed (successfully or not)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Completed]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[Lineage].[Data Load Started].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Time when the data load attempt began']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage].[Data Load Started]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[Lineage].[Lineage Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['DW key for lineage data']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage].[Lineage Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[Lineage].[Source System Cutoff Time].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Time that rows from the source system were loaded up until']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage].[Source System Cutoff Time]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[Lineage].[Table Name].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Name of the table for this data load event']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage].[Table Name]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlColumn].[Integration].[Lineage].[Was Successful].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Was the attempt successful?']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage].[Was Successful]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[City].[IX_Dimension_City_WWICityID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City].[IX_Dimension_City_WWICityID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[Customer].[IX_Dimension_Customer_WWICustomerID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer].[IX_Dimension_Customer_WWICustomerID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[Employee].[IX_Dimension_Employee_WWIEmployeeID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee].[IX_Dimension_Employee_WWIEmployeeID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[Payment Method].[IX_Dimension_Payment_Method_WWIPaymentMethodID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method].[IX_Dimension_Payment_Method_WWIPaymentMethodID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[Stock Item].[IX_Dimension_Stock_Item_WWIStockItemID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item].[IX_Dimension_Stock_Item_WWIStockItemID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[Supplier].[IX_Dimension_Supplier_WWISupplierID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier].[IX_Dimension_Supplier_WWISupplierID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Dimension].[Transaction Type].[IX_Dimension_Transaction_Type_WWITransactionTypeID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI ID']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type].[IX_Dimension_Transaction_Type_WWITransactionTypeID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Fact].[Stock Holding].[FK_Fact_Stock_Holding_Stock_Item_Key].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Auto-created to support a foreign key']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding].[FK_Fact_Stock_Holding_Stock_Item_Key]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlIndexBase].[Integration].[City_Staging].[IX_Integration_City_Staging_WWI_City_ID].[Description]">
            <Property Name="Value">
                <Value><![CDATA['Allows quickly locating by WWI City Key']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging].[IX_Integration_City_Staging_WWI_City_ID]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Application].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Application configuration code']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Application]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Dimension].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Dimensional model dimension tables']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Fact].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Dimensional model fact tables']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Integration].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Objects needed for ETL integration']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[PowerBI].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Views and stored procedures that provide the only access for the Power BI dashboard system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[PowerBI]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Reports].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Views and stored procedures that provide the only access for the reporting system']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Reports]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Sequences].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Holds sequences used by all tables in the application']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Sequences]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlSchema].[Website].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Views and stored procedures that provide the only access for the application website']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Website]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[City].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'City dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[City]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Customer].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Customer dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Customer]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Date].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Date dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Date]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Employee].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Employee dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Employee]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Payment Method].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'PaymentMethod dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Payment Method]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Stock Item].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'StockItem dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Stock Item]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Supplier].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Supplier dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Supplier]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Dimension].[Transaction Type].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'TransactionType dimension']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Dimension].[Transaction Type]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Fact].[Movement].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Movement fact table (movements of stock items)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Movement]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Fact].[Order].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Order fact table (customer orders)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Order]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Fact].[Purchase].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Purchase fact table (stock purchases from suppliers)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Purchase]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Fact].[Sale].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Sale fact table (invoiced sales to customers)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Sale]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Fact].[Stock Holding].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Holdings of stock items']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Stock Holding]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Fact].[Transaction].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Transaction fact table (financial transactions involving customers and supppliers)']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Fact].[Transaction]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Integration].[City_Staging].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'City staging table']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[City_Staging]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Integration].[ETL Cutoff].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'ETL Cutoff Times']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[ETL Cutoff]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlExtendedProperty" Name="[SqlTableBase].[Integration].[Lineage].[Description]">
            <Property Name="Value">
                <Value><![CDATA[N'Details of data load attempts']]></Value>
            </Property>
            <Relationship Name="Host">
                <Entry>
                    <References Name="[Integration].[Lineage]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlFilegroup" Name="[USERDATA]" />
        <Element Type="SqlSchema" Name="[Website]">
            <Relationship Name="Authorizer">
                <Entry>
                    <References ExternalSource="BuiltIns" Name="[dbo]" />
                </Entry>
            </Relationship>
        </Element>
        <Element Type="SqlFilegroup" Name="[WWIDW_MemoryOptimized_Data]" />
    </Model>
</DataSchemaModel>