﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="Model.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityType Name="AdjudicationDecisions">
          <Key>
            <PropertyRef Name="AdjudicationDecisionID" />
          </Key>
          <Property Name="AdjudicationDecisionID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="AdjudicationDetails">
          <Key>
            <PropertyRef Name="AdjudicationDetailID" />
          </Key>
          <Property Name="AdjudicationDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="smallint" Nullable="false" />
          <Property Name="AdjudicationDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="MeetingDate" Type="datetime" Nullable="false" />
          <Property Name="MeetingTime" Type="nvarchar" MaxLength="100" StoreGeneratedPattern="Computed" />
          <Property Name="MeetingDateEnd" Type="datetime" Nullable="false" />
          <Property Name="MeetingTimeEnd" Type="nvarchar" MaxLength="100" StoreGeneratedPattern="Computed" />
          <Property Name="PreAdjudicationNotificationsSent" Type="bit" Nullable="false" />
          <Property Name="PreAdjudicationLettersSent" Type="bit" Nullable="false" />
          <Property Name="PostAdjudicationNotificationsSent" Type="bit" Nullable="false" />
          <Property Name="PostAdjudicationLettersSent" Type="bit" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="PreAdjudicationObjectionNotificationsSent" Type="bit" Nullable="false" />
          <Property Name="PreAdjudicationObjectionLettersSent" Type="bit" Nullable="false" />
          <Property Name="LocationName" Type="varchar" MaxLength="255" />
          <Property Name="LocationAddress" Type="varchar" MaxLength="1000" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="smallint" />
          <Property Name="AdjudicationNumber" Type="varchar" MaxLength="20" />
        </EntityType>
        <EntityType Name="AdjudicationDetailStatus">
          <Key>
            <PropertyRef Name="AdjudicationDetailStatusID" />
          </Key>
          <Property Name="AdjudicationDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="AdjudicationPanel">
          <Key>
            <PropertyRef Name="AdjudicationPanelID" />
          </Key>
          <Property Name="AdjudicationPanelID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="PanelMemberUserID" Type="bigint" Nullable="false" />
          <Property Name="HasAttended" Type="bit" Nullable="false" />
          <Property Name="IsChairman" Type="bit" Nullable="false" />
          <Property Name="DateConfirmed" Type="datetime" />
          <Property Name="AddedAfterStart" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="AdjudicationType">
          <Key>
            <PropertyRef Name="AdjudicationTypeID" />
          </Key>
          <Property Name="AdjudicationTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="GazetteDetails">
          <Key>
            <PropertyRef Name="GazetteDetailID" />
          </Key>
          <Property Name="GazetteDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="GazetteDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="GazetteNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="GazettePrintDate" Type="datetime" />
          <Property Name="GazetteNoticeExpiryDate" Type="datetime" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="GazetteDocumentID" Type="bigint" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="GazetteTypeID" Type="smallint" />
        </EntityType>
        <EntityType Name="GazetteDetailStatus">
          <Key>
            <PropertyRef Name="GazetteDetailStatusID" />
          </Key>
          <Property Name="GazetteDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="GazetteTypes">
          <Key>
            <PropertyRef Name="GazetteTypeID" />
          </Key>
          <Property Name="GazetteTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Name="LicenceIssueDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsDocumentVerificationRequired" Type="bit" />
          <Property Name="LicenceIssueNumber" Type="varchar" MaxLength="20" />
        </EntityType>
        <EntityType Name="LicenceIssueDocuments">
          <Key>
            <PropertyRef Name="LicenceIssueDocumentID" />
          </Key>
          <Property Name="LicenceIssueDocumentID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="LicenceIssueDetailID" Type="bigint" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentID" Type="bigint" />
          <Property Name="IsMandatory" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="LicenceIssueInspectionDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Name="LicenceIssueDetailID" Type="bigint" Nullable="false" />
          <Property Name="LicenceIssueInspectionOutcomeID" Type="smallint" />
          <Property Name="InspectedByID" Type="bigint" />
          <Property Name="DateInspected" Type="datetime" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="20" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="20" />
          <Property Name="InspectionSheetDocumentID" Type="bigint" />
          <Property Name="FrontRegDocumentID" Type="bigint" />
          <Property Name="ChassisDocumentID" Type="bigint" />
          <Property Name="EngineDocumentID" Type="bigint" />
          <Property Name="BackRegDocumentID" Type="bigint" />
          <Property Name="Additional1DocumentID" Type="bigint" />
          <Property Name="Additional2DocumentID" Type="bigint" />
        </EntityType>
        <EntityType Name="LicenceIssueInspectionOutcomes">
          <Key>
            <PropertyRef Name="LicenceIssueInspectionOutcomeID" />
          </Key>
          <Property Name="LicenceIssueInspectionOutcomeID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ReceiptDetails">
          <Key>
            <PropertyRef Name="ReceiptDetailID" />
          </Key>
          <Property Name="ReceiptDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReceiptBatchID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="PaymentTypeID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" />
          <Property Name="ReceiptNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="TotalCost" Type="money" Nullable="false" />
          <Property Name="CreatedById" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedById" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="ApplicantData" Type="varchar" MaxLength="2000" />
          <Property Name="ReceiptItems" Type="varchar(max)" />
          <Property Name="HasBulkLicenceApplications" Type="bit" Nullable="false" />
          <Property Name="ProofOfPaymentDocID" Type="bigint" />
          <Property Name="ProofOfPaymentRefNo" Type="varchar" MaxLength="50" />
          <Property Name="ApplicantIDNumber" Type="varchar" MaxLength="20" />
        </EntityType>
        <EntityType Name="Stationery">
          <Key>
            <PropertyRef Name="StationeryID" />
          </Key>
          <Property Name="StationeryID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="StationeryStatusID" Type="smallint" Nullable="false" />
          <Property Name="StationeryBatchID" Type="bigint" Nullable="false" />
          <Property Name="StationeryNumber" Type="varchar" MaxLength="15" Nullable="false" />
          <Property Name="IssuedToID" Type="bigint" />
          <Property Name="StationeryScanDocID" Type="bigint" />
          <Property Name="Comments" Type="varchar" MaxLength="255" />
        </EntityType>
        <EntityType Name="StationeryBatches">
          <Key>
            <PropertyRef Name="StationeryBatchID" />
          </Key>
          <Property Name="StationeryBatchID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="StationeryBatchStatusID" Type="smallint" Nullable="false" />
          <Property Name="StationeryBatchTypeID" Type="smallint" Nullable="false" />
          <Property Name="FromNumber" Type="varchar" MaxLength="15" Nullable="false" />
          <Property Name="ToNumber" Type="varchar" MaxLength="15" Nullable="false" />
          <Property Name="OfficeLocationID" Type="smallint" />
          <Property Name="ReceivedDate" Type="datetime" />
          <Property Name="ReceivedByID" Type="bigint" />
          <Property Name="ExternalPartyDescription" Type="varchar" MaxLength="255" />
          <Property Name="ExternalPartyContactName" Type="varchar" MaxLength="255" />
          <Property Name="ExternalPartyContactEmail" Type="varchar" MaxLength="150" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="LastNumberIssued" Type="varchar" MaxLength="15" />
          <Property Name="BatchNumber" Type="varchar" MaxLength="12" />
        </EntityType>
        <EntityType Name="DocumentTypeQuestions">
          <Key>
            <PropertyRef Name="DocumentTypeQuestionID" />
          </Key>
          <Property Name="DocumentTypeQuestionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="CaptureFieldID" Type="smallint" Nullable="false" />
          <Property Name="Question" Type="varchar" MaxLength="2000" Nullable="false" />
          <Property Name="OrderBy" Type="bigint" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentTypes">
          <Key>
            <PropertyRef Name="DocumentTypeID" />
          </Key>
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsDocumentTitleEditable" Type="bit" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsExpiryDateRequired" Type="bit" />
          <Property Name="IsUniqueEntityDocument" Type="bit" />
        </EntityType>
        <EntityType Name="ApplicationRequestTypeDivisionSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDivisionSetupID" />
          </Key>
          <Property Name="ApplicationRequestTypeDivisionSetupID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="IsAssessorApprovalRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsSeniorManagerApprovalRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsFinalisationTasksRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsInspectionRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsReferralRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsAdjudicationRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="AdjudicationTypeRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsGazettingRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="GazetteTypeRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="ApplicationRequestTypeDocumentSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
          </Key>
          <Property Name="ApplicationRequestTypeDocumentID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="WorkflowTemplateID" Type="bigint" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsAvailableForUpload" Type="varchar(max)" />
          <Property Name="IsMandatory" Type="varchar(max)" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="ApplicationRequestTypes">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeID" />
          </Key>
          <Property Name="ApplicationRequestTypeID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Cost" Type="money" Nullable="false" />
          <Property Name="IsLinkedApplicationType" Type="bit" />
          <Property Name="IncludeRenewalType" Type="bit" />
          <Property Name="IncludeCovType" Type="bit" />
          <Property Name="IncludeIncreaseInCapacityType" Type="bit" />
          <Property Name="IncludeDeceasedTransferType" Type="bit" />
          <Property Name="IncludeNormalTransferType" Type="bit" />
          <Property Name="IncludeNewOperatingLicenceType" Type="bit" />
          <Property Name="IsCancelled" Type="bit" />
          <Property Name="IsAllowedForOLAS" Type="bit" Nullable="false" />
          <Property Name="IsAllowedForLTPS" Type="bit" Nullable="false" />
          <Property Name="IsAllowedForLG" Type="bit" Nullable="false" />
          <Property Name="IsLicenceDurationRequiredOnApprove" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="AssociationModes">
          <Key>
            <PropertyRef Name="AssociationModeID" />
          </Key>
          <Property Name="AssociationModeID" Type="int" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="OlasID" Type="int" />
          <Property Name="LtpsID" Type="int" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="AssociationTypes">
          <Key>
            <PropertyRef Name="AssociationTypeID" />
          </Key>
          <Property Name="AssociationTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="OlasID" Type="smallint" />
          <Property Name="LtpID" Type="smallint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="CarryingCapacities">
          <Key>
            <PropertyRef Name="CarryingCapacityID" />
          </Key>
          <Property Name="CarryingCapacityID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="200" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ContractTypes">
          <Key>
            <PropertyRef Name="ContractTypeID" />
          </Key>
          <Property Name="ContractTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="DivisionTypeAnnexureMappings">
          <Key>
            <PropertyRef Name="DivisionTypeAnnexureMappingID" />
          </Key>
          <Property Name="DivisionTypeAnnexureMappingID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="ServiceTypeID" Type="smallint" />
          <Property Name="VehicleTypeID" Type="smallint" />
          <Property Name="AnnexureDocumentID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="DivisionTypes">
          <Key>
            <PropertyRef Name="DivisionTypeID" />
          </Key>
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" />
          <Property Name="IsCancelled" Type="bit" />
          <Property Name="PaymentClerkUserID" Type="bigint" />
        </EntityType>
        <EntityType Name="IDTypes">
          <Key>
            <PropertyRef Name="IDTypeID" />
          </Key>
          <Property Name="IDTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" />
          <Property Name="IsForIndividual" Type="bit" />
          <Property Name="OlasID" Type="smallint" />
          <Property Name="LtpsID" Type="smallint" />
          <Property Name="IsCancelled" Type="bit" />
        </EntityType>
        <EntityType Name="Inspectors">
          <Key>
            <PropertyRef Name="InspectorID" />
          </Key>
          <Property Name="InspectorID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="OfficeLocationID" Type="bigint" />
          <Property Name="Name" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="LicenceDurations">
          <Key>
            <PropertyRef Name="LicenceDurationID" />
          </Key>
          <Property Name="LicenceDurationID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="DurationInMonths" Type="int" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="LicencingBoards">
          <Key>
            <PropertyRef Name="LicencingBoardID" />
          </Key>
          <Property Name="LicencingBoardID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="OfficeLocationSetup">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="LocationName" Type="varchar" MaxLength="255" />
          <Property Name="LocationAddress" Type="varchar" MaxLength="1000" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="smallint" />
          <Property Name="LicencingBoardID" Type="smallint" />
          <Property Name="PaymentClerkUserID" Type="bigint" />
          <Property Name="AssessorUserID" Type="bigint" />
          <Property Name="SeniorManagerApproverUserID" Type="bigint" />
          <Property Name="InspectionCapturerUserID" Type="bigint" />
          <Property Name="ReferralCapturerUserID" Type="bigint" />
          <Property Name="HandlesGazetting" Type="bit" Nullable="false" />
          <Property Name="GazetteNumberPrefix" Type="varchar" MaxLength="10" />
          <Property Name="AdjudicationOfficerUserID" Type="bigint" />
          <Property Name="AdjudicationSecrataryUserID" Type="bigint" />
          <Property Name="AdjudicationAgendaEmails" Type="varchar" MaxLength="2000" />
          <Property Name="AdjudicationHearingQuorumCount" Type="smallint" />
          <Property Name="AdjudicationMeetingQuorumCount" Type="smallint" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="smallint" />
          <Property Name="DocumentStoreLocationID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="BusinessRuleBypassApproverUserID" Type="bigint" />
          <Property Name="AdjudicationContactName" Type="varchar" MaxLength="255" />
          <Property Name="AdjudicationContactTelPhone" Type="varchar" MaxLength="14" />
          <Property Name="AdjudicationContactEmail" Type="varchar" MaxLength="150" />
          <Property Name="RouteCapturerUserID" Type="bigint" />
          <Property Name="RouteApproverUserID" Type="bigint" />
        </EntityType>
        <EntityType Name="OfficeLocationSetupDocumentTemplates">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="PreAdjudicationLetterDocumentID" Type="bigint" />
          <Property Name="PreAdjudicationObjectionLetterDocumentID" Type="bigint" />
          <Property Name="PostAdjudicationLetterApprovedDocumentID" Type="bigint" />
          <Property Name="PostAdjudicationLetterPostponedDocumentID" Type="bigint" />
          <Property Name="PostAdjudicationLetterRefusedDocumentID" Type="bigint" />
          <Property Name="PostAdjudicationLetterCancelledDocumentID" Type="bigint" />
          <Property Name="PostAdjudicationLetterWithdrawnDocumentID" Type="bigint" />
          <Property Name="PostAdjudicationLetterStruckOffDocumentID" Type="bigint" />
          <Property Name="TATConfirmationReceipt_DocumentID" Type="bigint" />
          <Property Name="LicenceAnnexure_AdjudicationPanelDocumentID" Type="bigint" />
        </EntityType>
        <EntityType Name="PaymentTypes">
          <Key>
            <PropertyRef Name="PaymentTypeID" />
          </Key>
          <Property Name="PaymentTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="PlaceTypes">
          <Key>
            <PropertyRef Name="PlaceTypeID" />
          </Key>
          <Property Name="PlaceTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Provinces">
          <Key>
            <PropertyRef Name="ProvinceID" />
          </Key>
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Regions">
          <Key>
            <PropertyRef Name="RegionID" />
          </Key>
          <Property Name="RegionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="RouteTypes">
          <Key>
            <PropertyRef Name="RouteTypeID" />
          </Key>
          <Property Name="RouteTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ServiceTypes">
          <Key>
            <PropertyRef Name="ServiceTypeID" />
          </Key>
          <Property Name="ServiceTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="OlasID" Type="varchar" MaxLength="100" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="RouteTypeID" Type="smallint" />
        </EntityType>
        <EntityType Name="ServiceVehicleTypes">
          <Key>
            <PropertyRef Name="ServiceVehicleTypeID" />
          </Key>
          <Property Name="ServiceVehicleTypeID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ServiceTypeID" Type="smallint" Nullable="false" />
          <Property Name="VehicleTypeID" Type="smallint" Nullable="false" />
        </EntityType>
        <EntityType Name="SourceApplications">
          <Key>
            <PropertyRef Name="SourceApplicationID" />
          </Key>
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="VehicleMakes">
          <Key>
            <PropertyRef Name="VehicleMakeID" />
          </Key>
          <Property Name="VehicleMakeID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="IsMotorcarMake" Type="bit" Nullable="false" />
          <Property Name="IsMinibusMake" Type="bit" Nullable="false" />
          <Property Name="IsBusMake" Type="bit" Nullable="false" />
          <Property Name="IsMidibusMake" Type="bit" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="VehicleModels">
          <Key>
            <PropertyRef Name="VehicleModelID" />
          </Key>
          <Property Name="VehicleModelID" Type="smallint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="VehicleMakeID" Type="smallint" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="SeatedCapacityExcludingDriver" Type="smallint" />
          <Property Name="StandingCapacity" Type="smallint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="GrossWeight" Type="bigint" Nullable="false" />
          <Property Name="TareWeight" Type="bigint" Nullable="false" />
          <Property Name="VehicleTypeID" Type="smallint" Nullable="false" />
          <Property Name="CarryingCapacityID" Type="smallint" Nullable="false" />
          <Property Name="IsValidModel" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
        </EntityType>
        <EntityType Name="VehicleTypes">
          <Key>
            <PropertyRef Name="VehicleTypeID" />
          </Key>
          <Property Name="VehicleTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="CarryingCapacityID" Type="smallint" />
          <Property Name="OlasID" Type="smallint" />
          <Property Name="LtpsID" Type="smallint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="WaypointTypes">
          <Key>
            <PropertyRef Name="WaypointTypeID" />
          </Key>
          <Property Name="WaypointTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ApplicationAllowedNewLicences">
          <Key>
            <PropertyRef Name="ApplicationAllowedNewLicenceID" />
          </Key>
          <Property Name="ApplicationAllowedNewLicenceID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="MemberName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IdNumberOrBusinessRegistrationNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="IsUsed" Type="bit" Nullable="false" />
          <Property Name="ApplicationAllowedNewLicenceTypeID" Type="smallint" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationReferenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
        </EntityType>
        <EntityType Name="Settings">
          <Key>
            <PropertyRef Name="SettingName" />
          </Key>
          <Property Name="SettingName" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="SettingValue" Type="varchar(max)" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="SettingDescription" Type="varchar(max)" />
        </EntityType>
        <EntityType Name="Accreditations">
          <Key>
            <PropertyRef Name="AccreditationID" />
          </Key>
          <Property Name="AccreditationID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="AccreditationStatusID" Type="smallint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="NameOnAccreditation" Type="varchar" MaxLength="100" />
          <Property Name="AccreditationNumber" Type="varchar" MaxLength="25" />
          <Property Name="IssueNumber" Type="int" Nullable="false" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="DateOfExpiry" Type="datetime" />
          <Property Name="UpcomingExpiryNotificationSmsSentDate" Type="datetime" />
          <Property Name="ExpiredNotificationSmsSentDate" Type="datetime" />
          <Property Name="NumberOfLicencesAllowed" Type="int" Nullable="false" />
          <Property Name="IsLatestIssue" Type="bit" Nullable="false" />
          <Property Name="OlasId" Type="bigint" />
        </EntityType>
        <EntityType Name="AccreditationStatus">
          <Key>
            <PropertyRef Name="AccreditationStatusID" />
          </Key>
          <Property Name="AccreditationStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="AssociationMembers">
          <Key>
            <PropertyRef Name="AssociationID" />
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
        </EntityType>
        <EntityType Name="AssociationRoutes">
          <Key>
            <PropertyRef Name="AssociationID" />
            <PropertyRef Name="RouteID" />
          </Key>
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="RouteID" Type="bigint" Nullable="false" />
        </EntityType>
        <EntityType Name="Associations">
          <Key>
            <PropertyRef Name="AssociationID" />
          </Key>
          <Property Name="AssociationID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="AssociationStatusID" Type="smallint" Nullable="false" />
          <Property Name="AssociationModeID" Type="int" Nullable="false" />
          <Property Name="AssociationTypeID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="bigint" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="AssociationNameAbbrev" Type="varchar" MaxLength="50" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="400" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="400" />
          <Property Name="PhysicalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PostalAddressIsDomicilium" Type="bit" Nullable="false" />
          <Property Name="BusRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="TaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="TelNumber" Type="varchar" MaxLength="50" />
          <Property Name="FaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="CellNumber" Type="varchar" MaxLength="50" />
          <Property Name="EmailAddress" Type="varchar" MaxLength="255" />
          <Property Name="ActiveMemberCount" Type="int" />
          <Property Name="AdjudicationOfficeLocationID" Type="smallint" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
        </EntityType>
        <EntityType Name="AssociationStatus">
          <Key>
            <PropertyRef Name="AssociationStatusID" />
          </Key>
          <Property Name="AssociationStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="LicenceExceptions">
          <Key>
            <PropertyRef Name="LicenceExceptionID" />
          </Key>
          <Property Name="LicenceExceptionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="Exception" Type="nvarchar" MaxLength="255" Nullable="false" />
        </EntityType>
        <EntityType Name="LicenceRoutes">
          <Key>
            <PropertyRef Name="LicenceRouteID" />
          </Key>
          <Property Name="LicenceRouteID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="RouteID" Type="bigint" Nullable="false" />
          <Property Name="ServiceTypeID" Type="smallint" Nullable="false" />
        </EntityType>
        <EntityType Name="Licences">
          <Key>
            <PropertyRef Name="LicenceID" />
          </Key>
          <Property Name="LicenceID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="bigint" />
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
          <Property Name="VehicleID" Type="bigint" />
          <Property Name="LicenceVehicleTypeID" Type="smallint" />
          <Property Name="LicenceCarryingCapacityID" Type="smallint" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="LicencingBoardID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AssociationID" Type="bigint" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="500" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="IssueNumber" Type="int" Nullable="false" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="DateOfExpiry" Type="datetime" />
          <Property Name="Indefinite" Type="bit" Nullable="false" />
          <Property Name="UpcomingExpiryNotificationSmsSentDate" Type="datetime" />
          <Property Name="ExpiredNotificationSmsSentDate" Type="datetime" />
          <Property Name="UpliftmentReminderSmsSentDate" Type="datetime" />
          <Property Name="OriginalLTPSPermitNumber" Type="varchar" MaxLength="20" />
          <Property Name="OriginalOLASNumber" Type="varchar" MaxLength="20" />
          <Property Name="IsLatestIssue" Type="bit" />
          <Property Name="AccreditationID" Type="bigint" />
          <Property Name="IsTemporaryLicence" Type="bit" />
          <Property Name="DateOfApproval" Type="datetime" />
          <Property Name="OlasId" Type="bigint" />
          <Property Name="CleanOperatingLicenceNumber" Type="varchar" MaxLength="100" StoreGeneratedPattern="Computed" />
        </EntityType>
        <EntityType Name="LicenceServiceDetails">
          <Key>
            <PropertyRef Name="LicenceServiceDetailID" />
          </Key>
          <Property Name="LicenceServiceDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="ServiceTypeID" Type="smallint" Nullable="false" />
          <Property Name="ServiceTypeDescription" Type="varchar" MaxLength="100" />
        </EntityType>
        <EntityType Name="LicenceStatus">
          <Key>
            <PropertyRef Name="LicenceStatusID" />
          </Key>
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Members">
          <Key>
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="MemberID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="FullName" Type="varchar" MaxLength="511" StoreGeneratedPattern="Computed" Nullable="false" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="IdentityDocumentDocID" Type="bigint" />
          <Property Name="TaxClearanceCertificateDocID" Type="bigint" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="FirstNames" Type="varchar" MaxLength="255" />
          <Property Name="IDTypeID" Type="smallint" />
          <Property Name="IDTypeDescription" Type="varchar" MaxLength="50" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="50" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="800" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="20" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="800" />
          <Property Name="PhysicalAddressCode" Type="varchar" MaxLength="20" />
          <Property Name="TelPhone" Type="varchar" MaxLength="255" />
          <Property Name="TelCell" Type="varchar" MaxLength="255" />
          <Property Name="TelFax" Type="varchar" MaxLength="255" />
          <Property Name="Email" Type="varchar" MaxLength="255" />
          <Property Name="SARSIncomeTaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="MemberStatusID" Type="smallint" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="BusinessTypeID" Type="bigint" />
        </EntityType>
        <EntityType Name="MemberStatus">
          <Key>
            <PropertyRef Name="MemberStatusID" />
          </Key>
          <Property Name="MemberStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Places">
          <Key>
            <PropertyRef Name="PlaceID" />
          </Key>
          <Property Name="PlaceID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="ParentPlaceID" Type="bigint" />
          <Property Name="PlaceTypeID" Type="smallint" />
          <Property Name="PlaceCode" Type="varchar" MaxLength="10" />
          <Property Name="Latitude" Type="float" />
          <Property Name="Longitude" Type="float" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IntersectionOlasID" Type="bigint" />
          <Property Name="RoadlinkOlasID" Type="bigint" />
          <Property Name="TownOlasID" Type="bigint" />
          <Property Name="RankOlasID" Type="bigint" />
        </EntityType>
        <EntityType Name="Routes">
          <Key>
            <PropertyRef Name="RouteID" />
          </Key>
          <Property Name="RouteID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="RouteTypeID" Type="smallint" Nullable="false" />
          <Property Name="RouteName" Type="varchar" MaxLength="500" Nullable="false" />
          <Property Name="Description" Type="varchar(max)" Nullable="false" />
          <Property Name="OriginPlaceID" Type="bigint" />
          <Property Name="DestinationPlaceID" Type="bigint" />
          <Property Name="NationalRouteNumber" Type="varchar" MaxLength="100" />
          <Property Name="BoardRouteNumber" Type="varchar" MaxLength="100" />
          <Property Name="RouteLength" Type="float" />
          <Property Name="RouteStatusID" Type="smallint" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="ProvinceID" Type="bigint" />
          <Property Name="TimeTableDocumentID" Type="bigint" />
          <Property Name="FareScheduleDocumentID" Type="bigint" />
          <Property Name="IsChecked" Type="bit" Nullable="false" />
          <Property Name="IsPotentialIncorrectRouteChange" Type="bit" Nullable="false" />
          <Property Name="IsPotentialIncorrectRouteChangeProbability" Type="smallint" />
          <Property Name="VersionNumber" Type="int" Nullable="false" />
          <Property Name="IsLatest" Type="bit" Nullable="false" />
          <Property Name="ParentRouteID" Type="bigint" />
        </EntityType>
        <EntityType Name="RouteStatus">
          <Key>
            <PropertyRef Name="RouteStatusID" />
          </Key>
          <Property Name="RouteStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Vehicles">
          <Key>
            <PropertyRef Name="VehicleID" />
          </Key>
          <Property Name="VehicleID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="SeatedCapacity" Type="int" />
          <Property Name="StandingCapacity" Type="int" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="Tare" Type="bigint" />
          <Property Name="VehicleMakeID" Type="smallint" />
          <Property Name="VehicleTypeID" Type="smallint" />
          <Property Name="VehicleStatusID" Type="smallint" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="CarryingCapacityID" Type="smallint" />
          <Property Name="YearOfManufacture" Type="varchar" MaxLength="4" />
          <Property Name="CurrentOdometerReading" Type="bigint" />
          <Property Name="RoadworthyCertificateDocID" Type="bigint" />
          <Property Name="CertificateOfRegistrationDocID" Type="bigint" />
          <Property Name="IgnoreVinException" Type="bit" />
          <Property Name="VehicleModelID" Type="smallint" />
          <Property Name="ProfessionalDriversPermitDocID" Type="bigint" />
          <Property Name="RankPermitDocID" Type="bigint" />
          <Property Name="CertifiedServiceRecordsDocID" Type="bigint" />
          <Property Name="CertifiedPublicPassangerLiabilityDocID" Type="bigint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_AdjudicationApplicationDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_AdjudicationApplicationDetails">
          <Key>
            <PropertyRef Name="ApplicationAdjudicationID" />
            
            
            
            <PropertyRef Name="DecisionID" />
            
            <PropertyRef Name="ApplicationRequestTypeID" />
            
            
            
            <PropertyRef Name="IsReadyForAdjudication" />
          </Key>
          <Property Name="ApplicationAdjudicationID" Type="bigint" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="bigint" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="FirstNames" Type="varchar" MaxLength="255" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="Title" Type="varchar" MaxLength="255" />
          <Property Name="Association" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Decision" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="DecisionID" Type="smallint" Nullable="false" />
          <Property Name="DecisionComments" Type="varchar(max)" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="HasObjections" Type="varchar" MaxLength="3" Nullable="false" />
          <Property Name="LicenceCount" Type="int" Nullable="false" />
          <Property Name="AdjudicationException" Type="bit" />
          <Property Name="IsReadyForAdjudication" Type="bit" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_AdjudicationDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_AdjudicationDetails">
          <Key>
            <PropertyRef Name="AdjudicationDetailID" />
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
          </Key>
          <Property Name="AdjudicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="smallint" Nullable="false" />
          <Property Name="AdjudicationType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="AdjudicationDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="Province" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="MeetingDate" Type="varchar" MaxLength="11" />
          <Property Name="MeetingPlace" Type="varchar(max)" />
          <Property Name="MeetingTime" Type="nvarchar" MaxLength="100" />
          <Property Name="PreAdjudicationNotificationsSent" Type="bit" Nullable="false" />
          <Property Name="PreAdjudicationLettersSent" Type="bit" Nullable="false" />
          <Property Name="PreAdjudicationObjectionNotificationsSent" Type="bit" Nullable="false" />
          <Property Name="PreAdjudicationObjectionLettersSent" Type="bit" Nullable="false" />
          <Property Name="PostAdjudicationNotificationsSent" Type="bit" Nullable="false" />
          <Property Name="PostAdjudicationLettersSent" Type="bit" Nullable="false" />
          <Property Name="Region" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="AdjudicationFinalisedDate" Type="nvarchar" MaxLength="100" />
          <Property Name="AdjudicationNumber" Type="varchar" MaxLength="20" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_AdjudicationPanel' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_AdjudicationPanel">
          <Key>
            <PropertyRef Name="AdjudicationPanelID" />
            
            
            
            
            
            
          </Key>
          <Property Name="AdjudicationPanelID" Type="bigint" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="PanelMemberUserID" Type="bigint" Nullable="false" />
          <Property Name="HasAttended" Type="bit" Nullable="false" />
          <Property Name="IsChairman" Type="bit" Nullable="false" />
          <Property Name="DateConfirmed" Type="datetime" />
          <Property Name="AddedAfterStart" Type="bit" Nullable="false" />
          <Property Name="FullName" Type="varchar" MaxLength="101" />
          <Property Name="Attended" Type="varchar" MaxLength="3" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_ApplicationDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ApplicationDetails">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            
            
            
            
            
            
            
            
            
            <PropertyRef Name="IsReferralRequired" />
            <PropertyRef Name="IsBusAndContract" />
            <PropertyRef Name="ApplicationIsObjected" />
            <PropertyRef Name="OnlyExistingRoutesOnLicense" />
            <PropertyRef Name="IsAllowedNewLicence" />
            <PropertyRef Name="ForceGazetting" />
            <PropertyRef Name="ApplicationStatusID" />
            <PropertyRef Name="ApplicationSubStatusID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IncludeRenewalType" Type="bit" />
          <Property Name="Cost" Type="money" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="FirstNames" Type="varchar" MaxLength="255" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="VerifiedMemberID" Type="bigint" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="bit" Nullable="false" />
          <Property Name="IsExceptionRequired" Type="bit" Nullable="false" />
          <Property Name="IsUpliftmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsCancellationRequired" Type="bit" Nullable="false" />
          <Property Name="GazetteNumber" Type="varchar" MaxLength="20" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="LicenceCount" Type="int" Nullable="false" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="255" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="TaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="ProxyName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="AdjudicationComment" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="TelPhone" Type="varchar" MaxLength="14" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AdjudicationOfficeLocationID" Type="smallint" />
          <Property Name="ExistingLicenceHolder" Type="varchar" MaxLength="511" />
          <Property Name="ExistingLicenceHolderID" Type="varchar" MaxLength="20" />
          <Property Name="Region" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsAdjudicationBypassed" Type="bit" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="bit" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="HasNewRoute" Type="bit" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="bit" />
          <Property Name="IsLtpsConversion" Type="bit" />
          <Property Name="ProxyIDNumber" Type="varchar" MaxLength="20" />
          <Property Name="AdjudicationCount" Type="smallint" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="255" />
          <Property Name="PhysicalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="255" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="VerifiedAssociationID" Type="bigint" />
          <Property Name="IsGazettingRequired" Type="bit" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="bit" Nullable="false" />
          <Property Name="IsReferralRequired" Type="bit" Nullable="false" />
          <Property Name="IsBusAndContract" Type="bit" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="IsApplicantIndividual" Type="smallint" />
          <Property Name="ApplicationIsObjected" Type="bit" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="bit" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="bit" Nullable="false" />
          <Property Name="ForceGazetting" Type="bit" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="smallint" />
          <Property Name="ApplicationStatusID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationCannoutBeAutoAssignedForAdjudication" Type="bit" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_ApplicationDetails_InProgress' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ApplicationDetails_InProgress">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="SourceApplicationID" />
            <PropertyRef Name="IsNewRouteRequired" />
            <PropertyRef Name="IsExceptionRequired" />
            <PropertyRef Name="IsUpliftmentRequired" />
            <PropertyRef Name="IsAdjustmentRequired" />
            <PropertyRef Name="IsCancellationRequired" />
            <PropertyRef Name="LicenceCount" />
            <PropertyRef Name="IsRenewal" />
            <PropertyRef Name="AssociationName" />
            <PropertyRef Name="ProxyName" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="AdjudicationComment" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="Region" />
            <PropertyRef Name="WorkflowStatus" />
            <PropertyRef Name="IsAdjudicationBypassed" />
            <PropertyRef Name="IsGazettingBypassed" />
            <PropertyRef Name="IsAssessorApprovalRequired" />
            <PropertyRef Name="IsSeniorManagerApprovalRequired" />
            <PropertyRef Name="HasNewRoute" />
            <PropertyRef Name="IsGazettingRequired" />
            <PropertyRef Name="IsInspectionRequired" />
            <PropertyRef Name="IsReferralRequired" />
            <PropertyRef Name="IsBusAndContract" />
            <PropertyRef Name="ApplicationIsObjected" />
            <PropertyRef Name="OnlyExistingRoutesOnLicense" />
            <PropertyRef Name="IsAllowedNewLicence" />
            <PropertyRef Name="ForceGazetting" />
            <PropertyRef Name="ApplicationStatusID" />
            <PropertyRef Name="ApplicationSubStatusID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IncludeRenewalType" Type="bit" />
          <Property Name="Cost" Type="money" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="FirstNames" Type="varchar" MaxLength="255" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="VerifiedMemberID" Type="bigint" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="bit" Nullable="false" />
          <Property Name="IsExceptionRequired" Type="bit" Nullable="false" />
          <Property Name="IsUpliftmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsCancellationRequired" Type="bit" Nullable="false" />
          <Property Name="GazetteNumber" Type="varchar" MaxLength="20" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="LicenceCount" Type="int" Nullable="false" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="255" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="TaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="ProxyName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="AdjudicationComment" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="TelPhone" Type="varchar" MaxLength="14" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AdjudicationOfficeLocationID" Type="smallint" />
          <Property Name="ExistingLicenceHolder" Type="varchar" MaxLength="511" />
          <Property Name="ExistingLicenceHolderID" Type="varchar" MaxLength="20" />
          <Property Name="Region" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsAdjudicationBypassed" Type="bit" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="bit" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="HasNewRoute" Type="bit" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="bit" />
          <Property Name="IsLtpsConversion" Type="bit" />
          <Property Name="ProxyIDNumber" Type="varchar" MaxLength="20" />
          <Property Name="AdjudicationCount" Type="smallint" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="255" />
          <Property Name="PhysicalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="255" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="VerifiedAssociationID" Type="bigint" />
          <Property Name="IsGazettingRequired" Type="bit" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="bit" Nullable="false" />
          <Property Name="IsReferralRequired" Type="bit" Nullable="false" />
          <Property Name="IsBusAndContract" Type="bit" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="IsApplicantIndividual" Type="smallint" />
          <Property Name="ApplicationIsObjected" Type="bit" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="bit" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="bit" Nullable="false" />
          <Property Name="ForceGazetting" Type="bit" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="smallint" />
          <Property Name="ApplicationStatusID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationCannoutBeAutoAssignedForAdjudication" Type="bit" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_ApplicationDetails_Light' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ApplicationDetails_Light">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            
            
            
            
            
            
            
            
            
            
            
            <PropertyRef Name="IsGazettingBypassed" />
            
            
            <PropertyRef Name="IsBusAndContract" />
            
            
            
            
            
            
            
            
            <PropertyRef Name="IsRenewal" />
            <PropertyRef Name="ApplicationIsObjected" />
            <PropertyRef Name="OnlyExistingRoutesOnLicense" />
            <PropertyRef Name="IsAllowedNewLicence" />
            <PropertyRef Name="ForceGazetting" />
            <PropertyRef Name="PREDataReleased" />
            <PropertyRef Name="RequiresProxy" />
          </Key>
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="WorkflowTemplateID" Type="bigint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="LicenceCount" Type="int" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IncludeRenewalType" Type="bit" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="Email" Type="varchar" MaxLength="150" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="513" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="AdjudicationCount" Type="smallint" />
          <Property Name="AdjudicationOfficeLocationID" Type="smallint" />
          <Property Name="IsReceiptRequired" Type="bit" Nullable="false" />
          <Property Name="IsAdjudicationRequired" Type="bit" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsGazettingRequired" Type="bit" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="bit" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="bit" Nullable="false" />
          <Property Name="IsReferralRequired" Type="bit" Nullable="false" />
          <Property Name="IsBusAndContract" Type="bit" Nullable="false" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="IsLtpsConversion" Type="bit" />
          <Property Name="IsAdjudicationBypassed" Type="bit" Nullable="false" />
          <Property Name="WorkflowInstanceReference" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="ApplicationStatusID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="smallint" Nullable="false" />
          <Property Name="LiveryDocumentID" Type="bigint" />
          <Property Name="IsNewRouteRequired" Type="bit" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="LastAdjudicationDecisionID" Type="int" Nullable="false" />
          <Property Name="TotalVehicles" Type="int" />
          <Property Name="IDType" Type="varchar" MaxLength="50" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="IsFinalisationTasksRequired" Type="bit" />
          <Property Name="ProxyIDNumber" Type="varchar" MaxLength="20" />
          <Property Name="IsApplicantIndividual" Type="smallint" />
          <Property Name="ApplicationIsObjected" Type="bit" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="bit" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="bit" Nullable="false" />
          <Property Name="ForceGazetting" Type="bit" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="smallint" />
          <Property Name="PREDataReleased" Type="bit" Nullable="false" />
          <Property Name="CopiedFromApplicationDetailID" Type="bigint" />
          <Property Name="RelatedTATApplicationRequestID" Type="bigint" />
          <Property Name="CreatedDate" Type="nvarchar" MaxLength="100" />
          <Property Name="RequiresProxy" Type="bit" Nullable="false" />
          <Property Name="ApplicantProvinceID" Type="smallint" />
          <Property Name="ApplicantRegionID" Type="bigint" />
          <Property Name="ServiceTypeID" Type="smallint" />
          <Property Name="ServiceTypeDescription" Type="varchar" MaxLength="100" />
          <Property Name="GazetteNoticeExpiryDate" Type="datetime" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_ApplicationDetails_Receipts' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ApplicationDetails_Receipts">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="OfficeLocationID" />
            
            
            
            
            
            
            
            
            
            
          </Key>
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Cost" Type="int" Nullable="false" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="ReceiptNumber" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="ReceiptDetailID" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="PaymentTypeID" Type="int" Nullable="false" />
          <Property Name="LicenceCount" Type="int" Nullable="false" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="VehicleRegNumber" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="255" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="AdjudicationCount" Type="smallint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_GazetteApplications' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_GazetteApplications">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="Member" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="WorkflowTemplateStepID" />
            <PropertyRef Name="GazetteNumber" />
            <PropertyRef Name="GazetteDetailStatusID" />
            <PropertyRef Name="IsGazettingBypassed" />
            <PropertyRef Name="ApplicationNumber" />
          </Key>
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" />
          <Property Name="Member" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="int" />
          <Property Name="WorkflowTemplateStepID" Type="bigint" Nullable="false" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="GazetteNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="GazetteDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="bit" Nullable="false" />
          <Property Name="Region" Type="varchar" MaxLength="255" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_LicenceCancelDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_LicenceCancelDetails">
          <Key>
            <PropertyRef Name="LicenceCancelDetailID" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="LicenceStatus" />
          </Key>
          <Property Name="LicenceCancelDetailID" Type="bigint" Nullable="false" />
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="LicenceCancelNumber" Type="varchar" MaxLength="20" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="DateOfExpiry" Type="datetime" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="500" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="LicenceStatus" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_LicenceIssueDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
            
            
            
            
            
            
            
            
          </Key>
          <Property Name="LicenceIssueDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="LicenceReferenceNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="ApplicationReferenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="VehicleRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="255" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="IsStillToBeAcquired" Type="bit" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="MemberFullName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="MemberTaxReference" Type="varchar" MaxLength="50" />
          <Property Name="MemberIDNumber" Type="bigint" />
          <Property Name="MemberCell" Type="varchar" MaxLength="255" />
          <Property Name="Association" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="VehicleVIN" Type="varchar" MaxLength="50" />
          <Property Name="VehicleEngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
          <Property Name="VehicleSeatedCapacity" Type="int" />
          <Property Name="VehicleStandingCapacity" Type="int" />
          <Property Name="AccreditationID" Type="bigint" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="AccreditationNumber" Type="varchar" MaxLength="25" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="IsDocumentVerificationRequired" Type="bit" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_LicenceUpliftmentExtensionRequestDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_LicenceUpliftmentExtensionRequestDetails">
          <Key>
            <PropertyRef Name="LicenceUpliftmentExtensionRequestDetailID" />
            
            
            
          </Key>
          <Property Name="LicenceUpliftmentExtensionRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="LicenceUpliftmentReferenceNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="MemberFullName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="MemberTaxReference" Type="varchar" MaxLength="50" />
          <Property Name="MemberIDNumber" Type="varchar" MaxLength="50" />
          <Property Name="MemberCell" Type="varchar" MaxLength="255" />
          <Property Name="WorkflowInstanceStatusID" Type="smallint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_NewRouteRequestDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_NewRouteRequestDetails">
          <Key>
            <PropertyRef Name="NewRouteRequestDetailID" />
            
            
            
            
            
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
          </Key>
          <Property Name="NewRouteRequestDetailID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="VerifiedRouteID" Type="bigint" />
          <Property Name="RouteOrigin" Type="varchar" MaxLength="255" />
          <Property Name="RouteDestination" Type="varchar(max)" />
          <Property Name="RouteDescription" Type="varchar(max)" />
          <Property Name="NationalRouteNumber" Type="varchar" MaxLength="50" />
          <Property Name="BoardRouteNumber" Type="varchar" MaxLength="50" />
          <Property Name="RouteLength" Type="float" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="WorkflowInstanceStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="IsAssessorVerificationRequired" Type="bit" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.App.Vw_ReceiptDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ReceiptDetails">
          <Key>
            <PropertyRef Name="ReceiptDetailID" />
            
            
            
            
            
            
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="ReceiptDetailID" Type="bigint" Nullable="false" />
          <Property Name="ReceiptNumber" Type="varchar" MaxLength="53" />
          <Property Name="TotalCost" Type="money" Nullable="false" />
          <Property Name="PaymentType" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="ApplicantData" Type="varchar" MaxLength="2000" />
          <Property Name="ReceiptItems" Type="varchar(max)" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="CreatedById" Type="bigint" Nullable="false" />
          <Property Name="ReceiptBatchID" Type="bigint" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="PaymentTypeID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_ApplicationRequestTypeDivisionSetup' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ApplicationRequestTypeDivisionSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDivisionSetupID" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="ApplicationRequestType" />
            <PropertyRef Name="Province" />
          </Key>
          <Property Name="ApplicationRequestTypeDivisionSetupID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="IsAssessorApprovalRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsSeniorManagerApprovalRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsFinalisationTasksRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsInspectionRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsReferralRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsAdjudicationRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="AdjudicationTypeRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsGazettingRequiredRule" Type="varchar" MaxLength="1000" />
          <Property Name="GazetteTypeRule" Type="varchar" MaxLength="1000" />
          <Property Name="IsNew" Type="bit" />
          <Property Name="ApplicationRequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="DivisionType" Type="varchar" MaxLength="50" />
          <Property Name="Province" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_ApplicationRequestTypeDocumentSetup' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_ApplicationRequestTypeDocumentSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="DocumentTypeID" />
            <PropertyRef Name="WorkflowTemplateID" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="ApplicationRequestType" />
            <PropertyRef Name="Province" />
          </Key>
          <Property Name="ApplicationRequestTypeDocumentID" Type="int" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="WorkflowTemplateID" Type="bigint" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsAvailableForUpload" Type="varchar(max)" />
          <Property Name="IsMandatory" Type="varchar(max)" />
          <Property Name="IsNew" Type="bit" />
          <Property Name="ApplicationRequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="DivisionType" Type="varchar" MaxLength="50" />
          <Property Name="Province" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_DivisionTypeAnnexureMappings' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_DivisionTypeAnnexureMappings">
          <Key>
            <PropertyRef Name="DivisionTypeAnnexureMappingID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="Province" />
            <PropertyRef Name="ServiceType" />
          </Key>
          <Property Name="DivisionTypeAnnexureMappingID" Type="bigint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="ServiceTypeID" Type="smallint" />
          <Property Name="VehicleTypeID" Type="smallint" />
          <Property Name="AnnexureDocumentID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="DivisionType" Type="varchar" MaxLength="50" />
          <Property Name="Province" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="ServiceType" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="VehicleType" Type="varchar" MaxLength="100" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_LicencingBoards' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_LicencingBoards">
          <Key>
            <PropertyRef Name="LicencingBoardID" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="Province" />
            <PropertyRef Name="IsCancelled" />
          </Key>
          <Property Name="LicencingBoardID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="Province" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_OfficeLocations' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_OfficeLocations">
          <Key>
            
            <PropertyRef Name="OfficeLocationID" />
            
            
            
          </Key>
          <Property Name="OfficeLocationDescription" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="LocationName" Type="varchar" MaxLength="255" />
          <Property Name="LocationAddress" Type="varchar" MaxLength="1000" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="smallint" />
          <Property Name="LicencingBoardID" Type="smallint" />
          <Property Name="PaymentClerkUserID" Type="bigint" />
          <Property Name="AssessorUserID" Type="bigint" />
          <Property Name="SeniorManagerApproverUserID" Type="bigint" />
          <Property Name="InspectionCapturerUserID" Type="bigint" />
          <Property Name="ReferralCapturerUserID" Type="bigint" />
          <Property Name="HandlesGazetting" Type="bit" Nullable="false" />
          <Property Name="GazetteNumberPrefix" Type="varchar" MaxLength="10" />
          <Property Name="AdjudicationOfficerUserID" Type="bigint" />
          <Property Name="AdjudicationSecrataryUserID" Type="bigint" />
          <Property Name="AdjudicationAgendaEmails" Type="varchar" MaxLength="2000" />
          <Property Name="AdjudicationHearingQuorumCount" Type="smallint" />
          <Property Name="AdjudicationMeetingQuorumCount" Type="smallint" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="smallint" />
          <Property Name="DocumentStoreLocationID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="BusinessRuleBypassApproverUserID" Type="bigint" />
          <Property Name="AdjudicationContactName" Type="varchar" MaxLength="255" />
          <Property Name="AdjudicationContactTelPhone" Type="varchar" MaxLength="14" />
          <Property Name="AdjudicationContactEmail" Type="varchar" MaxLength="150" />
          <Property Name="RouteCapturerUserID" Type="bigint" />
          <Property Name="RouteApproverUserID" Type="bigint" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_OfficeLocationSetup' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_OfficeLocationSetup">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="HandlesGazetting" />
            <PropertyRef Name="Province" />
          </Key>
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="LocationName" Type="varchar" MaxLength="255" />
          <Property Name="LocationAddress" Type="varchar" MaxLength="1000" />
          <Property Name="DivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="RegionID" Type="smallint" />
          <Property Name="LicencingBoardID" Type="smallint" />
          <Property Name="PaymentClerkUserID" Type="bigint" />
          <Property Name="AssessorUserID" Type="bigint" />
          <Property Name="SeniorManagerApproverUserID" Type="bigint" />
          <Property Name="InspectionCapturerUserID" Type="bigint" />
          <Property Name="ReferralCapturerUserID" Type="bigint" />
          <Property Name="HandlesGazetting" Type="bit" Nullable="false" />
          <Property Name="GazetteNumberPrefix" Type="varchar" MaxLength="10" />
          <Property Name="AdjudicationOfficerUserID" Type="bigint" />
          <Property Name="AdjudicationSecrataryUserID" Type="bigint" />
          <Property Name="AdjudicationAgendaEmails" Type="varchar" MaxLength="2000" />
          <Property Name="AdjudicationHearingQuorumCount" Type="smallint" />
          <Property Name="AdjudicationMeetingQuorumCount" Type="smallint" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="smallint" />
          <Property Name="DocumentStoreLocationID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="BusinessRuleBypassApproverUserID" Type="bigint" />
          <Property Name="AdjudicationContactName" Type="varchar" MaxLength="255" />
          <Property Name="AdjudicationContactTelPhone" Type="varchar" MaxLength="14" />
          <Property Name="AdjudicationContactEmail" Type="varchar" MaxLength="150" />
          <Property Name="RouteCapturerUserID" Type="bigint" />
          <Property Name="RouteApproverUserID" Type="bigint" />
          <Property Name="DivisionType" Type="varchar" MaxLength="50" />
          <Property Name="Province" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_VehicleMakes' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_VehicleMakes">
          <Key>
            <PropertyRef Name="VehicleMakeID" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="IsCancelled" />
          </Key>
          <Property Name="VehicleMakeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsNew" Type="bit" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Md.Vw_VehicleModels' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_VehicleModels">
          <Key>
            <PropertyRef Name="VehicleModelID" />
            <PropertyRef Name="VehicleMake" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="GrossWeight" />
            <PropertyRef Name="TareWeight" />
            <PropertyRef Name="VehicleTypeID" />
            <PropertyRef Name="VehicleType" />
            <PropertyRef Name="CarryingCapacityID" />
            <PropertyRef Name="CarryingCapacity" />
            <PropertyRef Name="IsValidModel" />
          </Key>
          <Property Name="VehicleModelID" Type="smallint" Nullable="false" />
          <Property Name="VehicleMakeID" Type="smallint" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="SeatedCapacityExcludingDriver" Type="smallint" />
          <Property Name="StandingCapacity" Type="smallint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="GrossWeight" Type="bigint" Nullable="false" />
          <Property Name="TareWeight" Type="bigint" Nullable="false" />
          <Property Name="VehicleTypeID" Type="smallint" Nullable="false" />
          <Property Name="VehicleType" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="CarryingCapacityID" Type="smallint" Nullable="false" />
          <Property Name="CarryingCapacity" Type="varchar" MaxLength="200" Nullable="false" />
          <Property Name="IsValidModel" Type="bit" Nullable="false" />
          <Property Name="WorkflowReference" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.System.Vw_Settings' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_Settings">
          <Key>
            <PropertyRef Name="SettingName" />
            <PropertyRef Name="SettingValue" />
          </Key>
          <Property Name="SettingName" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="SettingDescription" Type="varchar(max)" />
          <Property Name="SettingValue" Type="varchar(max)" Nullable="false" />
          <Property Name="SettingDetail" Type="varchar(max)" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Verified.Vw_Associations' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_Associations">
          <Key>
            <PropertyRef Name="AssociationID" />
            
            
            
            
            
          </Key>
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" />
          <Property Name="AssociationNameAbbrev" Type="varchar" MaxLength="50" />
          <Property Name="ActiveMemberCount" Type="int" Nullable="false" />
          <Property Name="Status" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="Mode" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="Type" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="Region" Type="varchar" MaxLength="255" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Verified.Vw_OperatingLicenceDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_OperatingLicenceDetails">
          <Key>
            
            <PropertyRef Name="ApplicationDetailID" />
            
            <PropertyRef Name="AccreditationNumber" />
            
            
            
            
            
          </Key>
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="AccreditationNumber" Type="varchar" MaxLength="25" Nullable="false" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="50" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="500" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="8000" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
          <Property Name="SeatedCapacity" Type="varchar" MaxLength="17" />
          <Property Name="StandingCapacity" Type="varchar" MaxLength="19" />
          <Property Name="VehicleType" Type="varchar" MaxLength="100" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="DateOfIssue" Type="varchar" MaxLength="30" />
          <Property Name="DateOfExpiry" Type="varchar" MaxLength="30" />
          <Property Name="CrossBorder" Type="varchar" MaxLength="2" Nullable="false" />
          <Property Name="LicensingBoard" Type="varchar" MaxLength="28" Nullable="false" />
          <Property Name="YearOfFirstReg" Type="varchar" MaxLength="4" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" />
          <Property Name="LicenceExceptions" Type="varchar" MaxLength="2000" />
          <Property Name="LicenceStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="VehicleID" Type="bigint" />
          <Property Name="AssociationID" Type="bigint" />
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Verified.Vw_Places' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_Places">
          <Key>
            <PropertyRef Name="PlaceID" />
            
          </Key>
          <Property Name="PlaceID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="varchar" MaxLength="255" />
          <Property Name="PlaceTypeID" Type="smallint" />
          <Property Name="PlaceType" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNational.Verified.Vw_Vehicles' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_Vehicles">
          <Key>
            <PropertyRef Name="VehicleID" />
          </Key>
          <Property Name="VehicleID" Type="bigint" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="Make" Type="varchar" MaxLength="100" />
          <Property Name="Model" Type="varchar" MaxLength="100" />
          <Property Name="Type" Type="varchar" MaxLength="100" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="SeatedCapacity" Type="int" />
          <Property Name="StandingCapacity" Type="int" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="CarryingCapacityID" Type="smallint" />
          <Property Name="YearOfManufacture" Type="varchar" MaxLength="4" />
          <Property Name="CarryingCapacity" Type="varchar" MaxLength="200" />
        </EntityType>
        <Association Name="FK_Accreditations_AccreditationStatus">
          <End Role="AccreditationStatus" Type="Self.AccreditationStatus" Multiplicity="1" />
          <End Role="Accreditations" Type="Self.Accreditations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AccreditationStatus">
              <PropertyRef Name="AccreditationStatusID" />
            </Principal>
            <Dependent Role="Accreditations">
              <PropertyRef Name="AccreditationStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Accreditations_Members">
          <End Role="Members" Type="Self.Members" Multiplicity="1" />
          <End Role="Accreditations" Type="Self.Accreditations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Members">
              <PropertyRef Name="MemberID" />
            </Principal>
            <Dependent Role="Accreditations">
              <PropertyRef Name="MemberID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AdjudicationDetails_AdjudicationDetailStatus">
          <End Role="AdjudicationDetailStatus" Type="Self.AdjudicationDetailStatus" Multiplicity="1" />
          <End Role="AdjudicationDetails" Type="Self.AdjudicationDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDetailStatus">
              <PropertyRef Name="AdjudicationDetailStatusID" />
            </Principal>
            <Dependent Role="AdjudicationDetails">
              <PropertyRef Name="AdjudicationDetailStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AdjudicationDetails_AdjudicationType">
          <End Role="AdjudicationType" Type="Self.AdjudicationType" Multiplicity="1" />
          <End Role="AdjudicationDetails" Type="Self.AdjudicationDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationType">
              <PropertyRef Name="AdjudicationTypeID" />
            </Principal>
            <Dependent Role="AdjudicationDetails">
              <PropertyRef Name="AdjudicationTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AdjudicationPanel_AdjudicationDetails">
          <End Role="AdjudicationDetails" Type="Self.AdjudicationDetails" Multiplicity="1" />
          <End Role="AdjudicationPanel" Type="Self.AdjudicationPanel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDetails">
              <PropertyRef Name="AdjudicationDetailID" />
            </Principal>
            <Dependent Role="AdjudicationPanel">
              <PropertyRef Name="AdjudicationDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationAllowedNewLic_DivisionTypes">
          <End Role="DivisionTypes" Type="Self.DivisionTypes" Multiplicity="0..1" />
          <End Role="ApplicationAllowedNewLicences" Type="Self.ApplicationAllowedNewLicences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionTypes">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="ApplicationAllowedNewLicences">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationAllowedNewLic_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="0..1" />
          <End Role="ApplicationAllowedNewLicences" Type="Self.ApplicationAllowedNewLicences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="ApplicationAllowedNewLicences">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDi_ApplicationRequestTypes">
          <End Role="ApplicationRequestTypes" Type="Self.ApplicationRequestTypes" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDivisionSetup" Type="Self.ApplicationRequestTypeDivisionSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestTypes">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDivisionSetup">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDi_DivisionTypes">
          <End Role="DivisionTypes" Type="Self.DivisionTypes" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDivisionSetup" Type="Self.ApplicationRequestTypeDivisionSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionTypes">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDivisionSetup">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDi_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDivisionSetup" Type="Self.ApplicationRequestTypeDivisionSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDivisionSetup">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDo_ApplicationRequestTypes">
          <End Role="ApplicationRequestTypes" Type="Self.ApplicationRequestTypes" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDocumentSetup" Type="Self.ApplicationRequestTypeDocumentSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestTypes">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocumentSetup">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDo_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDocumentSetup" Type="Self.ApplicationRequestTypeDocumentSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocumentSetup">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AssociationMembers_Associations">
          <End Role="Associations" Type="Self.Associations" Multiplicity="1" />
          <End Role="AssociationMembers" Type="Self.AssociationMembers" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Associations">
              <PropertyRef Name="AssociationID" />
            </Principal>
            <Dependent Role="AssociationMembers">
              <PropertyRef Name="AssociationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AssociationRoutes_Associations">
          <End Role="Associations" Type="Self.Associations" Multiplicity="1" />
          <End Role="AssociationRoutes" Type="Self.AssociationRoutes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Associations">
              <PropertyRef Name="AssociationID" />
            </Principal>
            <Dependent Role="AssociationRoutes">
              <PropertyRef Name="AssociationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_AssociationModes">
          <End Role="AssociationModes" Type="Self.AssociationModes" Multiplicity="1" />
          <End Role="Associations" Type="Self.Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AssociationModes">
              <PropertyRef Name="AssociationModeID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="AssociationModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_AssociationStatus">
          <End Role="AssociationStatus" Type="Self.AssociationStatus" Multiplicity="1" />
          <End Role="Associations" Type="Self.Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AssociationStatus">
              <PropertyRef Name="AssociationStatusID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="AssociationStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_AssociationTypes">
          <End Role="AssociationTypes" Type="Self.AssociationTypes" Multiplicity="1" />
          <End Role="Associations" Type="Self.Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AssociationTypes">
              <PropertyRef Name="AssociationTypeID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="AssociationTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_Regions">
          <End Role="Regions" Type="Self.Regions" Multiplicity="1" />
          <End Role="Associations" Type="Self.Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Regions">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DivisionTypeAnnexureMapp_DivisionTypes">
          <End Role="DivisionTypes" Type="Self.DivisionTypes" Multiplicity="1" />
          <End Role="DivisionTypeAnnexureMappings" Type="Self.DivisionTypeAnnexureMappings" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionTypes">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMappings">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DivisionTypeAnnexureMapp_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="0..1" />
          <End Role="DivisionTypeAnnexureMappings" Type="Self.DivisionTypeAnnexureMappings" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMappings">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DivisionTypeAnnexureMapp_ServiceTypes">
          <End Role="ServiceTypes" Type="Self.ServiceTypes" Multiplicity="0..1" />
          <End Role="DivisionTypeAnnexureMappings" Type="Self.DivisionTypeAnnexureMappings" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceTypes">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMappings">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DivisionTypeAnnexureMapp_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="0..1" />
          <End Role="DivisionTypeAnnexureMappings" Type="Self.DivisionTypeAnnexureMappings" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMappings">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentTypeQuestions_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="DocumentTypeQuestions" Type="Self.DocumentTypeQuestions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="DocumentTypeQuestions">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_GazetteDetails_DivisionTypes">
          <End Role="DivisionTypes" Type="Self.DivisionTypes" Multiplicity="1" />
          <End Role="GazetteDetails" Type="Self.GazetteDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionTypes">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="GazetteDetails">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_GazetteDetails_GazetteDetailStatus">
          <End Role="GazetteDetailStatus" Type="Self.GazetteDetailStatus" Multiplicity="1" />
          <End Role="GazetteDetails" Type="Self.GazetteDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="GazetteDetailStatus">
              <PropertyRef Name="GazetteDetailStatusID" />
            </Principal>
            <Dependent Role="GazetteDetails">
              <PropertyRef Name="GazetteDetailStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_GazetteDetails_GazetteTypes">
          <End Role="GazetteTypes" Type="Self.GazetteTypes" Multiplicity="0..1" />
          <End Role="GazetteDetails" Type="Self.GazetteDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="GazetteTypes">
              <PropertyRef Name="GazetteTypeID" />
            </Principal>
            <Dependent Role="GazetteDetails">
              <PropertyRef Name="GazetteTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_GazetteDetails_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="1" />
          <End Role="GazetteDetails" Type="Self.GazetteDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="GazetteDetails">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceExceptions_Licences">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceExceptions" Type="Self.LicenceExceptions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceExceptions">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDetails_Licences">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceIssueDetails">
              <PropertyRef Name="VerifiedLicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDetails_Vehicles">
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="0..1" />
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicles">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="LicenceIssueDetails">
              <PropertyRef Name="VerifiedVehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDocuments_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="LicenceIssueDocuments" Type="Self.LicenceIssueDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="LicenceIssueDocuments">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDocuments_LicenceIssueDetails">
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="1" />
          <End Role="LicenceIssueDocuments" Type="Self.LicenceIssueDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceIssueDetails">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueDocuments">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueInspectionDe_LicenceIssueInspectionOu">
          <End Role="LicenceIssueInspectionOutcomes" Type="Self.LicenceIssueInspectionOutcomes" Multiplicity="0..1" />
          <End Role="LicenceIssueInspectionDetails" Type="Self.LicenceIssueInspectionDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceIssueInspectionOutcomes">
              <PropertyRef Name="LicenceIssueInspectionOutcomeID" />
            </Principal>
            <Dependent Role="LicenceIssueInspectionDetails">
              <PropertyRef Name="LicenceIssueInspectionOutcomeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceRoutes_Licences">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceRoutes" Type="Self.LicenceRoutes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceRoutes">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceRoutes_Routes">
          <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
          <End Role="LicenceRoutes" Type="Self.LicenceRoutes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Routes">
              <PropertyRef Name="RouteID" />
            </Principal>
            <Dependent Role="LicenceRoutes">
              <PropertyRef Name="RouteID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Accreditations">
          <End Role="Accreditations" Type="Self.Accreditations" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Accreditations">
              <PropertyRef Name="AccreditationID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="AccreditationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Associations">
          <End Role="Associations" Type="Self.Associations" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Associations">
              <PropertyRef Name="AssociationID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="AssociationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_DivisionTypes">
          <End Role="DivisionTypes" Type="Self.DivisionTypes" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionTypes">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_LicenceStatus">
          <End Role="LicenceStatus" Type="Self.LicenceStatus" Multiplicity="1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceStatus">
              <PropertyRef Name="LicenceStatusID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="LicenceStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_LicencingBoards">
          <End Role="LicencingBoards" Type="Self.LicencingBoards" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicencingBoards">
              <PropertyRef Name="LicencingBoardID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="LicencingBoardID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Members">
          <End Role="Members" Type="Self.Members" Multiplicity="1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Members">
              <PropertyRef Name="MemberID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="MemberID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Regions">
          <End Role="Regions" Type="Self.Regions" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Regions">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Vehicles">
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicles">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="VehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceServiceDetails_Licences">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceServiceDetails" Type="Self.LicenceServiceDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceServiceDetails">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceServiceDetails_ServiceTypes">
          <End Role="ServiceTypes" Type="Self.ServiceTypes" Multiplicity="1" />
          <End Role="LicenceServiceDetails" Type="Self.LicenceServiceDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceTypes">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="LicenceServiceDetails">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicencingBoards_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="1" />
          <End Role="LicencingBoards" Type="Self.LicencingBoards" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="LicencingBoards">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Members_IDTypes">
          <End Role="IDTypes" Type="Self.IDTypes" Multiplicity="0..1" />
          <End Role="Members" Type="Self.Members" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDTypes">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="Members">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Members_MemberStatus">
          <End Role="MemberStatus" Type="Self.MemberStatus" Multiplicity="1" />
          <End Role="Members" Type="Self.Members" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="MemberStatus">
              <PropertyRef Name="MemberStatusID" />
            </Principal>
            <Dependent Role="Members">
              <PropertyRef Name="MemberStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Places_PlaceTypes">
          <End Role="PlaceTypes" Type="Self.PlaceTypes" Multiplicity="0..1" />
          <End Role="Places" Type="Self.Places" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PlaceTypes">
              <PropertyRef Name="PlaceTypeID" />
            </Principal>
            <Dependent Role="Places">
              <PropertyRef Name="PlaceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ReceiptDetails_PaymentTypes">
          <End Role="PaymentTypes" Type="Self.PaymentTypes" Multiplicity="1" />
          <End Role="ReceiptDetails" Type="Self.ReceiptDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PaymentTypes">
              <PropertyRef Name="PaymentTypeID" />
            </Principal>
            <Dependent Role="ReceiptDetails">
              <PropertyRef Name="PaymentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Regions_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="1" />
          <End Role="Regions" Type="Self.Regions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="Regions">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_OriginPlace">
          <End Role="Places" Type="Self.Places" Multiplicity="0..1" />
          <End Role="Routes" Type="Self.Routes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Places">
              <PropertyRef Name="PlaceID" />
            </Principal>
            <Dependent Role="Routes">
              <PropertyRef Name="OriginPlaceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_Places">
          <End Role="Places" Type="Self.Places" Multiplicity="0..1" />
          <End Role="Routes" Type="Self.Routes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Places">
              <PropertyRef Name="PlaceID" />
            </Principal>
            <Dependent Role="Routes">
              <PropertyRef Name="DestinationPlaceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_RouteStatus">
          <End Role="RouteStatus" Type="Self.RouteStatus" Multiplicity="1" />
          <End Role="Routes" Type="Self.Routes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="RouteStatus">
              <PropertyRef Name="RouteStatusID" />
            </Principal>
            <Dependent Role="Routes">
              <PropertyRef Name="RouteStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_RouteTypes">
          <End Role="RouteTypes" Type="Self.RouteTypes" Multiplicity="1" />
          <End Role="Routes" Type="Self.Routes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="RouteTypes">
              <PropertyRef Name="RouteTypeID" />
            </Principal>
            <Dependent Role="Routes">
              <PropertyRef Name="RouteTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceTypes_RouteTypes">
          <End Role="RouteTypes" Type="Self.RouteTypes" Multiplicity="0..1" />
          <End Role="ServiceTypes" Type="Self.ServiceTypes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="RouteTypes">
              <PropertyRef Name="RouteTypeID" />
            </Principal>
            <Dependent Role="ServiceTypes">
              <PropertyRef Name="RouteTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceVehicleTypes_ServiceTypes">
          <End Role="ServiceTypes" Type="Self.ServiceTypes" Multiplicity="1" />
          <End Role="ServiceVehicleTypes" Type="Self.ServiceVehicleTypes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceTypes">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="ServiceVehicleTypes">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceVehicleTypes_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="1" />
          <End Role="ServiceVehicleTypes" Type="Self.ServiceVehicleTypes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ServiceVehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Stationery_StationeryBatches">
          <End Role="StationeryBatches" Type="Self.StationeryBatches" Multiplicity="1" />
          <End Role="Stationery" Type="Self.Stationery" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="StationeryBatches">
              <PropertyRef Name="StationeryBatchID" />
            </Principal>
            <Dependent Role="Stationery">
              <PropertyRef Name="StationeryBatchID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_VehicleModels_CarryingCapacities">
          <End Role="CarryingCapacities" Type="Self.CarryingCapacities" Multiplicity="1" />
          <End Role="VehicleModels" Type="Self.VehicleModels" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CarryingCapacities">
              <PropertyRef Name="CarryingCapacityID" />
            </Principal>
            <Dependent Role="VehicleModels">
              <PropertyRef Name="CarryingCapacityID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_VehicleModels_VehicleMakes">
          <End Role="VehicleMakes" Type="Self.VehicleMakes" Multiplicity="0..1" />
          <End Role="VehicleModels" Type="Self.VehicleModels" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMakes">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="VehicleModels">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_VehicleModels_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="1" />
          <End Role="VehicleModels" Type="Self.VehicleModels" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="VehicleModels">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Vehicles_VehicleMakes">
          <End Role="VehicleMakes" Type="Self.VehicleMakes" Multiplicity="0..1" />
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMakes">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="Vehicles">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Vehicles_VehicleModels">
          <End Role="VehicleModels" Type="Self.VehicleModels" Multiplicity="0..1" />
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleModels">
              <PropertyRef Name="VehicleModelID" />
            </Principal>
            <Dependent Role="Vehicles">
              <PropertyRef Name="VehicleModelID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Vehicles_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="0..1" />
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="Vehicles">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_VehicleTypes_CarryingCapacities">
          <End Role="CarryingCapacities" Type="Self.CarryingCapacities" Multiplicity="0..1" />
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CarryingCapacities">
              <PropertyRef Name="CarryingCapacityID" />
            </Principal>
            <Dependent Role="VehicleTypes">
              <PropertyRef Name="CarryingCapacityID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Fn_GetSourceApplicationRecordsFromSourceSystem" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OlPermitNumber" Type="varchar" Mode="In" />
          <Parameter Name="SourceApplicationID" Type="smallint" Mode="In" />
          <Parameter Name="InlcudeActiveOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeLastExpiredIfNoActiveFound" Type="bit" Mode="In" />
          <ReturnType>
            <CollectionType>
              <RowType>
                <Property Name="ID" Type="int" Nullable="false" />
                <Property Name="ApplicationNumber" Type="varchar" MaxLength="255" />
                <Property Name="FirstName" Type="varchar" MaxLength="100" />
                <Property Name="LastName" Type="varchar" MaxLength="100" />
                <Property Name="IDNumber" Type="varchar" MaxLength="255" />
                <Property Name="LicenceNumber" Type="varchar" MaxLength="255" />
                <Property Name="LicenceStartDate" Type="datetime" />
                <Property Name="LicenceEndDate" Type="datetime" />
                <Property Name="LicenceIndefinite" Type="int" />
                <Property Name="LicenceStatus" Type="varchar" MaxLength="100" />
                <Property Name="LicenceActive" Type="bit" />
                <Property Name="LicenceIssue" Type="int" />
                <Property Name="RelatedPermitNumber" Type="varchar" MaxLength="50" />
                <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
                <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
                <Property Name="ChassisNumber" Type="varchar" MaxLength="50" />
                <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
                <Property Name="YearOfManufacture" Type="varchar" MaxLength="20" />
                <Property Name="AssociationID" Type="bigint" />
                <Property Name="AssociationName" Type="varchar" MaxLength="100" />
                <Property Name="ApplicantXML" Type="xml" />
                <Property Name="AssociationXML" Type="xml" />
                <Property Name="LicenceXML" Type="xml" />
                <Property Name="VehicleXML" Type="xml" />
                <Property Name="RoutesXml" Type="xml" />
                <Property Name="ServiceTypesXML" Type="xml" />
                <Property Name="ModeID" Type="smallint" />
                <Property Name="IsInBypassedExpiryList" Type="bit" />
                <Property Name="IsWithinForcedRenewalPeriod" Type="bit" />
                <Property Name="FullIntegrationXML" Type="xml" />
              </RowType>
            </CollectionType>
          </ReturnType>
        </Function>
        <Function Name="Pr_AccreditationIssueSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestTypes" Type="varchar" Mode="In" />
          <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveWorkflowsOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="Steps" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AddReceiptToApplication" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationReferenceNumber" Type="varchar(max)" Mode="In" />
          <Parameter Name="Reason" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationAddApplication" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationApplicationListGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationApplicationSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationSubStatusID" Type="smallint" Mode="In" />
          <Parameter Name="AdjudicationTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationTypeID" Type="smallint" Mode="In" />
          <Parameter Name="MeetingDate" Type="datetime" Mode="In" />
          <Parameter Name="MeetingDateEnd" Type="datetime" Mode="In" />
          <Parameter Name="MaxAdjudicationAutoApplicationCount" Type="smallint" Mode="In" />
          <Parameter Name="AdjudicationOfficeLocationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationDetailStatusUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationDetailStatusID" Type="smallint" Mode="In" />
          <Parameter Name="IsTransactionRequired" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationPanelMembersGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationPanelRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationPanelID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationPanelUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="PanelMemberUserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationPostPone" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationRemoveApplication" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationDetailStatusID" Type="smallint" Mode="In" />
          <Parameter Name="AdjudicationDateFrom" Type="datetime" Mode="In" />
          <Parameter Name="AdjudicationDateTo" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdjudicationUpdateDates" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="MeetingDate" Type="datetime" Mode="In" />
          <Parameter Name="MeetingDateEnd" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AdvancedSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="SearchTerm" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AppDocumentsAwaitingVerificationGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="EntityID" Type="bigint" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAdjudicationDecisionCommit" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationAdjudicationID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationDecisionID" Type="smallint" Mode="In" />
          <Parameter Name="LicenceDurationID" Type="int" Mode="In" />
          <Parameter Name="LicenceExpiryDate" Type="date" Mode="In" />
          <Parameter Name="Comments" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAdjudicationDecisionReverse" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationAdjudicationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAdjudicationGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationAdjudicationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAdjudicationRestart" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationAdjudicationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAnalytics_ApplicationCreatedBySummmary" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="FromDate" Type="datetime" Mode="In" />
          <Parameter Name="ToDate" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAnalytics_ApplicationPerRegion" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="FromDate" Type="datetime" Mode="In" />
          <Parameter Name="ToDate" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAnalytics_ApplicationRequestTypeSummmary" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="FromDate" Type="datetime" Mode="In" />
          <Parameter Name="ToDate" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAnalyticsSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="FromDate" Type="datetime" Mode="In" />
          <Parameter Name="ToDate" Type="datetime" Mode="In" />
          <Parameter Name="ApplicationRequestTypeIDs" Type="varchar" Mode="In" />
          <Parameter Name="CreatedBy" Type="varchar" Mode="In" />
          <Parameter Name="SearchRegionID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAwaitingCorrectionsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssignedToID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationGazetteRoutesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationInspectionDetailUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="InspectionStatusID" Type="smallint" Mode="In" />
          <Parameter Name="InspectorID" Type="bigint" Mode="In" />
          <Parameter Name="InspectionDateFrom" Type="datetime" Mode="In" />
          <Parameter Name="InspectionDateTo" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationLicenceTemporaryReplacementGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationsAwaitingInspectionOutcomesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationsAwaitingInspectionsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestTypes" Type="varchar" Mode="In" />
          <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveWorkflowsOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="ApplicationStatusID" Type="smallint" Mode="In" />
          <Parameter Name="ApplicationSubStatusID" Type="smallint" Mode="In" />
          <Parameter Name="Steps" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_BusinessRuleBypassRequestInprogressGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_AccreditationIssuingSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_AdjudicationSummaryExceptionsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_AdjudicationSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_ApplicationSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_AvgProcessingTime" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationrequestTypeIDs" Type="varchar" Mode="In" />
          <Parameter Name="DateFrom" Type="datetime" Mode="In" />
          <Parameter Name="DateTo" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_GazetteSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_LicenceCancelSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_LicenceIssuingSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_NewRouteRequestSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_SystemAdministrator" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_SystemAdministrator_FailedTasks" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_SystemAdministrator_RequestCorrection" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="InstanceTaskID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Dashboard_SystemAdministrator_RetryFailedTasks" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="InstanceTaskID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_FirstStationeryNumberGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GazetteApplicationBypassExpiry" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Comment" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GazetteDetailStatusUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="GazetteDetailID" Type="bigint" Mode="In" />
          <Parameter Name="GazetteDetailStatusID" Type="smallint" Mode="In" />
          <Parameter Name="IsTransactionRequired" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_GazetteRoutesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="GazetteDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetApplicationTypesForConversion" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetCashupDetails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetCashupUsers" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetReceipt" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetReceiptDetails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetRecentCashups" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptUserID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_InspectorInspectionsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_InspectorsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_IssuedStationeryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_IssuedToStationeryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="IssuedToID" Type="bigint" Mode="In" />
          <Parameter Name="StationeryStatusIDs" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceCancelSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveWorkflowsOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="Steps" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueDetaisReport" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceIssueDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueInspectionComplete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceIssueDetailID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceIssueInspectionOutcomeID" Type="smallint" Mode="In" />
          <Parameter Name="InspectedByID" Type="bigint" Mode="In" />
          <Parameter Name="DateInspected" Type="datetime" Mode="In" />
          <Parameter Name="EngineNumber" Type="varchar" Mode="In" />
          <Parameter Name="ChassisNumber" Type="varchar" Mode="In" />
          <Parameter Name="InspectionSheetDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="FrontRegDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="ChassisDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="EngineDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="BackRegDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="Additional1DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="Additional2DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssuingSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestTypes" Type="varchar" Mode="In" />
          <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveWorkflowsOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="Steps" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_NewRouteRequestSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveWorkflowsOnly" Type="bit" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="Steps" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_NonBatchedCashReceiptDetailsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptUserID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PrecheckDetailsUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="PrecheckDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="SourceApplicationID" Type="smallint" Mode="In" />
          <Parameter Name="ApplicantName" Type="varchar" Mode="In" />
          <Parameter Name="OlPermitNumber" Type="varchar" Mode="In" />
          <Parameter Name="IDNumber" Type="varchar" Mode="In" />
          <Parameter Name="ChassisNumber" Type="varchar" Mode="In" />
          <Parameter Name="VehicleRegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="CheckData" Type="bit" Mode="In" />
          <Parameter Name="PrecheckDetailIncompleteReasonID" Type="smallint" Mode="In" />
          <Parameter Name="ContactEmail" Type="varchar" Mode="In" />
          <Parameter Name="ContactCell" Type="varchar" Mode="In" />
          <Parameter Name="NumberOfVehiclesRequired" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="ModeID" Type="smallint" Mode="In" />
          <Parameter Name="CalledFromSave" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_PrintGazetteReport" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="GazetteDetailID" Type="bigint" Mode="In" />
          <Parameter Name="GazetteRegionID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_FindMember" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="IdNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_GetAppsWithMissingOrginatingLicences" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_LicencesLinkedToActiveOLASGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteAwaitingRouteDescriptionChecks" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteCounts" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDelete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDescriptionUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="OriginPlaceID" Type="bigint" Mode="In" />
          <Parameter Name="DestinationPlaceID" Type="bigint" Mode="In" />
          <Parameter Name="Description" Type="varchar(max)" Mode="In" />
          <Parameter Name="RouteTypeID" Type="bigint" Mode="In" />
          <Parameter Name="TimeTableDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="FareScheduleDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDuplicateBoardRouteNumberDetails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="BoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDuplicateBoardRouteNumbers" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDuplicateNationalRouteNumberDetails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="NationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDuplicateNationalRouteNumbers" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RouteDuplicatePlaces" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_RoutesWithPotentialChangesFromOLAS" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_UpdateAppsWithMissingOrginatingLicence" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationNumber" Type="varchar" Mode="In" />
          <Parameter Name="OrginatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReceiptAssignReceipt" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ReceiptDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReceiptBatchGenerate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptUserID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReceiptCancellation" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReceiptCreateUnassignedReceipt" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestTypeID" Type="bigint" Mode="In" />
          <Parameter Name="PaymentTypeID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicantName" Type="varchar" Mode="In" />
          <Parameter Name="IdNumber" Type="varchar" Mode="In" />
          <Parameter Name="OlPermitNumber" Type="varchar" Mode="In" />
          <Parameter Name="VehicleRegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="ChassisNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReceiptsGetUnassigned" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReturnedIssuedStationery" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="IssuedToID" Type="bigint" Mode="In" />
          <Parameter Name="StationeryID" Type="bigint" Mode="In" />
          <Parameter Name="StationeryStatusID" Type="smallint" Mode="In" />
          <Parameter Name="StationeryScanDocID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchCashups" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="PaymentClerkID" Type="bigint" Mode="In" />
          <Parameter Name="FromDate" Type="datetime" Mode="In" />
          <Parameter Name="ToDate" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SetReceiptToZero" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ReceiptDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Reason" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryAssign" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssignToID" Type="bigint" Mode="In" />
          <Parameter Name="FromNumber" Type="varchar" Mode="In" />
          <Parameter Name="NumberOfPagesIssued" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryAssignPrecheck" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="FromNumber" Type="varchar" Mode="In" />
          <Parameter Name="NumberOfPagesIssued" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryBatchCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="StationeryBatchTypeID" Type="smallint" Mode="In" />
          <Parameter Name="FromNumber" Type="varchar" Mode="In" />
          <Parameter Name="ToNumber" Type="varchar" Mode="In" />
          <Parameter Name="IntFromNumber" Type="bigint" Mode="In" />
          <Parameter Name="IntToNumber" Type="bigint" Mode="In" />
          <Parameter Name="Prefix" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryBatchesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="SearchType" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryBatchReceived" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="StationeryBatchID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryNumberGetNext" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryStatusHistoryUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="StationeryID" Type="bigint" Mode="In" />
          <Parameter Name="StationeryStatusID" Type="smallint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_StationeryTransfer" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="FromNumber" Type="varchar" Mode="In" />
          <Parameter Name="NumberOfPagesIssued" Type="bigint" Mode="In" />
          <Parameter Name="StationeryBatchTypeID" Type="smallint" Mode="In" />
          <Parameter Name="OfficeLocationID" Type="smallint" Mode="In" />
          <Parameter Name="ExternalPartyDescription" Type="varchar" Mode="In" />
          <Parameter Name="ExternalPartyContactName" Type="varchar" Mode="In" />
          <Parameter Name="ExternalPartyContactEmail" Type="varchar" Mode="In" />
          <Parameter Name="StaioneryIDs" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_TaskSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssignedToUserID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_TAT_ApplicationsPendingDataReleaseGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_TAT_ApplicationsReleaseData" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="TATApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VerificationTasksGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="WorkflowInstanceTaskID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_WriteEntry" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Audit">
          <Parameter Name="UserID" Type="int" Mode="In" />
          <Parameter Name="Source" Type="varchar" Mode="In" />
          <Parameter Name="Action" Type="varchar" Mode="In" />
          <Parameter Name="Description" Type="varchar(max)" Mode="In" />
          <Parameter Name="IsCritical" Type="bit" Mode="In" />
          <Parameter Name="IsException" Type="bit" Mode="In" />
          <Parameter Name="Entity" Type="varchar" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetAdjudicationAgendeUserEmails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Crm" />
        <Function Name="Pr_DocumentTypeCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentTypeID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentTypeQuestionCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentTypeQuestionIDs" Type="varchar(max)" Mode="In" />
          <Parameter Name="DocumentTypeID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentTypeQuestionUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentTypeQuestionID" Type="bigint" Mode="In" />
          <Parameter Name="DocumentTypeID" Type="bigint" Mode="In" />
          <Parameter Name="CaptureFieldID" Type="smallint" Mode="In" />
          <Parameter Name="Question" Type="varchar" Mode="In" />
          <Parameter Name="OrderBy" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DocumentTypeUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Doc">
          <Parameter Name="DocumentTypeID" Type="bigint" Mode="In" />
          <Parameter Name="Description" Type="varchar" Mode="In" />
          <Parameter Name="IsDocumentTitleEditable" Type="bit" Mode="In" />
          <Parameter Name="IsExpiryDateRequired" Type="bit" Mode="In" />
          <Parameter Name="IsUniqueEntityDocument" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDivisionSetupClone" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="OldApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="OldDivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="OldProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="NewApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="NewDivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="NewProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDivisionSetupCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="ApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDivisionSetupSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="ApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDivisionSetupUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="ApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="IsAssessorApprovalRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="IsSeniorManagerApprovalRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="IsFinalisationTasksRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="IsInspectionRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="IsReferralRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="IsAdjudicationRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationTypeRule" Type="varchar" Mode="In" />
          <Parameter Name="IsGazettingRequiredRule" Type="varchar" Mode="In" />
          <Parameter Name="GazetteTypeRule" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDocumentCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="ApplicationRequestTypeDocumentID" Type="int" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDocumentUpdateSqlRules" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="DocumentTypeID" Type="smallint" Mode="In" />
          <Parameter Name="WorkflowTemplateID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestTypeDocumentUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="ApplicationRequestTypeDocumentID" Type="int" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="ApplicationRequestTypeID" Type="smallint" Mode="In" />
          <Parameter Name="DocumentTypeID" Type="smallint" Mode="In" />
          <Parameter Name="WorkflowTemplateID" Type="bigint" Mode="In" />
          <Parameter Name="IsAvailableForUpload" Type="varchar(max)" Mode="In" />
          <Parameter Name="IsMandatory" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DivisionTypeAnnexureMappingCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="DivisionTypeAnnexureMappingID" Type="bigint" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DivisionTypeAnnexureMappingSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="VehicleTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_DivisionTypeAnnexureMappingUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="DivisionTypeAnnexureMappingID" Type="bigint" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="VehicleTypeID" Type="smallint" Mode="In" />
          <Parameter Name="AnnexureDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetSetupAvailableOptions" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="EntityID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_InspectorCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="InspectorID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_InspectorsGetView" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md" />
        <Function Name="Pr_InspectorUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="InspectorID" Type="bigint" Mode="In" />
          <Parameter Name="Name" Type="varchar(max)" Mode="In" />
          <Parameter Name="OfficeLocationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicencingBoardCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="LicencingBoardID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_LicencingBoardUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="LicencingBoardID" Type="bigint" Mode="In" />
          <Parameter Name="Description" Type="varchar(max)" Mode="In" />
          <Parameter Name="ProvinceID" Type="bigint" Mode="In" />
          <Parameter Name="IsCancelled" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_OfficeLocationSetupDocumentTemplateUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="OfficeLocationID" Type="bigint" Mode="In" />
          <Parameter Name="PreAdjudicationLetterDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PreAdjudicationObjectionLetterDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PostAdjudicationLetterApprovedDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PostAdjudicationLetterPostponedDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PostAdjudicationLetterRefusedDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PostAdjudicationLetterCancelledDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PostAdjudicationLetterWithdrawnDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="PostAdjudicationLetterStruckOffDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceAnnexure_AdjudicationPanelDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="TATConfirmationReceipt_DocumentID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_OfficeLocationSetupUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="OfficeLocationID" Type="bigint" Mode="In" />
          <Parameter Name="LocationName" Type="varchar" Mode="In" />
          <Parameter Name="LocationAddress" Type="varchar" Mode="In" />
          <Parameter Name="DivisionTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ProvinceID" Type="smallint" Mode="In" />
          <Parameter Name="RegionID" Type="smallint" Mode="In" />
          <Parameter Name="LicencingBoardID" Type="smallint" Mode="In" />
          <Parameter Name="PaymentClerkUserID" Type="bigint" Mode="In" />
          <Parameter Name="AssessorUserID" Type="bigint" Mode="In" />
          <Parameter Name="SeniorManagerApproverUserID" Type="bigint" Mode="In" />
          <Parameter Name="InspectionCapturerUserID" Type="bigint" Mode="In" />
          <Parameter Name="ReferralCapturerUserID" Type="bigint" Mode="In" />
          <Parameter Name="HandlesGazetting" Type="bit" Mode="In" />
          <Parameter Name="GazetteNumberPrefix" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationOfficerUserID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationSecrataryUserID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationAgendaEmails" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationHearingQuorumCount" Type="smallint" Mode="In" />
          <Parameter Name="AdjudicationMeetingQuorumCount" Type="smallint" Mode="In" />
          <Parameter Name="MaxAdjudicationAutoApplicationCount" Type="smallint" Mode="In" />
          <Parameter Name="BusinessRuleBypassApproverUserID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationContactName" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationContactTelPhone" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationContactEmail" Type="varchar" Mode="In" />
          <Parameter Name="RouteCapturerUserID" Type="bigint" Mode="In" />
          <Parameter Name="RouteApproverUserID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleMakeCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="VehicleMakeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleMakeUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="VehicleMakeID" Type="smallint" Mode="In" />
          <Parameter Name="Description" Type="varchar" Mode="In" />
          <Parameter Name="IsCancelled" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleModelCancel" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="VehicleModelID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleModelUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Md">
          <Parameter Name="VehicleModelID" Type="smallint" Mode="In" />
          <Parameter Name="VehicleMakeID" Type="smallint" Mode="In" />
          <Parameter Name="Description" Type="varchar" Mode="In" />
          <Parameter Name="SeatedCapacityExcludingDriver" Type="smallint" Mode="In" />
          <Parameter Name="StandingCapacity" Type="smallint" Mode="In" />
          <Parameter Name="GrossWeight" Type="bigint" Mode="In" />
          <Parameter Name="TareWeight" Type="bigint" Mode="In" />
          <Parameter Name="VehicleTypeID" Type="smallint" Mode="In" />
          <Parameter Name="CarryingCapacityID" Type="smallint" Mode="In" />
          <Parameter Name="IsValidModel" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationConversionChangeType" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="NewApplicationRequestTypeID" Type="int" Mode="In" />
          <Parameter Name="Reason" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationLicenceVehicleTypeUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="NewVehicleTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationLicenseGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationLicenseSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRouteAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="NationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="BoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRouteRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="VerifiedRouteID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationNationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="ApplicationBoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationServiceTypeAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ServiceTypeDescription" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationServiceTypeRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceServiceDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationServiceTypeUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationLicenceServiceDetailID" Type="bigint" Mode="In" />
          <Parameter Name="NewServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_FindMember" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="IdNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetApplicationAllowedNewLicences" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetUserDataOnIdSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="OldIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="NewIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceServiceTypesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_GetUserDataOnIdSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="OldIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="NewIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_InsertAllowedNewLicence" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationAllowedNewLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="MemberName" Type="varchar" Mode="In" />
          <Parameter Name="IdNumberOrBusinessRegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="RegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="ApplicationAllowedNewLicenceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="ApplicationReferenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationLicenceRouteAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="LicenceIssueDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="NationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="BoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationLicenceRouteRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="VerifiedRouteID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceNationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="LicenceBoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchApplicationLicenceVehicleType" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationLicenceReferenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchApplicationRoutes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="AppReferenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchApplicationServiceTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="ApplicationLicenceReferenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchLicenceRoutes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="LirReferenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchLicenceServiceTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_SearchLicenceVehicleTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_UpdateIdNumber" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="OldIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="NewIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_UpdateMember" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="IdNumber" Type="varchar" Mode="In" />
          <Parameter Name="SurnameOrCompanyName" Type="varchar" Mode="In" />
          <Parameter Name="FirstNames" Type="varchar" Mode="In" />
          <Parameter Name="PostalAddress" Type="varchar" Mode="In" />
          <Parameter Name="PostalAddressCode" Type="varchar" Mode="In" />
          <Parameter Name="PhysicalAddress" Type="varchar" Mode="In" />
          <Parameter Name="PhysicalAddressCode" Type="varchar" Mode="In" />
          <Parameter Name="TelPhone" Type="varchar" Mode="In" />
          <Parameter Name="TelCell" Type="varchar" Mode="In" />
          <Parameter Name="TelFax" Type="varchar" Mode="In" />
          <Parameter Name="Email" Type="varchar" Mode="In" />
          <Parameter Name="SARSIncomeTaxNumber" Type="varchar" Mode="In" />
          <Parameter Name="TradeName" Type="varchar" Mode="In" />
          <Parameter Name="BusinessTypeID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VerifiedLicenceServiceTypesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Purification">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetSystemSettings" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="System">
          <Parameter Name="SettingName" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_SettingUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="System">
          <Parameter Name="SettingName" Type="varchar" Mode="In" />
          <Parameter Name="SettingValue" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_AccreditationSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="AccreditationNumber" Type="varchar" Mode="In" />
          <Parameter Name="MemberID" Type="bigint" Mode="In" />
          <Parameter Name="AccreditationStatusID" Type="bigint" Mode="In" />
          <Parameter Name="DateOfIssueStartDate" Type="datetime" Mode="In" />
          <Parameter Name="DateOfIssueEndDate" Type="datetime" Mode="In" />
          <Parameter Name="DateOfExpiryStartDate" Type="datetime" Mode="In" />
          <Parameter Name="DateOfExpiryEndDate" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AccreditationStatusUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="AccreditationID" Type="bigint" Mode="In" />
          <Parameter Name="AccreditationStatusID" Type="smallint" Mode="In" />
          <Parameter Name="IsTransactionRequired" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_AssociationRouteAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AssociationRouteRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AssociationRoutesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AssociationSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="SearchRegionID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationName" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceApplicationWorkflowGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceExceptionsCounts" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceExceptionsUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueTrackingExtend" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueTrackingFlag" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicencesToBeFlaggedAsSent" Type="varchar(max)" Mode="In" />
          <Parameter Name="p30DaysLetterSent" Type="bit" Mode="In" />
          <Parameter Name="p60DaysLetterSent" Type="bit" Mode="In" />
          <Parameter Name="p90DaysLetterSent" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueTrackingSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueWithoutPrint" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueWorkflowGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceRouteAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceRouteRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceRoutesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="MemberID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceStatusID" Type="bigint" Mode="In" />
          <Parameter Name="RegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="DateOfIssueStartDate" Type="datetime" Mode="In" />
          <Parameter Name="DateOfIssueEndDate" Type="datetime" Mode="In" />
          <Parameter Name="DateOfExpiryStartDate" Type="datetime" Mode="In" />
          <Parameter Name="DateOfExpiryEndDate" Type="datetime" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceSearchRelatedApplications" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceSearchRelatedIssues" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicencesExpiredInGracePeriodGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicencesOverdueUpliftmentsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceStatusSummary" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="SearchRegionID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceStatusUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceStatusID" Type="smallint" Mode="In" />
          <Parameter Name="IsTransactionRequired" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_LicencesUpcomingExpiresGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicencesWithExceptionGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="Exception" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceVehicleDelink" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="ReasonForDelink" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceWorkflowDocumentsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_MemberDetailsUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="MemberID" Type="bigint" Mode="In" />
          <Parameter Name="SurnameOrCompanyName" Type="varchar" Mode="In" />
          <Parameter Name="FirstNames" Type="varchar" Mode="In" />
          <Parameter Name="PostalAddress" Type="varchar" Mode="In" />
          <Parameter Name="PostalAddressCode" Type="varchar" Mode="In" />
          <Parameter Name="PhysicalAddress" Type="varchar" Mode="In" />
          <Parameter Name="PhysicalAddressCode" Type="varchar" Mode="In" />
          <Parameter Name="TelPhone" Type="varchar" Mode="In" />
          <Parameter Name="TelCell" Type="varchar" Mode="In" />
          <Parameter Name="TelFax" Type="varchar" Mode="In" />
          <Parameter Name="Email" Type="varchar" Mode="In" />
          <Parameter Name="SARSIncomeTaxNumber" Type="varchar" Mode="In" />
          <Parameter Name="TradeName" Type="varchar" Mode="In" />
          <Parameter Name="BusinessTypeID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_MemberGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="MemberID" Type="bigint" Mode="In" />
          <Parameter Name="IDNumberOrBusinessRegistrationNo" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_MemberSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="MemberName" Type="varchar" Mode="In" />
          <Parameter Name="MemberID" Type="varchar" Mode="In" />
          <Parameter Name="MemberEmail" Type="varchar" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PlaceUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="PlaceID" Type="bigint" Mode="In" />
          <Parameter Name="Description" Type="varchar" Mode="In" />
          <Parameter Name="PlaceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="OlasID" Type="bigint" Mode="In" />
          <Parameter Name="LtpsID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar" Mode="In" />
          <Parameter Name="ForceUpdateIfExists" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_PrintoutCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="PrintoutTypeID" Type="smallint" Mode="In" />
          <Parameter Name="PrintedByID" Type="bigint" Mode="In" />
          <Parameter Name="IsRePrint" Type="bit" Mode="In" />
          <Parameter Name="ReprintReason" Type="varchar" Mode="In" />
          <Parameter Name="IsTestPrint" Type="bit" Mode="In" />
          <Parameter Name="DocumentNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_PrintoutGetByToken" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VerificationToken" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PrintoutSaveData" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VerificationToken" Type="varchar" Mode="In" />
          <Parameter Name="Json" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PrintoutUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="VerificationToken" Type="varchar" Mode="In" />
          <Parameter Name="DocumentNumber" Type="varchar" Mode="In" />
          <Parameter Name="PrintedSuccussfully" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationLicenceServiceTypeAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="ServiceTypeDescription" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationLicenceServiceTypeRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceServcieDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_RouteAssociationSummary" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_RouteMerge" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="DestinationRouteID" Type="bigint" Mode="In" />
          <Parameter Name="ObsoleteRouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_RouteSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="OriginPlaceID" Type="bigint" Mode="In" />
          <Parameter Name="DestinationPlaceID" Type="bigint" Mode="In" />
          <Parameter Name="NationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="BoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="Description" Type="varchar" Mode="In" />
          <Parameter Name="RouteStatusID" Type="bigint" Mode="In" />
          <Parameter Name="RoutesInVerification" Type="bit" Mode="In" />
          <Parameter Name="ApplicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationRequestTypeID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_RouteSendToPurification" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleFlagVinAsCorrect" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VehicleID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleIsNotUsed" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="VIN" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="VinNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleSearchLinkedLicences" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VehicleID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_VehicleUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VehicleID" Type="bigint" Mode="In" />
          <Parameter Name="RegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="EngineNumber" Type="varchar" Mode="In" />
          <Parameter Name="VIN" Type="varchar" Mode="In" />
          <Parameter Name="SeatedCapacity" Type="int" Mode="In" />
          <Parameter Name="StandingCapacity" Type="int" Mode="In" />
          <Parameter Name="GrossMass" Type="bigint" Mode="In" />
          <Parameter Name="VehicleMakeID" Type="smallint" Mode="In" />
          <Parameter Name="VehicleModelID" Type="smallint" Mode="In" />
          <Parameter Name="VehicleTypeID" Type="smallint" Mode="In" />
          <Parameter Name="CarryingCapacityID" Type="smallint" Mode="In" />
          <Parameter Name="YearOfManufacture" Type="varchar" Mode="In" />
          <Parameter Name="Tare" Type="bigint" Mode="In" />
          <Parameter Name="CurrentOdometerReading" Type="bigint" Mode="In" />
          <Parameter Name="RoadworthyCertificateDocID" Type="bigint" Mode="In" />
          <Parameter Name="ProfessionalDriversPermitDocID" Type="bigint" Mode="In" />
          <Parameter Name="RankPermitDocID" Type="bigint" Mode="In" />
          <Parameter Name="CertificateOfRegistrationDocID" Type="bigint" Mode="In" />
          <Parameter Name="CertifiedServiceRecordsDocID" Type="bigint" Mode="In" />
          <Parameter Name="CertifiedPublicPassangerLiabilityDocID" Type="bigint" Mode="In" />
          <Parameter Name="OlasID" Type="bigint" Mode="In" />
          <Parameter Name="LtpsID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar" Mode="In" />
          <Parameter Name="ForceUpdateIfExists" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_VerifiedLicenceXmlGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="IDNumber" Type="varchar" Mode="In" />
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="RegistrationNumber" Type="varchar" Mode="In" />
          <Parameter Name="VehicleChassisNumber" Type="varchar" Mode="In" />
        </Function>
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="AdjudicationDecisions" EntityType="Self.AdjudicationDecisions" Schema="App" store:Type="Tables" />
          <EntitySet Name="AdjudicationDetails" EntityType="Self.AdjudicationDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="AdjudicationDetailStatus" EntityType="Self.AdjudicationDetailStatus" Schema="App" store:Type="Tables" />
          <EntitySet Name="AdjudicationPanel" EntityType="Self.AdjudicationPanel" Schema="App" store:Type="Tables" />
          <EntitySet Name="AdjudicationType" EntityType="Self.AdjudicationType" Schema="App" store:Type="Tables" />
          <EntitySet Name="GazetteDetails" EntityType="Self.GazetteDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="GazetteDetailStatus" EntityType="Self.GazetteDetailStatus" Schema="App" store:Type="Tables" />
          <EntitySet Name="GazetteTypes" EntityType="Self.GazetteTypes" Schema="App" store:Type="Tables" />
          <EntitySet Name="LicenceIssueDetails" EntityType="Self.LicenceIssueDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="LicenceIssueDocuments" EntityType="Self.LicenceIssueDocuments" Schema="App" store:Type="Tables" />
          <EntitySet Name="LicenceIssueInspectionDetails" EntityType="Self.LicenceIssueInspectionDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="LicenceIssueInspectionOutcomes" EntityType="Self.LicenceIssueInspectionOutcomes" Schema="App" store:Type="Tables" />
          <EntitySet Name="ReceiptDetails" EntityType="Self.ReceiptDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="Stationery" EntityType="Self.Stationery" Schema="App" store:Type="Tables" />
          <EntitySet Name="StationeryBatches" EntityType="Self.StationeryBatches" Schema="App" store:Type="Tables" />
          <EntitySet Name="DocumentTypeQuestions" EntityType="Self.DocumentTypeQuestions" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="DocumentTypes" EntityType="Self.DocumentTypes" Schema="Doc" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestTypeDivisionSetup" EntityType="Self.ApplicationRequestTypeDivisionSetup" Schema="Md" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestTypeDocumentSetup" EntityType="Self.ApplicationRequestTypeDocumentSetup" Schema="Md" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestTypes" EntityType="Self.ApplicationRequestTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="AssociationModes" EntityType="Self.AssociationModes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="AssociationTypes" EntityType="Self.AssociationTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="CarryingCapacities" EntityType="Self.CarryingCapacities" Schema="Md" store:Type="Tables" />
          <EntitySet Name="ContractTypes" EntityType="Self.ContractTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="DivisionTypeAnnexureMappings" EntityType="Self.DivisionTypeAnnexureMappings" Schema="Md" store:Type="Tables" />
          <EntitySet Name="DivisionTypes" EntityType="Self.DivisionTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="IDTypes" EntityType="Self.IDTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="Inspectors" EntityType="Self.Inspectors" Schema="Md" store:Type="Tables" />
          <EntitySet Name="LicenceDurations" EntityType="Self.LicenceDurations" Schema="Md" store:Type="Tables" />
          <EntitySet Name="LicencingBoards" EntityType="Self.LicencingBoards" Schema="Md" store:Type="Tables" />
          <EntitySet Name="OfficeLocationSetup" EntityType="Self.OfficeLocationSetup" Schema="Md" store:Type="Tables" />
          <EntitySet Name="OfficeLocationSetupDocumentTemplates" EntityType="Self.OfficeLocationSetupDocumentTemplates" Schema="Md" store:Type="Tables" />
          <EntitySet Name="PaymentTypes" EntityType="Self.PaymentTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="PlaceTypes" EntityType="Self.PlaceTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="Provinces" EntityType="Self.Provinces" Schema="Md" store:Type="Tables" />
          <EntitySet Name="Regions" EntityType="Self.Regions" Schema="Md" store:Type="Tables" />
          <EntitySet Name="RouteTypes" EntityType="Self.RouteTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="ServiceTypes" EntityType="Self.ServiceTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="ServiceVehicleTypes" EntityType="Self.ServiceVehicleTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="SourceApplications" EntityType="Self.SourceApplications" Schema="Md" store:Type="Tables" />
          <EntitySet Name="VehicleMakes" EntityType="Self.VehicleMakes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="VehicleModels" EntityType="Self.VehicleModels" Schema="Md" store:Type="Tables" />
          <EntitySet Name="VehicleTypes" EntityType="Self.VehicleTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="WaypointTypes" EntityType="Self.WaypointTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="ApplicationAllowedNewLicences" EntityType="Self.ApplicationAllowedNewLicences" Schema="Purification" store:Type="Tables" />
          <EntitySet Name="Settings" EntityType="Self.Settings" Schema="System" store:Type="Tables" />
          <EntitySet Name="Accreditations" EntityType="Self.Accreditations" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="AccreditationStatus" EntityType="Self.AccreditationStatus" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="AssociationMembers" EntityType="Self.AssociationMembers" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="AssociationRoutes" EntityType="Self.AssociationRoutes" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Associations" EntityType="Self.Associations" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="AssociationStatus" EntityType="Self.AssociationStatus" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="LicenceExceptions" EntityType="Self.LicenceExceptions" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="LicenceRoutes" EntityType="Self.LicenceRoutes" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Licences" EntityType="Self.Licences" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="LicenceServiceDetails" EntityType="Self.LicenceServiceDetails" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="LicenceStatus" EntityType="Self.LicenceStatus" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Members" EntityType="Self.Members" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="MemberStatus" EntityType="Self.MemberStatus" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Places" EntityType="Self.Places" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Routes" EntityType="Self.Routes" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="RouteStatus" EntityType="Self.RouteStatus" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Vehicles" EntityType="Self.Vehicles" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Vw_AdjudicationApplicationDetails" EntityType="Self.Vw_AdjudicationApplicationDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_AdjudicationApplicationDetails].[ApplicationAdjudicationID] AS [ApplicationAdjudicationID], 
    [Vw_AdjudicationApplicationDetails].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_AdjudicationApplicationDetails].[ApplicationLicenceID] AS [ApplicationLicenceID], 
    [Vw_AdjudicationApplicationDetails].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_AdjudicationApplicationDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_AdjudicationApplicationDetails].[FirstNames] AS [FirstNames], 
    [Vw_AdjudicationApplicationDetails].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_AdjudicationApplicationDetails].[Title] AS [Title], 
    [Vw_AdjudicationApplicationDetails].[Association] AS [Association], 
    [Vw_AdjudicationApplicationDetails].[Decision] AS [Decision], 
    [Vw_AdjudicationApplicationDetails].[DecisionID] AS [DecisionID], 
    [Vw_AdjudicationApplicationDetails].[DecisionComments] AS [DecisionComments], 
    [Vw_AdjudicationApplicationDetails].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_AdjudicationApplicationDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_AdjudicationApplicationDetails].[RequestType] AS [RequestType], 
    [Vw_AdjudicationApplicationDetails].[Member] AS [Member], 
    [Vw_AdjudicationApplicationDetails].[TelCell] AS [TelCell], 
    [Vw_AdjudicationApplicationDetails].[HasObjections] AS [HasObjections], 
    [Vw_AdjudicationApplicationDetails].[LicenceCount] AS [LicenceCount], 
    [Vw_AdjudicationApplicationDetails].[AdjudicationException] AS [AdjudicationException], 
    [Vw_AdjudicationApplicationDetails].[IsReadyForAdjudication] AS [IsReadyForAdjudication]
    FROM [App].[Vw_AdjudicationApplicationDetails] AS [Vw_AdjudicationApplicationDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_AdjudicationDetails" EntityType="Self.Vw_AdjudicationDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_AdjudicationDetails].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_AdjudicationDetails].[AdjudicationTypeID] AS [AdjudicationTypeID], 
    [Vw_AdjudicationDetails].[AdjudicationType] AS [AdjudicationType], 
    [Vw_AdjudicationDetails].[AdjudicationDetailStatusID] AS [AdjudicationDetailStatusID], 
    [Vw_AdjudicationDetails].[ProvinceID] AS [ProvinceID], 
    [Vw_AdjudicationDetails].[Province] AS [Province], 
    [Vw_AdjudicationDetails].[MeetingDate] AS [MeetingDate], 
    [Vw_AdjudicationDetails].[MeetingPlace] AS [MeetingPlace], 
    [Vw_AdjudicationDetails].[MeetingTime] AS [MeetingTime], 
    [Vw_AdjudicationDetails].[PreAdjudicationNotificationsSent] AS [PreAdjudicationNotificationsSent], 
    [Vw_AdjudicationDetails].[PreAdjudicationLettersSent] AS [PreAdjudicationLettersSent], 
    [Vw_AdjudicationDetails].[PreAdjudicationObjectionNotificationsSent] AS [PreAdjudicationObjectionNotificationsSent], 
    [Vw_AdjudicationDetails].[PreAdjudicationObjectionLettersSent] AS [PreAdjudicationObjectionLettersSent], 
    [Vw_AdjudicationDetails].[PostAdjudicationNotificationsSent] AS [PostAdjudicationNotificationsSent], 
    [Vw_AdjudicationDetails].[PostAdjudicationLettersSent] AS [PostAdjudicationLettersSent], 
    [Vw_AdjudicationDetails].[Region] AS [Region], 
    [Vw_AdjudicationDetails].[CreatedByID] AS [CreatedByID], 
    [Vw_AdjudicationDetails].[CreatedDate] AS [CreatedDate], 
    [Vw_AdjudicationDetails].[UpdatedByID] AS [UpdatedByID], 
    [Vw_AdjudicationDetails].[UpdatedDate] AS [UpdatedDate], 
    [Vw_AdjudicationDetails].[AdjudicationFinalisedDate] AS [AdjudicationFinalisedDate], 
    [Vw_AdjudicationDetails].[AdjudicationNumber] AS [AdjudicationNumber]
    FROM [App].[Vw_AdjudicationDetails] AS [Vw_AdjudicationDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_AdjudicationPanel" EntityType="Self.Vw_AdjudicationPanel" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_AdjudicationPanel].[AdjudicationPanelID] AS [AdjudicationPanelID], 
    [Vw_AdjudicationPanel].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_AdjudicationPanel].[PanelMemberUserID] AS [PanelMemberUserID], 
    [Vw_AdjudicationPanel].[HasAttended] AS [HasAttended], 
    [Vw_AdjudicationPanel].[IsChairman] AS [IsChairman], 
    [Vw_AdjudicationPanel].[DateConfirmed] AS [DateConfirmed], 
    [Vw_AdjudicationPanel].[AddedAfterStart] AS [AddedAfterStart], 
    [Vw_AdjudicationPanel].[FullName] AS [FullName], 
    [Vw_AdjudicationPanel].[Attended] AS [Attended]
    FROM [App].[Vw_AdjudicationPanel] AS [Vw_AdjudicationPanel]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationDetails" EntityType="Self.Vw_ApplicationDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ApplicationDetails].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_ApplicationDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_ApplicationDetails].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_ApplicationDetails].[RequestType] AS [RequestType], 
    [Vw_ApplicationDetails].[IncludeRenewalType] AS [IncludeRenewalType], 
    [Vw_ApplicationDetails].[Cost] AS [Cost], 
    [Vw_ApplicationDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_ApplicationDetails].[FirstNames] AS [FirstNames], 
    [Vw_ApplicationDetails].[TradeName] AS [TradeName], 
    [Vw_ApplicationDetails].[Member] AS [Member], 
    [Vw_ApplicationDetails].[VerifiedMemberID] AS [VerifiedMemberID], 
    [Vw_ApplicationDetails].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_ApplicationDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_ApplicationDetails].[SourceApplicationID] AS [SourceApplicationID], 
    [Vw_ApplicationDetails].[IsNewRouteRequired] AS [IsNewRouteRequired], 
    [Vw_ApplicationDetails].[IsExceptionRequired] AS [IsExceptionRequired], 
    [Vw_ApplicationDetails].[IsUpliftmentRequired] AS [IsUpliftmentRequired], 
    [Vw_ApplicationDetails].[IsAdjustmentRequired] AS [IsAdjustmentRequired], 
    [Vw_ApplicationDetails].[IsCancellationRequired] AS [IsCancellationRequired], 
    [Vw_ApplicationDetails].[GazetteNumber] AS [GazetteNumber], 
    [Vw_ApplicationDetails].[GazetteDetailID] AS [GazetteDetailID], 
    [Vw_ApplicationDetails].[LicenceCount] AS [LicenceCount], 
    [Vw_ApplicationDetails].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_ApplicationDetails].[IsRenewal] AS [IsRenewal], 
    [Vw_ApplicationDetails].[AssociationName] AS [AssociationName], 
    [Vw_ApplicationDetails].[TaxNumber] AS [TaxNumber], 
    [Vw_ApplicationDetails].[ProxyName] AS [ProxyName], 
    [Vw_ApplicationDetails].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationDetails].[AdjudicationComment] AS [AdjudicationComment], 
    [Vw_ApplicationDetails].[TelCell] AS [TelCell], 
    [Vw_ApplicationDetails].[TelPhone] AS [TelPhone], 
    [Vw_ApplicationDetails].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_ApplicationDetails].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_ApplicationDetails].[ProvinceID] AS [ProvinceID], 
    [Vw_ApplicationDetails].[RegionID] AS [RegionID], 
    [Vw_ApplicationDetails].[AdjudicationOfficeLocationID] AS [AdjudicationOfficeLocationID], 
    [Vw_ApplicationDetails].[ExistingLicenceHolder] AS [ExistingLicenceHolder], 
    [Vw_ApplicationDetails].[ExistingLicenceHolderID] AS [ExistingLicenceHolderID], 
    [Vw_ApplicationDetails].[Region] AS [Region], 
    [Vw_ApplicationDetails].[WorkflowStatus] AS [WorkflowStatus], 
    [Vw_ApplicationDetails].[IsAdjudicationBypassed] AS [IsAdjudicationBypassed], 
    [Vw_ApplicationDetails].[IsGazettingBypassed] AS [IsGazettingBypassed], 
    [Vw_ApplicationDetails].[IsAssessorApprovalRequired] AS [IsAssessorApprovalRequired], 
    [Vw_ApplicationDetails].[IsSeniorManagerApprovalRequired] AS [IsSeniorManagerApprovalRequired], 
    [Vw_ApplicationDetails].[HasNewRoute] AS [HasNewRoute], 
    [Vw_ApplicationDetails].[IsAutoVerificationRequired] AS [IsAutoVerificationRequired], 
    [Vw_ApplicationDetails].[IsLtpsConversion] AS [IsLtpsConversion], 
    [Vw_ApplicationDetails].[ProxyIDNumber] AS [ProxyIDNumber], 
    [Vw_ApplicationDetails].[AdjudicationCount] AS [AdjudicationCount], 
    [Vw_ApplicationDetails].[PhysicalAddress] AS [PhysicalAddress], 
    [Vw_ApplicationDetails].[PhysicalAddressCode] AS [PhysicalAddressCode], 
    [Vw_ApplicationDetails].[PostalAddress] AS [PostalAddress], 
    [Vw_ApplicationDetails].[PostalAddressCode] AS [PostalAddressCode], 
    [Vw_ApplicationDetails].[VerifiedAssociationID] AS [VerifiedAssociationID], 
    [Vw_ApplicationDetails].[IsGazettingRequired] AS [IsGazettingRequired], 
    [Vw_ApplicationDetails].[IsInspectionRequired] AS [IsInspectionRequired], 
    [Vw_ApplicationDetails].[IsReferralRequired] AS [IsReferralRequired], 
    [Vw_ApplicationDetails].[IsBusAndContract] AS [IsBusAndContract], 
    [Vw_ApplicationDetails].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_ApplicationDetails].[IsApplicantIndividual] AS [IsApplicantIndividual], 
    [Vw_ApplicationDetails].[ApplicationIsObjected] AS [ApplicationIsObjected], 
    [Vw_ApplicationDetails].[OnlyExistingRoutesOnLicense] AS [OnlyExistingRoutesOnLicense], 
    [Vw_ApplicationDetails].[IsAllowedNewLicence] AS [IsAllowedNewLicence], 
    [Vw_ApplicationDetails].[ForceGazetting] AS [ForceGazetting], 
    [Vw_ApplicationDetails].[AdjudicationTypeID] AS [AdjudicationTypeID], 
    [Vw_ApplicationDetails].[ApplicationStatusID] AS [ApplicationStatusID], 
    [Vw_ApplicationDetails].[ApplicationSubStatusID] AS [ApplicationSubStatusID], 
    [Vw_ApplicationDetails].[ApplicationCannoutBeAutoAssignedForAdjudication] AS [ApplicationCannoutBeAutoAssignedForAdjudication]
    FROM [App].[Vw_ApplicationDetails] AS [Vw_ApplicationDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationDetails_InProgress" EntityType="Self.Vw_ApplicationDetails_InProgress" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ApplicationDetails_InProgress].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_ApplicationDetails_InProgress].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_ApplicationDetails_InProgress].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_ApplicationDetails_InProgress].[RequestType] AS [RequestType], 
    [Vw_ApplicationDetails_InProgress].[IncludeRenewalType] AS [IncludeRenewalType], 
    [Vw_ApplicationDetails_InProgress].[Cost] AS [Cost], 
    [Vw_ApplicationDetails_InProgress].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_ApplicationDetails_InProgress].[FirstNames] AS [FirstNames], 
    [Vw_ApplicationDetails_InProgress].[TradeName] AS [TradeName], 
    [Vw_ApplicationDetails_InProgress].[Member] AS [Member], 
    [Vw_ApplicationDetails_InProgress].[VerifiedMemberID] AS [VerifiedMemberID], 
    [Vw_ApplicationDetails_InProgress].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_ApplicationDetails_InProgress].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_ApplicationDetails_InProgress].[SourceApplicationID] AS [SourceApplicationID], 
    [Vw_ApplicationDetails_InProgress].[IsNewRouteRequired] AS [IsNewRouteRequired], 
    [Vw_ApplicationDetails_InProgress].[IsExceptionRequired] AS [IsExceptionRequired], 
    [Vw_ApplicationDetails_InProgress].[IsUpliftmentRequired] AS [IsUpliftmentRequired], 
    [Vw_ApplicationDetails_InProgress].[IsAdjustmentRequired] AS [IsAdjustmentRequired], 
    [Vw_ApplicationDetails_InProgress].[IsCancellationRequired] AS [IsCancellationRequired], 
    [Vw_ApplicationDetails_InProgress].[GazetteNumber] AS [GazetteNumber], 
    [Vw_ApplicationDetails_InProgress].[GazetteDetailID] AS [GazetteDetailID], 
    [Vw_ApplicationDetails_InProgress].[LicenceCount] AS [LicenceCount], 
    [Vw_ApplicationDetails_InProgress].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_ApplicationDetails_InProgress].[IsRenewal] AS [IsRenewal], 
    [Vw_ApplicationDetails_InProgress].[AssociationName] AS [AssociationName], 
    [Vw_ApplicationDetails_InProgress].[TaxNumber] AS [TaxNumber], 
    [Vw_ApplicationDetails_InProgress].[ProxyName] AS [ProxyName], 
    [Vw_ApplicationDetails_InProgress].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationDetails_InProgress].[AdjudicationComment] AS [AdjudicationComment], 
    [Vw_ApplicationDetails_InProgress].[TelCell] AS [TelCell], 
    [Vw_ApplicationDetails_InProgress].[TelPhone] AS [TelPhone], 
    [Vw_ApplicationDetails_InProgress].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_ApplicationDetails_InProgress].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_ApplicationDetails_InProgress].[ProvinceID] AS [ProvinceID], 
    [Vw_ApplicationDetails_InProgress].[RegionID] AS [RegionID], 
    [Vw_ApplicationDetails_InProgress].[AdjudicationOfficeLocationID] AS [AdjudicationOfficeLocationID], 
    [Vw_ApplicationDetails_InProgress].[ExistingLicenceHolder] AS [ExistingLicenceHolder], 
    [Vw_ApplicationDetails_InProgress].[ExistingLicenceHolderID] AS [ExistingLicenceHolderID], 
    [Vw_ApplicationDetails_InProgress].[Region] AS [Region], 
    [Vw_ApplicationDetails_InProgress].[WorkflowStatus] AS [WorkflowStatus], 
    [Vw_ApplicationDetails_InProgress].[IsAdjudicationBypassed] AS [IsAdjudicationBypassed], 
    [Vw_ApplicationDetails_InProgress].[IsGazettingBypassed] AS [IsGazettingBypassed], 
    [Vw_ApplicationDetails_InProgress].[IsAssessorApprovalRequired] AS [IsAssessorApprovalRequired], 
    [Vw_ApplicationDetails_InProgress].[IsSeniorManagerApprovalRequired] AS [IsSeniorManagerApprovalRequired], 
    [Vw_ApplicationDetails_InProgress].[HasNewRoute] AS [HasNewRoute], 
    [Vw_ApplicationDetails_InProgress].[IsAutoVerificationRequired] AS [IsAutoVerificationRequired], 
    [Vw_ApplicationDetails_InProgress].[IsLtpsConversion] AS [IsLtpsConversion], 
    [Vw_ApplicationDetails_InProgress].[ProxyIDNumber] AS [ProxyIDNumber], 
    [Vw_ApplicationDetails_InProgress].[AdjudicationCount] AS [AdjudicationCount], 
    [Vw_ApplicationDetails_InProgress].[PhysicalAddress] AS [PhysicalAddress], 
    [Vw_ApplicationDetails_InProgress].[PhysicalAddressCode] AS [PhysicalAddressCode], 
    [Vw_ApplicationDetails_InProgress].[PostalAddress] AS [PostalAddress], 
    [Vw_ApplicationDetails_InProgress].[PostalAddressCode] AS [PostalAddressCode], 
    [Vw_ApplicationDetails_InProgress].[VerifiedAssociationID] AS [VerifiedAssociationID], 
    [Vw_ApplicationDetails_InProgress].[IsGazettingRequired] AS [IsGazettingRequired], 
    [Vw_ApplicationDetails_InProgress].[IsInspectionRequired] AS [IsInspectionRequired], 
    [Vw_ApplicationDetails_InProgress].[IsReferralRequired] AS [IsReferralRequired], 
    [Vw_ApplicationDetails_InProgress].[IsBusAndContract] AS [IsBusAndContract], 
    [Vw_ApplicationDetails_InProgress].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_ApplicationDetails_InProgress].[IsApplicantIndividual] AS [IsApplicantIndividual], 
    [Vw_ApplicationDetails_InProgress].[ApplicationIsObjected] AS [ApplicationIsObjected], 
    [Vw_ApplicationDetails_InProgress].[OnlyExistingRoutesOnLicense] AS [OnlyExistingRoutesOnLicense], 
    [Vw_ApplicationDetails_InProgress].[IsAllowedNewLicence] AS [IsAllowedNewLicence], 
    [Vw_ApplicationDetails_InProgress].[ForceGazetting] AS [ForceGazetting], 
    [Vw_ApplicationDetails_InProgress].[AdjudicationTypeID] AS [AdjudicationTypeID], 
    [Vw_ApplicationDetails_InProgress].[ApplicationStatusID] AS [ApplicationStatusID], 
    [Vw_ApplicationDetails_InProgress].[ApplicationSubStatusID] AS [ApplicationSubStatusID], 
    [Vw_ApplicationDetails_InProgress].[ApplicationCannoutBeAutoAssignedForAdjudication] AS [ApplicationCannoutBeAutoAssignedForAdjudication]
    FROM [App].[Vw_ApplicationDetails_InProgress] AS [Vw_ApplicationDetails_InProgress]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationDetails_Light" EntityType="Self.Vw_ApplicationDetails_Light" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ApplicationDetails_Light].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_ApplicationDetails_Light].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_ApplicationDetails_Light].[WorkflowTemplateID] AS [WorkflowTemplateID], 
    [Vw_ApplicationDetails_Light].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_ApplicationDetails_Light].[ProvinceID] AS [ProvinceID], 
    [Vw_ApplicationDetails_Light].[RegionID] AS [RegionID], 
    [Vw_ApplicationDetails_Light].[LicenceCount] AS [LicenceCount], 
    [Vw_ApplicationDetails_Light].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_ApplicationDetails_Light].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_ApplicationDetails_Light].[RequestType] AS [RequestType], 
    [Vw_ApplicationDetails_Light].[IncludeRenewalType] AS [IncludeRenewalType], 
    [Vw_ApplicationDetails_Light].[Member] AS [Member], 
    [Vw_ApplicationDetails_Light].[TelCell] AS [TelCell], 
    [Vw_ApplicationDetails_Light].[Email] AS [Email], 
    [Vw_ApplicationDetails_Light].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationDetails_Light].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_ApplicationDetails_Light].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_ApplicationDetails_Light].[AdjudicationCount] AS [AdjudicationCount], 
    [Vw_ApplicationDetails_Light].[AdjudicationOfficeLocationID] AS [AdjudicationOfficeLocationID], 
    [Vw_ApplicationDetails_Light].[IsReceiptRequired] AS [IsReceiptRequired], 
    [Vw_ApplicationDetails_Light].[IsAdjudicationRequired] AS [IsAdjudicationRequired], 
    [Vw_ApplicationDetails_Light].[IsAdjustmentRequired] AS [IsAdjustmentRequired], 
    [Vw_ApplicationDetails_Light].[IsGazettingRequired] AS [IsGazettingRequired], 
    [Vw_ApplicationDetails_Light].[IsGazettingBypassed] AS [IsGazettingBypassed], 
    [Vw_ApplicationDetails_Light].[IsInspectionRequired] AS [IsInspectionRequired], 
    [Vw_ApplicationDetails_Light].[IsReferralRequired] AS [IsReferralRequired], 
    [Vw_ApplicationDetails_Light].[IsBusAndContract] AS [IsBusAndContract], 
    [Vw_ApplicationDetails_Light].[GazetteDetailID] AS [GazetteDetailID], 
    [Vw_ApplicationDetails_Light].[IsLtpsConversion] AS [IsLtpsConversion], 
    [Vw_ApplicationDetails_Light].[IsAdjudicationBypassed] AS [IsAdjudicationBypassed], 
    [Vw_ApplicationDetails_Light].[WorkflowInstanceReference] AS [WorkflowInstanceReference], 
    [Vw_ApplicationDetails_Light].[ApplicationStatusID] AS [ApplicationStatusID], 
    [Vw_ApplicationDetails_Light].[ApplicationSubStatusID] AS [ApplicationSubStatusID], 
    [Vw_ApplicationDetails_Light].[LiveryDocumentID] AS [LiveryDocumentID], 
    [Vw_ApplicationDetails_Light].[IsNewRouteRequired] AS [IsNewRouteRequired], 
    [Vw_ApplicationDetails_Light].[IsAssessorApprovalRequired] AS [IsAssessorApprovalRequired], 
    [Vw_ApplicationDetails_Light].[IsSeniorManagerApprovalRequired] AS [IsSeniorManagerApprovalRequired], 
    [Vw_ApplicationDetails_Light].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_ApplicationDetails_Light].[LastAdjudicationDecisionID] AS [LastAdjudicationDecisionID], 
    [Vw_ApplicationDetails_Light].[TotalVehicles] AS [TotalVehicles], 
    [Vw_ApplicationDetails_Light].[IDType] AS [IDType], 
    [Vw_ApplicationDetails_Light].[IsRenewal] AS [IsRenewal], 
    [Vw_ApplicationDetails_Light].[IsFinalisationTasksRequired] AS [IsFinalisationTasksRequired], 
    [Vw_ApplicationDetails_Light].[ProxyIDNumber] AS [ProxyIDNumber], 
    [Vw_ApplicationDetails_Light].[IsApplicantIndividual] AS [IsApplicantIndividual], 
    [Vw_ApplicationDetails_Light].[ApplicationIsObjected] AS [ApplicationIsObjected], 
    [Vw_ApplicationDetails_Light].[OnlyExistingRoutesOnLicense] AS [OnlyExistingRoutesOnLicense], 
    [Vw_ApplicationDetails_Light].[IsAllowedNewLicence] AS [IsAllowedNewLicence], 
    [Vw_ApplicationDetails_Light].[ForceGazetting] AS [ForceGazetting], 
    [Vw_ApplicationDetails_Light].[AdjudicationTypeID] AS [AdjudicationTypeID], 
    [Vw_ApplicationDetails_Light].[PREDataReleased] AS [PREDataReleased], 
    [Vw_ApplicationDetails_Light].[CopiedFromApplicationDetailID] AS [CopiedFromApplicationDetailID], 
    [Vw_ApplicationDetails_Light].[RelatedTATApplicationRequestID] AS [RelatedTATApplicationRequestID], 
    [Vw_ApplicationDetails_Light].[CreatedDate] AS [CreatedDate], 
    [Vw_ApplicationDetails_Light].[RequiresProxy] AS [RequiresProxy], 
    [Vw_ApplicationDetails_Light].[ApplicantProvinceID] AS [ApplicantProvinceID], 
    [Vw_ApplicationDetails_Light].[ApplicantRegionID] AS [ApplicantRegionID], 
    [Vw_ApplicationDetails_Light].[ServiceTypeID] AS [ServiceTypeID], 
    [Vw_ApplicationDetails_Light].[ServiceTypeDescription] AS [ServiceTypeDescription], 
    [Vw_ApplicationDetails_Light].[GazetteNoticeExpiryDate] AS [GazetteNoticeExpiryDate]
    FROM [App].[Vw_ApplicationDetails_Light] AS [Vw_ApplicationDetails_Light]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationDetails_Receipts" EntityType="Self.Vw_ApplicationDetails_Receipts" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ApplicationDetails_Receipts].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_ApplicationDetails_Receipts].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_ApplicationDetails_Receipts].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_ApplicationDetails_Receipts].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_ApplicationDetails_Receipts].[RequestType] AS [RequestType], 
    [Vw_ApplicationDetails_Receipts].[Cost] AS [Cost], 
    [Vw_ApplicationDetails_Receipts].[Member] AS [Member], 
    [Vw_ApplicationDetails_Receipts].[ReceiptNumber] AS [ReceiptNumber], 
    [Vw_ApplicationDetails_Receipts].[ReceiptDetailID] AS [ReceiptDetailID], 
    [Vw_ApplicationDetails_Receipts].[PaymentTypeID] AS [PaymentTypeID], 
    [Vw_ApplicationDetails_Receipts].[LicenceCount] AS [LicenceCount], 
    [Vw_ApplicationDetails_Receipts].[ChassisNumber] AS [ChassisNumber], 
    [Vw_ApplicationDetails_Receipts].[EngineNumber] AS [EngineNumber], 
    [Vw_ApplicationDetails_Receipts].[VehicleRegNumber] AS [VehicleRegNumber], 
    [Vw_ApplicationDetails_Receipts].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationDetails_Receipts].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_ApplicationDetails_Receipts].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_ApplicationDetails_Receipts].[AdjudicationCount] AS [AdjudicationCount]
    FROM [App].[Vw_ApplicationDetails_Receipts] AS [Vw_ApplicationDetails_Receipts]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_GazetteApplications" EntityType="Self.Vw_GazetteApplications" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_GazetteApplications].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_GazetteApplications].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_GazetteApplications].[Description] AS [Description], 
    [Vw_GazetteApplications].[Member] AS [Member], 
    [Vw_GazetteApplications].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_GazetteApplications].[RequestType] AS [RequestType], 
    [Vw_GazetteApplications].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_GazetteApplications].[WorkflowTemplateStepID] AS [WorkflowTemplateStepID], 
    [Vw_GazetteApplications].[GazetteDetailID] AS [GazetteDetailID], 
    [Vw_GazetteApplications].[GazetteNumber] AS [GazetteNumber], 
    [Vw_GazetteApplications].[GazetteDetailStatusID] AS [GazetteDetailStatusID], 
    [Vw_GazetteApplications].[IsGazettingBypassed] AS [IsGazettingBypassed], 
    [Vw_GazetteApplications].[Region] AS [Region]
    FROM [App].[Vw_GazetteApplications] AS [Vw_GazetteApplications]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_LicenceCancelDetails" EntityType="Self.Vw_LicenceCancelDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_LicenceCancelDetails].[LicenceCancelDetailID] AS [LicenceCancelDetailID], 
    [Vw_LicenceCancelDetails].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_LicenceCancelDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_LicenceCancelDetails].[LicenceCancelNumber] AS [LicenceCancelNumber], 
    [Vw_LicenceCancelDetails].[OperatingLicenceNumber] AS [OperatingLicenceNumber], 
    [Vw_LicenceCancelDetails].[DateOfIssue] AS [DateOfIssue], 
    [Vw_LicenceCancelDetails].[DateOfExpiry] AS [DateOfExpiry], 
    [Vw_LicenceCancelDetails].[NameOnLicence] AS [NameOnLicence], 
    [Vw_LicenceCancelDetails].[CertificateNumber] AS [CertificateNumber], 
    [Vw_LicenceCancelDetails].[LicenceStatus] AS [LicenceStatus]
    FROM [App].[Vw_LicenceCancelDetails] AS [Vw_LicenceCancelDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_LicenceIssueDetails" EntityType="Self.Vw_LicenceIssueDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_LicenceIssueDetails].[LicenceIssueDetailID] AS [LicenceIssueDetailID], 
    [Vw_LicenceIssueDetails].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_LicenceIssueDetails].[VerifiedLicenceID] AS [VerifiedLicenceID], 
    [Vw_LicenceIssueDetails].[VerifiedVehicleID] AS [VerifiedVehicleID], 
    [Vw_LicenceIssueDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_LicenceIssueDetails].[LicenceReferenceNumber] AS [LicenceReferenceNumber], 
    [Vw_LicenceIssueDetails].[ApplicationReferenceNumber] AS [ApplicationReferenceNumber], 
    [Vw_LicenceIssueDetails].[RequestType] AS [RequestType], 
    [Vw_LicenceIssueDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_LicenceIssueDetails].[VehicleRegNumber] AS [VehicleRegNumber], 
    [Vw_LicenceIssueDetails].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_LicenceIssueDetails].[CertificateNumber] AS [CertificateNumber], 
    [Vw_LicenceIssueDetails].[IsStillToBeAcquired] AS [IsStillToBeAcquired], 
    [Vw_LicenceIssueDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_LicenceIssueDetails].[MemberFullName] AS [MemberFullName], 
    [Vw_LicenceIssueDetails].[MemberTaxReference] AS [MemberTaxReference], 
    [Vw_LicenceIssueDetails].[MemberIDNumber] AS [MemberIDNumber], 
    [Vw_LicenceIssueDetails].[MemberCell] AS [MemberCell], 
    [Vw_LicenceIssueDetails].[Association] AS [Association], 
    [Vw_LicenceIssueDetails].[VehicleVIN] AS [VehicleVIN], 
    [Vw_LicenceIssueDetails].[VehicleEngineNumber] AS [VehicleEngineNumber], 
    [Vw_LicenceIssueDetails].[VehicleRegistrationNumber] AS [VehicleRegistrationNumber], 
    [Vw_LicenceIssueDetails].[VehicleMake] AS [VehicleMake], 
    [Vw_LicenceIssueDetails].[VehicleSeatedCapacity] AS [VehicleSeatedCapacity], 
    [Vw_LicenceIssueDetails].[VehicleStandingCapacity] AS [VehicleStandingCapacity], 
    [Vw_LicenceIssueDetails].[AccreditationID] AS [AccreditationID], 
    [Vw_LicenceIssueDetails].[OperatingLicenceNumber] AS [OperatingLicenceNumber], 
    [Vw_LicenceIssueDetails].[DateOfIssue] AS [DateOfIssue], 
    [Vw_LicenceIssueDetails].[AccreditationNumber] AS [AccreditationNumber], 
    [Vw_LicenceIssueDetails].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_LicenceIssueDetails].[ProvinceID] AS [ProvinceID], 
    [Vw_LicenceIssueDetails].[IsDocumentVerificationRequired] AS [IsDocumentVerificationRequired]
    FROM [App].[Vw_LicenceIssueDetails] AS [Vw_LicenceIssueDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_LicenceUpliftmentExtensionRequestDetails" EntityType="Self.Vw_LicenceUpliftmentExtensionRequestDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[LicenceUpliftmentExtensionRequestDetailID] AS [LicenceUpliftmentExtensionRequestDetailID], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[VerifiedLicenceID] AS [VerifiedLicenceID], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[LicenceUpliftmentReferenceNumber] AS [LicenceUpliftmentReferenceNumber], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[CertificateNumber] AS [CertificateNumber], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[MemberFullName] AS [MemberFullName], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[MemberTaxReference] AS [MemberTaxReference], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[MemberIDNumber] AS [MemberIDNumber], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[MemberCell] AS [MemberCell], 
    [Vw_LicenceUpliftmentExtensionRequestDetails].[WorkflowInstanceStatusID] AS [WorkflowInstanceStatusID]
    FROM [App].[Vw_LicenceUpliftmentExtensionRequestDetails] AS [Vw_LicenceUpliftmentExtensionRequestDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_NewRouteRequestDetails" EntityType="Self.Vw_NewRouteRequestDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_NewRouteRequestDetails].[NewRouteRequestDetailID] AS [NewRouteRequestDetailID], 
    [Vw_NewRouteRequestDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_NewRouteRequestDetails].[VerifiedRouteID] AS [VerifiedRouteID], 
    [Vw_NewRouteRequestDetails].[RouteOrigin] AS [RouteOrigin], 
    [Vw_NewRouteRequestDetails].[RouteDestination] AS [RouteDestination], 
    [Vw_NewRouteRequestDetails].[RouteDescription] AS [RouteDescription], 
    [Vw_NewRouteRequestDetails].[NationalRouteNumber] AS [NationalRouteNumber], 
    [Vw_NewRouteRequestDetails].[BoardRouteNumber] AS [BoardRouteNumber], 
    [Vw_NewRouteRequestDetails].[RouteLength] AS [RouteLength], 
    [Vw_NewRouteRequestDetails].[ReferenceNumber] AS [ReferenceNumber], 
    [Vw_NewRouteRequestDetails].[WorkflowInstanceStatus] AS [WorkflowInstanceStatus], 
    [Vw_NewRouteRequestDetails].[EntityID] AS [EntityID], 
    [Vw_NewRouteRequestDetails].[ItemID] AS [ItemID], 
    [Vw_NewRouteRequestDetails].[IsAssessorVerificationRequired] AS [IsAssessorVerificationRequired], 
    [Vw_NewRouteRequestDetails].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_NewRouteRequestDetails].[ProvinceID] AS [ProvinceID]
    FROM [App].[Vw_NewRouteRequestDetails] AS [Vw_NewRouteRequestDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ReceiptDetails" EntityType="Self.Vw_ReceiptDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ReceiptDetails].[ReceiptDetailID] AS [ReceiptDetailID], 
    [Vw_ReceiptDetails].[ReceiptNumber] AS [ReceiptNumber], 
    [Vw_ReceiptDetails].[TotalCost] AS [TotalCost], 
    [Vw_ReceiptDetails].[PaymentType] AS [PaymentType], 
    [Vw_ReceiptDetails].[ApplicantData] AS [ApplicantData], 
    [Vw_ReceiptDetails].[ReceiptItems] AS [ReceiptItems], 
    [Vw_ReceiptDetails].[CreatedDate] AS [CreatedDate], 
    [Vw_ReceiptDetails].[CreatedById] AS [CreatedById], 
    [Vw_ReceiptDetails].[ReceiptBatchID] AS [ReceiptBatchID], 
    [Vw_ReceiptDetails].[AssociationName] AS [AssociationName], 
    [Vw_ReceiptDetails].[PaymentTypeID] AS [PaymentTypeID], 
    [Vw_ReceiptDetails].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_ReceiptDetails].[OfficeLocationID] AS [OfficeLocationID]
    FROM [App].[Vw_ReceiptDetails] AS [Vw_ReceiptDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationRequestTypeDivisionSetup" EntityType="Self.Vw_ApplicationRequestTypeDivisionSetup" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_ApplicationRequestTypeDivisionSetup].[ApplicationRequestTypeDivisionSetupID] AS [ApplicationRequestTypeDivisionSetupID], 
    [Vw_ApplicationRequestTypeDivisionSetup].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_ApplicationRequestTypeDivisionSetup].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_ApplicationRequestTypeDivisionSetup].[ProvinceID] AS [ProvinceID], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsAssessorApprovalRequiredRule] AS [IsAssessorApprovalRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsSeniorManagerApprovalRequiredRule] AS [IsSeniorManagerApprovalRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsFinalisationTasksRequiredRule] AS [IsFinalisationTasksRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsInspectionRequiredRule] AS [IsInspectionRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsReferralRequiredRule] AS [IsReferralRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsAdjudicationRequiredRule] AS [IsAdjudicationRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[AdjudicationTypeRule] AS [AdjudicationTypeRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsGazettingRequiredRule] AS [IsGazettingRequiredRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[GazetteTypeRule] AS [GazetteTypeRule], 
    [Vw_ApplicationRequestTypeDivisionSetup].[IsNew] AS [IsNew], 
    [Vw_ApplicationRequestTypeDivisionSetup].[ApplicationRequestType] AS [ApplicationRequestType], 
    [Vw_ApplicationRequestTypeDivisionSetup].[DivisionType] AS [DivisionType], 
    [Vw_ApplicationRequestTypeDivisionSetup].[Province] AS [Province], 
    [Vw_ApplicationRequestTypeDivisionSetup].[WorkflowReference] AS [WorkflowReference], 
    [Vw_ApplicationRequestTypeDivisionSetup].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_ApplicationRequestTypeDivisionSetup] AS [Vw_ApplicationRequestTypeDivisionSetup]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationRequestTypeDocumentSetup" EntityType="Self.Vw_ApplicationRequestTypeDocumentSetup" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_ApplicationRequestTypeDocumentSetup].[ApplicationRequestTypeDocumentID] AS [ApplicationRequestTypeDocumentID], 
    [Vw_ApplicationRequestTypeDocumentSetup].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_ApplicationRequestTypeDocumentSetup].[ProvinceID] AS [ProvinceID], 
    [Vw_ApplicationRequestTypeDocumentSetup].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_ApplicationRequestTypeDocumentSetup].[DocumentTypeID] AS [DocumentTypeID], 
    [Vw_ApplicationRequestTypeDocumentSetup].[WorkflowTemplateID] AS [WorkflowTemplateID], 
    [Vw_ApplicationRequestTypeDocumentSetup].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationRequestTypeDocumentSetup].[IsAvailableForUpload] AS [IsAvailableForUpload], 
    [Vw_ApplicationRequestTypeDocumentSetup].[IsMandatory] AS [IsMandatory], 
    [Vw_ApplicationRequestTypeDocumentSetup].[IsNew] AS [IsNew], 
    [Vw_ApplicationRequestTypeDocumentSetup].[ApplicationRequestType] AS [ApplicationRequestType], 
    [Vw_ApplicationRequestTypeDocumentSetup].[DivisionType] AS [DivisionType], 
    [Vw_ApplicationRequestTypeDocumentSetup].[Province] AS [Province], 
    [Vw_ApplicationRequestTypeDocumentSetup].[WorkflowReference] AS [WorkflowReference], 
    [Vw_ApplicationRequestTypeDocumentSetup].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_ApplicationRequestTypeDocumentSetup] AS [Vw_ApplicationRequestTypeDocumentSetup]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_DivisionTypeAnnexureMappings" EntityType="Self.Vw_DivisionTypeAnnexureMappings" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_DivisionTypeAnnexureMappings].[DivisionTypeAnnexureMappingID] AS [DivisionTypeAnnexureMappingID], 
    [Vw_DivisionTypeAnnexureMappings].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_DivisionTypeAnnexureMappings].[ProvinceID] AS [ProvinceID], 
    [Vw_DivisionTypeAnnexureMappings].[ServiceTypeID] AS [ServiceTypeID], 
    [Vw_DivisionTypeAnnexureMappings].[VehicleTypeID] AS [VehicleTypeID], 
    [Vw_DivisionTypeAnnexureMappings].[AnnexureDocumentID] AS [AnnexureDocumentID], 
    [Vw_DivisionTypeAnnexureMappings].[IsCancelled] AS [IsCancelled], 
    [Vw_DivisionTypeAnnexureMappings].[DivisionType] AS [DivisionType], 
    [Vw_DivisionTypeAnnexureMappings].[Province] AS [Province], 
    [Vw_DivisionTypeAnnexureMappings].[ServiceType] AS [ServiceType], 
    [Vw_DivisionTypeAnnexureMappings].[VehicleType] AS [VehicleType]
    FROM [Md].[Vw_DivisionTypeAnnexureMappings] AS [Vw_DivisionTypeAnnexureMappings]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_LicencingBoards" EntityType="Self.Vw_LicencingBoards" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_LicencingBoards].[LicencingBoardID] AS [LicencingBoardID], 
    [Vw_LicencingBoards].[Description] AS [Description], 
    [Vw_LicencingBoards].[ProvinceID] AS [ProvinceID], 
    [Vw_LicencingBoards].[Province] AS [Province], 
    [Vw_LicencingBoards].[IsCancelled] AS [IsCancelled], 
    [Vw_LicencingBoards].[IsNew] AS [IsNew], 
    [Vw_LicencingBoards].[WorkflowReference] AS [WorkflowReference], 
    [Vw_LicencingBoards].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_LicencingBoards] AS [Vw_LicencingBoards]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_OfficeLocations" EntityType="Self.Vw_OfficeLocations" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_OfficeLocations].[OfficeLocationDescription] AS [OfficeLocationDescription], 
    [Vw_OfficeLocations].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_OfficeLocations].[LocationName] AS [LocationName], 
    [Vw_OfficeLocations].[LocationAddress] AS [LocationAddress], 
    [Vw_OfficeLocations].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_OfficeLocations].[ProvinceID] AS [ProvinceID], 
    [Vw_OfficeLocations].[RegionID] AS [RegionID], 
    [Vw_OfficeLocations].[LicencingBoardID] AS [LicencingBoardID], 
    [Vw_OfficeLocations].[PaymentClerkUserID] AS [PaymentClerkUserID], 
    [Vw_OfficeLocations].[AssessorUserID] AS [AssessorUserID], 
    [Vw_OfficeLocations].[SeniorManagerApproverUserID] AS [SeniorManagerApproverUserID], 
    [Vw_OfficeLocations].[InspectionCapturerUserID] AS [InspectionCapturerUserID], 
    [Vw_OfficeLocations].[ReferralCapturerUserID] AS [ReferralCapturerUserID], 
    [Vw_OfficeLocations].[HandlesGazetting] AS [HandlesGazetting], 
    [Vw_OfficeLocations].[GazetteNumberPrefix] AS [GazetteNumberPrefix], 
    [Vw_OfficeLocations].[AdjudicationOfficerUserID] AS [AdjudicationOfficerUserID], 
    [Vw_OfficeLocations].[AdjudicationSecrataryUserID] AS [AdjudicationSecrataryUserID], 
    [Vw_OfficeLocations].[AdjudicationAgendaEmails] AS [AdjudicationAgendaEmails], 
    [Vw_OfficeLocations].[AdjudicationHearingQuorumCount] AS [AdjudicationHearingQuorumCount], 
    [Vw_OfficeLocations].[AdjudicationMeetingQuorumCount] AS [AdjudicationMeetingQuorumCount], 
    [Vw_OfficeLocations].[MaxAdjudicationAutoApplicationCount] AS [MaxAdjudicationAutoApplicationCount], 
    [Vw_OfficeLocations].[DocumentStoreLocationID] AS [DocumentStoreLocationID], 
    [Vw_OfficeLocations].[PaymentTypeID] AS [PaymentTypeID], 
    [Vw_OfficeLocations].[BusinessRuleBypassApproverUserID] AS [BusinessRuleBypassApproverUserID], 
    [Vw_OfficeLocations].[AdjudicationContactName] AS [AdjudicationContactName], 
    [Vw_OfficeLocations].[AdjudicationContactTelPhone] AS [AdjudicationContactTelPhone], 
    [Vw_OfficeLocations].[AdjudicationContactEmail] AS [AdjudicationContactEmail], 
    [Vw_OfficeLocations].[RouteCapturerUserID] AS [RouteCapturerUserID], 
    [Vw_OfficeLocations].[RouteApproverUserID] AS [RouteApproverUserID], 
    [Vw_OfficeLocations].[WorkflowReference] AS [WorkflowReference], 
    [Vw_OfficeLocations].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_OfficeLocations] AS [Vw_OfficeLocations]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_OfficeLocationSetup" EntityType="Self.Vw_OfficeLocationSetup" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_OfficeLocationSetup].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_OfficeLocationSetup].[LocationName] AS [LocationName], 
    [Vw_OfficeLocationSetup].[LocationAddress] AS [LocationAddress], 
    [Vw_OfficeLocationSetup].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_OfficeLocationSetup].[ProvinceID] AS [ProvinceID], 
    [Vw_OfficeLocationSetup].[RegionID] AS [RegionID], 
    [Vw_OfficeLocationSetup].[LicencingBoardID] AS [LicencingBoardID], 
    [Vw_OfficeLocationSetup].[PaymentClerkUserID] AS [PaymentClerkUserID], 
    [Vw_OfficeLocationSetup].[AssessorUserID] AS [AssessorUserID], 
    [Vw_OfficeLocationSetup].[SeniorManagerApproverUserID] AS [SeniorManagerApproverUserID], 
    [Vw_OfficeLocationSetup].[InspectionCapturerUserID] AS [InspectionCapturerUserID], 
    [Vw_OfficeLocationSetup].[ReferralCapturerUserID] AS [ReferralCapturerUserID], 
    [Vw_OfficeLocationSetup].[HandlesGazetting] AS [HandlesGazetting], 
    [Vw_OfficeLocationSetup].[GazetteNumberPrefix] AS [GazetteNumberPrefix], 
    [Vw_OfficeLocationSetup].[AdjudicationOfficerUserID] AS [AdjudicationOfficerUserID], 
    [Vw_OfficeLocationSetup].[AdjudicationSecrataryUserID] AS [AdjudicationSecrataryUserID], 
    [Vw_OfficeLocationSetup].[AdjudicationAgendaEmails] AS [AdjudicationAgendaEmails], 
    [Vw_OfficeLocationSetup].[AdjudicationHearingQuorumCount] AS [AdjudicationHearingQuorumCount], 
    [Vw_OfficeLocationSetup].[AdjudicationMeetingQuorumCount] AS [AdjudicationMeetingQuorumCount], 
    [Vw_OfficeLocationSetup].[MaxAdjudicationAutoApplicationCount] AS [MaxAdjudicationAutoApplicationCount], 
    [Vw_OfficeLocationSetup].[DocumentStoreLocationID] AS [DocumentStoreLocationID], 
    [Vw_OfficeLocationSetup].[PaymentTypeID] AS [PaymentTypeID], 
    [Vw_OfficeLocationSetup].[BusinessRuleBypassApproverUserID] AS [BusinessRuleBypassApproverUserID], 
    [Vw_OfficeLocationSetup].[AdjudicationContactName] AS [AdjudicationContactName], 
    [Vw_OfficeLocationSetup].[AdjudicationContactTelPhone] AS [AdjudicationContactTelPhone], 
    [Vw_OfficeLocationSetup].[AdjudicationContactEmail] AS [AdjudicationContactEmail], 
    [Vw_OfficeLocationSetup].[RouteCapturerUserID] AS [RouteCapturerUserID], 
    [Vw_OfficeLocationSetup].[RouteApproverUserID] AS [RouteApproverUserID], 
    [Vw_OfficeLocationSetup].[DivisionType] AS [DivisionType], 
    [Vw_OfficeLocationSetup].[Province] AS [Province], 
    [Vw_OfficeLocationSetup].[WorkflowReference] AS [WorkflowReference], 
    [Vw_OfficeLocationSetup].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_OfficeLocationSetup] AS [Vw_OfficeLocationSetup]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_VehicleMakes" EntityType="Self.Vw_VehicleMakes" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_VehicleMakes].[VehicleMakeID] AS [VehicleMakeID], 
    [Vw_VehicleMakes].[Description] AS [Description], 
    [Vw_VehicleMakes].[IsCancelled] AS [IsCancelled], 
    [Vw_VehicleMakes].[IsNew] AS [IsNew], 
    [Vw_VehicleMakes].[WorkflowReference] AS [WorkflowReference], 
    [Vw_VehicleMakes].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_VehicleMakes] AS [Vw_VehicleMakes]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_VehicleModels" EntityType="Self.Vw_VehicleModels" store:Type="Views" store:Schema="Md">
            <DefiningQuery>SELECT 
    [Vw_VehicleModels].[VehicleModelID] AS [VehicleModelID], 
    [Vw_VehicleModels].[VehicleMakeID] AS [VehicleMakeID], 
    [Vw_VehicleModels].[VehicleMake] AS [VehicleMake], 
    [Vw_VehicleModels].[Description] AS [Description], 
    [Vw_VehicleModels].[SeatedCapacityExcludingDriver] AS [SeatedCapacityExcludingDriver], 
    [Vw_VehicleModels].[StandingCapacity] AS [StandingCapacity], 
    [Vw_VehicleModels].[IsCancelled] AS [IsCancelled], 
    [Vw_VehicleModels].[GrossWeight] AS [GrossWeight], 
    [Vw_VehicleModels].[TareWeight] AS [TareWeight], 
    [Vw_VehicleModels].[VehicleTypeID] AS [VehicleTypeID], 
    [Vw_VehicleModels].[VehicleType] AS [VehicleType], 
    [Vw_VehicleModels].[CarryingCapacityID] AS [CarryingCapacityID], 
    [Vw_VehicleModels].[CarryingCapacity] AS [CarryingCapacity], 
    [Vw_VehicleModels].[IsValidModel] AS [IsValidModel], 
    [Vw_VehicleModels].[WorkflowReference] AS [WorkflowReference], 
    [Vw_VehicleModels].[WorkflowStatus] AS [WorkflowStatus]
    FROM [Md].[Vw_VehicleModels] AS [Vw_VehicleModels]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_Settings" EntityType="Self.Vw_Settings" store:Type="Views" store:Schema="System">
            <DefiningQuery>SELECT 
    [Vw_Settings].[SettingName] AS [SettingName], 
    [Vw_Settings].[SettingDescription] AS [SettingDescription], 
    [Vw_Settings].[SettingValue] AS [SettingValue], 
    [Vw_Settings].[SettingDetail] AS [SettingDetail]
    FROM [System].[Vw_Settings] AS [Vw_Settings]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_Associations" EntityType="Self.Vw_Associations" store:Type="Views" store:Schema="Verified">
            <DefiningQuery>SELECT 
    [Vw_Associations].[AssociationID] AS [AssociationID], 
    [Vw_Associations].[AssociationName] AS [AssociationName], 
    [Vw_Associations].[AssociationNameAbbrev] AS [AssociationNameAbbrev], 
    [Vw_Associations].[ActiveMemberCount] AS [ActiveMemberCount], 
    [Vw_Associations].[Status] AS [Status], 
    [Vw_Associations].[Mode] AS [Mode], 
    [Vw_Associations].[Type] AS [Type], 
    [Vw_Associations].[Region] AS [Region]
    FROM [Verified].[Vw_Associations] AS [Vw_Associations]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_OperatingLicenceDetails" EntityType="Self.Vw_OperatingLicenceDetails" store:Type="Views" store:Schema="Verified">
            <DefiningQuery>SELECT 
    [Vw_OperatingLicenceDetails].[LicenceID] AS [LicenceID], 
    [Vw_OperatingLicenceDetails].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_OperatingLicenceDetails].[AssociationName] AS [AssociationName], 
    [Vw_OperatingLicenceDetails].[AccreditationNumber] AS [AccreditationNumber], 
    [Vw_OperatingLicenceDetails].[OperatingLicenceNumber] AS [OperatingLicenceNumber], 
    [Vw_OperatingLicenceDetails].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_OperatingLicenceDetails].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_OperatingLicenceDetails].[NameOnLicence] AS [NameOnLicence], 
    [Vw_OperatingLicenceDetails].[PostalAddress] AS [PostalAddress], 
    [Vw_OperatingLicenceDetails].[RegistrationNumber] AS [RegistrationNumber], 
    [Vw_OperatingLicenceDetails].[GrossMass] AS [GrossMass], 
    [Vw_OperatingLicenceDetails].[EngineNumber] AS [EngineNumber], 
    [Vw_OperatingLicenceDetails].[VIN] AS [VIN], 
    [Vw_OperatingLicenceDetails].[VehicleMake] AS [VehicleMake], 
    [Vw_OperatingLicenceDetails].[SeatedCapacity] AS [SeatedCapacity], 
    [Vw_OperatingLicenceDetails].[StandingCapacity] AS [StandingCapacity], 
    [Vw_OperatingLicenceDetails].[VehicleType] AS [VehicleType], 
    [Vw_OperatingLicenceDetails].[CertificateNumber] AS [CertificateNumber], 
    [Vw_OperatingLicenceDetails].[DateOfIssue] AS [DateOfIssue], 
    [Vw_OperatingLicenceDetails].[DateOfExpiry] AS [DateOfExpiry], 
    [Vw_OperatingLicenceDetails].[CrossBorder] AS [CrossBorder], 
    [Vw_OperatingLicenceDetails].[LicensingBoard] AS [LicensingBoard], 
    [Vw_OperatingLicenceDetails].[YearOfFirstReg] AS [YearOfFirstReg], 
    [Vw_OperatingLicenceDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_OperatingLicenceDetails].[LicenceExceptions] AS [LicenceExceptions], 
    [Vw_OperatingLicenceDetails].[LicenceStatus] AS [LicenceStatus], 
    [Vw_OperatingLicenceDetails].[VehicleID] AS [VehicleID], 
    [Vw_OperatingLicenceDetails].[AssociationID] AS [AssociationID], 
    [Vw_OperatingLicenceDetails].[LicenceStatusID] AS [LicenceStatusID], 
    [Vw_OperatingLicenceDetails].[MemberID] AS [MemberID], 
    [Vw_OperatingLicenceDetails].[DivisionTypeID] AS [DivisionTypeID]
    FROM [Verified].[Vw_OperatingLicenceDetails] AS [Vw_OperatingLicenceDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_Places" EntityType="Self.Vw_Places" store:Type="Views" store:Schema="Verified">
            <DefiningQuery>SELECT 
    [Vw_Places].[PlaceID] AS [PlaceID], 
    [Vw_Places].[Description] AS [Description], 
    [Vw_Places].[PlaceTypeID] AS [PlaceTypeID], 
    [Vw_Places].[PlaceType] AS [PlaceType], 
    [Vw_Places].[OlasID] AS [OlasID], 
    [Vw_Places].[LtpsID] AS [LtpsID], 
    [Vw_Places].[NeoID] AS [NeoID]
    FROM [Verified].[Vw_Places] AS [Vw_Places]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_Vehicles" EntityType="Self.Vw_Vehicles" store:Type="Views" store:Schema="Verified">
            <DefiningQuery>SELECT 
    [Vw_Vehicles].[VehicleID] AS [VehicleID], 
    [Vw_Vehicles].[ReferenceNumber] AS [ReferenceNumber], 
    [Vw_Vehicles].[RegistrationNumber] AS [RegistrationNumber], 
    [Vw_Vehicles].[VIN] AS [VIN], 
    [Vw_Vehicles].[Make] AS [Make], 
    [Vw_Vehicles].[Model] AS [Model], 
    [Vw_Vehicles].[Type] AS [Type], 
    [Vw_Vehicles].[EngineNumber] AS [EngineNumber], 
    [Vw_Vehicles].[SeatedCapacity] AS [SeatedCapacity], 
    [Vw_Vehicles].[StandingCapacity] AS [StandingCapacity], 
    [Vw_Vehicles].[GrossMass] AS [GrossMass], 
    [Vw_Vehicles].[CarryingCapacityID] AS [CarryingCapacityID], 
    [Vw_Vehicles].[YearOfManufacture] AS [YearOfManufacture], 
    [Vw_Vehicles].[CarryingCapacity] AS [CarryingCapacity]
    FROM [Verified].[Vw_Vehicles] AS [Vw_Vehicles]</DefiningQuery>
          </EntitySet>
          <AssociationSet Name="FK_Accreditations_AccreditationStatus" Association="Self.FK_Accreditations_AccreditationStatus">
            <End Role="AccreditationStatus" EntitySet="AccreditationStatus" />
            <End Role="Accreditations" EntitySet="Accreditations" />
          </AssociationSet>
          <AssociationSet Name="FK_Accreditations_Members" Association="Self.FK_Accreditations_Members">
            <End Role="Members" EntitySet="Members" />
            <End Role="Accreditations" EntitySet="Accreditations" />
          </AssociationSet>
          <AssociationSet Name="FK_AdjudicationDetails_AdjudicationDetailStatus" Association="Self.FK_AdjudicationDetails_AdjudicationDetailStatus">
            <End Role="AdjudicationDetailStatus" EntitySet="AdjudicationDetailStatus" />
            <End Role="AdjudicationDetails" EntitySet="AdjudicationDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_AdjudicationDetails_AdjudicationType" Association="Self.FK_AdjudicationDetails_AdjudicationType">
            <End Role="AdjudicationType" EntitySet="AdjudicationType" />
            <End Role="AdjudicationDetails" EntitySet="AdjudicationDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_AdjudicationPanel_AdjudicationDetails" Association="Self.FK_AdjudicationPanel_AdjudicationDetails">
            <End Role="AdjudicationDetails" EntitySet="AdjudicationDetails" />
            <End Role="AdjudicationPanel" EntitySet="AdjudicationPanel" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationAllowedNewLic_DivisionTypes" Association="Self.FK_ApplicationAllowedNewLic_DivisionTypes">
            <End Role="DivisionTypes" EntitySet="DivisionTypes" />
            <End Role="ApplicationAllowedNewLicences" EntitySet="ApplicationAllowedNewLicences" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationAllowedNewLic_Provinces" Association="Self.FK_ApplicationAllowedNewLic_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="ApplicationAllowedNewLicences" EntitySet="ApplicationAllowedNewLicences" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDi_ApplicationRequestTypes" Association="Self.FK_ApplicationRequestTypeDi_ApplicationRequestTypes">
            <End Role="ApplicationRequestTypes" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDivisionSetup" EntitySet="ApplicationRequestTypeDivisionSetup" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDi_DivisionTypes" Association="Self.FK_ApplicationRequestTypeDi_DivisionTypes">
            <End Role="DivisionTypes" EntitySet="DivisionTypes" />
            <End Role="ApplicationRequestTypeDivisionSetup" EntitySet="ApplicationRequestTypeDivisionSetup" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDi_Provinces" Association="Self.FK_ApplicationRequestTypeDi_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="ApplicationRequestTypeDivisionSetup" EntitySet="ApplicationRequestTypeDivisionSetup" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDo_ApplicationRequestTypes" Association="Self.FK_ApplicationRequestTypeDo_ApplicationRequestTypes">
            <End Role="ApplicationRequestTypes" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDocumentSetup" EntitySet="ApplicationRequestTypeDocumentSetup" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDo_DocumentTypes" Association="Self.FK_ApplicationRequestTypeDo_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ApplicationRequestTypeDocumentSetup" EntitySet="ApplicationRequestTypeDocumentSetup" />
          </AssociationSet>
          <AssociationSet Name="FK_AssociationMembers_Associations" Association="Self.FK_AssociationMembers_Associations">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="AssociationMembers" EntitySet="AssociationMembers" />
          </AssociationSet>
          <AssociationSet Name="FK_AssociationRoutes_Associations" Association="Self.FK_AssociationRoutes_Associations">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="AssociationRoutes" EntitySet="AssociationRoutes" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_AssociationModes" Association="Self.FK_Associations_AssociationModes">
            <End Role="AssociationModes" EntitySet="AssociationModes" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_AssociationStatus" Association="Self.FK_Associations_AssociationStatus">
            <End Role="AssociationStatus" EntitySet="AssociationStatus" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_AssociationTypes" Association="Self.FK_Associations_AssociationTypes">
            <End Role="AssociationTypes" EntitySet="AssociationTypes" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_Regions" Association="Self.FK_Associations_Regions">
            <End Role="Regions" EntitySet="Regions" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_DivisionTypeAnnexureMapp_DivisionTypes" Association="Self.FK_DivisionTypeAnnexureMapp_DivisionTypes">
            <End Role="DivisionTypes" EntitySet="DivisionTypes" />
            <End Role="DivisionTypeAnnexureMappings" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK_DivisionTypeAnnexureMapp_Provinces" Association="Self.FK_DivisionTypeAnnexureMapp_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="DivisionTypeAnnexureMappings" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK_DivisionTypeAnnexureMapp_ServiceTypes" Association="Self.FK_DivisionTypeAnnexureMapp_ServiceTypes">
            <End Role="ServiceTypes" EntitySet="ServiceTypes" />
            <End Role="DivisionTypeAnnexureMappings" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK_DivisionTypeAnnexureMapp_VehicleTypes" Association="Self.FK_DivisionTypeAnnexureMapp_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="DivisionTypeAnnexureMappings" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentTypeQuestions_DocumentTypes" Association="Self.FK_DocumentTypeQuestions_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="DocumentTypeQuestions" EntitySet="DocumentTypeQuestions" />
          </AssociationSet>
          <AssociationSet Name="FK_GazetteDetails_DivisionTypes" Association="Self.FK_GazetteDetails_DivisionTypes">
            <End Role="DivisionTypes" EntitySet="DivisionTypes" />
            <End Role="GazetteDetails" EntitySet="GazetteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_GazetteDetails_GazetteDetailStatus" Association="Self.FK_GazetteDetails_GazetteDetailStatus">
            <End Role="GazetteDetailStatus" EntitySet="GazetteDetailStatus" />
            <End Role="GazetteDetails" EntitySet="GazetteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_GazetteDetails_GazetteTypes" Association="Self.FK_GazetteDetails_GazetteTypes">
            <End Role="GazetteTypes" EntitySet="GazetteTypes" />
            <End Role="GazetteDetails" EntitySet="GazetteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_GazetteDetails_Provinces" Association="Self.FK_GazetteDetails_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="GazetteDetails" EntitySet="GazetteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceExceptions_Licences" Association="Self.FK_LicenceExceptions_Licences">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceExceptions" EntitySet="LicenceExceptions" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDetails_Licences" Association="Self.FK_LicenceIssueDetails_Licences">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDetails_Vehicles" Association="Self.FK_LicenceIssueDetails_Vehicles">
            <End Role="Vehicles" EntitySet="Vehicles" />
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDocuments_DocumentTypes" Association="Self.FK_LicenceIssueDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="LicenceIssueDocuments" EntitySet="LicenceIssueDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDocuments_LicenceIssueDetails" Association="Self.FK_LicenceIssueDocuments_LicenceIssueDetails">
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
            <End Role="LicenceIssueDocuments" EntitySet="LicenceIssueDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueInspectionDe_LicenceIssueInspectionOu" Association="Self.FK_LicenceIssueInspectionDe_LicenceIssueInspectionOu">
            <End Role="LicenceIssueInspectionOutcomes" EntitySet="LicenceIssueInspectionOutcomes" />
            <End Role="LicenceIssueInspectionDetails" EntitySet="LicenceIssueInspectionDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceRoutes_Licences" Association="Self.FK_LicenceRoutes_Licences">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceRoutes" EntitySet="LicenceRoutes" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceRoutes_Routes" Association="Self.FK_LicenceRoutes_Routes">
            <End Role="Routes" EntitySet="Routes" />
            <End Role="LicenceRoutes" EntitySet="LicenceRoutes" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Accreditations" Association="Self.FK_Licences_Accreditations">
            <End Role="Accreditations" EntitySet="Accreditations" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Associations" Association="Self.FK_Licences_Associations">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_DivisionTypes" Association="Self.FK_Licences_DivisionTypes">
            <End Role="DivisionTypes" EntitySet="DivisionTypes" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_LicenceStatus" Association="Self.FK_Licences_LicenceStatus">
            <End Role="LicenceStatus" EntitySet="LicenceStatus" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_LicencingBoards" Association="Self.FK_Licences_LicencingBoards">
            <End Role="LicencingBoards" EntitySet="LicencingBoards" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Members" Association="Self.FK_Licences_Members">
            <End Role="Members" EntitySet="Members" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Provinces" Association="Self.FK_Licences_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Regions" Association="Self.FK_Licences_Regions">
            <End Role="Regions" EntitySet="Regions" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Vehicles" Association="Self.FK_Licences_Vehicles">
            <End Role="Vehicles" EntitySet="Vehicles" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceServiceDetails_Licences" Association="Self.FK_LicenceServiceDetails_Licences">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceServiceDetails" EntitySet="LicenceServiceDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceServiceDetails_ServiceTypes" Association="Self.FK_LicenceServiceDetails_ServiceTypes">
            <End Role="ServiceTypes" EntitySet="ServiceTypes" />
            <End Role="LicenceServiceDetails" EntitySet="LicenceServiceDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicencingBoards_Provinces" Association="Self.FK_LicencingBoards_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="LicencingBoards" EntitySet="LicencingBoards" />
          </AssociationSet>
          <AssociationSet Name="FK_Members_IDTypes" Association="Self.FK_Members_IDTypes">
            <End Role="IDTypes" EntitySet="IDTypes" />
            <End Role="Members" EntitySet="Members" />
          </AssociationSet>
          <AssociationSet Name="FK_Members_MemberStatus" Association="Self.FK_Members_MemberStatus">
            <End Role="MemberStatus" EntitySet="MemberStatus" />
            <End Role="Members" EntitySet="Members" />
          </AssociationSet>
          <AssociationSet Name="FK_Places_PlaceTypes" Association="Self.FK_Places_PlaceTypes">
            <End Role="PlaceTypes" EntitySet="PlaceTypes" />
            <End Role="Places" EntitySet="Places" />
          </AssociationSet>
          <AssociationSet Name="FK_ReceiptDetails_PaymentTypes" Association="Self.FK_ReceiptDetails_PaymentTypes">
            <End Role="PaymentTypes" EntitySet="PaymentTypes" />
            <End Role="ReceiptDetails" EntitySet="ReceiptDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Regions_Provinces" Association="Self.FK_Regions_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="Regions" EntitySet="Regions" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_OriginPlace" Association="Self.FK_Routes_OriginPlace">
            <End Role="Places" EntitySet="Places" />
            <End Role="Routes" EntitySet="Routes" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_Places" Association="Self.FK_Routes_Places">
            <End Role="Places" EntitySet="Places" />
            <End Role="Routes" EntitySet="Routes" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_RouteStatus" Association="Self.FK_Routes_RouteStatus">
            <End Role="RouteStatus" EntitySet="RouteStatus" />
            <End Role="Routes" EntitySet="Routes" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_RouteTypes" Association="Self.FK_Routes_RouteTypes">
            <End Role="RouteTypes" EntitySet="RouteTypes" />
            <End Role="Routes" EntitySet="Routes" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceTypes_RouteTypes" Association="Self.FK_ServiceTypes_RouteTypes">
            <End Role="RouteTypes" EntitySet="RouteTypes" />
            <End Role="ServiceTypes" EntitySet="ServiceTypes" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceVehicleTypes_ServiceTypes" Association="Self.FK_ServiceVehicleTypes_ServiceTypes">
            <End Role="ServiceTypes" EntitySet="ServiceTypes" />
            <End Role="ServiceVehicleTypes" EntitySet="ServiceVehicleTypes" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceVehicleTypes_VehicleTypes" Association="Self.FK_ServiceVehicleTypes_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="ServiceVehicleTypes" EntitySet="ServiceVehicleTypes" />
          </AssociationSet>
          <AssociationSet Name="FK_Stationery_StationeryBatches" Association="Self.FK_Stationery_StationeryBatches">
            <End Role="StationeryBatches" EntitySet="StationeryBatches" />
            <End Role="Stationery" EntitySet="Stationery" />
          </AssociationSet>
          <AssociationSet Name="FK_VehicleModels_CarryingCapacities" Association="Self.FK_VehicleModels_CarryingCapacities">
            <End Role="CarryingCapacities" EntitySet="CarryingCapacities" />
            <End Role="VehicleModels" EntitySet="VehicleModels" />
          </AssociationSet>
          <AssociationSet Name="FK_VehicleModels_VehicleMakes" Association="Self.FK_VehicleModels_VehicleMakes">
            <End Role="VehicleMakes" EntitySet="VehicleMakes" />
            <End Role="VehicleModels" EntitySet="VehicleModels" />
          </AssociationSet>
          <AssociationSet Name="FK_VehicleModels_VehicleTypes" Association="Self.FK_VehicleModels_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="VehicleModels" EntitySet="VehicleModels" />
          </AssociationSet>
          <AssociationSet Name="FK_Vehicles_VehicleMakes" Association="Self.FK_Vehicles_VehicleMakes">
            <End Role="VehicleMakes" EntitySet="VehicleMakes" />
            <End Role="Vehicles" EntitySet="Vehicles" />
          </AssociationSet>
          <AssociationSet Name="FK_Vehicles_VehicleModels" Association="Self.FK_Vehicles_VehicleModels">
            <End Role="VehicleModels" EntitySet="VehicleModels" />
            <End Role="Vehicles" EntitySet="Vehicles" />
          </AssociationSet>
          <AssociationSet Name="FK_Vehicles_VehicleTypes" Association="Self.FK_Vehicles_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="Vehicles" EntitySet="Vehicles" />
          </AssociationSet>
          <AssociationSet Name="FK_VehicleTypes_CarryingCapacities" Association="Self.FK_VehicleTypes_CarryingCapacities">
            <End Role="CarryingCapacities" EntitySet="CarryingCapacities" />
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Model" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityContainer Name="LegitimateEntities" annotation:LazyLoadingEnabled="false">
          <FunctionImport Name="Pr_ApplicationDetailsAwaitingReceipts" ReturnType="Collection(Model.Pr_ApplicationDetailsAwaitingReceipts_Result)">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="PaymentTypeIDs" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationDetailsRecentReceipts" EntitySet="Vw_ReceiptDetails" ReturnType="Collection(Model.Vw_ReceiptDetails)" />
          <FunctionImport Name="Pr_ApplicationDetailsAwaitingGazettes">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="GazetteDetails" EntityType="Model.GazetteDetail" />
          <EntitySet Name="SourceApplications" EntityType="Model.SourceApplication" />
          <FunctionImport Name="Pr_GazetteDetailStatusUpdate">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="GazetteDetailID" Mode="In" Type="Int64" />
            <Parameter Name="GazetteDetailStatusID" Mode="In" Type="Int16" />
            <Parameter Name="IsTransactionRequired" Mode="In" Type="Boolean" />
          </FunctionImport>
          <EntitySet Name="Vw_ReceiptDetails" EntityType="Model.Vw_ReceiptDetails" />
          <EntitySet Name="ReceiptDetails" EntityType="Model.ReceiptDetail" />
          <EntitySet Name="DocumentTypes" EntityType="Model.DocumentTypes" />
          <EntitySet Name="AssociationModes" EntityType="Model.AssociationModes" />
          <EntitySet Name="AssociationTypes" EntityType="Model.AssociationTypes" />
          <EntitySet Name="AssociationStatus" EntityType="Model.AssociationStatus" />
          <FunctionImport Name="Pr_ApplicationDetailsAwaitingAdjudication">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="VerifiedMembers" EntityType="Model.VerifiedMember" />
          <EntitySet Name="VerifiedMemberStatus" EntityType="Model.VerifiedMemberStatus" />
          <AssociationSet Name="FK_Members_MemberStatusID" Association="Model.FK_Members_MemberStatusID">
            <End Role="MemberStatus" EntitySet="VerifiedMemberStatus" />
            <End Role="Members" EntitySet="VerifiedMembers" />
          </AssociationSet>
          <EntitySet Name="AdjudicationDetails" EntityType="Model.AdjudicationDetail" />
          <EntitySet Name="Provinces" EntityType="Model.Province" />
          <AssociationSet Name="FK_GazetteDetails_Provinces" Association="Model.FK_GazetteDetails_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
          </AssociationSet>
          <EntitySet Name="Regions" EntityType="Model.Region" />
          <AssociationSet Name="FK_Regions_Provinces" Association="Model.FK_Regions_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="Regions" EntitySet="Regions" />
          </AssociationSet>
          <EntitySet Name="Associations" EntityType="Model.Associations" />
          <AssociationSet Name="FK_Associations_AssociationModes" Association="Model.FK_Associations_AssociationModes">
            <End Role="AssociationModes" EntitySet="AssociationModes" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_AssociationTypes" Association="Model.FK_Associations_AssociationTypes">
            <End Role="AssociationTypes" EntitySet="AssociationTypes" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_Regions" Association="Model.FK_Associations_Regions">
            <End Role="Regions" EntitySet="Regions" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <AssociationSet Name="FK_Associations_AssociationStatusID" Association="Model.FK_Associations_AssociationStatusID">
            <End Role="AssociationStatus" EntitySet="AssociationStatus" />
            <End Role="Associations" EntitySet="Associations" />
          </AssociationSet>
          <EntitySet Name="Routes" EntityType="Model.Route" />
          <EntitySet Name="RouteStatus1" EntityType="Model.RouteStatus" />
          <AssociationSet Name="FK_Routes_RouteStatusID" Association="Model.FK_Routes_RouteStatusID">
            <End Role="RouteStatu" EntitySet="RouteStatus1" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <EntitySet Name="PaymentTypes" EntityType="Model.PaymentType" />
          <AssociationSet Name="FK_ReceiptDetails_PaymentTypes" Association="Model.FK_ReceiptDetails_PaymentTypes">
            <End Role="PaymentType" EntitySet="PaymentTypes" />
            <End Role="ReceiptDetail" EntitySet="ReceiptDetails" />
          </AssociationSet>
          <EntitySet Name="Places" EntityType="Model.Place" />
          <AssociationSet Name="FK_Routes_DestinationPlace" Association="Model.FK_Routes_DestinationPlace">
            <End Role="Place" EntitySet="Places" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_OriginPlace" Association="Model.FK_Routes_OriginPlace">
            <End Role="Place" EntitySet="Places" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <EntitySet Name="AdjudicationDetailStatuses" EntityType="Model.AdjudicationDetailStatus" />
          <AssociationSet Name="FK_AdjudicationDetails_AdjudicationDetailStatusID" Association="Model.FK_AdjudicationDetails_AdjudicationDetailStatusID">
            <End Role="AdjudicationDetailStatu" EntitySet="AdjudicationDetailStatuses" />
            <End Role="AdjudicationDetail" EntitySet="AdjudicationDetails" />
          </AssociationSet>
          <EntitySet Name="Licences" EntityType="Model.Licence" />
          <EntitySet Name="LicenceStatuses" EntityType="Model.LicenceStatus" />
          <AssociationSet Name="FK_Licences_LicenceStatusID" Association="Model.FK_Licences_LicenceStatusID">
            <End Role="LicenceStatu" EntitySet="LicenceStatuses" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Members" Association="Model.FK_Licences_Members">
            <End Role="VerifiedMember" EntitySet="VerifiedMembers" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <EntitySet Name="Vehicles" EntityType="Model.Vehicle" />
          <AssociationSet Name="FK_Licences_Vehicles" Association="Model.FK_Licences_Vehicles">
            <End Role="Vehicle" EntitySet="Vehicles" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationVerificationComplete">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowInstanceTaskID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PrecheckDetailsUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="PrecheckDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="SourceApplicationID" Mode="In" Type="Int16" />
            <Parameter Name="ApplicantName" Mode="In" Type="String" />
            <Parameter Name="OlPermitNumber" Mode="In" Type="String" />
            <Parameter Name="IDNumber" Mode="In" Type="String" />
            <Parameter Name="ChassisNumber" Mode="In" Type="String" />
            <Parameter Name="VehicleRegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="CheckData" Mode="In" Type="Boolean" />
            <Parameter Name="PrecheckDetailIncompleteReasonID" Mode="In" Type="Int16" />
            <Parameter Name="ContactEmail" Mode="In" Type="String" />
            <Parameter Name="ContactCell" Mode="In" Type="String" />
            <Parameter Name="NumberOfVehiclesRequired" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="ModeID" Mode="In" Type="Int16" />
            <Parameter Name="CalledFromSave" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationDetailStatusUpdate">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDetailStatusID" Mode="In" Type="Int16" />
            <Parameter Name="IsTransactionRequired" Mode="In" Type="Boolean" />
          </FunctionImport>
          <EntitySet Name="AdjudicationDecisions" EntityType="Model.AdjudicationDecision" />
          <FunctionImport Name="Pr_ApplicationAdjudicationDecisionApproval">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="IsApproved" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="GazetteDetailStatus" EntityType="Model.GazetteDetailStatu" />
          <AssociationSet Name="FK_GazetteDetails_GazetteDetailStatusID" Association="Model.FK_GazetteDetails_GazetteDetailStatusID">
            <End Role="GazetteDetailStatu" EntitySet="GazetteDetailStatus" />
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_AdjudicationPanelMembersGet" ReturnType="Collection(Model.Pr_AdjudicationPanelMembersGet_Result)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="AdjudicationPanels" EntityType="Model.AdjudicationPanel" />
          <AssociationSet Name="FK_AdjudicationPanel_AdjudicationDetails" Association="Model.FK_AdjudicationPanel_AdjudicationDetails">
            <End Role="AdjudicationDetail" EntitySet="AdjudicationDetails" />
            <End Role="AdjudicationPanel" EntitySet="AdjudicationPanels" />
          </AssociationSet>
          <EntitySet Name="Vw_AdjudicationPanel" EntityType="Model.Vw_AdjudicationPanel" />
          <FunctionImport Name="Pr_AdjudicationPanelUpdate">
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="PanelMemberUserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ContractTypes" EntityType="Model.ContractType" />
          <EntitySet Name="IDTypes" EntityType="Model.IDType" />
          <EntitySet Name="PlaceTypes" EntityType="Model.PlaceType" />
          <EntitySet Name="RouteTypes" EntityType="Model.RouteType" />
          <EntitySet Name="ServiceTypes" EntityType="Model.ServiceType" />
          <EntitySet Name="VehicleMakes" EntityType="Model.VehicleMake" />
          <EntitySet Name="VehicleTypes" EntityType="Model.VehicleType" />
          <EntitySet Name="WaypointTypes" EntityType="Model.WaypointType" />
          <AssociationSet Name="FK_Members_IDTypes" Association="Model.FK_Members_IDTypes">
            <End Role="IDType" EntitySet="IDTypes" />
            <End Role="VerifiedMember" EntitySet="VerifiedMembers" />
          </AssociationSet>
          <AssociationSet Name="FK_Places_PlaceTypes" Association="Model.FK_Places_PlaceTypes">
            <End Role="PlaceType" EntitySet="PlaceTypes" />
            <End Role="Place" EntitySet="Places" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_RouteTypes" Association="Model.FK_Routes_RouteTypes">
            <End Role="RouteType" EntitySet="RouteTypes" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <AssociationSet Name="FK_Vehicles_VehicleMakes" Association="Model.FK_Vehicles_VehicleMakes">
            <End Role="VehicleMake" EntitySet="VehicleMakes" />
            <End Role="Vehicle" EntitySet="Vehicles" />
          </AssociationSet>
          <AssociationSet Name="FK_Vehicles_VehicleTypes" Association="Model.FK_Vehicles_VehicleTypes">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="Vehicle" EntitySet="Vehicles" />
          </AssociationSet>
          <AssociationSet Name="AssociationMembers" Association="Model.AssociationMembers">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="VerifiedMember" EntitySet="VerifiedMembers" />
          </AssociationSet>
          <EntitySet Name="Vw_OperatingLicenceDetails" EntityType="Model.Vw_OperatingLicenceDetails" />
          <AssociationSet Name="AssociationRoutes" Association="Model.AssociationRoutes">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <EntitySet Name="LicenceIssueDetails" EntityType="Model.LicenceIssueDetail" />
          <EntitySet Name="LicenceIssueInspectionDetails" EntityType="Model.LicenceIssueInspectionDetail" />
          <EntitySet Name="LicenceIssueInspectionOutcomes" EntityType="Model.LicenceIssueInspectionOutcome" />
          <AssociationSet Name="FK_LicenceIssueDetails_Licences" Association="Model.FK_LicenceIssueDetails_Licences">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes" Association="Model.FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes">
            <End Role="LicenceIssueInspectionOutcome" EntitySet="LicenceIssueInspectionOutcomes" />
            <End Role="LicenceIssueInspectionDetail" EntitySet="LicenceIssueInspectionDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_LicenceIssueInspectionComplete">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceIssueInspectionOutcomeID" Mode="In" Type="Int16" />
            <Parameter Name="InspectedByID" Mode="In" Type="Int64" />
            <Parameter Name="DateInspected" Mode="In" Type="DateTime" />
            <Parameter Name="EngineNumber" Mode="In" Type="String" />
            <Parameter Name="ChassisNumber" Mode="In" Type="String" />
            <Parameter Name="InspectionSheetDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="FrontRegDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="ChassisDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="EngineDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="BackRegDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="Additional1DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="Additional2DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_LicenceIssueDetails" EntityType="Model.Vw_LicenceIssueDetails" />
          <FunctionImport Name="Pr_LicenceIssuingComplete">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ReceiptBatchGenerate" ReturnType="Collection(Int64)">
            <Parameter Name="ReceiptUserID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceStatusSummary" ReturnType="Collection(Model.Pr_LicenceStatusSummary_Result)">
            <Parameter Name="SearchRegionID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="AdjudicationTypes" EntityType="Model.AdjudicationType" />
          <AssociationSet Name="FK_AdjudicationDetails_AdjudicationType" Association="Model.FK_AdjudicationDetails_AdjudicationType">
            <End Role="AdjudicationType" EntitySet="AdjudicationTypes" />
            <End Role="AdjudicationDetail" EntitySet="AdjudicationDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_PrecheckVerificationComplete" ReturnType="Collection(String)">
            <Parameter Name="PrecheckDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceUpcomingExpiryCorrespondance">
            <Parameter Name="LicenceIdCsv" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceExpiredCorrespondance">
            <Parameter Name="LicenceIdCsv" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicencesExpiredInGracePeriodGet" EntitySet="Licences" ReturnType="Collection(Model.Licence)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicencesUpcomingExpiresGet" EntitySet="Licences" ReturnType="Collection(Model.Licence)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_Vehicles" EntityType="Model.Vw_Vehicles" />
          <FunctionImport Name="Pr_PurificationDetailStatusUpdate">
            <Parameter Name="UpdatedByID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="PurificationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="PurificationDetailStatusID" Mode="In" Type="Int16" />
            <Parameter Name="IsTransactionRequired" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationExceptionsPending" >
          <Parameter Name="AssociationID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationPrechecksPending" >
          <Parameter Name="AssociationID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationWorkflowsInProgress" >
          <Parameter Name="AssociationID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationDetailRetry">
          <Parameter Name="PurificationDetailID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_Places" EntityType="Model.Vw_Places" />
          <FunctionImport Name="Pr_MemberSearch" ReturnType="Collection(Model.Pr_MemberSearch_Result)">
            <Parameter Name="MemberName" Mode="In" Type="String" />
            <Parameter Name="MemberID" Mode="In" Type="String" />
            <Parameter Name="MemberEmail" Mode="In" Type="String" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationSearch" ReturnType="Collection(Model.Pr_AssociationSearch_Result)">
            <Parameter Name="SearchRegionID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationName" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceSearch" ReturnType="Collection(Model.Pr_LicenceSearch_Result)">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="MemberID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceStatusID" Mode="In" Type="Int64" />
            <Parameter Name="RegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="DateOfIssueStartDate" Mode="In" Type="DateTime" />
            <Parameter Name="DateOfIssueEndDate" Mode="In" Type="DateTime" />
            <Parameter Name="DateOfExpiryStartDate" Mode="In" Type="DateTime" />
            <Parameter Name="DateOfExpiryEndDate" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_WriteEntry">
            <Parameter Name="UserID" Mode="In" Type="Int32" />
            <Parameter Name="Source" Mode="In" Type="String" />
            <Parameter Name="Action" Mode="In" Type="String" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="IsCritical" Mode="In" Type="Boolean" />
            <Parameter Name="IsException" Mode="In" Type="Boolean" />
            <Parameter Name="Entity" Mode="In" Type="String" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GazetteGetNumber" ReturnType="Collection(String)" >
            <Parameter Name="GazetteTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
          </FunctionImport>
          <EntitySet Name="Settings" EntityType="Model.Setting" />
          <FunctionImport Name="Pr_RouteStartVerificationWorkflow">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_RouteSearch" ReturnType="Collection(Model.Pr_RouteSearch_Result)">
            <Parameter Name="OriginPlaceID" Mode="In" Type="Int64" />
            <Parameter Name="DestinationPlaceID" Mode="In" Type="Int64" />
            <Parameter Name="NationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="BoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="RouteStatusID" Mode="In" Type="Int64" />
            <Parameter Name="RoutesInVerification" Mode="In" Type="Boolean" />
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="LicenceServiceDetails" EntityType="Model.LicenceServiceDetail" />
          <AssociationSet Name="FK_LicenceServiceDetails_ServiceTypes" Association="Model.FK_LicenceServiceDetails_ServiceTypes">
            <End Role="ServiceType" EntitySet="ServiceTypes" />
            <End Role="LicenceServiceDetail" EntitySet="LicenceServiceDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceDetails_LicenceServiceDetails" Association="Model.FK_LicenceDetails_LicenceServiceDetails">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceServiceDetail" EntitySet="LicenceServiceDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_AssociationOlasNeoUpdate">
            <Parameter Name="UpdatedByID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="OlasID" Mode="In" Type="Int64" />
            <Parameter Name="NeoID" Mode="In" Type="Int64" />
            <Parameter Name="IsTransactionRequired" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationNeoMemberSearch" ReturnType="Collection(Model.Pr_AssociationNeoMemberSearch_Result)">
            <Parameter Name="NeoAssociationID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationMemberDataID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_NewRouteRequestDetails" EntityType="Model.Vw_NewRouteRequestDetails" />
          <AssociationSet Name="FK_LicenceIssueDetails_Vehicles" Association="Model.FK_LicenceIssueDetails_Vehicles">
            <End Role="Vehicle" EntitySet="Vehicles" />
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueInspectionDetails_LicenceIssueDetails" Association="Model.FK_LicenceIssueInspectionDetails_LicenceIssueDetails">
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
            <End Role="LicenceIssueInspectionDetail" EntitySet="LicenceIssueInspectionDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_RouteStartUpdateWorkflow">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_RouteNodeAdd">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="PlaceID" Mode="In" Type="Int64" />
            <Parameter Name="WaypointTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DistanceFromOrigin" Mode="In" Type="Double" />
            <Parameter Name="Sequence" Mode="In" Type="Int32" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GazetteApplicationBypassExpiry" ReturnType="Collection(String)">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Comment" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAdjudicationRestart">
            <Parameter Name="ApplicationAdjudicationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationPanelRemove">
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationPanelID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ReceiptsGetUnassigned" EntitySet="ReceiptDetails" ReturnType="Collection(Model.ReceiptDetail)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ReceiptCreateUnassignedReceipt" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int64" />
            <Parameter Name="PaymentTypeID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicantName" Mode="In" Type="String" />
            <Parameter Name="IdNumber" Mode="In" Type="String" />
            <Parameter Name="OlPermitNumber" Mode="In" Type="String" />
            <Parameter Name="VehicleRegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="ChassisNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ReceiptAssignReceipt">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_GetAppsWithMissingOrginatingLicences" ReturnType="Collection(Model.Pr_Purification_GetAppsWithMissingOrginatingLicences_Result)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_UpdateAppsWithMissingOrginatingLicence">
            <Parameter Name="ApplicationNumber" Mode="In" Type="String" />
            <Parameter Name="OrginatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_UpdateBypassedExpiredLicence">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="IssueNumber" Mode="In" Type="Int16" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="ApplicationNumber" Mode="In" Type="String" />
            <Parameter Name="SourceApplicationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_LicencesLinkedToActiveOLASGet" ReturnType="Collection(Model.Pr_Purification_LicencesLinkedToActiveOLASGet_Result)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceSearchRelatedApplications">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceSearchRelatedIssues" EntitySet="Vw_OperatingLicenceDetails" ReturnType="Collection(Model.Vw_OperatingLicenceDetails)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleSearch" EntitySet="Vehicles" ReturnType="Collection(Model.Vehicle)">
            <Parameter Name="RegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="VinNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleSearchLinkedLicences" EntitySet="Vw_OperatingLicenceDetails" ReturnType="Collection(Model.Vw_OperatingLicenceDetails)">
            <Parameter Name="VehicleID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueWorkflowGet" ReturnType="Collection(Model.Pr_LicenceIssueWorkflowGet_Result)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceApplicationWorkflowGet" ReturnType="Collection(Model.Pr_LicenceApplicationWorkflowGet_Result)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceWorkflowDocumentsGet" ReturnType="Collection(Model.Pr_LicenceWorkflowDocumentsGet_Result)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceExceptionsCounts" ReturnType="Collection(Model.Pr_LicenceExceptionsCounts_Result)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicencesWithExceptionGet" ReturnType="Collection(Model.Pr_LicencesWithExceptionGet_Result)">
            <Parameter Name="Exception" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="CarryingCapacities" EntityType="Model.CarryingCapacity" />
          <EntitySet Name="LicenceExceptions" EntityType="Model.LicenceException" />
          <AssociationSet Name="FK_LicenceExceptions_Licences" Association="Model.FK_LicenceExceptions_Licences">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceException" EntitySet="LicenceExceptions" />
          </AssociationSet>
          <FunctionImport Name="Pr_VehicleUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="VehicleID" Mode="In" Type="Int64" />
            <Parameter Name="RegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="EngineNumber" Mode="In" Type="String" />
            <Parameter Name="VIN" Mode="In" Type="String" />
            <Parameter Name="SeatedCapacity" Mode="In" Type="Int32" />
            <Parameter Name="StandingCapacity" Mode="In" Type="Int32" />
            <Parameter Name="GrossMass" Mode="In" Type="Int64" />
            <Parameter Name="VehicleMakeID" Mode="In" Type="Int16" />
            <Parameter Name="VehicleModelID" Mode="In" Type="Int16" />
            <Parameter Name="VehicleTypeID" Mode="In" Type="Int16" />
            <Parameter Name="CarryingCapacityID" Mode="In" Type="Int16" />
            <Parameter Name="YearOfManufacture" Mode="In" Type="String" />
            <Parameter Name="Tare" Mode="In" Type="Int64" />
            <Parameter Name="CurrentOdometerReading" Mode="In" Type="Int64" />
            <Parameter Name="RoadworthyCertificateDocID" Mode="In" Type="Int64" />
            <Parameter Name="ProfessionalDriversPermitDocID" Mode="In" Type="Int64" />
            <Parameter Name="RankPermitDocID" Mode="In" Type="Int64" />
            <Parameter Name="CertificateOfRegistrationDocID" Mode="In" Type="Int64" />
            <Parameter Name="CertifiedServiceRecordsDocID" Mode="In" Type="Int64" />
            <Parameter Name="CertifiedPublicPassangerLiabilityDocID" Mode="In" Type="Int64" />
            <Parameter Name="OlasID" Mode="In" Type="Int64" />
            <Parameter Name="LtpsID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
            <Parameter Name="ForceUpdateIfExists" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceExceptionsUpdate">
          <Parameter Name="LicenceID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_MemberDetailsUpdate">
            <Parameter Name="MemberID" Mode="In" Type="Int64" />
            <Parameter Name="SurnameOrCompanyName" Mode="In" Type="String" />
            <Parameter Name="FirstNames" Mode="In" Type="String" />
            <Parameter Name="PostalAddress" Mode="In" Type="String" />
            <Parameter Name="PostalAddressCode" Mode="In" Type="String" />
            <Parameter Name="PhysicalAddress" Mode="In" Type="String" />
            <Parameter Name="PhysicalAddressCode" Mode="In" Type="String" />
            <Parameter Name="TelPhone" Mode="In" Type="String" />
            <Parameter Name="TelCell" Mode="In" Type="String" />
            <Parameter Name="TelFax" Mode="In" Type="String" />
            <Parameter Name="Email" Mode="In" Type="String" />
            <Parameter Name="SARSIncomeTaxNumber" Mode="In" Type="String" />
            <Parameter Name="TradeName" Mode="In" Type="String" />
            <Parameter Name="BusinessTypeID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceStatusUpdate">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceStatusID" Mode="In" Type="Int16" />
            <Parameter Name="IsTransactionRequired" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicencesOverdueUpliftmentsGet" EntitySet="Licences" ReturnType="Collection(Model.Licence)" >
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationPostPone">
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceRouteAdd">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceRouteRemove">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAdjudicationBypass">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDecisionID" Mode="In" Type="Int16" />
            <Parameter Name="LicenceDurationID" Mode="In" Type="Int32" />
            <Parameter Name="LicenceExpiryDate" Mode="In" Type="DateTime" />
            <Parameter Name="ActualAdjudicationDate" Mode="In" Type="DateTime" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationsStatusViewGet" ReturnType="Collection(Model.Pr_ApplicationsStatusViewGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueRequestsStatusViewGet" ReturnType="Collection(Model.Pr_LicenceIssueRequestsStatusViewGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_NewRouteStatusViewGet" ReturnType="Collection(Model.Pr_NewRouteStatusViewGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PlaceUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="PlaceID" Mode="In" Type="Int64" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="PlaceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="OlasID" Mode="In" Type="Int64" />
            <Parameter Name="LtpsID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
            <Parameter Name="ForceUpdateIfExists" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAuditComplete">
            <Parameter Name="ApplicationAuditID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAuditCreate">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationAuditTypeID" Mode="In" Type="Int16" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAuditSearch" ReturnType="Collection(Model.Pr_ApplicationAuditSearch_Result)">
            <Parameter Name="AssignedToID" Mode="In" Type="Int64" />
            <Parameter Name="AuditedUserID" Mode="In" Type="Int64" />
            <Parameter Name="IncompleteAuditsOnly" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAdjudicationDecisionReverse">
            <Parameter Name="ApplicationAdjudicationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationBlockedLicenceCreate">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationBlockedLicencesGet" ReturnType="Collection(Model.Pr_ApplicationBlockedLicencesGet_Result)">
            </FunctionImport>
          <FunctionImport Name="Pr_VehicleIsNotUsed">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="VIN" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_RouteAssociationSummary" ReturnType="Collection(Model.Pr_RouteAssociationSummary_Result)">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteCounts" ReturnType="Collection(Model.Pr_Purification_RouteCounts_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteAwaitingRouteDescriptionChecks" ReturnType="Collection(Model.Pr_Purification_RouteAwaitingRouteDescriptionChecks_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDuplicateBoardRouteNumbers" ReturnType="Collection(Model.Pr_Purification_RouteDuplicateBoardRouteNumbers_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDuplicateNationalRouteNumbers" ReturnType="Collection(Model.Pr_Purification_RouteDuplicateNationalRouteNumbers_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDuplicatePlaces" ReturnType="Collection(Model.Pr_Purification_RouteDuplicatePlaces_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDescriptionUpdate" ReturnType="Collection(Int64)">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="OriginPlaceID" Mode="In" Type="Int64" />
            <Parameter Name="DestinationPlaceID" Mode="In" Type="Int64" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="RouteTypeID" Mode="In" Type="Int64" />
            <Parameter Name="TimeTableDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="FareScheduleDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDelete">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDuplicateNationalRouteNumberDetails" ReturnType="Collection(Model.Pr_Purification_RouteDuplicateNationalRouteNumberDetails_Result)">
            <Parameter Name="NationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_RouteMerge">
            <Parameter Name="DestinationRouteID" Mode="In" Type="Int64" />
            <Parameter Name="ObsoleteRouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RouteDuplicateBoardRouteNumberDetails" ReturnType="Collection(Model.Pr_Purification_RouteDuplicateBoardRouteNumberDetails_Result)">
            <Parameter Name="BoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_RoutesWithPotentialChangesFromOLAS" ReturnType="Collection(Model.Pr_Purification_RoutesWithPotentialChangesFromOLAS_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VerificationTasksGet" ReturnType="Collection(Model.Pr_VerificationTasksGet_Result)">
            <Parameter Name="WorkflowInstanceTaskID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ExceptionTasksGet" ReturnType="Collection(Model.Pr_ExceptionTasksGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleFlagVinAsCorrect">
            <Parameter Name="VehicleID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationBlockedLicenceDelete">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_SearchApplicationServiceTypes" ReturnType="Collection(Model.Pr_Purification_SearchApplicationServiceTypes_Result)">
            <Parameter Name="AppReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceModeUpdate" ReturnType="Collection(Int64)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="NewModeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceServiceTypeAdd" ReturnType="Collection(Int64)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ServiceTypeDescription" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceServiceTypeRemove" ReturnType="Collection(Int64)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceServcieDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_FindMember" ReturnType="Collection(Model.Pr_Purification_FindMember_Result)">
            <Parameter Name="IdNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationRouteAdd">
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationRouteRemove">
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationRoutesGet" EntitySet="Routes" ReturnType="Collection(Model.Route)">
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationBlockedIDNumberCreate">
            <Parameter Name="IDNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationBlockedIDNumberDelete">
            <Parameter Name="IDNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationBlockedIDNumbersGet" ReturnType="Collection(Model.Pr_ApplicationBlockedIDNumbersGet_Result)" />
          <FunctionImport Name="Pr_LicenceIssueWithoutPrint">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ReceiptCancellation">
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="LicenceIssueDocuments" EntityType="Model.LicenceIssueDocument" />
          <AssociationSet Name="FK_LicenceIssueDocuments_LicenceIssueDetails" Association="Model.FK_LicenceIssueDocuments_LicenceIssueDetails">
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
            <End Role="LicenceIssueDocument" EntitySet="LicenceIssueDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDocuments_DocumentTypes" Association="Model.FK_LicenceIssueDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="LicenceIssueDocument" EntitySet="LicenceIssueDocuments" />
          </AssociationSet>
          <FunctionImport Name="Pr_DocumentResultsSync">
            <Parameter Name="EntityID" Mode="In" Type="Int64" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowEntityID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowItemID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueDetailVerificationComplete">
            <Parameter Name="LicenceIssueDetailDetailID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowInstanceTaskID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationVehicleDetailsInBulkVerificationUpdate">
            <Parameter Name="ApplicationVehicleDetailsInBulkID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="IsVerified" Mode="In" Type="Boolean" />
            <Parameter Name="IsException" Mode="In" Type="Boolean" />
            <Parameter Name="ExceptionDetails" Mode="In" Type="String" />
            <Parameter Name="IsLastVehicleToBeVerified" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationPrecheckDocumentList" ReturnType="Collection(Model.Pr_ApplicationPrecheckDocumentList_Result)">
          <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int16" />
          </FunctionImport>
          <FunctionImport Name="Pr_PrecheckDocumentListGet" ReturnType="Collection(Model.Pr_PrecheckDocumentListGet_Result)">
          <Parameter Name="PreCheckDetailID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueDetaisReport" ReturnType="Collection(Model.Pr_LicenceIssueDetaisReport_Result)">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceVehicleDelink">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="ReasonForDelink" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_RouteSendToPurification">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationRemoveApplication">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationAddApplication">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Fn_GetSourceApplicationRecordsFromSourceSystem" IsComposable="true" ReturnType="Collection(Model.Fn_GetSourceApplicationRecordsFromSourceSystem_Result)">
            <Parameter Name="OlPermitNumber" Mode="In" Type="String" />
            <Parameter Name="SourceApplicationID" Mode="In" Type="Int16" />
            <Parameter Name="InlcudeActiveOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeLastExpiredIfNoActiveFound" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetAdjudicationAgendeUserEmails" ReturnType="Collection(String)" />
          <FunctionImport Name="Pr_LicenceIssueTrackingSearch" ReturnType="Collection(Model.Pr_LicenceIssueTrackingSearch_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueTrackingFlag" ReturnType="Collection(Int32)">
            <Parameter Name="LicencesToBeFlaggedAsSent" Mode="In" Type="String" />
            <Parameter Name="p30DaysLetterSent" Mode="In" Type="Boolean" />
            <Parameter Name="p60DaysLetterSent" Mode="In" Type="Boolean" />
            <Parameter Name="p90DaysLetterSent" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueTrackingExtend" ReturnType="Collection(Model.Pr_LicenceIssueTrackingExtend_Result)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pw_GetItemIDFromReference" ReturnType="Collection(Int64)">
          <Parameter Name="referenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <EntitySet Name="Vw_LicenceUpliftmentExtensionRequestDetails" EntityType="Model.Vw_LicenceUpliftmentExtensionRequestDetails" />
          <FunctionImport Name="Pr_LicenceUpliftmentExtensionDetailVerificationComplete">
            <Parameter Name="LicenceUpliftmentExtensionRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowInstanceTaskID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ExtensionTasksGet" ReturnType="Collection(Model.Pr_ExtensionTasksGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationVerificationHandleError">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationGetDocuments" ReturnType="Collection(Model.Pr_ApplicationGetDocuments_Result)">
          <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAddDocument">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int64" />
            <Parameter Name="DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetApplicationTypesForConversion" ReturnType="Collection(Model.Pr_GetApplicationTypesForConversion_Result)">
            <Parameter Name="ApplicationNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetReceipt" ReturnType="Collection(Model.Pr_GetReceipt_Result)">
            <Parameter Name="ReceiptNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SetReceiptToZero">
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetCashupUsers" ReturnType="Collection(Model.Pr_GetCashupUsers_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetCashupDetails" ReturnType="Collection(String)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetUserDetails" ReturnType="Collection(Model.Pr_GetUserDetails_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetRecentCashups" ReturnType="Collection(Model.Pr_GetRecentCashups_Result)">
            <Parameter Name="ReceiptUserID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationCreateReceipt">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ReceiptType" Mode="In" Type="String" />
            <Parameter Name="ReceiptNumberOfCopies" Mode="In" Type="Int32" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetUserDataOnIdSearch" ReturnType="Collection(Model.Pr_GetUserDataOnIdSearch_Result)">
            <Parameter Name="OldIDNumber" Mode="In" Type="String" />
            <Parameter Name="NewIDNumber" Mode="In" Type="String" />
          </FunctionImport>
          <EntitySet Name="Vw_GazetteApplications" EntityType="Model.Vw_GazetteApplication" />
          <EntitySet Name="Vw_AdjudicationDetails" EntityType="Model.Vw_AdjudicationDetails" />
          <EntitySet Name="Vw_ApplicationDetails" EntityType="Model.Vw_ApplicationDetails" />
          <EntitySet Name="Vw_ApplicationDetails_Light" EntityType="Model.Vw_ApplicationDetails_Light" />
          <EntitySet Name="Vw_ApplicationDetails_Receipts" EntityType="Model.Vw_ApplicationDetails_Receipts" />
          <FunctionImport Name="Pr_ApplicationSearch" EntitySet="Vw_ApplicationDetails_Light" ReturnType="Collection(Model.Vw_ApplicationDetails_Light)">
            <Parameter Name="ApplicationRequestTypes" Mode="In" Type="String" />
            <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveWorkflowsOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="ApplicationStatusID" Mode="In" Type="Int16" />
            <Parameter Name="ApplicationSubStatusID" Mode="In" Type="Int16" />
            <Parameter Name="Steps" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <AssociationSet Name="FK_VehicleTypes_CarryingCapacities" Association="Model.FK_VehicleTypes_CarryingCapacities">
            <End Role="CarryingCapacity" EntitySet="CarryingCapacities" />
            <End Role="VehicleType" EntitySet="VehicleTypes" />
          </AssociationSet>
          <FunctionImport Name="Pr_Dashboard_ApplicationSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_LicenceIssuingSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssuingSearch" EntitySet="Vw_LicenceIssueDetails" ReturnType="Collection(Model.Vw_LicenceIssueDetails)">
            <Parameter Name="ApplicationRequestTypes" Mode="In" Type="String" />
            <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveWorkflowsOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="Steps" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_InspectorInspectionsGet" ReturnType="Collection(Model.Pr_InspectorInspectionsGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationsAwaitingInspectionsGet" ReturnType="Collection(Model.Pr_ApplicationsAwaitingInspectionsGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_InspectorsGet" ReturnType="Collection(Model.Pr_InspectorsGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationInspectionDetailUpdate">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="InspectionStatusID" Mode="In" Type="Int16" />
            <Parameter Name="InspectorID" Mode="In" Type="Int64" />
            <Parameter Name="InspectionDateFrom" Mode="In" Type="DateTime" />
            <Parameter Name="InspectionDateTo" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationsAwaitingInspectionOutcomesGet" ReturnType="Collection(Model.Pr_ApplicationsAwaitingInspectionOutcomesGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AccreditationSearch" ReturnType="Collection(Model.Pr_AccreditationSearch_Result)">
            <Parameter Name="AccreditationNumber" Mode="In" Type="String" />
            <Parameter Name="MemberID" Mode="In" Type="Int64" />
            <Parameter Name="AccreditationStatusID" Mode="In" Type="Int64" />
            <Parameter Name="DateOfIssueStartDate" Mode="In" Type="DateTime" />
            <Parameter Name="DateOfIssueEndDate" Mode="In" Type="DateTime" />
            <Parameter Name="DateOfExpiryStartDate" Mode="In" Type="DateTime" />
            <Parameter Name="DateOfExpiryEndDate" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_AccreditationIssuingSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Accreditations" EntityType="Model.Accreditation" />
          <EntitySet Name="AccreditationStatus" EntityType="Model.AccreditationStatu" />
          <AssociationSet Name="FK_Accreditations_AccreditationStatusID" Association="Model.FK_Accreditations_AccreditationStatusID">
            <End Role="AccreditationStatu" EntitySet="AccreditationStatus" />
            <End Role="Accreditation" EntitySet="Accreditations" />
          </AssociationSet>
          <AssociationSet Name="FK_Accreditations_Members" Association="Model.FK_Accreditations_Members">
            <End Role="VerifiedMember" EntitySet="VerifiedMembers" />
            <End Role="Accreditation" EntitySet="Accreditations" />
          </AssociationSet>
          <FunctionImport Name="Pr_PrintoutCreate" ReturnType="Collection(Model.Pr_PrintoutCreate_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="PrintoutTypeID" Mode="In" Type="Int16" />
            <Parameter Name="PrintedByID" Mode="In" Type="Int64" />
            <Parameter Name="IsRePrint" Mode="In" Type="Boolean" />
            <Parameter Name="ReprintReason" Mode="In" Type="String" />
            <Parameter Name="IsTestPrint" Mode="In" Type="Boolean" />
            <Parameter Name="DocumentNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_PrintoutGetByToken" ReturnType="Collection(Model.Pr_PrintoutGetByToken_Result)">
            <Parameter Name="VerificationToken" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAdjudicationDecisionCommit">
            <Parameter Name="ApplicationAdjudicationID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDecisionID" Mode="In" Type="Int16" />
            <Parameter Name="LicenceDurationID" Mode="In" Type="Int32" />
            <Parameter Name="LicenceExpiryDate" Mode="In" Type="DateTime" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AccreditationIssueSearch" ReturnType="Collection(Model.Pr_AccreditationIssueSearch_Result)">
            <Parameter Name="ApplicationRequestTypes" Mode="In" Type="String" />
            <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveWorkflowsOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="Steps" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdvancedSearch" ReturnType="Collection(Model.Pr_AdvancedSearch_Result)">
            <Parameter Name="SearchTerm" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="GazetteTypes" EntityType="Model.GazetteType" />
          <AssociationSet Name="FK__GazetteDe__Gazet__6DAD1CC9" Association="Model.FK__GazetteDe__Gazet__6DAD1CC9">
            <End Role="GazetteType" EntitySet="GazetteTypes" />
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK__Licences__Accred__16AF325C" Association="Model.FK__Licences__Accred__16AF325C">
            <End Role="Accreditation" EntitySet="Accreditations" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <FunctionImport Name="Pr_AccreditationStatusUpdate">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="AccreditationID" Mode="In" Type="Int64" />
            <Parameter Name="AccreditationStatusID" Mode="In" Type="Int16" />
            <Parameter Name="IsTransactionRequired" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_AvgProcessingTime" ReturnType="Collection(Model.Pr_Dashboard_AvgProcessingTime_Result)">
            <Parameter Name="ApplicationrequestTypeIDs" Mode="In" Type="String" />
            <Parameter Name="DateFrom" Mode="In" Type="DateTime" />
            <Parameter Name="DateTo" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="DocumentTypeQuestions" EntityType="Model.DocumentTypeQuestion" />
          <AssociationSet Name="FK_DocumentTypeQuestions_DocumentTypes" Association="Model.FK_DocumentTypeQuestions_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="DocumentTypeQuestion" EntitySet="DocumentTypeQuestions" />
          </AssociationSet>
          <EntitySet Name="ApplicationRequestTypes" EntityType="Model.ApplicationRequestType" />
          <EntitySet Name="ApplicationRequestTypeDocumentSetups" EntityType="Model.ApplicationRequestTypeDocumentSetup" />
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_DocumentTypes" Association="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ApplicationRequestTypeDocumentSetup" EntitySet="ApplicationRequestTypeDocumentSetups" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" Association="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDocumentSetup" EntitySet="ApplicationRequestTypeDocumentSetups" />
          </AssociationSet>
          <FunctionImport Name="Pr_Dashboard_NewRouteRequestSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_NewRouteRequestSearch" EntitySet="Vw_NewRouteRequestDetails" ReturnType="Collection(Model.Vw_NewRouteRequestDetails)">
            <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveWorkflowsOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="Steps" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ApplicationRequestTypeDivisionSetups" EntityType="Model.ApplicationRequestTypeDivisionSetup" />
          <AssociationSet Name="FK__Applicati__Appli__7CBA562F" Association="Model.FK__Applicati__Appli__7CBA562F">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDivisionSetup" EntitySet="ApplicationRequestTypeDivisionSetups" />
          </AssociationSet>
          <AssociationSet Name="FK__Applicati__Provi__7EA29EA1" Association="Model.FK__Applicati__Provi__7EA29EA1">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="ApplicationRequestTypeDivisionSetup" EntitySet="ApplicationRequestTypeDivisionSetups" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationRequestTypeDivisionSetupCreate">
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestTypeDivisionSetupSearch" ReturnType="Collection(Model.Pr_ApplicationRequestTypeDivisionSetupSearch_Result)">
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestTypeDocumentCancel">
            <Parameter Name="ApplicationRequestTypeDocumentID" Mode="In" Type="Int32" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestTypeDocumentUpsert">
            <Parameter Name="ApplicationRequestTypeDocumentID" Mode="In" Type="Int32" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int16" />
            <Parameter Name="WorkflowTemplateID" Mode="In" Type="Int64" />
            <Parameter Name="IsAvailableForUpload" Mode="In" Type="String" />
            <Parameter Name="IsMandatory" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentTypeCancel">
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentTypeQuestionCancel">
            <Parameter Name="DocumentTypeQuestionIDs" Mode="In" Type="String" />
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentTypeQuestionUpsert">
            <Parameter Name="DocumentTypeQuestionID" Mode="In" Type="Int64" />
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int64" />
            <Parameter Name="CaptureFieldID" Mode="In" Type="Int16" />
            <Parameter Name="Question" Mode="In" Type="String" />
            <Parameter Name="OrderBy" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DocumentTypeUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int64" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="IsDocumentTitleEditable" Mode="In" Type="Boolean" />
            <Parameter Name="IsExpiryDateRequired" Mode="In" Type="Boolean" />
            <Parameter Name="IsUniqueEntityDocument" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_UpdateMember">
            <Parameter Name="IdNumber" Mode="In" Type="String" />
            <Parameter Name="SurnameOrCompanyName" Mode="In" Type="String" />
            <Parameter Name="FirstNames" Mode="In" Type="String" />
            <Parameter Name="PostalAddress" Mode="In" Type="String" />
            <Parameter Name="PostalAddressCode" Mode="In" Type="String" />
            <Parameter Name="PhysicalAddress" Mode="In" Type="String" />
            <Parameter Name="PhysicalAddressCode" Mode="In" Type="String" />
            <Parameter Name="TelPhone" Mode="In" Type="String" />
            <Parameter Name="TelCell" Mode="In" Type="String" />
            <Parameter Name="TelFax" Mode="In" Type="String" />
            <Parameter Name="Email" Mode="In" Type="String" />
            <Parameter Name="SARSIncomeTaxNumber" Mode="In" Type="String" />
            <Parameter Name="TradeName" Mode="In" Type="String" />
            <Parameter Name="BusinessTypeID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_FindMember" ReturnType="Collection(Model.Pr_FindMember_Result)">
            <Parameter Name="IdNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SearchApplicationRoutes" ReturnType="Collection(Model.Pr_SearchApplicationRoutes_Result)">
            <Parameter Name="AppReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SearchLicenceRoutes" ReturnType="Collection(Model.Pr_SearchLicenceRoutes_Result)">
            <Parameter Name="LirReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRouteRemove">
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="VerifiedRouteID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationNationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="ApplicationBoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRouteAdd">
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="NationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="BoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationLicenseSearch" ReturnType="Collection(Model.Pr_ApplicationLicenseSearch_Result)">
            <Parameter Name="ApplicationNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="LicenceRoutes" EntityType="Model.LicenceRoute" />
          <AssociationSet Name="FK_LicenceRoutes_Licences" Association="Model.FK_LicenceRoutes_Licences">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceRoute" EntitySet="LicenceRoutes" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceRoutes_Routes" Association="Model.FK_LicenceRoutes_Routes">
            <End Role="Route" EntitySet="Routes" />
            <End Role="LicenceRoute" EntitySet="LicenceRoutes" />
          </AssociationSet>
          <FunctionImport Name="Pr_LicenceServiceTypesGet" ReturnType="Collection(Model.Pr_LicenceServiceTypesGet_Result)">
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceRouteRemove">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="VerifiedRouteID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceNationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="LicenceBoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VerifiedLicenceServiceTypesGet" ReturnType="Collection(Model.Pr_VerifiedLicenceServiceTypesGet_Result)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceRouteAdd">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="NationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="BoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_GetUserDataOnIdSearch" ReturnType="Collection(Model.Pr_Purification_GetUserDataOnIdSearch_Result)">
            <Parameter Name="OldIDNumber" Mode="In" Type="String" />
            <Parameter Name="NewIDNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_UpdateIdNumber">
            <Parameter Name="OldIDNumber" Mode="In" Type="String" />
            <Parameter Name="NewIDNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_AdjudicationApplicationDetails" EntityType="Model.Vw_AdjudicationApplicationDetails" />
          <FunctionImport Name="Pr_AdjudicationApplicationListGet" EntitySet="Vw_AdjudicationApplicationDetails" ReturnType="Collection(Model.Vw_AdjudicationApplicationDetails)">
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_GazetteSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_AdjudicationSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationApplicationSearch" ReturnType="Collection(Model.Pr_AdjudicationApplicationSearch_Result)">
            <Parameter Name="ApplicationSubStatusID" Mode="In" Type="Int16" />
            <Parameter Name="AdjudicationTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_StationeryBatchCreate">
            <Parameter Name="StationeryBatchTypeID" Mode="In" Type="Int16" />
            <Parameter Name="FromNumber" Mode="In" Type="String" />
            <Parameter Name="ToNumber" Mode="In" Type="String" />
            <Parameter Name="IntFromNumber" Mode="In" Type="Int64" />
            <Parameter Name="IntToNumber" Mode="In" Type="Int64" />
            <Parameter Name="Prefix" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_StationeryBatchesGet" ReturnType="Collection(Model.Pr_StationeryBatchesGet_Result)">
            <Parameter Name="SearchType" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Stationeries" EntityType="Model.Stationery" />
          <FunctionImport Name="Pr_StationeryAssignPrecheck" EntitySet="Stationeries" ReturnType="Collection(Model.Stationery)">
            <Parameter Name="FromNumber" Mode="In" Type="String" />
            <Parameter Name="NumberOfPagesIssued" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_StationeryAssign">
            <Parameter Name="AssignToID" Mode="In" Type="Int64" />
            <Parameter Name="FromNumber" Mode="In" Type="String" />
            <Parameter Name="NumberOfPagesIssued" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_FirstStationeryNumberGet" EntitySet="Stationeries" ReturnType="Collection(Model.Stationery)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_IssuedStationeryGet" ReturnType="Collection(Model.Pr_IssuedStationeryGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_IssuedToStationeryGet" ReturnType="Collection(Model.Pr_IssuedToStationeryGet_Result)">
            <Parameter Name="IssuedToID" Mode="In" Type="Int64" />
            <Parameter Name="StationeryStatusIDs" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ReturnedIssuedStationery">
            <Parameter Name="IssuedToID" Mode="In" Type="Int64" />
            <Parameter Name="StationeryID" Mode="In" Type="Int64" />
            <Parameter Name="StationeryStatusID" Mode="In" Type="Int16" />
            <Parameter Name="StationeryScanDocID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_Associations" EntityType="Model.Vw_Associations" />
          <FunctionImport Name="Pr_StationeryTransfer">
            <Parameter Name="FromNumber" Mode="In" Type="String" />
            <Parameter Name="NumberOfPagesIssued" Mode="In" Type="Int64" />
            <Parameter Name="StationeryBatchTypeID" Mode="In" Type="Int16" />
            <Parameter Name="OfficeLocationID" Mode="In" Type="Int16" />
            <Parameter Name="ExternalPartyDescription" Mode="In" Type="String" />
            <Parameter Name="ExternalPartyContactName" Mode="In" Type="String" />
            <Parameter Name="ExternalPartyContactEmail" Mode="In" Type="String" />
            <Parameter Name="StaioneryIDs" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_StationeryBatchReceived">
            <Parameter Name="StationeryBatchID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_StationeryNumberGetNext" EntitySet="Stationeries" ReturnType="Collection(Model.Stationery)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_StationeryStatusHistoryUpdate">
            <Parameter Name="StationeryID" Mode="In" Type="Int64" />
            <Parameter Name="StationeryStatusID" Mode="In" Type="Int16" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PrintoutUpdate">
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="VerificationToken" Mode="In" Type="String" />
            <Parameter Name="DocumentNumber" Mode="In" Type="String" />
            <Parameter Name="PrintedSuccussfully" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PrintoutSaveData">
            <Parameter Name="VerificationToken" Mode="In" Type="String" />
            <Parameter Name="Json" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_OfficeLocations" EntityType="Model.Vw_OfficeLocation" />
          <FunctionImport Name="Pr_AdjudicationSearch" ReturnType="Collection(Model.Pr_AdjudicationSearch_Result)">
            <Parameter Name="AdjudicationDetailStatusID" Mode="In" Type="Int16" />
            <Parameter Name="AdjudicationDateFrom" Mode="In" Type="DateTime" />
            <Parameter Name="AdjudicationDateTo" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationCreate" EntitySet="AdjudicationDetails" ReturnType="Collection(Model.AdjudicationDetail)">
            <Parameter Name="AdjudicationTypeID" Mode="In" Type="Int16" />
            <Parameter Name="MeetingDate" Mode="In" Type="DateTime" />
            <Parameter Name="MeetingDateEnd" Mode="In" Type="DateTime" />
            <Parameter Name="MaxAdjudicationAutoApplicationCount" Mode="In" Type="Int16" />
            <Parameter Name="AdjudicationOfficeLocationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="LicenceDurations" EntityType="Model.LicenceDuration" />
          <FunctionImport Name="Pr_AdjudicationUpdateDates">
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="MeetingDate" Mode="In" Type="DateTime" />
            <Parameter Name="MeetingDateEnd" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAdjudicationGet" ReturnType="Collection(Model.Pr_ApplicationAdjudicationGet_Result)">
            <Parameter Name="ApplicationAdjudicationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AppDocumentsAwaitingVerificationGet" ReturnType="Collection(Model.Pr_AppDocumentsAwaitingVerificationGet_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int64" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationLicenceTemporaryReplacementGet" ReturnType="Collection(Model.Pr_ApplicationLicenceTemporaryReplacementGet_Result)">
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VerifiedLicenceXmlGet" ReturnType="Collection(String)">
            <Parameter Name="IDNumber" Mode="In" Type="String" />
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="RegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="VehicleChassisNumber" Mode="In" Type="String" />
          </FunctionImport>
          <EntitySet Name="OfficeLocationSetups" EntityType="Model.OfficeLocationSetup" />
          <EntitySet Name="OfficeLocationSetupDocumentTemplates" EntityType="Model.OfficeLocationSetupDocumentTemplate" />
          <AssociationSet Name="FK__OfficeLoc__Offic__3D69D821" Association="Model.FK__OfficeLoc__Offic__3D69D821">
            <End Role="OfficeLocationSetup" EntitySet="OfficeLocationSetups" />
            <End Role="OfficeLocationSetupDocumentTemplate" EntitySet="OfficeLocationSetupDocumentTemplates" />
          </AssociationSet>
          <FunctionImport Name="Pr_OfficeLocationSetupDocumentTemplateUpsert">
            <Parameter Name="OfficeLocationID" Mode="In" Type="Int64" />
            <Parameter Name="PreAdjudicationLetterDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PreAdjudicationObjectionLetterDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PostAdjudicationLetterApprovedDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PostAdjudicationLetterPostponedDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PostAdjudicationLetterRefusedDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PostAdjudicationLetterCancelledDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PostAdjudicationLetterWithdrawnDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="PostAdjudicationLetterStruckOffDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceAnnexure_AdjudicationPanelDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="TATConfirmationReceipt_DocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="LicencingBoards" EntityType="Model.LicencingBoard" />
          <AssociationSet Name="FK_LicencingBoards_Provinces" Association="Model.FK_LicencingBoards_Provinces">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="LicencingBoard" EntitySet="LicencingBoards" />
          </AssociationSet>
          <FunctionImport Name="Pr_OfficeLocationSetupUpsert">
            <Parameter Name="OfficeLocationID" Mode="In" Type="Int64" />
            <Parameter Name="LocationName" Mode="In" Type="String" />
            <Parameter Name="LocationAddress" Mode="In" Type="String" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="RegionID" Mode="In" Type="Int16" />
            <Parameter Name="LicencingBoardID" Mode="In" Type="Int16" />
            <Parameter Name="PaymentClerkUserID" Mode="In" Type="Int64" />
            <Parameter Name="AssessorUserID" Mode="In" Type="Int64" />
            <Parameter Name="SeniorManagerApproverUserID" Mode="In" Type="Int64" />
            <Parameter Name="InspectionCapturerUserID" Mode="In" Type="Int64" />
            <Parameter Name="ReferralCapturerUserID" Mode="In" Type="Int64" />
            <Parameter Name="HandlesGazetting" Mode="In" Type="Boolean" />
            <Parameter Name="GazetteNumberPrefix" Mode="In" Type="String" />
            <Parameter Name="AdjudicationOfficerUserID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationSecrataryUserID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationAgendaEmails" Mode="In" Type="String" />
            <Parameter Name="AdjudicationHearingQuorumCount" Mode="In" Type="Int16" />
            <Parameter Name="AdjudicationMeetingQuorumCount" Mode="In" Type="Int16" />
            <Parameter Name="MaxAdjudicationAutoApplicationCount" Mode="In" Type="Int16" />
            <Parameter Name="BusinessRuleBypassApproverUserID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationContactName" Mode="In" Type="String" />
            <Parameter Name="AdjudicationContactTelPhone" Mode="In" Type="String" />
            <Parameter Name="AdjudicationContactEmail" Mode="In" Type="String" />
            <Parameter Name="RouteCapturerUserID" Mode="In" Type="Int64" />
            <Parameter Name="RouteApproverUserID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="DivisionTypes" EntityType="Model.DivisionType" />
          <AssociationSet Name="FK_GazetteDetails_DivisionTypes" Association="Model.FK_GazetteDetails_DivisionTypes">
            <End Role="DivisionType" EntitySet="DivisionTypes" />
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK__Applicati__Divis__7DAE7A68" Association="Model.FK__Applicati__Divis__7DAE7A68">
            <End Role="DivisionType" EntitySet="DivisionTypes" />
            <End Role="ApplicationRequestTypeDivisionSetup" EntitySet="ApplicationRequestTypeDivisionSetups" />
          </AssociationSet>
          <EntitySet Name="Vw_VehicleModels" EntityType="Model.Vw_VehicleModels" />
          <EntitySet Name="VehicleModels" EntityType="Model.VehicleModel" />
          <AssociationSet Name="FK__VehicleMo__Carry__11F56A37" Association="Model.FK__VehicleMo__Carry__11F56A37">
            <End Role="CarryingCapacity" EntitySet="CarryingCapacities" />
            <End Role="VehicleModel" EntitySet="VehicleModels" />
          </AssociationSet>
          <AssociationSet Name="FK_VehicleModels_VehicleMakes" Association="Model.FK_VehicleModels_VehicleMakes">
            <End Role="VehicleMake" EntitySet="VehicleMakes" />
            <End Role="VehicleModel" EntitySet="VehicleModels" />
          </AssociationSet>
          <AssociationSet Name="FK__VehicleMo__Vehic__0F18FD8C" Association="Model.FK__VehicleMo__Vehic__0F18FD8C">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="VehicleModel" EntitySet="VehicleModels" />
          </AssociationSet>
          <AssociationSet Name="FK__Vehicles__Vehicl__28D8CF8F" Association="Model.FK__Vehicles__Vehicl__28D8CF8F">
            <End Role="VehicleModel" EntitySet="VehicleModels" />
            <End Role="Vehicle" EntitySet="Vehicles" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationRequestTypeDocumentUpdateSqlRules">
            <Parameter Name="DocumentTypeID" Mode="In" Type="Int16" />
            <Parameter Name="WorkflowTemplateID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicencingBoardUpsert">
            <Parameter Name="LicencingBoardID" Mode="In" Type="Int64" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int64" />
            <Parameter Name="IsCancelled" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleModelCancel">
            <Parameter Name="VehicleModelID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleModelUpsert">
            <Parameter Name="VehicleModelID" Mode="In" Type="Int16" />
            <Parameter Name="VehicleMakeID" Mode="In" Type="Int16" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="SeatedCapacityExcludingDriver" Mode="In" Type="Int16" />
            <Parameter Name="StandingCapacity" Mode="In" Type="Int16" />
            <Parameter Name="GrossWeight" Mode="In" Type="Int64" />
            <Parameter Name="TareWeight" Mode="In" Type="Int64" />
            <Parameter Name="VehicleTypeID" Mode="In" Type="Int16" />
            <Parameter Name="CarryingCapacityID" Mode="In" Type="Int16" />
            <Parameter Name="IsValidModel" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicencingBoardCancel">
            <Parameter Name="LicencingBoardID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleMakeCancel">
            <Parameter Name="VehicleMakeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleMakeUpsert">
            <Parameter Name="VehicleMakeID" Mode="In" Type="Int16" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <Parameter Name="IsCancelled" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetReceiptDetails" ReturnType="Collection(Model.Pr_GetReceiptDetails_Result)">
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAwaitingCorrectionsGet" ReturnType="Collection(Model.Pr_ApplicationAwaitingCorrectionsGet_Result)">
            <Parameter Name="AssignedToID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ApplicationAllowedNewLicences" EntityType="Model.ApplicationAllowedNewLicence" />
          <FunctionImport Name="Pr_GetApplicationAllowedNewLicences" ReturnType="Collection(Model.Pr_GetApplicationAllowedNewLicences_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <AssociationSet Name="FK__Applicati__Divis__58A7DE42" Association="Model.FK__Applicati__Divis__58A7DE42">
            <End Role="DivisionType" EntitySet="DivisionTypes" />
            <End Role="ApplicationAllowedNewLicence" EntitySet="ApplicationAllowedNewLicences" />
          </AssociationSet>
          <AssociationSet Name="FK__Applicati__Provi__599C027B" Association="Model.FK__Applicati__Provi__599C027B">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="ApplicationAllowedNewLicence" EntitySet="ApplicationAllowedNewLicences" />
          </AssociationSet>
          <FunctionImport Name="Pr_Purification_InsertAllowedNewLicence">
            <Parameter Name="ApplicationAllowedNewLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="MemberName" Mode="In" Type="String" />
            <Parameter Name="IdNumberOrBusinessRegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="RegistrationNumber" Mode="In" Type="String" />
            <Parameter Name="ApplicationAllowedNewLicenceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="ApplicationReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="StationeryBatches" EntityType="Model.StationeryBatch" />
          <AssociationSet Name="FK__Stationer__Stati__5071BF9D" Association="Model.FK__Stationer__Stati__5071BF9D">
            <End Role="StationeryBatch" EntitySet="StationeryBatches" />
            <End Role="Stationery" EntitySet="Stationeries" />
          </AssociationSet>
          <FunctionImport Name="Pr_GetSystemSettings" ReturnType="Collection(String)">
          <Parameter Name="SettingName" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_TaskSearch" ReturnType="Collection(Model.Pr_TaskSearch_Result)">
            <Parameter Name="AssignedToUserID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAnalytics_ApplicationCreatedBySummmary" ReturnType="Collection(Model.DashboardOutcome)">
            <Parameter Name="FromDate" Mode="In" Type="DateTime" />
            <Parameter Name="ToDate" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAnalytics_ApplicationPerRegion" ReturnType="Collection(Model.DashboardOutcome)">
            <Parameter Name="FromDate" Mode="In" Type="DateTime" />
            <Parameter Name="ToDate" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAnalytics_ApplicationRequestTypeSummmary" ReturnType="Collection(Model.DashboardOutcome)">
            <Parameter Name="FromDate" Mode="In" Type="DateTime" />
            <Parameter Name="ToDate" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationAnalyticsSearch" ReturnType="Collection(Model.Pr_ApplicationAnalyticsSearch_Result)">
            <Parameter Name="FromDate" Mode="In" Type="DateTime" />
            <Parameter Name="ToDate" Mode="In" Type="DateTime" />
            <Parameter Name="ApplicationRequestTypeIDs" Mode="In" Type="String" />
            <Parameter Name="CreatedBy" Mode="In" Type="String" />
            <Parameter Name="SearchRegionID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_NonBatchedCashReceiptDetailsGet" EntitySet="Vw_ReceiptDetails" ReturnType="Collection(Model.Vw_ReceiptDetails)">
            <Parameter Name="ReceiptUserID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AddReceiptToApplication">
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SearchCashups" ReturnType="Collection(Model.Pr_SearchCashups_Result)">
            <Parameter Name="PaymentClerkID" Mode="In" Type="Int64" />
            <Parameter Name="FromDate" Mode="In" Type="DateTime" />
            <Parameter Name="ToDate" Mode="In" Type="DateTime" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestTypeDivisionSetupUpdate">
            <Parameter Name="ApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="IsAssessorApprovalRequiredRule" Mode="In" Type="String" />
            <Parameter Name="IsSeniorManagerApprovalRequiredRule" Mode="In" Type="String" />
            <Parameter Name="IsFinalisationTasksRequiredRule" Mode="In" Type="String" />
            <Parameter Name="IsInspectionRequiredRule" Mode="In" Type="String" />
            <Parameter Name="IsReferralRequiredRule" Mode="In" Type="String" />
            <Parameter Name="IsAdjudicationRequiredRule" Mode="In" Type="String" />
            <Parameter Name="AdjudicationTypeRule" Mode="In" Type="String" />
            <Parameter Name="IsGazettingRequiredRule" Mode="In" Type="String" />
            <Parameter Name="GazetteTypeRule" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationConversionChangeType">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="NewApplicationRequestTypeID" Mode="In" Type="Int32" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestTypeDivisionSetupClone" EntitySet="ApplicationRequestTypeDivisionSetups" ReturnType="Collection(Model.ApplicationRequestTypeDivisionSetup)">
            <Parameter Name="OldApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="OldDivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="OldProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="NewApplicationRequestTypeID" Mode="In" Type="Int16" />
            <Parameter Name="NewDivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="NewProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_BusinessRuleBypassRequestInprogressGet" ReturnType="Collection(Model.Pr_BusinessRuleBypassRequestInprogressGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_AdjudicationSummaryExceptionsGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_TAT_ApplicationsPendingDataReleaseGet" ReturnType="Collection(Model.Pr_TAT_ApplicationsPendingDataReleaseGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_TAT_ApplicationsReleaseData">
            <Parameter Name="TATApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Comments" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_LicenceCancelSummaryGet" ReturnType="Collection(Model.DashboardOutcome)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceCancelSearch" EntitySet="Vw_LicenceCancelDetails" ReturnType="Collection(Model.Vw_LicenceCancelDetails)">
            <Parameter Name="IncludeWorkflowsAwaitingInfoOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveWorkflowsOnly" Mode="In" Type="Boolean" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="Steps" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_LicenceCancelDetails" EntityType="Model.Vw_LicenceCancelDetails" />
          <EntitySet Name="Vw_Settings" EntityType="Model.Vw_Settings" />
          <EntitySet Name="Vw_ApplicationDetails_InProgress" EntityType="Model.Vw_ApplicationDetails_InProgress" />
          <FunctionImport Name="Pr_SettingUpsert" ReturnType="Collection(String)">
            <Parameter Name="SettingName" Mode="In" Type="String" />
            <Parameter Name="SettingValue" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
          </FunctionImport>
          <EntitySet Name="Vw_VehicleMakes" EntityType="Model.Vw_VehicleMakes" />
          <EntitySet Name="Vw_LicencingBoards" EntityType="Model.Vw_LicencingBoards" />
          <AssociationSet Name="FK__ServiceTy__Route__646E96A9" Association="Model.FK__ServiceTy__Route__646E96A9">
            <End Role="RouteType" EntitySet="RouteTypes" />
            <End Role="ServiceType" EntitySet="ServiceTypes" />
          </AssociationSet>
          <EntitySet Name="Inspectors" EntityType="Model.Inspector" />
          <FunctionImport Name="Pr_InspectorCancel">
            <Parameter Name="InspectorID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_InspectorsGetView" ReturnType="Collection(Model.Pr_InspectorsGetView_Result)" />
          <FunctionImport Name="Pr_InspectorUpsert">
            <Parameter Name="InspectorID" Mode="In" Type="Int64" />
            <Parameter Name="Name" Mode="In" Type="String" />
            <Parameter Name="OfficeLocationID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="DivisionTypeAnnexureMappings" EntityType="Model.DivisionTypeAnnexureMapping" />
          <AssociationSet Name="FK__DivisionT__Divis__7F228CE5" Association="Model.FK__DivisionT__Divis__7F228CE5">
            <End Role="DivisionType" EntitySet="DivisionTypes" />
            <End Role="DivisionTypeAnnexureMapping" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK__DivisionT__Provi__0016B11E" Association="Model.FK__DivisionT__Provi__0016B11E">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="DivisionTypeAnnexureMapping" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK__DivisionT__Servi__010AD557" Association="Model.FK__DivisionT__Servi__010AD557">
            <End Role="ServiceType" EntitySet="ServiceTypes" />
            <End Role="DivisionTypeAnnexureMapping" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <AssociationSet Name="FK__DivisionT__Vehic__01FEF990" Association="Model.FK__DivisionT__Vehic__01FEF990">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="DivisionTypeAnnexureMapping" EntitySet="DivisionTypeAnnexureMappings" />
          </AssociationSet>
          <FunctionImport Name="Pr_DivisionTypeAnnexureMappingSearch" EntitySet="DivisionTypeAnnexureMappings" ReturnType="Collection(Model.DivisionTypeAnnexureMapping)">
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="VehicleTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_SystemAdministrator" ReturnType="Collection(Model.Pr_Dashboard_SystemAdministrator_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_SystemAdministrator_FailedTasks" ReturnType="Collection(Model.Pr_Dashboard_SystemAdministrator_FailedTasks_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_SystemAdministrator_RequestCorrection">
            <Parameter Name="InstanceTaskID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_SystemAdministrator_RetryFailedTasks">
            <Parameter Name="InstanceTaskID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_DivisionTypeAnnexureMappings" EntityType="Model.Vw_DivisionTypeAnnexureMappings" />
          <FunctionImport Name="Pr_DivisionTypeAnnexureMappingCancel">
            <Parameter Name="DivisionTypeAnnexureMappingID" Mode="In" Type="Int64" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_DivisionTypeAnnexureMappingUpsert">
            <Parameter Name="DivisionTypeAnnexureMappingID" Mode="In" Type="Int64" />
            <Parameter Name="DivisionTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ProvinceID" Mode="In" Type="Int16" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="VehicleTypeID" Mode="In" Type="Int16" />
            <Parameter Name="AnnexureDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_ApplicationRequestTypeDivisionSetup" EntityType="Model.Vw_ApplicationRequestTypeDivisionSetup" />
          <EntitySet Name="Vw_ApplicationRequestTypeDocumentSetup" EntityType="Model.Vw_ApplicationRequestTypeDocumentSetup" />
          <EntitySet Name="Vw_OfficeLocationSetup" EntityType="Model.Vw_OfficeLocationSetup" />
          <FunctionImport Name="Pr_SearchApplicationLicenceVehicleType" ReturnType="Collection(Model.Pr_SearchApplicationLicenceVehicleType_Result)">
            <Parameter Name="ApplicationLicenceReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SearchApplicationServiceTypes" ReturnType="Collection(Model.Pr_SearchApplicationServiceTypes_Result)">
            <Parameter Name="ApplicationLicenceReferenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SearchLicenceVehicleTypes" ReturnType="Collection(Model.Pr_SearchLicenceVehicleTypes_Result)">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_SearchLicenceServiceTypes" ReturnType="Collection(Model.Pr_SearchLicenceServiceTypes_Result)">
            <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationLicenceVehicleTypeUpdate" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="NewVehicleTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationServiceTypeAdd" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="ServiceTypeDescription" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationServiceTypeRemove" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceServiceDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationLicenseGet" ReturnType="Collection(Model.Pr_ApplicationLicenseGet_Result)">
            <Parameter Name="ApplicationNumber" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationServiceTypeUpdate" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceServiceDetailID" Mode="In" Type="Int64" />
            <Parameter Name="NewServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ServiceVehicleTypes" EntityType="Model.ServiceVehicleType" />
          <AssociationSet Name="FK__ServiceVe__Servi__59F10836" Association="Model.FK__ServiceVe__Servi__59F10836">
            <End Role="ServiceType" EntitySet="ServiceTypes" />
            <End Role="ServiceVehicleType" EntitySet="ServiceVehicleTypes" />
          </AssociationSet>
          <AssociationSet Name="FK__ServiceVe__Vehic__5AE52C6F" Association="Model.FK__ServiceVe__Vehic__5AE52C6F">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="ServiceVehicleType" EntitySet="ServiceVehicleTypes" />
          </AssociationSet>
          <FunctionImport Name="Pr_GetSetupAvailableOptions" ReturnType="Collection(Model.Pr_GetSetupAvailableOptions_Result)">
            <Parameter Name="EntityID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PrintGazetteReport" ReturnType="Collection(Model.Pr_PrintGazetteReport_Result)">
            <Parameter Name="GazetteDetailID" Mode="In" Type="Int64" />
            <Parameter Name="GazetteRegionID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationGazetteRoutesGet" ReturnType="Collection(Model.Pr_ApplicationGazetteRoutesGet_Result)">
            <Parameter Name="ApplicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GazetteRoutesGet" ReturnType="Collection(Model.Pr_GazetteRoutesGet_Result)">
            <Parameter Name="GazetteDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <AssociationSet Name="FK_Licences_DivisionTypes" Association="Model.FK_Licences_DivisionTypes">
            <End Role="DivisionType" EntitySet="DivisionTypes" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_LicencingBoards" Association="Model.FK_Licences_LicencingBoards">
            <End Role="LicencingBoard" EntitySet="LicencingBoards" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Provinces" Association="Model.FK_Licences_Provinces">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Regions" Association="Model.FK_Licences_Regions">
            <End Role="Region" EntitySet="Regions" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Associations" Association="Model.FK_Licences_Associations">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <FunctionImport Name="Pr_MemberGet" ReturnType="Collection(Model.Pr_MemberGet_Result)">
            <Parameter Name="MemberID" Mode="In" Type="Int64" />
            <Parameter Name="IDNumberOrBusinessRegistrationNo" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceRoutesGet" ReturnType="Collection(Model.Pr_LicenceRoutesGet_Result)">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          </EntityContainer>
        <ComplexType Name="Pr_ApplicationDetailsRecentReceipts_Result">
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ApplicationNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" />
          <Property Type="Decimal" Name="Cost" Nullable="true" Precision="19" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ReceiptNumber" Nullable="true" MaxLength="53" />
          <Property Type="Decimal" Name="TotalCost" Nullable="false" Precision="19" />
        </ComplexType>
        <EntityType Name="GazetteDetail">
          <Key>
            <PropertyRef Name="GazetteDetailID" />
          </Key>
          <Property Type="Int64" Name="GazetteDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="GazetteDetailStatusID" Nullable="false" />
          <Property Type="String" Name="GazetteNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="DateTime" Name="GazettePrintDate" Precision="3" />
          <Property Type="DateTime" Name="GazetteNoticeExpiryDate" Precision="3" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <NavigationProperty Name="Province" Relationship="Model.FK_GazetteDetails_Provinces" FromRole="GazetteDetail" ToRole="Provinces" />
          <NavigationProperty Name="Status" Relationship="Model.FK_GazetteDetails_GazetteDetailStatusID" FromRole="GazetteDetail" ToRole="GazetteDetailStatu" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="GazetteTypeID" Type="Int16" />
          <NavigationProperty Name="GazetteType" Relationship="Model.FK__GazetteDe__Gazet__6DAD1CC9" FromRole="GazetteDetail" ToRole="GazetteType" />
          <Property Name="GazetteDocumentID" Type="Int64" />
          <NavigationProperty Name="DivisionType" Relationship="Model.FK_GazetteDetails_DivisionTypes" FromRole="GazetteDetail" ToRole="DivisionType" />
        </EntityType>
        <EntityType Name="SourceApplication">
          <Key>
            <PropertyRef Name="SourceApplicationID" />
          </Key>
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
        </EntityType>
        <EntityType Name="Vw_ReceiptDetails">
          <Key>
            <PropertyRef Name="ReceiptDetailID" />
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="false" />
          <Property Type="String" Name="ReceiptNumber" MaxLength="53" FixedLength="false" Unicode="false" />
          <Property Type="Decimal" Name="TotalCost" Nullable="false" Precision="19" Scale="4" />
          <Property Type="String" Name="PaymentType" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ApplicantData" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ReceiptItems" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="CreatedById" Nullable="false" />
          <Property Type="Int64" Name="ReceiptBatchID" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="PaymentTypeID" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
        </EntityType>
        <EntityType Name="ReceiptDetail">
          <Key>
            <PropertyRef Name="ReceiptDetailID" />
          </Key>
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="PaymentTypeID" Nullable="false" />
          <Property Type="String" Name="ReceiptNumber" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="Decimal" Name="TotalCost" Nullable="false" Precision="19" Scale="4" />
          <Property Type="Int64" Name="CreatedById" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedById" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="String" Name="ApplicantData" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ReceiptItems" MaxLength="Max" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="PaymentType" Relationship="Model.FK_ReceiptDetails_PaymentTypes" FromRole="ReceiptDetail" ToRole="PaymentType" />
          <Property Type="Int64" Name="ReceiptBatchID" />          
          <Property Name="ApplicationDetailID" Type="Int64" />
          <Property Name="HasBulkLicenceApplications" Type="Boolean" Nullable="false" />
          <Property Name="ProofOfPaymentDocID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="ApplicantIDNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ProofOfPaymentRefNo" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="DocumentTypes">
          <Key>
            <PropertyRef Name="DocumentTypeID" />
          </Key>
          <Property Type="Int16" Name="DocumentTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Boolean" Name="IsDocumentTitleEditable" Nullable="false" />
          <NavigationProperty Name="LicenceIssueDocuments" Relationship="Model.FK_LicenceIssueDocuments_DocumentTypes" FromRole="DocumentTypes" ToRole="LicenceIssueDocument" />
          <Property Name="IsExpiryDateRequired" Type="Boolean" />
          <Property Name="IsUniqueEntityDocument" Type="Boolean" />
          <NavigationProperty Name="DocumentTypeQuestions" Relationship="Model.FK_DocumentTypeQuestions_DocumentTypes" FromRole="DocumentTypes" ToRole="DocumentTypeQuestion" />
          <NavigationProperty Name="ApplicationRequestTypeDocumentSetups" Relationship="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" FromRole="DocumentTypes" ToRole="ApplicationRequestTypeDocumentSetup" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="AssociationModes">
          <Key>
            <PropertyRef Name="AssociationModeID" />
          </Key>
          <Property Type="Int32" Name="AssociationModeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Associations" Relationship="Model.FK_Associations_AssociationModes" FromRole="AssociationModes" ToRole="Associations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int32" Name="OlasID" />
          <Property Type="Int16" Name="LtpsID" />
        </EntityType>
        <EntityType Name="AssociationTypes">
          <Key>
            <PropertyRef Name="AssociationTypeID" />
          </Key>
          <Property Type="Int16" Name="AssociationTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Associations" Relationship="Model.FK_Associations_AssociationTypes" FromRole="AssociationTypes" ToRole="Associations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpID" />
        </EntityType>
        <EntityType Name="AssociationStatus">
          <Key>
            <PropertyRef Name="AssociationStatusID" />
          </Key>
          <Property Type="Int16" Name="AssociationStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Associations" Relationship="Model.FK_Associations_AssociationStatusID" FromRole="AssociationStatus" ToRole="Associations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <ComplexType Name="Pr_ApplicationDetailsAwaitingAdjudication_Result">
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ApplicationNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" />
          <Property Type="Decimal" Name="Cost" Nullable="true" Precision="19" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Member" Nullable="true" MaxLength="511" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ReceiptNumber" Nullable="true" MaxLength="53" />
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="true" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="Boolean" Name="IsNewRouteRequired" Nullable="false" />
          <Property Type="String" Name="GazetteNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="GazetteDetailID" Nullable="true" />
          <Property Type="Int32" Name="VehicleCount" Nullable="true" />
        </ComplexType>
        <EntityType Name="VerifiedMember">
          <Key>
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="Int64" Name="IdentityDocumentDocID" />
          <Property Type="Int64" Name="TaxClearanceCertificateDocID" />
          <Property Type="String" Name="SurnameOrCompanyName" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="FirstNames" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="IDTypeID" />
          <Property Type="String" Name="IDTypeDescription" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddress" MaxLength="800" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddressCode" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PhysicalAddress" MaxLength="800" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PhysicalAddressCode" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TelPhone" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TelCell" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TelFax" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Email" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="SARSIncomeTaxNumber" MaxLength="50" FixedLength="false" Unicode="false" />          
          <Property Type="String" Name="TradeName" MaxLength="255" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Status" Relationship="Model.FK_Members_MemberStatusID" FromRole="Members" ToRole="MemberStatus" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Members" FromRole="VerifiedMember" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="IDType" Relationship="Model.FK_Members_IDTypes" FromRole="VerifiedMember" ToRole="IDType" />
          <Property Type="String" Name="ReferenceNumber" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="Associations" Relationship="Model.AssociationMembers" FromRole="VerifiedMember" ToRole="Associations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="NeoID" />
          <Property Name="BusinessTypeID" Type="Int64" />
          <NavigationProperty Name="Accreditations" Relationship="Model.FK_Accreditations_Members" FromRole="VerifiedMember" ToRole="Accreditation" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="RegionID" Type="Int64" />
        </EntityType>
        <EntityType Name="VerifiedMemberStatus">
          <Key>
            <PropertyRef Name="MemberStatusID" />
          </Key>
          <Property Type="Int16" Name="MemberStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Members" Relationship="Model.FK_Members_MemberStatusID" FromRole="MemberStatus" ToRole="Members" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_Members_MemberStatusID">
          <End Type="Model.VerifiedMemberStatus" Role="MemberStatus" Multiplicity="1" />
          <End Type="Model.VerifiedMember" Role="Members" Multiplicity="*" />
        </Association>
        <EntityType Name="AdjudicationDetail">
          <Key>
            <PropertyRef Name="AdjudicationDetailID" />
          </Key>
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="AdjudicationDetailStatusID" Nullable="false" />
          <Property Type="DateTime" Name="MeetingDate" Nullable="false" Precision="3" />
          <Property Type="Boolean" Name="PreAdjudicationNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PreAdjudicationLettersSent" Nullable="false" />
          <Property Type="Boolean" Name="PostAdjudicationNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PostAdjudicationLettersSent" Nullable="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <NavigationProperty Name="Status" Relationship="Model.FK_AdjudicationDetails_AdjudicationDetailStatusID" FromRole="AdjudicationDetail" ToRole="AdjudicationDetailStatu" />
          <NavigationProperty Name="Panels" Relationship="Model.FK_AdjudicationPanel_AdjudicationDetails" FromRole="AdjudicationDetail" ToRole="AdjudicationPanel" />
          <Property Type="String" Name="MeetingTime" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Type="Int16" Name="AdjudicationTypeID" Nullable="false" />
          <NavigationProperty Name="Type" Relationship="Model.FK_AdjudicationDetails_AdjudicationType" FromRole="AdjudicationDetail" ToRole="AdjudicationType" />
          <Property Name="PreAdjudicationObjectionNotificationsSent" Type="Boolean" Nullable="false" />
          <Property Name="PreAdjudicationObjectionLettersSent" Type="Boolean" Nullable="false" />
          <Property Name="LocationName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="LocationAddress" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="MeetingDateEnd" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="MeetingTimeEnd" Type="String" MaxLength="100" FixedLength="false" Unicode="true" annotation:StoreGeneratedPattern="Computed" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="Int16" />
          <Property Name="AdjudicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          </EntityType>
        <EntityType Name="Province">
          <Key>
            <PropertyRef Name="ProvinceID" />
          </Key>
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="GazetteDetails" Relationship="Model.FK_GazetteDetails_Provinces" FromRole="Provinces" ToRole="GazetteDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Regions" Relationship="Model.FK_Regions_Provinces" FromRole="Provinces" ToRole="Regions" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestTypeDivisionSetups" Relationship="Model.FK__Applicati__Provi__7EA29EA1" FromRole="Province" ToRole="ApplicationRequestTypeDivisionSetup" />
          <NavigationProperty Name="LicencingBoards" Relationship="Model.FK_LicencingBoards_Provinces" FromRole="Province" ToRole="LicencingBoard" />
          <NavigationProperty Name="ApplicationAllowedNewLicences" Relationship="Model.FK__Applicati__Provi__599C027B" FromRole="Province" ToRole="ApplicationAllowedNewLicence" />
          <NavigationProperty Name="DivisionTypeAnnexureMappings" Relationship="Model.FK__DivisionT__Provi__0016B11E" FromRole="Province" ToRole="DivisionTypeAnnexureMapping" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Provinces" FromRole="Province" ToRole="Licence" />
        </EntityType>
        <Association Name="FK_GazetteDetails_Provinces">
          <End Type="Model.Province" Role="Provinces" Multiplicity="1" />
          <End Type="Model.GazetteDetail" Role="GazetteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="GazetteDetail">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Region">
          <Key>
            <PropertyRef Name="RegionID" />
          </Key>
          <Property Type="Int64" Name="RegionID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Province" Relationship="Model.FK_Regions_Provinces" FromRole="Regions" ToRole="Provinces" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Associations" Relationship="Model.FK_Associations_Regions" FromRole="Regions" ToRole="Associations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Regions" FromRole="Region" ToRole="Licence" />
        </EntityType>
        <Association Name="FK_Regions_Provinces">
          <End Type="Model.Province" Role="Provinces" Multiplicity="1" />
          <End Type="Model.Region" Role="Regions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="Regions">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Associations">
          <Key>
            <PropertyRef Name="AssociationID" />
          </Key>
          <Property Type="Int64" Name="AssociationID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="AssociationStatusID" Nullable="false" />
          <Property Type="Int32" Name="AssociationModeID" Nullable="false" />
          <Property Type="Int16" Name="AssociationTypeID" Nullable="false" />
          <Property Type="Int64" Name="RegionID" Nullable="false" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="AssociationNameAbbrev" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddress" MaxLength="400" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddressCode" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PhysicalAddress" MaxLength="400" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PhysicalAddressCode" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="PostalAddressIsDomicilium" Nullable="false" />
          <Property Type="String" Name="BusRegNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TaxNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TelNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="FaxNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="CellNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="EmailAddress" MaxLength="255" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Mode" Relationship="Model.FK_Associations_AssociationModes" FromRole="Associations" ToRole="AssociationModes" />
          <NavigationProperty Name="Type" Relationship="Model.FK_Associations_AssociationTypes" FromRole="Associations" ToRole="AssociationTypes" />
          <NavigationProperty Name="Region" Relationship="Model.FK_Associations_Regions" FromRole="Associations" ToRole="Regions" />
          <NavigationProperty Name="Status" Relationship="Model.FK_Associations_AssociationStatusID" FromRole="Associations" ToRole="AssociationStatus" />
          <Property Type="String" Name="ReferenceNumber" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="Members" Relationship="Model.AssociationMembers" FromRole="Associations" ToRole="VerifiedMember" />
          <NavigationProperty Name="Routes" Relationship="Model.AssociationRoutes" FromRole="Associations" ToRole="Route" />
          <Property Type="Int32" Name="ActiveMemberCount" />
          <Property Type="Int64" Name="NeoID" />
          <Property Name="AdjudicationOfficeLocationID" Type="Int16" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Associations" FromRole="Associations" ToRole="Licence" />
        </EntityType>
        <Association Name="FK_Associations_AssociationModes">
          <End Type="Model.AssociationModes" Role="AssociationModes" Multiplicity="1" />
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AssociationModes">
              <PropertyRef Name="AssociationModeID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="AssociationModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_AssociationTypes">
          <End Type="Model.AssociationTypes" Role="AssociationTypes" Multiplicity="1" />
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AssociationTypes">
              <PropertyRef Name="AssociationTypeID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="AssociationTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_Regions">
          <End Type="Model.Region" Role="Regions" Multiplicity="1" />
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Regions">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Associations_AssociationStatusID">
          <End Type="Model.AssociationStatus" Role="AssociationStatus" Multiplicity="1" />
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AssociationStatus">
              <PropertyRef Name="AssociationStatusID" />
            </Principal>
            <Dependent Role="Associations">
              <PropertyRef Name="AssociationStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Route">
          <Key>
            <PropertyRef Name="RouteID" />
          </Key>
          <Property Type="Int64" Name="RouteID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="String" Name="RouteName" Nullable="false" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="OriginPlaceID" />
          <Property Type="Int64" Name="DestinationPlaceID" />
          <Property Type="String" Name="NationalRouteNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="BoardRouteNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Double" Name="RouteLength" />
          <Property Type="Int16" Name="RouteStatusID" Nullable="false" />
          <NavigationProperty Name="Status" Relationship="Model.FK_Routes_RouteStatusID" FromRole="Route" ToRole="RouteStatu" />
          <NavigationProperty Name="Destination" Relationship="Model.FK_Routes_DestinationPlace" FromRole="Route" ToRole="Place" />
          <NavigationProperty Name="Origin" Relationship="Model.FK_Routes_OriginPlace" FromRole="Route" ToRole="Place" />
          <NavigationProperty Name="RouteType" Relationship="Model.FK_Routes_RouteTypes" FromRole="Route" ToRole="RouteType" />
          <Property Type="String" Name="ReferenceNumber" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="Associations" Relationship="Model.AssociationRoutes" FromRole="Route" ToRole="Associations" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="NeoID" />
          <Property Type="Int64" Name="ProvinceID" />
          <Property Name="TimeTableDocumentID" Type="Int64" />
          <Property Name="FareScheduleDocumentID" Type="Int64" />
          <Property Name="IsChecked" Type="Boolean" Nullable="false" />
          <Property Name="IsPotentialIncorrectRouteChange" Type="Boolean" Nullable="false" />
          <Property Name="IsPotentialIncorrectRouteChangeProbability" Type="Int16" />
          <NavigationProperty Name="LicenceRoutes" Relationship="Model.FK_LicenceRoutes_Routes" FromRole="Route" ToRole="LicenceRoute" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="VersionNumber" Type="Int32" Nullable="false" />
          <Property Name="IsLatest" Type="Boolean" Nullable="false" />
          <Property Name="ParentRouteID" Type="Int64" />
        </EntityType>
        <EntityType Name="RouteStatus">
          <Key>
            <PropertyRef Name="RouteStatusID" />
          </Key>
          <Property Type="Int16" Name="RouteStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Routes" Relationship="Model.FK_Routes_RouteStatusID" FromRole="RouteStatu" ToRole="Route" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_Routes_RouteStatusID">
          <End Type="Model.RouteStatus" Role="RouteStatu" Multiplicity="1" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="RouteStatu">
              <PropertyRef Name="RouteStatusID" />
            </Principal>
            <Dependent Role="Route">
              <PropertyRef Name="RouteStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="PaymentType">
          <Key>
            <PropertyRef Name="PaymentTypeID" />
          </Key>
          <Property Type="Int16" Name="PaymentTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="ReceiptDetails" Relationship="Model.FK_ReceiptDetails_PaymentTypes" FromRole="PaymentType" ToRole="ReceiptDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ReceiptDetails_PaymentTypes">
          <End Type="Model.PaymentType" Role="PaymentType" Multiplicity="1" />
          <End Type="Model.ReceiptDetail" Role="ReceiptDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PaymentType">
              <PropertyRef Name="PaymentTypeID" />
            </Principal>
            <Dependent Role="ReceiptDetail">
              <PropertyRef Name="PaymentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Place">
          <Key>
            <PropertyRef Name="PlaceID" />
          </Key>
          <Property Type="Int64" Name="PlaceID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="PlaceTypeID" />
          <NavigationProperty Name="DestinationRoutes" Relationship="Model.FK_Routes_DestinationPlace" FromRole="Place" ToRole="Route" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="OriginRoutes" Relationship="Model.FK_Routes_OriginPlace" FromRole="Place" ToRole="Route" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="PlaceType" Relationship="Model.FK_Places_PlaceTypes" FromRole="Place" ToRole="PlaceType" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <Property Type="Int64" Name="NeoID" />
          <Property Name="PlaceCode" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="Latitude" Type="Double" />
          <Property Name="Longitude" Type="Double" />
          <Property Name="ParentPlaceID" Type="Int64" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="IntersectionOlasID" Type="Int64" />
          <Property Name="RoadlinkOlasID" Type="Int64" />
          <Property Name="TownOlasID" Type="Int64" />
          <Property Name="RankOlasID" Type="Int64" />
        </EntityType>
        <Association Name="FK_Routes_DestinationPlace">
          <End Type="Model.Place" Role="Place" Multiplicity="0..1" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Place">
              <PropertyRef Name="PlaceID" />
            </Principal>
            <Dependent Role="Route">
              <PropertyRef Name="DestinationPlaceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_OriginPlace">
          <End Type="Model.Place" Role="Place" Multiplicity="0..1" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Place">
              <PropertyRef Name="PlaceID" />
            </Principal>
            <Dependent Role="Route">
              <PropertyRef Name="OriginPlaceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="AdjudicationDetailStatus">
          <Key>
            <PropertyRef Name="AdjudicationDetailStatusID" />
          </Key>
          <Property Type="Int16" Name="AdjudicationDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="AdjudicationDetails" Relationship="Model.FK_AdjudicationDetails_AdjudicationDetailStatusID" FromRole="AdjudicationDetailStatu" ToRole="AdjudicationDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_AdjudicationDetails_AdjudicationDetailStatusID">
          <End Type="Model.AdjudicationDetailStatus" Role="AdjudicationDetailStatu" Multiplicity="1" />
          <End Type="Model.AdjudicationDetail" Role="AdjudicationDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDetailStatu">
              <PropertyRef Name="AdjudicationDetailStatusID" />
            </Principal>
            <Dependent Role="AdjudicationDetail">
              <PropertyRef Name="AdjudicationDetailStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Licence">
          <Key>
            <PropertyRef Name="LicenceID" />
          </Key>
          <Property Type="Int64" Name="LicenceID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="Int64" Name="VehicleID" />
          <Property Type="String" Name="NameOnLicence" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="OperatingLicenceNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int32" Name="IssueNumber" Nullable="false" />
          <Property Type="String" Name="CertificateNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="DateTime" Name="DateOfIssue" Precision="3" />
          <Property Type="DateTime" Name="DateOfExpiry" Precision="3" />
          <Property Type="Boolean" Name="Indefinite" Nullable="false" />
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <NavigationProperty Name="Status" Relationship="Model.FK_Licences_LicenceStatusID" FromRole="Licence" ToRole="LicenceStatu" />
          <NavigationProperty Name="Member" Relationship="Model.FK_Licences_Members" FromRole="Licence" ToRole="VerifiedMember" >
          </NavigationProperty>
          <NavigationProperty Name="Vehicle" Relationship="Model.FK_Licences_Vehicles" FromRole="Licence" ToRole="Vehicle" >
          </NavigationProperty>
          <NavigationProperty Name="LicenceIssueDetails" Relationship="Model.FK_LicenceIssueDetails_Licences" FromRole="Licence" ToRole="LicenceIssueDetail" />
          <Property Type="DateTime" Name="UpcomingExpiryNotificationSmsSentDate" Precision="3" />
          <Property Type="DateTime" Name="ExpiredNotificationSmsSentDate" Precision="3" />
          <NavigationProperty Name="LicenceServiceDetails" Relationship="Model.FK_LicenceDetails_LicenceServiceDetails" FromRole="Licence" ToRole="LicenceServiceDetail" />
          <Property Name="UpliftmentReminderSmsSentDate" Type="DateTime" Precision="3" />
          <NavigationProperty Name="LicenceExceptions" Relationship="Model.FK_LicenceExceptions_Licences" FromRole="Licence" ToRole="LicenceException" />
          <Property Name="OriginalLTPSPermitNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="OriginalOLASNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="IsLatestIssue" Type="Boolean" />
          <Property Name="ApplicationLicenceID" Type="Int64" />
          <Property Name="LicenceVehicleTypeID" Type="Int16" />
          <Property Name="LicenceCarryingCapacityID" Type="Int16" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="LicencingBoardID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="AccreditationID" Type="Int64" />
          <NavigationProperty Name="Accreditation" Relationship="Model.FK__Licences__Accred__16AF325C" FromRole="Licence" ToRole="Accreditation" />
          <NavigationProperty Name="LicenceRoutes" Relationship="Model.FK_LicenceRoutes_Licences" FromRole="Licence" ToRole="LicenceRoute" />
          <Property Name="IsTemporaryLicence" Type="Boolean" />
          <Property Name="DateOfApproval" Type="DateTime" Precision="3" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="AssociationID" Type="Int64" />
          <Property Name="OlasId" Type="Int64" />
          <Property Name="CleanOperatingLicenceNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <NavigationProperty Name="DivisionType" Relationship="Model.FK_Licences_DivisionTypes" FromRole="Licence" ToRole="DivisionType" />
          <NavigationProperty Name="LicencingBoard" Relationship="Model.FK_Licences_LicencingBoards" FromRole="Licence" ToRole="LicencingBoard" />
          <NavigationProperty Name="Province" Relationship="Model.FK_Licences_Provinces" FromRole="Licence" ToRole="Province" />
          <NavigationProperty Name="Region" Relationship="Model.FK_Licences_Regions" FromRole="Licence" ToRole="Region" />
          <NavigationProperty Name="Association" Relationship="Model.FK_Licences_Associations" FromRole="Licence" ToRole="Associations" />
        </EntityType>
        <EntityType Name="LicenceStatus">
          <Key>
            <PropertyRef Name="LicenceStatusID" />
          </Key>
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_LicenceStatusID" FromRole="LicenceStatu" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_Licences_LicenceStatusID">
          <End Type="Model.LicenceStatus" Role="LicenceStatu" Multiplicity="1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceStatu">
              <PropertyRef Name="LicenceStatusID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="LicenceStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Members">
          <End Type="Model.VerifiedMember" Role="VerifiedMember" Multiplicity="1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VerifiedMember">
              <PropertyRef Name="MemberID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="MemberID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vehicle">
          <Key>
            <PropertyRef Name="VehicleID" />
          </Key>
          <Property Type="Int64" Name="VehicleID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="RegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="EngineNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="GrossMass" />
          <Property Type="Int16" Name="VehicleMakeID" />
          <Property Type="Int16" Name="VehicleTypeID" />
          <Property Type="Int16" Name="VehicleStatusID" Nullable="false" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Vehicles" FromRole="Vehicle" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleMake" Relationship="Model.FK_Vehicles_VehicleMakes" FromRole="Vehicle" ToRole="VehicleMake" />
          <NavigationProperty Name="VehicleType" Relationship="Model.FK_Vehicles_VehicleTypes" FromRole="Vehicle" ToRole="VehicleType" />
          <Property Type="String" Name="ReferenceNumber" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="Int32" Name="SeatedCapacity" />
          <Property Type="Int32" Name="StandingCapacity" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <Property Type="String" Name="VIN" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="NeoID" />
          <NavigationProperty Name="LicenceIssueDetails" Relationship="Model.FK_LicenceIssueDetails_Vehicles" FromRole="Vehicle" ToRole="LicenceIssueDetail" />
          <Property Name="CarryingCapacityID" Type="Int16" />
          <Property Name="YearOfManufacture" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="IgnoreVinException" Type="Boolean" />
          <Property Name="Tare" Type="Int64" />
          <Property Name="CurrentOdometerReading" Type="Int64" />
          <Property Name="RoadworthyCertificateDocID" Type="Int64" />
          <Property Name="CertificateOfRegistrationDocID" Type="Int64" />
          <Property Name="VehicleModelID" Type="Int16" />
          <NavigationProperty Name="VehicleModel" Relationship="Model.FK__Vehicles__Vehicl__28D8CF8F" FromRole="Vehicle" ToRole="VehicleModel" />
          <Property Name="ProfessionalDriversPermitDocID" Type="Int64" />
          <Property Name="RankPermitDocID" Type="Int64" />
          <Property Name="CertifiedServiceRecordsDocID" Type="Int64" />
          <Property Name="CertifiedPublicPassangerLiabilityDocID" Type="Int64" />
        </EntityType>
        <Association Name="FK_Licences_Vehicles">
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicle">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="VehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="AdjudicationDecision">
          <Key>
            <PropertyRef Name="AdjudicationDecisionID" />
          </Key>
          <Property Type="Int16" Name="AdjudicationDecisionID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
        </EntityType>
        <EntityType Name="GazetteDetailStatu">
          <Key>
            <PropertyRef Name="GazetteDetailStatusID" />
          </Key>
          <Property Type="Int16" Name="GazetteDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="GazetteDetails" Relationship="Model.FK_GazetteDetails_GazetteDetailStatusID" FromRole="GazetteDetailStatu" ToRole="GazetteDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_GazetteDetails_GazetteDetailStatusID">
          <End Type="Model.GazetteDetailStatu" Role="GazetteDetailStatu" Multiplicity="1" />
          <End Type="Model.GazetteDetail" Role="GazetteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="GazetteDetailStatu">
              <PropertyRef Name="GazetteDetailStatusID" />
            </Principal>
            <Dependent Role="GazetteDetail">
              <PropertyRef Name="GazetteDetailStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_AdjudicationPanelMembersGet_Result">
          <Property Type="Int64" Name="UserID" Nullable="false" />
        </ComplexType>
        <EntityType Name="AdjudicationPanel">
          <Key>
            <PropertyRef Name="AdjudicationPanelID" />
          </Key>
          <Property Type="Int64" Name="AdjudicationPanelID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="PanelMemberUserID" Nullable="false" />
          <NavigationProperty Name="AdjudicationDetail" Relationship="Model.FK_AdjudicationPanel_AdjudicationDetails" FromRole="AdjudicationPanel" ToRole="AdjudicationDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="HasAttended" Nullable="false" />
          <Property Name="IsChairman" Type="Boolean" Nullable="false" />
          <Property Name="DateConfirmed" Type="DateTime" Precision="3" />
          <Property Name="AddedAfterStart" Type="Boolean" Nullable="false" />
        </EntityType>
        <Association Name="FK_AdjudicationPanel_AdjudicationDetails">
          <End Type="Model.AdjudicationDetail" Role="AdjudicationDetail" Multiplicity="1" />
          <End Type="Model.AdjudicationPanel" Role="AdjudicationPanel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDetail">
              <PropertyRef Name="AdjudicationDetailID" />
            </Principal>
            <Dependent Role="AdjudicationPanel">
              <PropertyRef Name="AdjudicationDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_AdjudicationPanel">
          <Key>
            <PropertyRef Name="AdjudicationPanelID" />
          </Key>
          <Property Type="Int64" Name="AdjudicationPanelID" Nullable="false" />
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="PanelMemberUserID" Nullable="false" />
          <Property Type="Boolean" Name="HasAttended" Nullable="false" />
          <Property Type="String" Name="FullName" MaxLength="101" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Attended" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
          <Property Name="IsChairman" Type="Boolean" Nullable="false" />
          <Property Name="DateConfirmed" Type="DateTime" Precision="3" />
          <Property Name="AddedAfterStart" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="ContractType">
          <Key>
            <PropertyRef Name="ContractTypeID" />
          </Key>
          <Property Type="Int16" Name="ContractTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
        </EntityType>
        <EntityType Name="IDType">
          <Key>
            <PropertyRef Name="IDTypeID" />
          </Key>
          <Property Type="Int16" Name="IDTypeID" Nullable="false" />
          <Property Type="String" Name="Description" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsForIndividual" />
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpsID" />
          <Property Type="Boolean" Name="IsCancelled" />
          <NavigationProperty Name="Members" Relationship="Model.FK_Members_IDTypes" FromRole="IDType" ToRole="VerifiedMember" />
        </EntityType>
        <EntityType Name="PlaceType">
          <Key>
            <PropertyRef Name="PlaceTypeID" />
          </Key>
          <Property Type="Int16" Name="PlaceTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Places" Relationship="Model.FK_Places_PlaceTypes" FromRole="PlaceType" ToRole="Place" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
        </EntityType>
        <EntityType Name="RouteType">
          <Key>
            <PropertyRef Name="RouteTypeID" />
          </Key>
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Routes" Relationship="Model.FK_Routes_RouteTypes" FromRole="RouteType" ToRole="Route" />
          <NavigationProperty Name="ServiceTypes" Relationship="Model.FK__ServiceTy__Route__646E96A9" FromRole="RouteType" ToRole="ServiceType" />
        </EntityType>
        <EntityType Name="ServiceType">
          <Key>
            <PropertyRef Name="ServiceTypeID" />
          </Key>
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="String" Name="OlasID" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="LicenceServiceDetails" Relationship="Model.FK_LicenceServiceDetails_ServiceTypes" FromRole="ServiceType" ToRole="LicenceServiceDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="RouteTypeID" Type="Int16" />
          <NavigationProperty Name="RouteType" Relationship="Model.FK__ServiceTy__Route__646E96A9" FromRole="ServiceType" ToRole="RouteType" />
          <NavigationProperty Name="DivisionTypeAnnexureMappings" Relationship="Model.FK__DivisionT__Servi__010AD557" FromRole="ServiceType" ToRole="DivisionTypeAnnexureMapping" />
          <NavigationProperty Name="ServiceVehicleTypes" Relationship="Model.FK__ServiceVe__Servi__59F10836" FromRole="ServiceType" ToRole="ServiceVehicleType" />
        </EntityType>
        <EntityType Name="VehicleMake">
          <Key>
            <PropertyRef Name="VehicleMakeID" />
          </Key>
          <Property Type="Int16" Name="VehicleMakeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Vehicles" Relationship="Model.FK_Vehicles_VehicleMakes" FromRole="VehicleMake" ToRole="Vehicle" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="IsMotorcarMake" Type="Boolean" Nullable="false" />
          <Property Name="IsMinibusMake" Type="Boolean" Nullable="false" />
          <Property Name="IsBusMake" Type="Boolean" Nullable="false" />
          <Property Name="IsMidibusMake" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="VehicleModels" Relationship="Model.FK_VehicleModels_VehicleMakes" FromRole="VehicleMake" ToRole="VehicleModel" />
          <Property Name="IsNew" Type="Boolean" />
        </EntityType>
        <EntityType Name="VehicleType">
          <Key>
            <PropertyRef Name="VehicleTypeID" />
          </Key>
          <Property Type="Int16" Name="VehicleTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Vehicles" Relationship="Model.FK_Vehicles_VehicleTypes" FromRole="VehicleType" ToRole="Vehicle" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpsID" />
          <Property Name="CarryingCapacityID" Type="Int16" />
          <NavigationProperty Name="CarryingCapacity" Relationship="Model.FK_VehicleTypes_CarryingCapacities" FromRole="VehicleType" ToRole="CarryingCapacity" />
          <NavigationProperty Name="VehicleModels" Relationship="Model.FK__VehicleMo__Vehic__0F18FD8C" FromRole="VehicleType" ToRole="VehicleModel" />
          <NavigationProperty Name="DivisionTypeAnnexureMappings" Relationship="Model.FK__DivisionT__Vehic__01FEF990" FromRole="VehicleType" ToRole="DivisionTypeAnnexureMapping" />
          <NavigationProperty Name="ServiceVehicleTypes" Relationship="Model.FK__ServiceVe__Vehic__5AE52C6F" FromRole="VehicleType" ToRole="ServiceVehicleType" />
        </EntityType>
        <EntityType Name="WaypointType">
          <Key>
            <PropertyRef Name="WaypointTypeID" />
          </Key>
          <Property Type="Int16" Name="WaypointTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
        </EntityType>
        <Association Name="FK_Members_IDTypes">
          <End Type="Model.IDType" Role="IDType" Multiplicity="0..1" />
          <End Type="Model.VerifiedMember" Role="VerifiedMember" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDType">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="VerifiedMember">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Places_PlaceTypes">
          <End Type="Model.PlaceType" Role="PlaceType" Multiplicity="0..1" />
          <End Type="Model.Place" Role="Place" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PlaceType">
              <PropertyRef Name="PlaceTypeID" />
            </Principal>
            <Dependent Role="Place">
              <PropertyRef Name="PlaceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_RouteTypes">
          <End Type="Model.RouteType" Role="RouteType" Multiplicity="1" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="RouteType">
              <PropertyRef Name="RouteTypeID" />
            </Principal>
            <Dependent Role="Route">
              <PropertyRef Name="RouteTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Vehicles_VehicleMakes">
          <End Type="Model.VehicleMake" Role="VehicleMake" Multiplicity="0..1" />
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMake">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="Vehicle">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Vehicles_VehicleTypes">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="0..1" />
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="Vehicle">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="AssociationMembers">
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <End Type="Model.VerifiedMember" Role="VerifiedMember" Multiplicity="*" />
        </Association>
        <EntityType Name="Vw_OperatingLicenceDetails">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="AccreditationNumber" />
          </Key>
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="AssociationName" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ApplicationNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NameOnLicence" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddress" MaxLength="8000" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="GrossMass" />
          <Property Type="String" Name="EngineNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VIN" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleMake" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="SeatedCapacity" MaxLength="17" Unicode="false" FixedLength="false" />
          <Property Type="String" Name="VehicleType" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="CertificateNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="DateOfIssue" MaxLength="30" Unicode="false" FixedLength="false" />
          <Property Type="String" Name="DateOfExpiry" MaxLength="30" Unicode="false" FixedLength="false" />
          <Property Type="String" Name="CrossBorder" MaxLength="2" FixedLength="false" Unicode="false" Nullable="false" />
          <Property Type="String" Name="LicensingBoard" Nullable="false" MaxLength="28" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="String" Name="YearOfFirstReg" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" />
          <Property Name="LicenceExceptions" Type="String" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="LicenceStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleID" Type="Int64" />
          <Property Name="StandingCapacity" Type="String" MaxLength="19" FixedLength="false" Unicode="false" />
          <Property Name="AssociationID" Type="Int64" />
          <Property Name="LicenceStatusID" Type="Int16" Nullable="false" />
          <Property Name="MemberID" Type="Int64" Nullable="false" />
          <Property Name="AccreditationNumber" Type="String" Nullable="false" MaxLength="25" FixedLength="false" Unicode="false" />
          <Property Name="DivisionTypeID" Type="Int16" />
        </EntityType>
        <Association Name="AssociationRoutes">
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
        </Association>
        <EntityType Name="LicenceIssueDetail">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="WorkflowInstanceID" />          
          <Property Type="Int64" Name="VerifiedLicenceID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedVehicleID" Nullable="true" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="Licence" Relationship="Model.FK_LicenceIssueDetails_Licences" FromRole="LicenceIssueDetail" ToRole="Licence" />
          <NavigationProperty Name="Vehicle" Relationship="Model.FK_LicenceIssueDetails_Vehicles" FromRole="LicenceIssueDetail" ToRole="Vehicle" />
          <NavigationProperty Name="LicenceIssueInspectionDetail" Relationship="Model.FK_LicenceIssueInspectionDetails_LicenceIssueDetails" FromRole="LicenceIssueDetail" ToRole="LicenceIssueInspectionDetail" />
          <Property Name="IsDocumentVerificationRequired" Type="Boolean" />
          <NavigationProperty Name="LicenceIssueDocuments" Relationship="Model.FK_LicenceIssueDocuments_LicenceIssueDetails" FromRole="LicenceIssueDetail" ToRole="LicenceIssueDocument" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="Int64" Nullable="false" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
          <Property Name="LicenceIssueNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="LicenceIssueInspectionDetail">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />
          <Property Type="Int16" Name="LicenceIssueInspectionOutcomeID" />
          <Property Type="Int64" Name="InspectedByID" />
          <Property Type="DateTime" Name="DateInspected" Precision="3" />
          <Property Type="String" Name="EngineNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ChassisNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="InspectionSheetDocumentID" />
          <Property Type="Int64" Name="FrontRegDocumentID" />
          <Property Type="Int64" Name="ChassisDocumentID" />
          <Property Type="Int64" Name="EngineDocumentID" />
          <Property Type="Int64" Name="BackRegDocumentID" />
          <Property Type="Int64" Name="Additional1DocumentID" />
          <Property Type="Int64" Name="Additional2DocumentID" />
          <NavigationProperty Name="Outcome" Relationship="Model.FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes" FromRole="LicenceIssueInspectionDetail" ToRole="LicenceIssueInspectionOutcome" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="LicenceIssueDetail" Relationship="Model.FK_LicenceIssueInspectionDetails_LicenceIssueDetails" FromRole="LicenceIssueInspectionDetail" ToRole="LicenceIssueDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="LicenceIssueInspectionOutcome">
          <Key>
            <PropertyRef Name="LicenceIssueInspectionOutcomeID" />
          </Key>
          <Property Type="Int16" Name="LicenceIssueInspectionOutcomeID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="LicenceIssueInspectionDetails" Relationship="Model.FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes" FromRole="LicenceIssueInspectionOutcome" ToRole="LicenceIssueInspectionDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_LicenceIssueDetails_Licences">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceIssueDetail">
              <PropertyRef Name="VerifiedLicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes">
          <End Type="Model.LicenceIssueInspectionOutcome" Role="LicenceIssueInspectionOutcome" Multiplicity="0..1" />
          <End Type="Model.LicenceIssueInspectionDetail" Role="LicenceIssueInspectionDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceIssueInspectionOutcome">
              <PropertyRef Name="LicenceIssueInspectionOutcomeID" />
            </Principal>
            <Dependent Role="LicenceIssueInspectionDetail">
              <PropertyRef Name="LicenceIssueInspectionOutcomeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />          
          <Property Type="Int64" Name="VerifiedLicenceID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedVehicleID" />
          <Property Type="Int64" Name="WorkflowInstanceID" />
          <Property Type="String" Name="LicenceReferenceNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ApplicationReferenceNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="SurnameOrCompanyName" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ApplicationDescription" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="CertificateNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="IsStillToBeAcquired" Type="Boolean" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="MemberTaxReference" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="MemberIDNumber" Type="Int64" />
          <Property Name="MemberCell" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Association" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="VehicleVIN" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleEngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleRegistrationNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleMake" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="VehicleSeatedCapacity" Type="Int32" />
          <Property Name="MemberFullName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="VehicleStandingCapacity" Type="Int32" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="AccreditationID" Type="Int64" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="DateTime" Precision="3" />
          <Property Name="AccreditationNumber" Type="String" MaxLength="25" FixedLength="false" Unicode="false" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="IsDocumentVerificationRequired" Type="Boolean" />
        </EntityType>
        <ComplexType Name="Pr_LicenceStatusSummary_Result">
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="C90DayTotal" Nullable="false" />
          <Property Type="Int32" Name="C60DayTotal" Nullable="false" />
          <Property Type="Int32" Name="C30DayTotal" Nullable="false" />
          <Property Type="Int32" Name="CurrentTotal" Nullable="true" />
        </ComplexType>
        <EntityType Name="AdjudicationType">
          <Key>
            <PropertyRef Name="AdjudicationTypeID" />
          </Key>
          <Property Type="Int16" Name="AdjudicationTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="AdjudicationDetails" Relationship="Model.FK_AdjudicationDetails_AdjudicationType" FromRole="AdjudicationType" ToRole="AdjudicationDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_AdjudicationDetails_AdjudicationType">
          <End Type="Model.AdjudicationType" Role="AdjudicationType" Multiplicity="1" />
          <End Type="Model.AdjudicationDetail" Role="AdjudicationDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationType">
              <PropertyRef Name="AdjudicationTypeID" />
            </Principal>
            <Dependent Role="AdjudicationDetail">
              <PropertyRef Name="AdjudicationTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_LicencesUpcomingExpiresGet_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="true" />
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="Int64" Name="VehicleID" Nullable="false" />
          <Property Type="Int16" Name="ModeID" Nullable="false" />
          <Property Type="String" Name="NameOnLicence" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int32" Name="IssueNumber" Nullable="false" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DateOfExpiry" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="Indefinite" Nullable="false" />
          <Property Type="DateTime" Name="UpcomingExpiryNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="UpcomingExpiryNotificationLetterGeneratedDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="ExpiredNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="ExpiredNotificationLetterGeneratedDate" Nullable="true" Precision="23" />
        </ComplexType>
        <EntityType Name="Vw_Vehicles">
          <Key>
            <PropertyRef Name="VehicleID" />
          </Key>
          <Property Type="String" Name="ReferenceNumber" MaxLength="53" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VIN" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Make" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Type" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="VehicleID" Nullable="false" />
          <Property Name="EngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="SeatedCapacity" Type="Int32" />
          <Property Name="StandingCapacity" Type="Int32" />
          <Property Name="GrossMass" Type="Int64" />
          <Property Name="CarryingCapacityID" Type="Int16" />
          <Property Name="YearOfManufacture" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="CarryingCapacity" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
          <Property Name="Model" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
        </EntityType>
        <ComplexType Name="Pr_DataPurificationPrechecksPending_Result">
          <Property Type="Int32" Name="WorkflowID" Nullable="false" />
          <Property Type="Int32" Name="ItemID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="Int64" Name="PreCheckDetailID" Nullable="false" />
          <Property Type="String" Name="ApplicantName" Nullable="false" MaxLength="400" />
          <Property Type="String" Name="IDNumber" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="false" MaxLength="20" />
          <Property Type="Int32" Name="ApplicationRequestTypeID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_PurificationExceptionsPending_Result">
          <Property Type="Int64" Name="PurificationDetailID" Nullable="false" />
          <Property Type="Int16" Name="PurificationDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Status" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="WorkflowID" Nullable="false" />
          <Property Type="Int32" Name="ItemID" Nullable="false" />
          <Property Type="Int32" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="true" />
          <Property Type="Int64" Name="PreCheckDetailID" Nullable="true" />
          <Property Type="String" Name="ApplicantName" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="IDNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="true" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="2000" />
          <Property Type="Int64" Name="NeoID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_PurificationPrechecksPending_Result">
          <Property Type="Int64" Name="PurificationDetailID" Nullable="false" />
          <Property Type="Int16" Name="PurificationDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Status" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="WorkflowID" Nullable="false" />
          <Property Type="Int32" Name="ItemID" Nullable="false" />
          <Property Type="Int32" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="true" />
          <Property Type="Int64" Name="PreCheckDetailID" Nullable="true" />
          <Property Type="String" Name="ApplicantName" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="IDNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="true" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="2000" />
          <Property Type="Int64" Name="NeoID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_PurificationWorkflowsInProgress_Result">
          <Property Type="Int64" Name="PurificationDetailID" Nullable="false" />
          <Property Type="Int16" Name="PurificationDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Status" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="WorkflowID" Nullable="false" />
          <Property Type="Int32" Name="ItemID" Nullable="false" />
          <Property Type="Int32" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="true" />
          <Property Type="Int64" Name="PreCheckDetailID" Nullable="true" />
          <Property Type="String" Name="ApplicantName" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="IDNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="true" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="2000" />
          <Property Type="Int64" Name="NeoID" Nullable="false" />
        </ComplexType>
        <EntityType Name="Vw_Places">
          <Key>
            <PropertyRef Name="PlaceID" />
          </Key>
          <Property Type="Int64" Name="PlaceID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Description" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="PlaceTypeID" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <Property Type="Int64" Name="NeoID" />
          <Property Name="PlaceType" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <ComplexType Name="Pr_MemberSearch_Result">
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="511" />
          <Property Type="Int64" Name="IdentityDocumentDocID" Nullable="true" />
          <Property Type="Int64" Name="TaxClearanceCertificateDocID" Nullable="true" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="IDTypeID" Nullable="true" />
          <Property Type="String" Name="IDTypeDescription" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="PhysicalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PhysicalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="TelPhone" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelCell" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelFax" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="Email" Nullable="true" MaxLength="150" />
          <Property Type="String" Name="SARSIncomeTaxNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="MemberStatusID" Nullable="false" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="BusinessTypeID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_AssociationSearch_Result">
          <Property Type="Int64" Name="AssociationID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="Int16" Name="AssociationStatusID" Nullable="false" />
          <Property Type="Int32" Name="AssociationModeID" Nullable="false" />
          <Property Type="Int16" Name="AssociationTypeID" Nullable="false" />
          <Property Type="Int64" Name="RegionID" Nullable="false" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="AssociationNameAbbrev" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="RegistrationNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="PhysicalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PhysicalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="Boolean" Name="PostalAddressIsDomicilium" Nullable="false" />
          <Property Type="String" Name="BusRegNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="TaxNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="TelNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="FaxNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="CellNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="EmailAddress" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="ActiveMemberCount" Nullable="true" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="String" Name="Region" Nullable="false" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceSearch_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="Int64" Name="VehicleID" Nullable="true" />
          <Property Type="String" Name="NameOnLicence" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="18" />
          <Property Type="Int32" Name="IssueNumber" Nullable="false" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DateOfExpiry" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="Indefinite" Nullable="false" />
          <Property Type="DateTime" Name="UpcomingExpiryNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="ExpiredNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="String" Name="Member" Nullable="false" MaxLength="511" />
          <Property Type="String" Name="LicenceStatus" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="RegistrationNumber" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="4" />
          <Property Type="DateTime" Name="UpliftmentReminderSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="OriginalLTPSPermitNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="OriginalOLASNumber" Nullable="true" MaxLength="20" />
          <Property Type="Boolean" Name="IsLatestIssue" Nullable="true" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="true" />
          <Property Type="Int16" Name="LicenceVehicleTypeID" Nullable="true" />
          <Property Type="Int16" Name="LicenceCarryingCapacityID" Nullable="true" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="true" />
          <Property Type="Int16" Name="LicencingBoardID" Nullable="true" />
          <Property Type="Int16" Name="ProvinceID" Nullable="true" />
        </ComplexType>
        <EntityType Name="Setting">
          <Key>
            <PropertyRef Name="SettingName" />
          </Key>
          <Property Type="String" Name="SettingName" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="SettingValue" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Name="SettingDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
        </EntityType>
        <ComplexType Name="Pr_RouteSearch_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="String" Name="RouteName" Nullable="false" MaxLength="500" />
          <Property Type="String" Name="RouteDescription" Nullable="false" />
          <Property Type="Int64" Name="OriginPlaceID" Nullable="true" />
          <Property Type="Int64" Name="DestinationPlaceID" Nullable="true" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
          <Property Type="Int16" Name="RouteStatusID" Nullable="false" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="String" Name="RouteOrigin" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="RouteDestination" Nullable="false" MaxLength="Max" />
          <Property Type="Int64" Name="TimeTableDocumentID" Nullable="true" />
          <Property Type="Int64" Name="FareScheduleDocumentID" Nullable="true" />
          <Property Type="Int32" Name="LinkedToVerifiedLicence" Nullable="false" />
        </ComplexType>
        <EntityType Name="LicenceServiceDetail">
          <Key>
            <PropertyRef Name="LicenceServiceDetailID" />
          </Key>
          <Property Type="Int64" Name="LicenceServiceDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
          <Property Type="String" Name="ServiceTypeDescription" MaxLength="100" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="ServiceType" Relationship="Model.FK_LicenceServiceDetails_ServiceTypes" FromRole="LicenceServiceDetail" ToRole="ServiceType" />
          <NavigationProperty Name="Licence" Relationship="Model.FK_LicenceDetails_LicenceServiceDetails" FromRole="LicenceServiceDetail" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_LicenceServiceDetails_ServiceTypes">
          <End Type="Model.ServiceType" Role="ServiceType" Multiplicity="1" />
          <End Type="Model.LicenceServiceDetail" Role="LicenceServiceDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceType">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="LicenceServiceDetail">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceDetails_LicenceServiceDetails">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceServiceDetail" Role="LicenceServiceDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceServiceDetail">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_AssociationNeoMemberSearch_Result">
          <Property Type="Int64" Name="AssociationMemberDataID" Nullable="false" />
          <Property Type="Int32" Name="AssociationID" Nullable="true" />
          <Property Type="String" Name="Association_Name" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Surname_Or_Company_Name" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Member_First_Name" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Member_ID_Number" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="ID_Type" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Postal_Address" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="Postal_Address_Code" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Physical_Address" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="Tax_Number" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Tel__Number" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Fax_Number" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Cell_Number" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Email_Address" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="OL_Permit_Number" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="Vehicle_Chassis_Number" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="vehicle_registration" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="LegitimateApplicationRequestDetailID" Nullable="true" />
          <Property Type="DateTime" Name="AddedDate" Nullable="false" Precision="23" />
          <Property Type="DateTime" Name="ModifiedDate" Nullable="false" Precision="23" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
        </ComplexType>
        <EntityType Name="Vw_NewRouteRequestDetails">
          <Key>
            <PropertyRef Name="NewRouteRequestDetailID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
          </Key>
          <Property Type="Int64" Name="NewRouteRequestDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="WorkflowInstanceID" />
          <Property Type="Int64" Name="VerifiedRouteID" />
          <Property Type="String" Name="RouteOrigin" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RouteDestination" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RouteDescription" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NationalRouteNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="BoardRouteNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Double" Name="RouteLength" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="WorkflowInstanceStatus" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Name="IsAssessorVerificationRequired" Type="Boolean" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
        </EntityType>
        <Association Name="FK_LicenceIssueDetails_Vehicles">
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="0..1" />
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicle">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="LicenceIssueDetail">
              <PropertyRef Name="VerifiedVehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueInspectionDetails_LicenceIssueDetails">
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="1" />
          <End Type="Model.LicenceIssueInspectionDetail" Role="LicenceIssueInspectionDetail" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="LicenceIssueDetail">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueInspectionDetail">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_Purification_GetAppsWithMissingOrginatingLicences_Result">
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="WorkflowStatus" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="LegitimateOlNumber" Nullable="true" MaxLength="18" />
          <Property Type="DateTime" Name="DateCreated" Nullable="false" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_LicencesLinkedToActiveOLASGet_Result">
          <Property Type="String" Name="LegitimateOl" Nullable="true" MaxLength="18" />
          <Property Type="String" Name="OlasOL" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Pr_VehicleSearch_Result">
          <Property Type="Int64" Name="VehicleID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="String" Name="RegistrationNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="EngineNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VIN" Nullable="true" MaxLength="50" />
          <Property Type="Int32" Name="SeatedCapacity" Nullable="true" />
          <Property Type="Int32" Name="StandingCapacity" Nullable="true" />
          <Property Type="Int32" Name="GrossMass" Nullable="true" />
          <Property Type="Int16" Name="VehicleMakeID" Nullable="true" />
          <Property Type="Int16" Name="VehicleTypeID" Nullable="true" />
          <Property Type="Int16" Name="VehicleStatusID" Nullable="false" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="Int16" Name="CarryingCapacityID" Nullable="true" />
          <Property Type="String" Name="YearOfManufacture" Nullable="true" MaxLength="4" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceIssueWorkflowGet_Result">
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceApplicationWorkflowGet_Result">
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceWorkflowDocumentsGet_Result">
          <Property Type="String" Name="Type" Nullable="false" MaxLength="29" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="Int64" Name="DocumentStoreLocationID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="DocumentID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceExceptionsCounts_Result">
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" />
          <Property Type="Int32" Name="Total" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_LicencesWithExceptionGet_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="18" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DateOfExpiry" Nullable="true" Precision="23" />
          <Property Type="String" Name="Status" Nullable="false" MaxLength="50" />
        </ComplexType>
        <EntityType Name="CarryingCapacity">
          <Key>
            <PropertyRef Name="CarryingCapacityID" />
          </Key>
          <Property Name="CarryingCapacityID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="VehicleTypes" Relationship="Model.FK_VehicleTypes_CarryingCapacities" FromRole="CarryingCapacity" ToRole="VehicleType" />
          <NavigationProperty Name="VehicleModels" Relationship="Model.FK__VehicleMo__Carry__11F56A37" FromRole="CarryingCapacity" ToRole="VehicleModel" />
        </EntityType>
        <EntityType Name="LicenceException">
          <Key>
            <PropertyRef Name="LicenceExceptionID" />
          </Key>
          <Property Name="LicenceExceptionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="LicenceID" Type="Int64" Nullable="false" />
          <Property Name="Exception" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Licence" Relationship="Model.FK_LicenceExceptions_Licences" FromRole="LicenceException" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_LicenceExceptions_Licences">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceException" Role="LicenceException" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceException">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_LicencesOverdueUpliftmentsGet_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="true" />
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="Int64" Name="VehicleID" Nullable="true" />
          <Property Type="Int16" Name="ModeID" Nullable="false" />
          <Property Type="String" Name="NameOnLicence" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="18" />
          <Property Type="Int32" Name="IssueNumber" Nullable="false" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DateOfExpiry" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="Indefinite" Nullable="false" />
          <Property Type="DateTime" Name="UpcomingExpiryNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="ExpiredNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="UpliftmentReminderSmsSentDate" Nullable="true" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationsStatusViewGet_Result">
          <Property Type="String" Name="ApplicationType" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="String" Name="CreatedDate" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="AssignedTo" Nullable="true" MaxLength="1000" />
          <Property Type="Int32" Name="Age" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceIssueRequestsStatusViewGet_Result">
          <Property Type="String" Name="ApplicationType" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="String" Name="CreatedDate" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="AssignedTo" Nullable="true" MaxLength="1000" />
          <Property Type="Int32" Name="Age" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_NewRouteStatusViewGet_Result">
          <Property Type="String" Name="ApplicationType" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="String" Name="CreatedDate" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="AssignedTo" Nullable="true" MaxLength="1000" />
          <Property Type="Int32" Name="Age" Nullable="true" />
          <Property Type="String" Name="MemberName" Nullable="true" MaxLength="511" />
          <Property Type="String" Name="Association" Nullable="false" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationAuditSearch_Result">
          <Property Type="Int64" Name="ApplicationAuditID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationAuditTypeID" Nullable="false" />
          <Property Type="Int64" Name="AuditedUserID" Nullable="false" />
          <Property Type="Int64" Name="AssignedToID" Nullable="false" />
          <Property Type="DateTime" Name="AssignedDate" Nullable="false" Precision="23" />
          <Property Type="DateTime" Name="AuditCompletedDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="AuditPassed" Nullable="true" />
          <Property Type="String" Name="AuditComments" Nullable="true" MaxLength="2000" />
          <Property Type="String" Name="AssignedToKnownAs" Nullable="true" MaxLength="101" />
          <Property Type="String" Name="AuditedUserKnownAs" Nullable="true" MaxLength="101" />
          <Property Type="String" Name="ApplicationNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="500" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationBlockedLicencesGet_Result">
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="Reason" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="CreatedByID" Nullable="true" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="true" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_RouteAssociationSummary_Result">
          <Property Type="Int64" Name="AssociationID" Nullable="false" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="Int32" Name="TotalMembers" Nullable="true" />
          <Property Type="Int32" Name="NumberLicencesLinkedToRoute" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteCounts_Result">
          <Property Type="Int64" Name="AwaitingRouteDescriptionCheckCount" Nullable="true" />
          <Property Type="Int64" Name="DuplicateNationalRouteNumbersCount" Nullable="true" />
          <Property Type="Int64" Name="DuplicateBoardRouteNumbersCount" Nullable="true" />
          <Property Type="Int64" Name="DuplicatePlacesCount" Nullable="true" />
          <Property Type="Int64" Name="PotentialOleasDescriptionChangeCount" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteAwaitingRouteDescriptionChecks_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="RouteName" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="OriginPlaceID" Nullable="true" />
          <Property Type="Int64" Name="DestinationPlaceID" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" />
          <Property Type="String" Name="LinkedToLicenses" Nullable="false" />
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="Int64" Name="TimeTableDocumentID" Nullable="true" />
          <Property Type="Int64" Name="FareScheduleDocumentID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteDuplicateBoardRouteNumbers_Result">
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteDuplicateNationalRouteNumbers_Result">
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteDuplicatePlaces_Result">
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteDuplicateNationalRouteNumberDetails_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="RouteName" Nullable="false" MaxLength="500" />
          <Property Type="String" Name="Description" Nullable="false" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RouteDuplicateBoardRouteNumberDetails_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="RouteName" Nullable="false" MaxLength="500" />
          <Property Type="String" Name="Description" Nullable="true" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_RoutesWithPotentialChangesFromOLAS_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="RouteName" Nullable="true" MaxLength="500" />
          <Property Type="Int64" Name="OriginPlaceID" Nullable="true" />
          <Property Type="Int64" Name="DestinationPlaceID" Nullable="true" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="Description" Nullable="true" />
          <Property Type="String" Name="LinkedToLicenses" Nullable="false" />
          <Property Type="String" Name="OlasDescription" Nullable="true" />
          <Property Type="String" Name="OlasRouteName" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="OlasRouteXml" Nullable="true" MaxLength="Max" />
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="Int64" Name="TimeTableDocumentID" Nullable="true" />
          <Property Type="Int64" Name="FareScheduleDocumentID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_VerificationTasksGet_Result">
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="AssignedToID" Nullable="true" />
          <Property Type="Double" Name="Step" Nullable="false" />
          <Property Type="String" Name="StepDescription" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="true" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="DateTime" Name="FirstVerificationTaskDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="WarningDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DueDate" Nullable="true" Precision="23" />
          <Property Type="String" Name="AssignedTo" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="EntityID" Nullable="true" />
          <Property Type="Int64" Name="ItemID" Nullable="true" />
          </ComplexType>
        <ComplexType Name="Pr_ExceptionTasksGet_Result">
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="Member" Nullable="false" MaxLength="511" />
          <Property Type="Int64" Name="AssignedToID" Nullable="false" />
          <Property Type="Double" Name="Step" Nullable="false" />
          <Property Type="String" Name="StepDescription" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_SearchApplicationServiceTypes_Result">
          <Property Type="Int64" Name="ApplicationServiceDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="true" />
          <Property Type="String" Name="ServiceTypeDescription" Nullable="true" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_FindMember_Result">
          <Property Type="String" Name="IDNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="MemberDataSource" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="RecordsThatWillBeAffectedByUpdate" Nullable="true" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="PhysicalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PhysicalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="TelPhone" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelCell" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelFax" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="Email" Nullable="true" MaxLength="150" />
          <Property Type="String" Name="SARSIncomeTaxNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="SARSReasonIfNoTaxNumber" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="BusinessTypeID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_AssociationRoutesGet_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="String" Name="RouteName" Nullable="false" MaxLength="500" />
          <Property Type="String" Name="Description" Nullable="false" />
          <Property Type="Int64" Name="OriginPlaceID" Nullable="true" />
          <Property Type="Int64" Name="DestinationPlaceID" Nullable="true" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
          <Property Type="Int16" Name="RouteStatusID" Nullable="false" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="Int64" Name="ProvinceID" Nullable="true" />
          <Property Type="Int64" Name="TimeTableDocumentID" Nullable="true" />
          <Property Type="Int64" Name="FareScheduleDocumentID" Nullable="true" />
          <Property Type="Boolean" Name="IsChecked" Nullable="false" />
          <Property Type="Boolean" Name="IsPotentialIncorrectRouteChange" Nullable="false" />
          <Property Type="Int16" Name="IsPotentialIncorrectRouteChangeProbability" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationBlockedIDNumbersGet_Result">
          <Property Type="String" Name="IDNumber" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="Reason" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="CreatedByID" Nullable="true" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="true" />
          <Property Type="Int64" Name="CancelledbyID" Nullable="true" />
        </ComplexType>
        <EntityType Name="LicenceIssueDocument">
          <Key>
            <PropertyRef Name="LicenceIssueDocumentID" />
          </Key>
          <Property Name="LicenceIssueDocumentID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="LicenceIssueDetailID" Type="Int64" Nullable="false" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="IsMandatory" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="LicenceIssueDetail" Relationship="Model.FK_LicenceIssueDocuments_LicenceIssueDetails" FromRole="LicenceIssueDocument" ToRole="LicenceIssueDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_LicenceIssueDocuments_DocumentTypes" FromRole="LicenceIssueDocument" ToRole="DocumentTypes" />
          <Property Name="DocumentID" Type="Int64" />
        </EntityType>
        <Association Name="FK_LicenceIssueDocuments_LicenceIssueDetails">
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="1" />
          <End Type="Model.LicenceIssueDocument" Role="LicenceIssueDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceIssueDetail">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueDocument">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDocuments_DocumentTypes">
          <End Type="Model.DocumentTypes" Role="DocumentTypes" Multiplicity="1" />
          <End Type="Model.LicenceIssueDocument" Role="LicenceIssueDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="LicenceIssueDocument">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_ApplicationPrecheckDocumentList_Result">
          <Property Type="Int64" Name="DocumentTypeID" Nullable="true" />
          <Property Type="String" Name="DocumentTitle" Nullable="true" MaxLength="255" />
          <Property Type="Boolean" Name="IsMandatory" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_PrecheckDocumentListGet_Result">
          <Property Type="Int64" Name="DocumentTypeID" Nullable="true" />
          <Property Type="String" Name="DocumentTitle" Nullable="true" MaxLength="255" />
          <Property Type="Boolean" Name="IsMandatory" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceIssueDetaisReport_Result">
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="18" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="Int32" Name="ShowMeteredTaxiAnnexure" Nullable="true" />
          <Property Type="Int32" Name="ShowMidiBusAnnexure" Nullable="true" />
          <Property Type="Int32" Name="ShowStaffServiceAnnexure" Nullable="true" />
          <Property Type="Int32" Name="ShowScholarAnnexure" Nullable="true" />
          <Property Type="Int32" Name="ShowBusAnnexure" Nullable="true" />
          <Property Type="Int32" Name="ShowMinibusAnnexure" Nullable="true" />
          <Property Type="Int16" Name="LicenceVehicleTypeID" Nullable="true" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int32" Name="ShowTouristAnnexure" Nullable="false" />
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="true" />
          <Property Type="Int16" Name="ProvinceID" Nullable="true" />
          <Property Type="Int32" Name="ShowAnnexure3" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Fn_GetSourceApplicationRecordsFromSourceSystem_Result">
          <Property Type="Int32" Name="ID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstName" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="LastName" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="IDNumber" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="LicenceNumber" Nullable="true" MaxLength="255" />
          <Property Type="DateTime" Name="LicenceStartDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="LicenceEndDate" Nullable="true" Precision="23" />
          <Property Type="Int32" Name="LicenceIndefinite" Nullable="true" />
          <Property Type="String" Name="LicenceStatus" Nullable="true" MaxLength="100" />
          <Property Type="Boolean" Name="LicenceActive" Nullable="true" />
          <Property Type="Int32" Name="LicenceIssue" Nullable="true" />
          <Property Type="String" Name="RelatedPermitNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VehicleMake" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="RegistrationNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="ChassisNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="EngineNumber" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="AssociationID" Nullable="true" />
          <Property Type="String" Name="AssociationName" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="ApplicantXML" Nullable="true" />
          <Property Type="String" Name="AssociationXML" Nullable="true" />
          <Property Type="String" Name="LicenceXML" Nullable="true" />
          <Property Type="String" Name="VehicleXML" Nullable="true" />
          <Property Type="String" Name="RoutesXml" Nullable="true" />
          <Property Type="String" Name="ServiceTypesXML" Nullable="true" />
          <Property Type="Int16" Name="ModeID" Nullable="true" />
          <Property Type="Boolean" Name="IsInBypassedExpiryList" Nullable="true" />
          <Property Type="Boolean" Name="IsWithinForcedRenewalPeriod" Nullable="true" />
          <Property Type="String" Name="FullIntegrationXML" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceIssueTrackingSearch_Result">
          <Property Type="DateTime" Name="IssuingExpiryDate_30Days" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_30DaysIsLetterSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_30DaysIsLetterSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="IssuingExpiryDate_60Days" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_60DaysIsLetterSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_60DaysIsLetterSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="IssuingExpiryDate_90Days" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_90DaysIsLetterSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_90DaysIsLetterSentDate" Nullable="true" Precision="23" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="String" Name="LicenceReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="MemberFullName" Nullable="false" MaxLength="511" />
          <Property Type="String" Name="Association" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="Task" Nullable="true" MaxLength="272" />
          <Property Type="Double" Name="InstanceStep" Nullable="false" />
          <Property Type="Double" Name="TaskStep" Nullable="true" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="true" />
          <Property Type="Boolean" Name="IssuingExpiryDateIsExtended" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDateExtendedDate" Nullable="true" Precision="23" />
          <Property Type="Int16" Name="LicenceStatusID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          </ComplexType>
        <ComplexType Name="Pr_LicenceIssueTrackingExtend_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="DateTime" Name="IssuingExpiryDate_30Days" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_30DaysIsSmsSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_30DaysIsSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_30DaysIsLetterSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_30DaysIsLetterSentDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="IssuingExpiryDate_30DaysIsLetterSentByID" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_60Days" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_60DaysIsSmsSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_60DaysIsSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_60DaysIsLetterSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_60DaysIsLetterSentDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="IssuingExpiryDate_60DaysIsLetterSentByID" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_90Days" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_90DaysIsSmsSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_90DaysIsSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IssuingExpiryDate_90DaysIsLetterSent" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDate_90DaysIsLetterSentDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="IssuingExpiryDate_90DaysIsLetterSentByID" Nullable="true" />
          <Property Type="Boolean" Name="IssuingExpiryDateIsExtended" Nullable="true" />
          <Property Type="DateTime" Name="IssuingExpiryDateExtendedDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="IssuingExpiryDateByID" Nullable="true" />
        </ComplexType>
        <EntityType Name="Vw_LicenceUpliftmentExtensionRequestDetails">
          <Key>
            <PropertyRef Name="LicenceUpliftmentExtensionRequestDetailID" />
          </Key>
          <Property Name="LicenceUpliftmentExtensionRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="LicenceUpliftmentReferenceNumber" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="MemberFullName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="MemberTaxReference" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="MemberIDNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="MemberCell" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowInstanceStatusID" Type="Int16" />
        </EntityType>
        <ComplexType Name="Pr_ExtensionTasksGet_Result">
          <Property Type="Int64" Name="LicenceUpliftmentExtensionRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="Member" Nullable="false" MaxLength="511" />
          <Property Type="Int64" Name="AssignedToID" Nullable="false" />
          <Property Type="Double" Name="Step" Nullable="false" />
          <Property Type="String" Name="StepDescription" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationGetDocuments_Result">
          <Property Type="Int64" Name="ApplicationDocumentID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="DocumentTypeID" Nullable="false" />
          <Property Type="Int64" Name="DocumentID" Nullable="true" />
          <Property Type="Boolean" Name="IsMandatory" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_GetApplicationTypesForConversion_Result">
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_GetReceipt_Result">
          <Property Type="String" Name="ReceiptNumber" Nullable="true" MaxLength="53" />
          <Property Type="String" Name="ApplicantData" Nullable="true" MaxLength="2000" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ApplicationType" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ReceiptItems" Nullable="true" />
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="false" />
          <Property Type="String" Name="PaymentType" Nullable="true" MaxLength="50" />
          <Property Type="Decimal" Name="ReceiptCost" Nullable="false" Precision="19" />
          <Property Type="String" Name="IsCancelled" Nullable="false" MaxLength="3" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="true" />
          <Property Type="String" Name="OfficeLocation" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="Province" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="CreatedBy" Nullable="true" MaxLength="101" />
          </ComplexType>
        <ComplexType Name="Pr_GetCashupUsers_Result">
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="Decimal" Name="OutstandingCashupAmount" Nullable="false" Precision="19" />
          </ComplexType>
        <ComplexType Name="Pr_GetUserDetails_Result">
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="Int16" Name="UserStatusID" Nullable="false" />
          <Property Type="Int32" Name="EntityID" Nullable="true" />
          <Property Type="String" Name="ItemID" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="LastName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="FirstName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="101" />
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="String" Name="Email" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="NTAccount" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Cell" Nullable="true" MaxLength="10" />
          <Property Type="Boolean" Name="IsPasswordExpired" Nullable="false" />
          <Property Type="DateTime" Name="PasswordDate" Nullable="false" Precision="23" />
          <Property Type="String" Name="PasswordHash" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="PasswordSalt" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="PasswordChallenge" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="PasswordQuestion" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="PasswordAnswerHash" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="PasswordAnswerSalt" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="PasswordAnswerChallenge" Nullable="true" MaxLength="20" />
          <Property Type="Binary" Name="FingerprintTemplate" Nullable="true" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_GetRecentCashups_Result">
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="52" />
          <Property Type="Decimal" Name="BatchTotal" Nullable="false" Precision="19" />
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="Int64" Name="ReceiptBatchID" Nullable="false" />
          </ComplexType>
        <ComplexType Name="Pr_ApplicationDetailsAwaitingReceipts_Result">
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="ApplicationNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" />
          <Property Type="Decimal" Name="Cost" Nullable="true" Precision="19" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="511" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Member" Nullable="true" MaxLength="511" />
          <Property Type="Int64" Name="VerifiedMemberID" Nullable="true" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="Boolean" Name="IsNewRouteRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsExceptionRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsUpliftmentRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsAdjustmentRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsCancellationRequired" Nullable="false" />
          <Property Type="String" Name="GazetteNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="GazetteDetailID" Nullable="true" />
          <Property Type="DateTime" Name="MeetingDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="true" />
          <Property Type="Int16" Name="PaymentTypeID" Nullable="true" />
          <Property Type="Int32" Name="VehicleCount" Nullable="false" />
          <Property Type="String" Name="ChassisNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="EngineNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VehicleRegNumber" Nullable="true" MaxLength="50" />
          <Property Type="Int16" Name="SeatedCapacity" Nullable="true" />
          <Property Type="String" Name="VehicleMake" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="AdjudicationDecision" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="500" />
          <Property Type="Boolean" Name="IsRenewal" Nullable="false" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="Int16" Name="ModeID" Nullable="true" />
          <Property Type="String" Name="TaxNumber" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="PrecheckDetailID" Nullable="true" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Type="String" Name="ProxyName" Nullable="false" MaxLength="511" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int16" Name="AdjudicationDecisionID" Nullable="true" />
          <Property Type="String" Name="AdjudicationComment" Nullable="false" MaxLength="1" />
          <Property Type="Boolean" Name="AdjudicationException" Nullable="true" />
          <Property Type="String" Name="TelCell" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelPhone" Nullable="true" MaxLength="14" />
          <Property Type="Int64" Name="RegionID" Nullable="true" />
          <Property Type="Int16" Name="AdjudicationRegionID" Nullable="true" />
          <Property Type="String" Name="ExistingLicenceHolder" Nullable="true" MaxLength="511" />
          <Property Type="String" Name="ExistingLicenceHolderID" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Region" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="ExistingVehicleChassisNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="ExistingVehicleRegNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="WorkflowStatus" Nullable="false" MaxLength="50" />
          <Property Type="Boolean" Name="IsAdjudicationBypassed" Nullable="false" />
          <Property Type="Boolean" Name="IsGazettingBypassed" Nullable="false" />
          <Property Type="Boolean" Name="IsAssessorApprovalRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsSeniorManagerApprovalRequired" Nullable="false" />
          <Property Type="Boolean" Name="HasNewRoute" Nullable="false" />
          <Property Type="String" Name="ExistingLicenceNumber" Nullable="false" MaxLength="50" />
          <Property Type="Boolean" Name="IsAutoVerificationRequired" Nullable="true" />
          <Property Type="Boolean" Name="IsLtpsConversion" Nullable="true" />
          <Property Type="String" Name="ProxyIDNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int16" Name="StandingCapacity" Nullable="true" />
          <Property Type="Int16" Name="AdjudicationCount" Nullable="true" />
          <Property Type="String" Name="PhysicalAddress" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PhysicalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="Decimal" Name="TotalCost" Nullable="true" Precision="19" />
        </ComplexType>
        <ComplexType Name="Pr_GetUserDataOnIdSearch_Result">
          <Property Type="String" Name="OldorNew" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="Source" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Reference" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="20" />
        </ComplexType>
        <EntityType Name="Vw_GazetteApplication">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="ApplicationNumber" />
            <PropertyRef Name="Member" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="WorkflowTemplateStepID" />
            <PropertyRef Name="GazetteNumber" />
            <PropertyRef Name="GazetteDetailStatusID" />
            <PropertyRef Name="IsGazettingBypassed" />
          </Key>
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationNumber" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="Member" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowTemplateStepID" Type="Int64" Nullable="false" />
          <Property Name="GazetteDetailID" Type="Int64" />
          <Property Name="GazetteNumber" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="GazetteDetailStatusID" Type="Int16" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="Boolean" Nullable="false" />
          <Property Name="Region" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Description" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_AdjudicationDetails">
          <Key>
            <PropertyRef Name="AdjudicationDetailID" />
          </Key>
          <Property Name="AdjudicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="Int16" Nullable="false" />
          <Property Name="AdjudicationType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationDetailStatusID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="Province" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="MeetingDate" Type="String" MaxLength="11" FixedLength="false" Unicode="false" />
          <Property Name="MeetingPlace" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="MeetingTime" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="PreAdjudicationNotificationsSent" Type="Boolean" Nullable="false" />
          <Property Name="PreAdjudicationLettersSent" Type="Boolean" Nullable="false" />
          <Property Name="PreAdjudicationObjectionNotificationsSent" Type="Boolean" Nullable="false" />
          <Property Name="PreAdjudicationObjectionLettersSent" Type="Boolean" Nullable="false" />
          <Property Name="PostAdjudicationNotificationsSent" Type="Boolean" Nullable="false" />
          <Property Name="PostAdjudicationLettersSent" Type="Boolean" Nullable="false" />
          <Property Name="Region" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="AdjudicationFinalisedDate" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="AdjudicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_ApplicationDetails">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="IsReferralRequired" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="IsBusAndContract" />
            <PropertyRef Name="ApplicationIsObjected" />
            <PropertyRef Name="OnlyExistingRoutesOnLicense" />
            <PropertyRef Name="IsAllowedNewLicence" />
            <PropertyRef Name="ForceGazetting" />
            <PropertyRef Name="ApplicationStatusID" />
            <PropertyRef Name="ApplicationSubStatusID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="FirstNames" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="TradeName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Member" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="VerifiedMemberID" Type="Int64" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="SourceApplicationID" Type="Int16" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsExceptionRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsUpliftmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsCancellationRequired" Type="Boolean" Nullable="false" />
          <Property Name="GazetteNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="GazetteDetailID" Type="Int64" />
          <Property Name="LicenceCount" Type="Int32" Nullable="false" />
          <Property Name="ApplicationDescription" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IsRenewal" Type="Boolean" Nullable="false" />
          <Property Name="AssociationName" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="TaxNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ProxyName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationComment" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="TelCell" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="TelPhone" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="ExistingLicenceHolder" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ExistingLicenceHolderID" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="Region" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsAdjudicationBypassed" Type="Boolean" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="Boolean" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="HasNewRoute" Type="Boolean" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <Property Name="ProxyIDNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationCount" Type="Int16" />
          <Property Name="PhysicalAddress" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="PhysicalAddressCode" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddress" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddressCode" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="VerifiedAssociationID" Type="Int64" />
          <Property Name="IsGazettingRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsReferralRequired" Type="Boolean" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
          <Property Name="AdjudicationOfficeLocationID" Type="Int16" />
          <Property Name="IsApplicantIndividual" Type="Int16" />
          <Property Name="IncludeRenewalType" Type="Boolean" />
          <Property Name="IsBusAndContract" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationIsObjected" Type="Boolean" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="Boolean" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="Boolean" Nullable="false" />
          <Property Name="ForceGazetting" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="Int16" />
          <Property Name="ApplicationStatusID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationCannoutBeAutoAssignedForAdjudication" Type="Boolean" />
        </EntityType>
        <EntityType Name="Vw_ApplicationDetails_Light">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="IsRenewal" />
            <PropertyRef Name="IsGazettingBypassed" />
            <PropertyRef Name="IsBusAndContract" />
            <PropertyRef Name="ApplicationIsObjected" />
            <PropertyRef Name="OnlyExistingRoutesOnLicense" />
            <PropertyRef Name="IsAllowedNewLicence" />
            <PropertyRef Name="ForceGazetting" />
            <PropertyRef Name="PREDataReleased" />
            <PropertyRef Name="RequiresProxy" />
          </Key>
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Member" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationDescription" Type="String" MaxLength="513" FixedLength="false" Unicode="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationCount" Type="Int16" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="WorkflowTemplateID" Type="Int64" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="IsReceiptRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAdjudicationRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsGazettingRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="Boolean" Nullable="false" />
          <Property Name="GazetteDetailID" Type="Int64" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <Property Name="IsAdjudicationBypassed" Type="Boolean" Nullable="false" />
          <Property Name="WorkflowInstanceReference" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="TelCell" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="Email" Type="String" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationStatusID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="Int16" Nullable="false" />
          <Property Name="IsReferralRequired" Type="Boolean" Nullable="false" />
          <Property Name="LiveryDocumentID" Type="Int64" />
          <Property Name="LicenceCount" Type="Int32" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="LastAdjudicationDecisionID" Type="Int32" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="Int64" />
          <Property Name="AdjudicationOfficeLocationID" Type="Int16" />
          <Property Name="TotalVehicles" Type="Int32" />
          <Property Name="IDType" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsRenewal" Type="Boolean" Nullable="false" />
          <Property Name="IsFinalisationTasksRequired" Type="Boolean" />
          <Property Name="ProxyIDNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="IsApplicantIndividual" Type="Int16" />
          <Property Name="IsGazettingBypassed" Type="Boolean" Nullable="false" />
          <Property Name="IncludeRenewalType" Type="Boolean" />
          <Property Name="IsBusAndContract" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationIsObjected" Type="Boolean" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="Boolean" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="Boolean" Nullable="false" />
          <Property Name="ForceGazetting" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="Int16" />
          <Property Name="PREDataReleased" Type="Boolean" Nullable="false" />
          <Property Name="CopiedFromApplicationDetailID" Type="Int64" />
          <Property Name="RelatedTATApplicationRequestID" Type="Int64" />
          <Property Name="CreatedDate" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
          <Property Name="RequiresProxy" Type="Boolean" Nullable="false" />
          <Property Name="ApplicantProvinceID" Type="Int16" />
          <Property Name="ApplicantRegionID" Type="Int64" />
          <Property Name="ServiceTypeID" Type="Int16" />
          <Property Name="ServiceTypeDescription" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="GazetteNoticeExpiryDate" Type="DateTime" Precision="3" />
        </EntityType>
        <EntityType Name="Vw_ApplicationDetails_Receipts">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Cost" Type="Int32" Nullable="false" />
          <Property Name="Member" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ReceiptNumber" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="ReceiptDetailID" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="PaymentTypeID" Type="Int16" Nullable="false" />
          <Property Name="LicenceCount" Type="Int32" Nullable="false" />
          <Property Name="ChassisNumber" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="EngineNumber" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="VehicleRegNumber" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationDescription" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationCount" Type="Int16" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
        </EntityType>
        <ComplexType Name="DashboardOutcome">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <Association Name="FK_VehicleTypes_CarryingCapacities">
          <End Type="Model.CarryingCapacity" Role="CarryingCapacity" Multiplicity="0..1" />
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CarryingCapacity">
              <PropertyRef Name="CarryingCapacityID" />
            </Principal>
            <Dependent Role="VehicleType">
              <PropertyRef Name="CarryingCapacityID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_InspectorInspectionsGet_Result">
          <Property Type="Int64" Name="InspectorID" Nullable="false" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="InspectionAddress" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="ApplicantName" Nullable="true" MaxLength="512" />
          <Property Type="DateTime" Name="startDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="endDate" Nullable="true" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationsAwaitingInspectionsGet_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int16" Name="InspectionStatusID" Nullable="true" />
          <Property Type="Int64" Name="InspectorID" Nullable="true" />
          <Property Type="DateTime" Name="InspectionDateFrom" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="InspectionDateTo" Nullable="true" Precision="23" />
          <Property Type="String" Name="InspectionAddress" Nullable="true" MaxLength="1000" />
          <Property Type="Boolean" Name="InspectionPassed" Nullable="true" />
          <Property Type="Int64" Name="InspectionResultDocID" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="ApplicantName" Nullable="true" MaxLength="512" />
          <Property Type="Int64" Name="InspectionBackToOfficeDocID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_InspectorsGet_Result">
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="255" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int64" Name="id" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationsAwaitingInspectionOutcomesGet_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int16" Name="InspectionStatusID" Nullable="true" />
          <Property Type="Int64" Name="InspectorID" Nullable="true" />
          <Property Type="String" Name="InspectionDateFrom" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="InspectionDateTo" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="Inspector" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_AccreditationSearch_Result">
          <Property Type="Int64" Name="AccreditationID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int16" Name="AccreditationStatusID" Nullable="false" />
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="String" Name="NameOnAccreditation" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="AccreditationNumber" Nullable="true" MaxLength="18" />
          <Property Type="Int32" Name="IssueNumber" Nullable="false" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DateOfExpiry" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="UpcomingExpiryNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="ExpiredNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="Int32" Name="NumberOfLicencesAllowed" Nullable="false" />
          <Property Type="String" Name="Member" Nullable="false" MaxLength="511" />
          <Property Type="String" Name="AccreditationStatus" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="DateOfIssueFormatted" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="DateOfExpiryFormatted" Nullable="true" MaxLength="100" />
        </ComplexType>
        <EntityType Name="Accreditation">
          <Key>
            <PropertyRef Name="AccreditationID" />
          </Key>
          <Property Name="AccreditationID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="AccreditationStatusID" Type="Int16" Nullable="false" />
          <Property Name="MemberID" Type="Int64" Nullable="false" />
          <Property Name="NameOnAccreditation" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="AccreditationNumber" Type="String" MaxLength="25" FixedLength="false" Unicode="false" />
          <Property Name="IssueNumber" Type="Int32" Nullable="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="DateTime" Precision="3" />
          <Property Name="DateOfExpiry" Type="DateTime" Precision="3" />
          <Property Name="UpcomingExpiryNotificationSmsSentDate" Type="DateTime" Precision="3" />
          <Property Name="ExpiredNotificationSmsSentDate" Type="DateTime" Precision="3" />
          <Property Name="NumberOfLicencesAllowed" Type="Int32" Nullable="false" />
          <NavigationProperty Name="AccreditationStatu" Relationship="Model.FK_Accreditations_AccreditationStatusID" FromRole="Accreditation" ToRole="AccreditationStatu" >
          </NavigationProperty>
          <NavigationProperty Name="Member" Relationship="Model.FK_Accreditations_Members" FromRole="Accreditation" ToRole="VerifiedMember" >
          </NavigationProperty>
          <Property Name="ProvinceID" Type="Int16" />
          <NavigationProperty Name="Licences" Relationship="Model.FK__Licences__Accred__16AF325C" FromRole="Accreditation" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="IsLatestIssue" Type="Boolean" Nullable="false" />
          <Property Name="OlasId" Type="Int64" />
        </EntityType>
        <EntityType Name="AccreditationStatu">
          <Key>
            <PropertyRef Name="AccreditationStatusID" />
          </Key>
          <Property Name="AccreditationStatusID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Accreditations" Relationship="Model.FK_Accreditations_AccreditationStatusID" FromRole="AccreditationStatu" ToRole="Accreditation" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_Accreditations_AccreditationStatusID">
          <End Type="Model.AccreditationStatu" Role="AccreditationStatu" Multiplicity="1" />
          <End Type="Model.Accreditation" Role="Accreditation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AccreditationStatu">
              <PropertyRef Name="AccreditationStatusID" />
            </Principal>
            <Dependent Role="Accreditation">
              <PropertyRef Name="AccreditationStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Accreditations_Members">
          <End Type="Model.VerifiedMember" Role="VerifiedMember" Multiplicity="1" />
          <End Type="Model.Accreditation" Role="Accreditation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VerifiedMember">
              <PropertyRef Name="MemberID" />
            </Principal>
            <Dependent Role="Accreditation">
              <PropertyRef Name="MemberID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_Dashboard_AccreditationIssuingSummaryGet_Result">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_PrintoutCreate_Result">
          <Property Type="String" Name="VerificationToken" Nullable="true" MaxLength="16" />
        </ComplexType>
        <ComplexType Name="Pr_PrintoutGetByToken_Result">
          <Property Type="Int64" Name="PrintoutID" Nullable="false" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="Int16" Name="PrintoutTypeID" Nullable="false" />
          <Property Type="Int64" Name="PrintedByID" Nullable="false" />
          <Property Type="DateTime" Name="DatePrinted" Nullable="false" Precision="23" />
          <Property Type="String" Name="VerificationToken" Nullable="false" MaxLength="16" />
          <Property Type="Boolean" Name="IsTestPrint" Nullable="false" />
          <Property Type="String" Name="PrintedByName" Nullable="true" MaxLength="101" />
          <Property Type="Boolean" Name="IsReprint" Nullable="false" />
          <Property Type="String" Name="PrinterName" Nullable="true" />
          <Property Type="String" Name="BarcodePrinterName" Nullable="true" />
          <Property Type="Boolean" Name="EnablePrintPreview" Nullable="true" />
          <Property Type="String" Name="DocumentNumber" Nullable="true" MaxLength="15" />
          <Property Type="Boolean" Name="PrintedSuccussfully" Nullable="false" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PrintData" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_AccreditationIssueSearch_Result">
          <Property Type="Int64" Name="AccreditationIssueDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedAccreditationID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="LicenceReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="ApplicationReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="true" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="String" Name="MemberFullName" Nullable="false" MaxLength="511" />
          <Property Type="String" Name="MemberTaxReference" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="MemberIDNumber" Nullable="true" />
          <Property Type="String" Name="MemberCell" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Association" Nullable="false" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_AdvancedSearch_Result">
          <Property Type="Int64" Name="ID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="4000" />
          <Property Type="String" Name="URL" Nullable="true" MaxLength="268" />
          <Property Type="String" Name="OpenInNewWindow" Nullable="false" MaxLength="1" />
        </ComplexType>
        <EntityType Name="GazetteType">
          <Key>
            <PropertyRef Name="GazetteTypeID" />
          </Key>
          <Property Name="GazetteTypeID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="GazetteDetails" Relationship="Model.FK__GazetteDe__Gazet__6DAD1CC9" FromRole="GazetteType" ToRole="GazetteDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK__GazetteDe__Gazet__6DAD1CC9">
          <End Type="Model.GazetteType" Role="GazetteType" Multiplicity="0..1" />
          <End Type="Model.GazetteDetail" Role="GazetteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="GazetteType">
              <PropertyRef Name="GazetteTypeID" />
            </Principal>
            <Dependent Role="GazetteDetail">
              <PropertyRef Name="GazetteTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__Licences__Accred__16AF325C">
          <End Type="Model.Accreditation" Role="Accreditation" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Accreditation">
              <PropertyRef Name="AccreditationID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="AccreditationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_Dashboard_AvgProcessingTime_Result">
          <Property Type="Int32" Name="TotalApplications" Nullable="true" />
          <Property Type="Int32" Name="AvgProcessingTime" Nullable="true" />
        </ComplexType>
        <EntityType Name="DocumentTypeQuestion">
          <Key>
            <PropertyRef Name="DocumentTypeQuestionID" />
          </Key>
          <Property Name="DocumentTypeQuestionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="CaptureFieldID" Type="Int16" Nullable="false" />
          <Property Name="Question" Type="String" Nullable="false" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="OrderBy" Type="Int64" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_DocumentTypeQuestions_DocumentTypes" FromRole="DocumentTypeQuestion" ToRole="DocumentTypes" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_DocumentTypeQuestions_DocumentTypes">
          <End Type="Model.DocumentTypes" Role="DocumentTypes" Multiplicity="1" />
          <End Type="Model.DocumentTypeQuestion" Role="DocumentTypeQuestion" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="DocumentTypeQuestion">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="ApplicationRequestTypeDivisionSetupSearch_Result">
          <Property Type="Int64" Name="ApplicationRequestTypeDivisionSetupID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="ApplicationRequestType" Nullable="false" MaxLength="255" />
          <Property Type="Decimal" Name="ApplicationRequestTypeCost" Nullable="false" Precision="19" />
          <Property Type="String" Name="DivisionType" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Province" Nullable="false" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationRequestTypeDivisionSetupSearch_Result">
          <Property Type="Int64" Name="ApplicationRequestTypeDivisionSetupID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="ApplicationRequestType" Nullable="false" MaxLength="255" />
          <Property Type="Decimal" Name="ApplicationRequestTypeCost" Nullable="false" Precision="19" />
          <Property Type="String" Name="DivisionType" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="Province" Nullable="false" MaxLength="50" />
        </ComplexType>
        <EntityType Name="ApplicationRequestType">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeID" />
          </Key>
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Cost" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
          <Property Name="IsCancelled" Type="Boolean" />
          <NavigationProperty Name="ApplicationRequestTypeDocumentSetups" Relationship="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="ApplicationRequestTypeDocumentSetup" />
          <NavigationProperty Name="ApplicationRequestTypeDivisionSetups" Relationship="Model.FK__Applicati__Appli__7CBA562F" FromRole="ApplicationRequestType" ToRole="ApplicationRequestTypeDivisionSetup" />
          <Property Name="IsLinkedApplicationType" Type="Boolean" />
          <Property Name="IncludeRenewalType" Type="Boolean" />
          <Property Name="IncludeCovType" Type="Boolean" />
          <Property Name="IncludeIncreaseInCapacityType" Type="Boolean" />
          <Property Name="IncludeDeceasedTransferType" Type="Boolean" />
          <Property Name="IncludeNormalTransferType" Type="Boolean" />
          <Property Name="IncludeNewOperatingLicenceType" Type="Boolean" />
          <Property Name="IsAllowedForOLAS" Type="Boolean" Nullable="false" />
          <Property Name="IsAllowedForLTPS" Type="Boolean" Nullable="false" />
          <Property Name="IsAllowedForLG" Type="Boolean" Nullable="false" />
          <Property Name="IsLicenceDurationRequiredOnApprove" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="ApplicationRequestTypeDocumentSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
          </Key>
          <Property Name="ApplicationRequestTypeDocumentID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="WorkflowTemplateID" Type="Int64" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="IsAvailableForUpload" Type="String" MaxLength="Max" Unicode="false" FixedLength="false" />
          <Property Name="IsMandatory" Type="String" MaxLength="Max" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" FromRole="ApplicationRequestTypeDocumentSetup" ToRole="DocumentTypes" />
          <NavigationProperty Name="ApplicationRequestType" Relationship="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" FromRole="ApplicationRequestTypeDocumentSetup" ToRole="ApplicationRequestType" />
          <Property Name="IsNew" Type="Boolean" />
        </EntityType>
        <Association Name="FK_ApplicationRequestTypeDocuments_DocumentTypes">
          <End Type="Model.DocumentTypes" Role="DocumentTypes" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDocumentSetup" Role="ApplicationRequestTypeDocumentSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocumentSetup">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
          <End Type="Model.ApplicationRequestType" Role="ApplicationRequestType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDocumentSetup" Role="ApplicationRequestTypeDocumentSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestType">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocumentSetup">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_ApplicationRequestTypeDivisionSetupCreate_Result">
          <Property Type="Int64" Name="ApplicationRequestTypeDivisionSetupID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_NewRouteRequestSummaryGet_Result">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_NewRouteRequestSearch_Result">
          <Property Type="Int64" Name="NewRouteRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="Int64" Name="VerifiedRouteID" Nullable="true" />
          <Property Type="String" Name="RouteOrigin" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="RouteDestination" Nullable="true" MaxLength="Max" />
          <Property Type="String" Name="RouteDescription" Nullable="true" MaxLength="Max" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="50" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
          <Property Type="String" Name="WorkflowInstanceStatus" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="Boolean" Name="IsAssessorVerificationRequired" Nullable="false" />
        </ComplexType>
        <EntityType Name="ApplicationRequestTypeDivisionSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDivisionSetupID" />
          </Key>
          <Property Name="ApplicationRequestTypeDivisionSetupID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestType" Relationship="Model.FK__Applicati__Appli__7CBA562F" FromRole="ApplicationRequestTypeDivisionSetup" ToRole="ApplicationRequestType" />
          <NavigationProperty Name="Province" Relationship="Model.FK__Applicati__Provi__7EA29EA1" FromRole="ApplicationRequestTypeDivisionSetup" ToRole="Province" />
          <NavigationProperty Name="DivisionType" Relationship="Model.FK__Applicati__Divis__7DAE7A68" FromRole="ApplicationRequestTypeDivisionSetup" ToRole="DivisionType" />
          <Property Name="IsAssessorApprovalRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsSeniorManagerApprovalRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsFinalisationTasksRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsInspectionRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsReferralRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsAdjudicationRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationTypeRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsGazettingRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="GazetteTypeRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsNew" Type="Boolean" />
        </EntityType>
        <Association Name="FK__Applicati__Appli__7CBA562F">
          <End Type="Model.ApplicationRequestType" Role="ApplicationRequestType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDivisionSetup" Role="ApplicationRequestTypeDivisionSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestType">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDivisionSetup">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__Applicati__Provi__7EA29EA1">
          <End Type="Model.Province" Role="Province" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDivisionSetup" Role="ApplicationRequestTypeDivisionSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDivisionSetup">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_FindMember_Result">
          <Property Type="String" Name="IDNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="MemberDataSource" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="RecordsThatWillBeAffectedByUpdate" Nullable="true" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="PhysicalAddress" Nullable="true" MaxLength="400" />
          <Property Type="String" Name="PhysicalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="TelPhone" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelCell" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="TelFax" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="Email" Nullable="true" MaxLength="150" />
          <Property Type="String" Name="SARSIncomeTaxNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="BusinessTypeID" Nullable="true" />
          <Property Type="Boolean" Name="RecordFound" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_SearchApplicationRoutes_Result">
          <Property Type="Int64" Name="ApplicationLicenceRouteDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRouteDetailStatusID" Nullable="false" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedRouteID" Nullable="true" />
          <Property Type="Int64" Name="NewRouteRequestDetailID" Nullable="true" />
          <Property Type="String" Name="RouteOrigin" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="RouteDestination" Nullable="false" MaxLength="Max" />
          <Property Type="String" Name="RouteDescription" Nullable="false" MaxLength="Max" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
          <Property Type="Int64" Name="TimeTableDocumentID" Nullable="true" />
          <Property Type="Int64" Name="FareScheduleDocumentID" Nullable="true" />
          <Property Type="Int16" Name="RouteNumber" Nullable="true" />
          <Property Type="Int16" Name="RouteChangeTypeID" Nullable="true" />
          <Property Type="Boolean" Name="IsExistingLtpsOrOlasRoute" Nullable="false" />
          <Property Type="Boolean" Name="IsOriginSameAsPhysicalAddress" Nullable="false" />
          <Property Type="Boolean" Name="IsDestinationArea" Nullable="false" />
          <Property Type="Int64" Name="RelatedApplicationLicenceRouteDetailID" Nullable="true" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Pr_SearchLicenceRoutes_Result">
          <Property Type="Int64" Name="licenceID" Nullable="false" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="Description" Nullable="false" />
          <Property Type="Int64" Name="RouteID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationLicenseSearch_Result">
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="50" />
        </ComplexType>
        <EntityType Name="LicenceRoute">
          <Key>
            <PropertyRef Name="LicenceRouteID" />
          </Key>
          <Property Name="LicenceRouteID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="LicenceID" Type="Int64" Nullable="false" />
          <Property Name="RouteID" Type="Int64" Nullable="false" />
          <Property Name="ServiceTypeID" Type="Int16" Nullable="false" />
          <NavigationProperty Name="Licence" Relationship="Model.FK_LicenceRoutes_Licences" FromRole="LicenceRoute" ToRole="Licence" />
          <NavigationProperty Name="Route" Relationship="Model.FK_LicenceRoutes_Routes" FromRole="LicenceRoute" ToRole="Route" />
        </EntityType>
        <Association Name="FK_LicenceRoutes_Licences">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceRoute" Role="LicenceRoute" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceRoute">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceRoutes_Routes">
          <End Type="Model.Route" Role="Route" Multiplicity="1" />
          <End Type="Model.LicenceRoute" Role="LicenceRoute" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Route">
              <PropertyRef Name="RouteID" />
            </Principal>
            <Dependent Role="LicenceRoute">
              <PropertyRef Name="RouteID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_LicenceServiceTypesGet_Result">
          <Property Type="Int64" Name="ApplicationLicenceServiceDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="true" />
          <Property Type="String" Name="ServiceTypeDescription" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_VerifiedLicenceServiceTypesGet_Result">
          <Property Type="Int64" Name="LicenceServiceDetailID" Nullable="false" />
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
          <Property Type="String" Name="ServiceTypeDescription" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_GetUserDataOnIdSearch_Result">
          <Property Type="String" Name="OldorNew" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Source" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Reference" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
        </ComplexType>
        <EntityType Name="Vw_AdjudicationApplicationDetails">
          <Key>
            <PropertyRef Name="ApplicationAdjudicationID" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="IsReadyForAdjudication" />
            <PropertyRef Name="DecisionID" />
          </Key>
          <Property Name="AdjudicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="FirstNames" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="Title" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Association" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Decision" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="DecisionComments" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Member" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="TelCell" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="HasObjections" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
          <Property Name="LicenceCount" Type="Int32" Nullable="false" />
          <Property Name="AdjudicationException" Type="Boolean" />
          <Property Name="ApplicationAdjudicationID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="Int64" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="IsReadyForAdjudication" Type="Boolean" Nullable="false" />
          <Property Name="DecisionID" Type="Int16" Nullable="false" />
        </EntityType>
        <ComplexType Name="Pr_AdjudicationApplicationListGet_Result">
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="true" MaxLength="31" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Title" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Association" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="Decision" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="DecisionComments" Nullable="true" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="Member" Nullable="true" MaxLength="511" />
          <Property Type="String" Name="TelCell" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="HasObjections" Nullable="false" MaxLength="3" />
          <Property Type="Int32" Name="LicenceCount" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_GazetteSummaryGet_Result">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_AdjudicationSummaryGet_Result">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_AdjudicationApplicationSearch_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Member" Nullable="true" MaxLength="511" />
          <Property Type="Int16" Name="AdjudicationCount" Nullable="true" />
          <Property Type="Int32" Name="LicenceCount" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_StationeryBatchesGet_Result">
          <Property Type="Int64" Name="StationeryBatchID" Nullable="false" />
          <Property Type="String" Name="FromNumber" Nullable="false" MaxLength="15" />
          <Property Type="String" Name="ToNumber" Nullable="false" MaxLength="15" />
          <Property Type="String" Name="OfficeLocation" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="LastNumberIssued" Nullable="true" MaxLength="15" />
          <Property Type="Int32" Name="TotalStationery" Nullable="true" />
          <Property Type="Int32" Name="AvailableStationery" Nullable="true" />
        </ComplexType>
        <EntityType Name="Stationery">
          <Key>
            <PropertyRef Name="StationeryID" />
          </Key>
          <Property Name="StationeryID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="StationeryStatusID" Type="Int16" Nullable="false" />
          <Property Name="StationeryBatchID" Type="Int64" Nullable="false" />
          <Property Name="StationeryNumber" Type="String" Nullable="false" MaxLength="15" FixedLength="false" Unicode="false" />
          <Property Name="IssuedToID" Type="Int64" />
          <Property Name="StationeryScanDocID" Type="Int64" />
          <Property Name="Comments" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="StationeryBatch" Relationship="Model.FK__Stationer__Stati__5071BF9D" FromRole="Stationery" ToRole="StationeryBatch" />
        </EntityType>
        <ComplexType Name="Pr_StationeryAssignPrecheck_Result">
          <Property Type="Int64" Name="StationeryID" Nullable="false" />
          <Property Type="Int16" Name="StationeryStatusID" Nullable="false" />
          <Property Type="Int64" Name="StationeryBatchID" Nullable="false" />
          <Property Type="String" Name="StationeryNumber" Nullable="false" MaxLength="15" />
          <Property Type="Int64" Name="IssuedToID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_FirstStationeryNumberGet_Result">
          <Property Type="Int64" Name="StationeryID" Nullable="false" />
          <Property Type="Int16" Name="StationeryStatusID" Nullable="false" />
          <Property Type="Int64" Name="StationeryBatchID" Nullable="false" />
          <Property Type="String" Name="StationeryNumber" Nullable="false" MaxLength="15" />
          <Property Type="Int64" Name="IssuedToID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_IssuedStationeryGet_Result">
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="Int32" Name="IssuedForUse" Nullable="true" />
          <Property Type="Int32" Name="Used" Nullable="true" />
          <Property Type="Int32" Name="Defaced" Nullable="true" />
          <Property Type="Int32" Name="Lost" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_IssuedToStationeryGet_Result">
          <Property Type="Int64" Name="StationeryID" Nullable="false" />
          <Property Type="Int16" Name="StationeryStatusID" Nullable="false" />
          <Property Type="Int64" Name="StationeryBatchID" Nullable="false" />
          <Property Type="String" Name="StationeryNumber" Nullable="false" MaxLength="15" />
          <Property Type="Int64" Name="IssuedToID" Nullable="true" />
          <Property Type="String" Name="StationeryStatus" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="StationeryScanDocID" Nullable="true" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="255" />
        </ComplexType>
        <EntityType Name="Vw_Associations">
          <Key>
            <PropertyRef Name="AssociationID" />
          </Key>
          <Property Name="AssociationID" Type="Int64" Nullable="false" />
          <Property Name="AssociationName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="AssociationNameAbbrev" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ActiveMemberCount" Type="Int32" Nullable="false" />
          <Property Name="Status" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Mode" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="Type" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="Region" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_OfficeLocation">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="OfficeLocationDescription" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="RegionID" Type="Int16" />
          <Property Name="LicencingBoardID" Type="Int16" />
          <Property Name="PaymentClerkUserID" Type="Int64" />
          <Property Name="AssessorUserID" Type="Int64" />
          <Property Name="LocationName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="LocationAddress" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="HandlesGazetting" Type="Boolean" Nullable="false" />
          <Property Name="GazetteNumberPrefix" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationAgendaEmails" Type="String" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationHearingQuorumCount" Type="Int16" />
          <Property Name="AdjudicationMeetingQuorumCount" Type="Int16" />
          <Property Name="SeniorManagerApproverUserID" Type="Int64" />
          <Property Name="InspectionCapturerUserID" Type="Int64" />
          <Property Name="ReferralCapturerUserID" Type="Int64" />
          <Property Name="AdjudicationOfficerUserID" Type="Int64" />
          <Property Name="AdjudicationSecrataryUserID" Type="Int64" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="Int16" />
          <Property Name="DocumentStoreLocationID" Type="Int64" />
          <Property Name="PaymentTypeID" Type="Int16" />
          <Property Name="BusinessRuleBypassApproverUserID" Type="Int64" />
          <Property Name="AdjudicationContactName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationContactTelPhone" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationContactEmail" Type="String" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="RouteCapturerUserID" Type="Int64" />
          <Property Name="RouteApproverUserID" Type="Int64" />
        </EntityType>
        <ComplexType Name="Pr_AdjudicationSearch_Result">
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" />
          <Property Type="Int16" Name="AdjudicationTypeID" Nullable="false" />
          <Property Type="Int16" Name="AdjudicationDetailStatusID" Nullable="false" />
          <Property Type="Int64" Name="OfficeLocationID" Nullable="false" />
          <Property Type="DateTime" Name="MeetingDate" Nullable="false" Precision="23" />
          <Property Type="String" Name="MeetingTime" Nullable="true" MaxLength="100" />
          <Property Type="Boolean" Name="PreAdjudicationNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PreAdjudicationLettersSent" Nullable="false" />
          <Property Type="Boolean" Name="PostAdjudicationNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PostAdjudicationLettersSent" Nullable="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="23" />
          <Property Type="Boolean" Name="PreAdjudicationObjectionNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PreAdjudicationObjectionLettersSent" Nullable="false" />
          <Property Type="String" Name="LocationName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="LocationAddress" Nullable="true" MaxLength="1000" />
          <Property Type="DateTime" Name="MeetingDateEnd" Nullable="false" Precision="23" />
          <Property Type="String" Name="MeetingTimeEnd" Nullable="true" MaxLength="100" />
          <Property Type="Int16" Name="MaxAdjudicationAutoApplicationCount" Nullable="true" />
          <Property Type="Int32" Name="TotalApplicationsAssigned" Nullable="true" />
          <Property Type="Int32" Name="TotalLicencesAssigned" Nullable="true" />
          <Property Type="String" Name="AdjudicationNumber" Nullable="true" MaxLength="20" />
        </ComplexType>
        <ComplexType Name="Pr_AdjudicationCreate_Result">
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" />
          <Property Type="Int16" Name="AdjudicationTypeID" Nullable="false" />
          <Property Type="Int16" Name="AdjudicationDetailStatusID" Nullable="false" />
          <Property Type="Int64" Name="OfficeLocationID" Nullable="false" />
          <Property Type="DateTime" Name="MeetingDate" Nullable="false" Precision="23" />
          <Property Type="String" Name="MeetingTime" Nullable="true" MaxLength="100" />
          <Property Type="DateTime" Name="MeetingDateEnd" Nullable="false" Precision="23" />
          <Property Type="String" Name="MeetingTimeEnd" Nullable="true" MaxLength="100" />
          <Property Type="Boolean" Name="PreAdjudicationNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PreAdjudicationLettersSent" Nullable="false" />
          <Property Type="Boolean" Name="PostAdjudicationNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PostAdjudicationLettersSent" Nullable="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="23" />
          <Property Type="Boolean" Name="PreAdjudicationObjectionNotificationsSent" Nullable="false" />
          <Property Type="Boolean" Name="PreAdjudicationObjectionLettersSent" Nullable="false" />
          <Property Type="String" Name="LocationName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="LocationAddress" Nullable="true" MaxLength="1000" />
          <Property Type="Int16" Name="MaxAdjudicationAutoApplicationCount" Nullable="true" />
        </ComplexType>
        <EntityType Name="LicenceDuration">
          <Key>
            <PropertyRef Name="LicenceDurationID" />
          </Key>
          <Property Name="LicenceDurationID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="DurationInMonths" Type="Int32" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
        </EntityType>
        <ComplexType Name="Pr_AppDocumentsAwaitingVerificationGet_Result">
          <Property Type="Int64" Name="DocumentID" Nullable="true" />
          <Property Type="Int16" Name="DocumentTypeID" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="DocumentVerificationStatusID" Nullable="true" />
          <Property Type="String" Name="DocumentDescription" Nullable="true" MaxLength="255" />
          <Property Type="Int64" Name="EntityID" Nullable="true" />
          <Property Type="Int64" Name="ItemID" Nullable="true" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="String" Name="VIN" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationAdjudicationGet_Result">
          <Property Type="Int64" Name="ApplicationAdjudicationID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="true" />
          <Property Type="Boolean" Name="IsActiveAdjudication" Nullable="false" />
          <Property Type="Boolean" Name="IsReadyForAdjudication" Nullable="false" />
          <Property Type="Int16" Name="FinalAdjudicationDecisionID" Nullable="true" />
          <Property Type="Int32" Name="FinalAdjudicationLicenceDurationMonths" Nullable="true" />
          <Property Type="DateTime" Name="FinalAdjudicationDecisionDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="FinalAdjudicationLicenceExpiryDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="AdjudicationException" Nullable="true" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="23" />
          <Property Type="Int16" Name="OrderBy" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationLicenceTemporaryReplacementGet_Result">
          <Property Type="String" Name="ExistingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ExistingRegistration" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="Member" Nullable="false" MaxLength="511" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="ReplacementDateFrom" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="ReplacementDateTo" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="TransactionType" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ReplacementRegistrationNumber" Nullable="true" MaxLength="50" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="Mode" Nullable="true" MaxLength="1" />
        </ComplexType>
        <EntityType Name="OfficeLocationSetup">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="LocationName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="LocationAddress" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="RegionID" Type="Int16" />
          <Property Name="LicencingBoardID" Type="Int16" />
          <Property Name="PaymentClerkUserID" Type="Int64" />
          <Property Name="AssessorUserID" Type="Int64" />
          <Property Name="SeniorManagerApproverUserID" Type="Int64" />
          <Property Name="InspectionCapturerUserID" Type="Int64" />
          <Property Name="ReferralCapturerUserID" Type="Int64" />
          <Property Name="HandlesGazetting" Type="Boolean" Nullable="false" />
          <Property Name="GazetteNumberPrefix" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationOfficerUserID" Type="Int64" />
          <Property Name="AdjudicationSecrataryUserID" Type="Int64" />
          <Property Name="AdjudicationAgendaEmails" Type="String" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationHearingQuorumCount" Type="Int16" />
          <Property Name="AdjudicationMeetingQuorumCount" Type="Int16" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="Int16" />
          <NavigationProperty Name="OfficeLocationSetupDocumentTemplate" Relationship="Model.FK__OfficeLoc__Offic__3D69D821" FromRole="OfficeLocationSetup" ToRole="OfficeLocationSetupDocumentTemplate" />
          <Property Name="DocumentStoreLocationID" Type="Int64" />
          <Property Name="PaymentTypeID" Type="Int16" />
          <Property Name="BusinessRuleBypassApproverUserID" Type="Int64" />
          <Property Name="AdjudicationContactName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationContactTelPhone" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationContactEmail" Type="String" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="RouteCapturerUserID" Type="Int64" />
          <Property Name="RouteApproverUserID" Type="Int64" />
        </EntityType>
        <EntityType Name="OfficeLocationSetupDocumentTemplate">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
          </Key>
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="PreAdjudicationLetterDocumentID" Type="Int64" />
          <Property Name="PreAdjudicationObjectionLetterDocumentID" Type="Int64" />
          <Property Name="PostAdjudicationLetterApprovedDocumentID" Type="Int64" />
          <Property Name="PostAdjudicationLetterPostponedDocumentID" Type="Int64" />
          <Property Name="PostAdjudicationLetterRefusedDocumentID" Type="Int64" />
          <Property Name="PostAdjudicationLetterCancelledDocumentID" Type="Int64" />
          <Property Name="PostAdjudicationLetterWithdrawnDocumentID" Type="Int64" />
          <Property Name="PostAdjudicationLetterStruckOffDocumentID" Type="Int64" />
          <NavigationProperty Name="OfficeLocationSetup" Relationship="Model.FK__OfficeLoc__Offic__3D69D821" FromRole="OfficeLocationSetupDocumentTemplate" ToRole="OfficeLocationSetup" />
          <Property Name="TATConfirmationReceipt_DocumentID" Type="Int64" />
          <Property Name="LicenceAnnexure_AdjudicationPanelDocumentID" Type="Int64" />
        </EntityType>
        <Association Name="FK__OfficeLoc__Offic__3D69D821">
          <End Type="Model.OfficeLocationSetup" Role="OfficeLocationSetup" Multiplicity="1" />
          <End Type="Model.OfficeLocationSetupDocumentTemplate" Role="OfficeLocationSetupDocumentTemplate" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="OfficeLocationSetup">
              <PropertyRef Name="OfficeLocationID" />
            </Principal>
            <Dependent Role="OfficeLocationSetupDocumentTemplate">
              <PropertyRef Name="OfficeLocationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="LicencingBoard">
          <Key>
            <PropertyRef Name="LicencingBoardID" />
          </Key>
          <Property Name="LicencingBoardID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Province" Relationship="Model.FK_LicencingBoards_Provinces" FromRole="LicencingBoard" ToRole="Province" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="IsNew" Type="Boolean" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_LicencingBoards" FromRole="LicencingBoard" ToRole="Licence" />
        </EntityType>
        <Association Name="FK_LicencingBoards_Provinces">
          <End Type="Model.Province" Role="Province" Multiplicity="1" />
          <End Type="Model.LicencingBoard" Role="LicencingBoard" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="LicencingBoard">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_OfficeLocationSetupUpsert_Result">
          <Property Type="Int64" Name="OfficeLocationID" Nullable="false" />
          <Property Type="String" Name="LocationName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="LocationAddress" Nullable="true" MaxLength="1000" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="Int16" Name="RegionID" Nullable="true" />
          <Property Type="Int16" Name="LicencingBoardID" Nullable="true" />
          <Property Type="Int64" Name="PaymentClerkUserID" Nullable="true" />
          <Property Type="Int64" Name="AssessorUserID" Nullable="true" />
          <Property Type="Int64" Name="SeniorManagerApproverUserID" Nullable="true" />
          <Property Type="Int64" Name="InspectionCapturerUserID" Nullable="true" />
          <Property Type="Int64" Name="ReferralCapturerUserID" Nullable="true" />
          <Property Type="Boolean" Name="HandlesGazetting" Nullable="false" />
          <Property Type="String" Name="GazetteNumberPrefix" Nullable="true" MaxLength="10" />
          <Property Type="Int64" Name="AdjudicationOfficerUserID" Nullable="true" />
          <Property Type="Int64" Name="AdjudicationSecrataryUserID" Nullable="true" />
          <Property Type="String" Name="AdjudicationAgendaEmails" Nullable="true" MaxLength="2000" />
          <Property Type="Int16" Name="AdjudicationHearingQuorumCount" Nullable="true" />
          <Property Type="Int16" Name="AdjudicationMeetingQuorumCount" Nullable="true" />
          <Property Type="Int16" Name="MaxAdjudicationAutoApplicationCount" Nullable="true" />
        </ComplexType>
        <EntityType Name="DivisionType">
          <Key>
            <PropertyRef Name="DivisionTypeID" />
          </Key>
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" />
          <Property Name="PaymentClerkUserID" Type="Int64" />
          <NavigationProperty Name="GazetteDetails" Relationship="Model.FK_GazetteDetails_DivisionTypes" FromRole="DivisionType" ToRole="GazetteDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestTypeDivisionSetups" Relationship="Model.FK__Applicati__Divis__7DAE7A68" FromRole="DivisionType" ToRole="ApplicationRequestTypeDivisionSetup" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationAllowedNewLicences" Relationship="Model.FK__Applicati__Divis__58A7DE42" FromRole="DivisionType" ToRole="ApplicationAllowedNewLicence" />
          <NavigationProperty Name="DivisionTypeAnnexureMappings" Relationship="Model.FK__DivisionT__Divis__7F228CE5" FromRole="DivisionType" ToRole="DivisionTypeAnnexureMapping" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_DivisionTypes" FromRole="DivisionType" ToRole="Licence" />
        </EntityType>
        <Association Name="FK_GazetteDetails_DivisionTypes">
          <End Type="Model.DivisionType" Role="DivisionType" Multiplicity="1" />
          <End Type="Model.GazetteDetail" Role="GazetteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionType">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="GazetteDetail">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__Applicati__Divis__7DAE7A68">
          <End Type="Model.DivisionType" Role="DivisionType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDivisionSetup" Role="ApplicationRequestTypeDivisionSetup" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionType">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDivisionSetup">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_VehicleModels">
          <Key>
            <PropertyRef Name="VehicleModelID" />
            <PropertyRef Name="VehicleMake" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="GrossWeight" />
            <PropertyRef Name="TareWeight" />
            <PropertyRef Name="VehicleTypeID" />
            <PropertyRef Name="VehicleType" />
            <PropertyRef Name="CarryingCapacityID" />
            <PropertyRef Name="CarryingCapacity" />
            <PropertyRef Name="IsValidModel" />
          </Key>
          <Property Name="VehicleModelID" Type="Int16" Nullable="false" />
          <Property Name="VehicleMakeID" Type="Int16" />
          <Property Name="VehicleMake" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="SeatedCapacityExcludingDriver" Type="Int16" />
          <Property Name="StandingCapacity" Type="Int16" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="GrossWeight" Type="Int64" Nullable="false" />
          <Property Name="TareWeight" Type="Int64" Nullable="false" />
          <Property Name="VehicleTypeID" Type="Int16" Nullable="false" />
          <Property Name="VehicleType" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="CarryingCapacityID" Type="Int16" Nullable="false" />
          <Property Name="CarryingCapacity" Type="String" Nullable="false" MaxLength="200" FixedLength="false" Unicode="false" />
          <Property Name="IsValidModel" Type="Boolean" Nullable="false" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="VehicleModel">
          <Key>
            <PropertyRef Name="VehicleModelID" />
          </Key>
          <Property Name="VehicleModelID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="VehicleMakeID" Type="Int16" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="SeatedCapacityExcludingDriver" Type="Int16" />
          <Property Name="StandingCapacity" Type="Int16" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="GrossWeight" Type="Int64" Nullable="false" />
          <Property Name="TareWeight" Type="Int64" Nullable="false" />
          <Property Name="VehicleTypeID" Type="Int16" Nullable="false" />
          <Property Name="CarryingCapacityID" Type="Int16" Nullable="false" />
          <Property Name="IsValidModel" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="CarryingCapacity" Relationship="Model.FK__VehicleMo__Carry__11F56A37" FromRole="VehicleModel" ToRole="CarryingCapacity" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleMake" Relationship="Model.FK_VehicleModels_VehicleMakes" FromRole="VehicleModel" ToRole="VehicleMake" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleType" Relationship="Model.FK__VehicleMo__Vehic__0F18FD8C" FromRole="VehicleModel" ToRole="VehicleType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Vehicles" Relationship="Model.FK__Vehicles__Vehicl__28D8CF8F" FromRole="VehicleModel" ToRole="Vehicle" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="IsNew" Type="Boolean" />
        </EntityType>
        <Association Name="FK__VehicleMo__Carry__11F56A37">
          <End Type="Model.CarryingCapacity" Role="CarryingCapacity" Multiplicity="1" />
          <End Type="Model.VehicleModel" Role="VehicleModel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CarryingCapacity">
              <PropertyRef Name="CarryingCapacityID" />
            </Principal>
            <Dependent Role="VehicleModel">
              <PropertyRef Name="CarryingCapacityID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_VehicleModels_VehicleMakes">
          <End Type="Model.VehicleMake" Role="VehicleMake" Multiplicity="0..1" />
          <End Type="Model.VehicleModel" Role="VehicleModel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMake">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="VehicleModel">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__VehicleMo__Vehic__0F18FD8C">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="1" />
          <End Type="Model.VehicleModel" Role="VehicleModel" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="VehicleModel">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__Vehicles__Vehicl__28D8CF8F">
          <End Type="Model.VehicleModel" Role="VehicleModel" Multiplicity="0..1" />
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleModel">
              <PropertyRef Name="VehicleModelID" />
            </Principal>
            <Dependent Role="Vehicle">
              <PropertyRef Name="VehicleModelID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_ApplicationAwaitingCorrectionsGet_Result">
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="Int16" Name="WorkflowInstanceTaskStatusID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowTemplateStepID" Nullable="false" />
          <Property Type="DateTime" Name="DateCreated" Nullable="false" Precision="23" />
          <Property Type="DateTime" Name="DateCompleted" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="AssignedToID" Nullable="false" />
          <Property Type="Int64" Name="CompletedByID" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="512" />
          <Property Type="String" Name="Comments" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="TaskStatusDescription" Nullable="false" MaxLength="50" />
          <Property Type="Double" Name="WorkflowTemplateStepNumber" Nullable="false" />
          <Property Type="String" Name="WorkflowTemplateStepTitle" Nullable="false" MaxLength="255" />
          <Property Type="Int32" Name="WorkflowTemplateStepDurationOvertime" Nullable="false" />
          <Property Type="Int16" Name="WorkflowTemplateStepTypeID" Nullable="false" />
          <Property Type="String" Name="WorkflowTemplateStepTypeDescription" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="AssignedToName" Nullable="true" MaxLength="101" />
          <Property Type="String" Name="CompletedByName" Nullable="true" MaxLength="101" />
          <Property Type="Int32" Name="WorkflowInstanceEntityID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceItemID" Nullable="false" />
          <Property Type="String" Name="WorkflowInstanceReference" Nullable="false" MaxLength="12" />
          <Property Type="DateTime" Name="WorkflowInstanceCreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="WorkflowInstanceCreatedByID" Nullable="false" />
          <Property Type="String" Name="WorkflowInstanceCreatedByName" Nullable="true" MaxLength="101" />
          <Property Type="Int64" Name="WorkflowID" Nullable="false" />
          <Property Type="String" Name="WorkflowFriendlyName" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="WorkflowControllerName" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="TaskDuration" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="EscalatedFromID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_GetReceiptDetails_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="true" />
          <Property Type="String" Name="ReceiptNumber" Nullable="true" MaxLength="53" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ApplicantData" Nullable="true" MaxLength="2000" />
          <Property Type="String" Name="ApplicationType" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="ReceiptItems" Nullable="true" />
          <Property Type="String" Name="OfficeLocation" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Province" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="PaymentType" Nullable="false" MaxLength="50" />
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="false" />
          <Property Type="Decimal" Name="ReceiptCost" Nullable="false" Precision="19" />
          <Property Type="String" Name="IsCancelled" Nullable="false" MaxLength="3" />
          <Property Type="String" Name="CreatedBy" Nullable="true" MaxLength="101" />
          <Property Type="String" Name="Division" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="ReceiptHeading" Nullable="false" MaxLength="81" />
        </ComplexType>
        <EntityType Name="ApplicationAllowedNewLicence">
          <Key>
            <PropertyRef Name="ApplicationAllowedNewLicenceID" />
          </Key>
          <Property Name="ApplicationAllowedNewLicenceID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="MemberName" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IdNumberOrBusinessRegistrationNumber" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="AssociationID" Type="Int64" Nullable="false" />
          <Property Name="RegistrationNumber" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="IsUsed" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationAllowedNewLicenceTypeID" Type="Int16" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationReferenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <NavigationProperty Name="DivisionType" Relationship="Model.FK__Applicati__Divis__58A7DE42" FromRole="ApplicationAllowedNewLicence" ToRole="DivisionType" />
          <NavigationProperty Name="Province" Relationship="Model.FK__Applicati__Provi__599C027B" FromRole="ApplicationAllowedNewLicence" ToRole="Province" />
        </EntityType>
        <ComplexType Name="Pr_GetApplicationAllowedNewLicences_Result">
          <Property Type="Int64" Name="ApplicationAllowedNewLicenceID" Nullable="false" />
          <Property Type="String" Name="MemberName" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="IdNumberOrBusinessRegistrationNumber" Nullable="false" MaxLength="50" />
          <Property Type="Int64" Name="AssociationID" Nullable="false" />
          <Property Type="String" Name="RegistrationNumber" Nullable="false" MaxLength="50" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="Boolean" Name="IsUsed" Nullable="false" />
          <Property Type="Int16" Name="ApplicationAllowedNewLicenceTypeID" Nullable="true" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ApplicationReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="true" />
          <Property Type="String" Name="Association" Nullable="false" MaxLength="255" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="true" />
          <Property Type="Int16" Name="ProvinceID" Nullable="true" />
        </ComplexType>
        <Association Name="FK__Applicati__Divis__58A7DE42">
          <End Type="Model.DivisionType" Role="DivisionType" Multiplicity="0..1" />
          <End Type="Model.ApplicationAllowedNewLicence" Role="ApplicationAllowedNewLicence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionType">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="ApplicationAllowedNewLicence">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__Applicati__Provi__599C027B">
          <End Type="Model.Province" Role="Province" Multiplicity="0..1" />
          <End Type="Model.ApplicationAllowedNewLicence" Role="ApplicationAllowedNewLicence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="ApplicationAllowedNewLicence">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="StationeryBatch">
          <Key>
            <PropertyRef Name="StationeryBatchID" />
          </Key>
          <Property Name="StationeryBatchID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="StationeryBatchStatusID" Type="Int16" Nullable="false" />
          <Property Name="StationeryBatchTypeID" Type="Int16" Nullable="false" />
          <Property Name="FromNumber" Type="String" Nullable="false" MaxLength="15" FixedLength="false" Unicode="false" />
          <Property Name="ToNumber" Type="String" Nullable="false" MaxLength="15" FixedLength="false" Unicode="false" />
          <Property Name="OfficeLocationID" Type="Int16" />
          <Property Name="ReceivedDate" Type="DateTime" Precision="3" />
          <Property Name="ReceivedByID" Type="Int64" />
          <Property Name="ExternalPartyDescription" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="ExternalPartyContactName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="ExternalPartyContactEmail" Type="String" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="LastNumberIssued" Type="String" MaxLength="15" FixedLength="false" Unicode="false" />
          <Property Name="BatchNumber" Type="String" MaxLength="12" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Stationeries" Relationship="Model.FK__Stationer__Stati__5071BF9D" FromRole="StationeryBatch" ToRole="Stationery" />
        </EntityType>
        <Association Name="FK__Stationer__Stati__5071BF9D">
          <End Type="Model.StationeryBatch" Role="StationeryBatch" Multiplicity="1" />
          <End Type="Model.Stationery" Role="Stationery" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="StationeryBatch">
              <PropertyRef Name="StationeryBatchID" />
            </Principal>
            <Dependent Role="Stationery">
              <PropertyRef Name="StationeryBatchID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_TaskSearch_Result">
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="Int64" Name="EscalatedFromID" Nullable="true" />
          <Property Type="String" Name="TaskDescription" Nullable="false" MaxLength="255" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="DashboardControllerName" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="WorkflowControllerName" Nullable="false" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationAnalytics_ApplicationCreatedBySummmary_Result">
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="Int32" Name="Count" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationAnalytics_ApplicationPerRegion_Result">
          <Property Type="String" Name="Description" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="RegionID" Nullable="false" />
          <Property Type="Int32" Name="Count" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationAnalytics_ApplicationRequestTypeSummmary_Result">
          <Property Type="String" Name="Title" Nullable="false" MaxLength="255" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int32" Name="Count" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationAnalyticsSearch_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="String" Name="CreatedBy" Nullable="true" MaxLength="101" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="String" Name="StepDescription" Nullable="true" MaxLength="255" />
        </ComplexType>
        <ComplexType Name="Pr_NonBatchedCashReceiptDetailsGet_Result">
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="false" />
          <Property Type="String" Name="ReceiptNumber" Nullable="true" MaxLength="53" />
          <Property Type="Decimal" Name="TotalCost" Nullable="false" Precision="19" />
          <Property Type="String" Name="PaymentType" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="ApplicantData" Nullable="true" MaxLength="2000" />
          <Property Type="String" Name="ReceiptItems" Nullable="true" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="CreatedById" Nullable="false" />
          <Property Type="Int64" Name="ReceiptBatchID" Nullable="true" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="Int16" Name="PaymentTypeID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="true" />
          <Property Type="Int16" Name="OfficeLocationID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_SearchCashups_Result">
          <Property Type="Int64" Name="ReceiptBatchID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="52" />
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="Decimal" Name="BatchTotal" Nullable="false" Precision="19" />
          <Property Type="DateTime" Name="BatchDate" Nullable="false" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationRequestTypeDivisionSetupUpdate_Result">
          <Property Type="Int64" Name="ApplicationRequestTypeDivisionSetupID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="IsAssessorApprovalRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsSeniorManagerApprovalRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsFinalisationTasksRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsInspectionRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsReferralRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsAdjudicationRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="AdjudicationTypeRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsGazettingRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="GazetteTypeRule" Nullable="true" MaxLength="1000" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationRequestTypeDivisionSetupClone_Result">
          <Property Type="Int64" Name="ApplicationRequestTypeDivisionSetupID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="String" Name="IsAssessorApprovalRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsSeniorManagerApprovalRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsFinalisationTasksRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsInspectionRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsReferralRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsAdjudicationRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="AdjudicationTypeRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="IsGazettingRequiredRule" Nullable="true" MaxLength="1000" />
          <Property Type="String" Name="GazetteTypeRule" Nullable="true" MaxLength="1000" />
        </ComplexType>
        <ComplexType Name="Pr_BusinessRuleBypassRequestInprogressGet_Result">
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="InstanceDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="TaskDescription" Nullable="false" MaxLength="255" />
          <Property Type="DateTime" Name="DateAssigned" Nullable="false" Precision="23" />
          <Property Type="String" Name="AssignedTo" Nullable="true" MaxLength="101" />
          <Property Type="Int64" Name="BusinessRuleBypassRequestDetailID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_AdjudicationSummaryExceptionsGet_Result">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_TAT_ApplicationsPendingDataReleaseGet_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="ApplicationNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="OriginalApplicationNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="CopiedFromApplicationDetailID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_LicenceCancelSummaryGet_Result">
          <Property Type="Int32" Name="Total" Nullable="true" />
          <Property Type="String" Name="Description" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ViewName" Nullable="true" MaxLength="255" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceCancelSearch_Result">
          <Property Type="Int64" Name="LicenceCancelDetailID" Nullable="false" />
          <Property Type="Int64" Name="OfficeLocationID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="true" />
          <Property Type="String" Name="LicenceCancelNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="DateOfExpiry" Nullable="true" Precision="23" />
          <Property Type="String" Name="NameOnLicence" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="LicenceStatus" Nullable="false" MaxLength="50" />
        </ComplexType>
        <EntityType Name="Vw_LicenceCancelDetails">
          <Key>
            <PropertyRef Name="LicenceCancelDetailID" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="LicenceStatus" />
          </Key>
          <Property Name="LicenceCancelDetailID" Type="Int64" Nullable="false" />
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="LicenceCancelNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="DateTime" Precision="3" />
          <Property Name="DateOfExpiry" Type="DateTime" Precision="3" />
          <Property Name="NameOnLicence" Type="String" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="LicenceStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_Settings">
          <Key>
            <PropertyRef Name="SettingName" />
            <PropertyRef Name="SettingValue" />
          </Key>
          <Property Name="SettingName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="SettingDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="SettingValue" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="SettingDetail" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_ApplicationDetails_InProgress">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="SourceApplicationID" />
            <PropertyRef Name="IsNewRouteRequired" />
            <PropertyRef Name="IsExceptionRequired" />
            <PropertyRef Name="IsUpliftmentRequired" />
            <PropertyRef Name="IsAdjustmentRequired" />
            <PropertyRef Name="IsCancellationRequired" />
            <PropertyRef Name="LicenceCount" />
            <PropertyRef Name="IsRenewal" />
            <PropertyRef Name="AssociationName" />
            <PropertyRef Name="ProxyName" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="AdjudicationComment" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="Region" />
            <PropertyRef Name="WorkflowStatus" />
            <PropertyRef Name="IsAdjudicationBypassed" />
            <PropertyRef Name="IsGazettingBypassed" />
            <PropertyRef Name="IsAssessorApprovalRequired" />
            <PropertyRef Name="IsSeniorManagerApprovalRequired" />
            <PropertyRef Name="HasNewRoute" />
            <PropertyRef Name="IsGazettingRequired" />
            <PropertyRef Name="IsInspectionRequired" />
            <PropertyRef Name="IsReferralRequired" />
            <PropertyRef Name="IsBusAndContract" />
            <PropertyRef Name="ApplicationIsObjected" />
            <PropertyRef Name="OnlyExistingRoutesOnLicense" />
            <PropertyRef Name="IsAllowedNewLicence" />
            <PropertyRef Name="ForceGazetting" />
            <PropertyRef Name="ApplicationStatusID" />
            <PropertyRef Name="ApplicationSubStatusID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IncludeRenewalType" Type="Boolean" />
          <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="FirstNames" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="TradeName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Member" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="VerifiedMemberID" Type="Int64" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="SourceApplicationID" Type="Int16" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsExceptionRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsUpliftmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsCancellationRequired" Type="Boolean" Nullable="false" />
          <Property Name="GazetteNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="GazetteDetailID" Type="Int64" />
          <Property Name="LicenceCount" Type="Int32" Nullable="false" />
          <Property Name="ApplicationDescription" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IsRenewal" Type="Boolean" Nullable="false" />
          <Property Name="AssociationName" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="TaxNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ProxyName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationComment" Type="String" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" />
          <Property Name="TelCell" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="TelPhone" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="AdjudicationOfficeLocationID" Type="Int16" />
          <Property Name="ExistingLicenceHolder" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ExistingLicenceHolderID" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="Region" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsAdjudicationBypassed" Type="Boolean" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="Boolean" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="HasNewRoute" Type="Boolean" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <Property Name="ProxyIDNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationCount" Type="Int16" />
          <Property Name="PhysicalAddress" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="PhysicalAddressCode" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddress" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddressCode" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="VerifiedAssociationID" Type="Int64" />
          <Property Name="IsGazettingRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsReferralRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsBusAndContract" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="Int64" />
          <Property Name="IsApplicantIndividual" Type="Int16" />
          <Property Name="ApplicationIsObjected" Type="Boolean" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="Boolean" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="Boolean" Nullable="false" />
          <Property Name="ForceGazetting" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="Int16" />
          <Property Name="ApplicationStatusID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationCannoutBeAutoAssignedForAdjudication" Type="Boolean" />
        </EntityType>
        <EntityType Name="Vw_VehicleMakes">
          <Key>
            <PropertyRef Name="VehicleMakeID" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="IsCancelled" />
          </Key>
          <Property Name="VehicleMakeID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="IsNew" Type="Boolean" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_LicencingBoards">
          <Key>
            <PropertyRef Name="LicencingBoardID" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="Province" />
            <PropertyRef Name="IsCancelled" />
          </Key>
          <Property Name="LicencingBoardID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="Province" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="IsNew" Type="Boolean" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <Association Name="FK__ServiceTy__Route__646E96A9">
          <End Type="Model.RouteType" Role="RouteType" Multiplicity="0..1" />
          <End Type="Model.ServiceType" Role="ServiceType" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="RouteType">
              <PropertyRef Name="RouteTypeID" />
            </Principal>
            <Dependent Role="ServiceType">
              <PropertyRef Name="RouteTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Inspector">
          <Key>
            <PropertyRef Name="InspectorID" />
          </Key>
          <Property Name="InspectorID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="OfficeLocationID" Type="Int64" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="IsNew" Type="Boolean" />
        </EntityType>
        <ComplexType Name="Pr_InspectorsGetView_Result">
          <Property Type="Int64" Name="InspectorID" Nullable="false" />
          <Property Type="Int64" Name="OfficeLocationID" Nullable="true" />
          <Property Type="String" Name="Name" Nullable="false" MaxLength="255" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Boolean" Name="IsNew" Nullable="true" />
          <Property Type="String" Name="OfficeLocation" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="WorkflowReference" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="WorkflowStatus" Nullable="true" MaxLength="50" />
        </ComplexType>
        <EntityType Name="DivisionTypeAnnexureMapping">
          <Key>
            <PropertyRef Name="DivisionTypeAnnexureMappingID" />
          </Key>
          <Property Name="DivisionTypeAnnexureMappingID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="ServiceTypeID" Type="Int16" />
          <Property Name="VehicleTypeID" Type="Int16" />
          <Property Name="AnnexureDocumentID" Type="Int64" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="DivisionType" Relationship="Model.FK__DivisionT__Divis__7F228CE5" FromRole="DivisionTypeAnnexureMapping" ToRole="DivisionType" />
          <NavigationProperty Name="Province" Relationship="Model.FK__DivisionT__Provi__0016B11E" FromRole="DivisionTypeAnnexureMapping" ToRole="Province" />
          <NavigationProperty Name="ServiceType" Relationship="Model.FK__DivisionT__Servi__010AD557" FromRole="DivisionTypeAnnexureMapping" ToRole="ServiceType" />
          <NavigationProperty Name="VehicleType" Relationship="Model.FK__DivisionT__Vehic__01FEF990" FromRole="DivisionTypeAnnexureMapping" ToRole="VehicleType" />
          <Property Name="IsNew" Type="Boolean" />
        </EntityType>
        <Association Name="FK__DivisionT__Divis__7F228CE5">
          <End Type="Model.DivisionType" Role="DivisionType" Multiplicity="1" />
          <End Type="Model.DivisionTypeAnnexureMapping" Role="DivisionTypeAnnexureMapping" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionType">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMapping">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__DivisionT__Provi__0016B11E">
          <End Type="Model.Province" Role="Province" Multiplicity="0..1" />
          <End Type="Model.DivisionTypeAnnexureMapping" Role="DivisionTypeAnnexureMapping" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMapping">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__DivisionT__Servi__010AD557">
          <End Type="Model.ServiceType" Role="ServiceType" Multiplicity="0..1" />
          <End Type="Model.DivisionTypeAnnexureMapping" Role="DivisionTypeAnnexureMapping" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceType">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMapping">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__DivisionT__Vehic__01FEF990">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="0..1" />
          <End Type="Model.DivisionTypeAnnexureMapping" Role="DivisionTypeAnnexureMapping" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="DivisionTypeAnnexureMapping">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_DivisionTypeAnnexureMappingSearch_Result">
          <Property Type="Int64" Name="DivisionTypeAnnexureMappingID" Nullable="false" />
          <Property Type="Int16" Name="DivisionTypeID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="true" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="true" />
          <Property Type="Int16" Name="VehicleTypeID" Nullable="true" />
          <Property Type="Int64" Name="AnnexureDocumentID" Nullable="true" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_SystemAdministrator_Result">
          <Property Type="String" Name="MessageType" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="PendingCount" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_Dashboard_SystemAdministrator_FailedTasks_Result">
          <Property Type="Int64" Name="WorkflowInstanceID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="InstanceDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="InstanceTaskDescription" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
          <Property Type="DateTime" Name="TaskCreatedDate" Nullable="false" Precision="23" />
          <Property Type="Int64" Name="WorkflowTemplateStepID" Nullable="false" />
          <Property Type="Double" Name="Step" Nullable="false" />
          <Property Type="Boolean" Name="CanRequestChange" Nullable="true" />
        </ComplexType>
        <EntityType Name="Vw_DivisionTypeAnnexureMappings">
          <Key>
            <PropertyRef Name="DivisionTypeAnnexureMappingID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="Province" />
            <PropertyRef Name="ServiceType" />
          </Key>
          <Property Name="DivisionTypeAnnexureMappingID" Type="Int64" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="ServiceTypeID" Type="Int16" />
          <Property Name="VehicleTypeID" Type="Int16" />
          <Property Name="AnnexureDocumentID" Type="Int64" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="DivisionType" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Province" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ServiceType" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="VehicleType" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_ApplicationRequestTypeDivisionSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDivisionSetupID" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="ApplicationRequestType" />
            <PropertyRef Name="Province" />
          </Key>
          <Property Name="ApplicationRequestTypeDivisionSetupID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="IsAssessorApprovalRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsSeniorManagerApprovalRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsFinalisationTasksRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsInspectionRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsReferralRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsAdjudicationRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationTypeRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsGazettingRequiredRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="GazetteTypeRule" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="IsNew" Type="Boolean" />
          <Property Name="ApplicationRequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="DivisionType" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Province" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_ApplicationRequestTypeDocumentSetup">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="DocumentTypeID" />
            <PropertyRef Name="WorkflowTemplateID" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="ApplicationRequestType" />
            <PropertyRef Name="Province" />
          </Key>
          <Property Name="ApplicationRequestTypeDocumentID" Type="Int32" Nullable="false" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="WorkflowTemplateID" Type="Int64" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="IsAvailableForUpload" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="IsMandatory" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="IsNew" Type="Boolean" />
          <Property Name="ApplicationRequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="DivisionType" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Province" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_OfficeLocationSetup">
          <Key>
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="DivisionTypeID" />
            <PropertyRef Name="ProvinceID" />
            <PropertyRef Name="HandlesGazetting" />
            <PropertyRef Name="Province" />
          </Key>
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="LocationName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="LocationAddress" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Name="DivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="RegionID" Type="Int16" />
          <Property Name="LicencingBoardID" Type="Int16" />
          <Property Name="PaymentClerkUserID" Type="Int64" />
          <Property Name="AssessorUserID" Type="Int64" />
          <Property Name="SeniorManagerApproverUserID" Type="Int64" />
          <Property Name="InspectionCapturerUserID" Type="Int64" />
          <Property Name="ReferralCapturerUserID" Type="Int64" />
          <Property Name="HandlesGazetting" Type="Boolean" Nullable="false" />
          <Property Name="GazetteNumberPrefix" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationOfficerUserID" Type="Int64" />
          <Property Name="AdjudicationSecrataryUserID" Type="Int64" />
          <Property Name="AdjudicationAgendaEmails" Type="String" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationHearingQuorumCount" Type="Int16" />
          <Property Name="AdjudicationMeetingQuorumCount" Type="Int16" />
          <Property Name="MaxAdjudicationAutoApplicationCount" Type="Int16" />
          <Property Name="DocumentStoreLocationID" Type="Int64" />
          <Property Name="PaymentTypeID" Type="Int16" />
          <Property Name="BusinessRuleBypassApproverUserID" Type="Int64" />
          <Property Name="AdjudicationContactName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationContactTelPhone" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationContactEmail" Type="String" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Name="DivisionType" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="Province" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="RouteCapturerUserID" Type="Int64" />
          <Property Name="RouteApproverUserID" Type="Int64" />
        </EntityType>
        <ComplexType Name="Pr_SearchApplicationLicenceVehicleType_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="String" Name="ApplicationLicenceReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int16" Name="VehicleTypeID" Nullable="true" />
          <Property Type="String" Name="VehicleTypeDescription" Nullable="false" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_SearchApplicationServiceTypes_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="String" Name="ApplicationLicenceReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
          <Property Type="String" Name="ServiceTypeDescription" Nullable="false" MaxLength="100" />
          <Property Type="Int64" Name="ApplicationLicenceServiceDetailID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_SearchLicenceVehicleTypes_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="VehicleTypeI" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_SearchLicenceServiceTypes_Result">
          <Property Type="Int64" Name="LicenceServiceDetailID" Nullable="false" />
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
          <Property Type="String" Name="ServiceTypeDescription" Nullable="true" MaxLength="100" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationLicenseGet_Result">
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="50" />
        </ComplexType>
        <EntityType Name="ServiceVehicleType">
          <Key>
            <PropertyRef Name="ServiceVehicleTypeID" />
          </Key>
          <Property Name="ServiceVehicleTypeID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ServiceTypeID" Type="Int16" Nullable="false" />
          <Property Name="VehicleTypeID" Type="Int16" Nullable="false" />
          <NavigationProperty Name="ServiceType" Relationship="Model.FK__ServiceVe__Servi__59F10836" FromRole="ServiceVehicleType" ToRole="ServiceType" />
          <NavigationProperty Name="VehicleType" Relationship="Model.FK__ServiceVe__Vehic__5AE52C6F" FromRole="ServiceVehicleType" ToRole="VehicleType" />
        </EntityType>
        <Association Name="FK__ServiceVe__Servi__59F10836">
          <End Type="Model.ServiceType" Role="ServiceType" Multiplicity="1" />
          <End Type="Model.ServiceVehicleType" Role="ServiceVehicleType" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceType">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="ServiceVehicleType">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK__ServiceVe__Vehic__5AE52C6F">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="1" />
          <End Type="Model.ServiceVehicleType" Role="ServiceVehicleType" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ServiceVehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_GetSetupAvailableOptions_Result">
          <Property Type="String" Name="Available_Options" Nullable="true" MaxLength="128" />
          <Property Type="String" Name="Date_Type" Nullable="true" MaxLength="128" />
        </ComplexType>
        <ComplexType Name="Pr_PrintGazetteReport_Result">
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="String" Name="AppDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="ExistingFirstname" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ExistingSurname" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ExistingIDNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ExistingPostalAddress" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="ExistingPostalCode" Nullable="true" MaxLength="4" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="100" />
          <Property Type="Int16" Name="SeatedCapacity" Nullable="false" />
          <Property Type="Int16" Name="StandingCapacity" Nullable="false" />
          <Property Type="String" Name="GazetteNumber" Nullable="false" MaxLength="20" />
          <Property Type="String" Name="Region" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="ApplicationRequestTypesTitle" Nullable="true" MaxLength="255" />
          <Property Type="DateTime" Name="GazettePrintDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="GazetteNoticeExpiryDate" Nullable="true" Precision="23" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Type="String" Name="VehicleType" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="ApplicationRegion" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="CapacityDescription" Nullable="false" MaxLength="37" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationGazetteRoutesGet_Result">
          <Property Type="String" Name="ServiceTypeNumber" Nullable="false" MaxLength="1" />
          <Property Type="String" Name="ServiceType" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="RouteDescription" Nullable="true" />
          <Property Type="Int64" Name="RouteNumber" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_GazetteRoutesGet_Result">
          <Property Type="String" Name="ServiceTypeNumber" Nullable="false" MaxLength="1" />
          <Property Type="String" Name="ServiceType" Nullable="false" MaxLength="100" />
          <Property Type="String" Name="RouteDescription" Nullable="true" />
          <Property Type="Int64" Name="RouteNumber" Nullable="true" />
          <Property Type="Int64" Name="ApplicationLicenceID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationDetailID" Nullable="false" />
        </ComplexType>
        <Association Name="FK_Licences_DivisionTypes">
          <End Type="Model.DivisionType" Role="DivisionType" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DivisionType">
              <PropertyRef Name="DivisionTypeID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="DivisionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_LicencingBoards">
          <End Type="Model.LicencingBoard" Role="LicencingBoard" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicencingBoard">
              <PropertyRef Name="LicencingBoardID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="LicencingBoardID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Provinces">
          <End Type="Model.Province" Role="Province" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Regions">
          <End Type="Model.Region" Role="Region" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Region">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Associations">
          <End Type="Model.Associations" Role="Associations" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Associations">
              <PropertyRef Name="AssociationID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="AssociationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_MemberGet_Result">
          <Property Type="Int64" Name="MemberID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="511" />
          <Property Type="Int64" Name="RegionID" Nullable="true" />
          <Property Type="Int64" Name="IdentityDocumentDocID" Nullable="true" />
          <Property Type="Int64" Name="TaxClearanceCertificateDocID" Nullable="true" />
          <Property Type="String" Name="SurnameOrCompanyName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="FirstNames" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="IDTypeID" Nullable="true" />
          <Property Type="String" Name="IDTypeDescription" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="PostalAddress" Nullable="true" MaxLength="800" />
          <Property Type="String" Name="PostalAddressCode" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="PhysicalAddress" Nullable="true" MaxLength="800" />
          <Property Type="String" Name="PhysicalAddressCode" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="TelPhone" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="TelCell" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="TelFax" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Email" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="SARSIncomeTaxNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="TradeName" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="MemberStatusID" Nullable="false" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="Int64" Name="BusinessTypeID" Nullable="true" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="Int64" Name="AssociationID" Nullable="true" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceRoutesGet_Result">
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="true" MaxLength="53" />
          <Property Type="Int16" Name="RouteTypeID" Nullable="false" />
          <Property Type="String" Name="RouteName" Nullable="false" MaxLength="500" />
          <Property Type="String" Name="Description" Nullable="false" />
          <Property Type="Int64" Name="OriginPlaceID" Nullable="true" />
          <Property Type="Int64" Name="DestinationPlaceID" Nullable="true" />
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="Double" Name="RouteLength" Nullable="true" />
          <Property Type="Int16" Name="RouteStatusID" Nullable="false" />
          <Property Type="Int64" Name="OlasID" Nullable="true" />
          <Property Type="Int64" Name="LtpsID" Nullable="true" />
          <Property Type="Int64" Name="NeoID" Nullable="true" />
          <Property Type="Int64" Name="ProvinceID" Nullable="true" />
          <Property Type="Int64" Name="TimeTableDocumentID" Nullable="true" />
          <Property Type="Int64" Name="FareScheduleDocumentID" Nullable="true" />
          <Property Type="Boolean" Name="IsChecked" Nullable="false" />
          <Property Type="Boolean" Name="IsPotentialIncorrectRouteChange" Nullable="false" />
          <Property Type="Int16" Name="IsPotentialIncorrectRouteChangeProbability" Nullable="true" />
          <Property Type="Int32" Name="VersionNumber" Nullable="false" />
          <Property Type="Boolean" Name="IsLatest" Nullable="false" />
          <Property Type="Int64" Name="ParentRouteID" Nullable="true" />
          <Property Type="String" Name="RouteType" Nullable="false" MaxLength="50" />
          <Property Type="String" Name="OriginDescription" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="DestinationDescription" Nullable="true" MaxLength="255" />
          <Property Type="Int16" Name="ServiceTypeID" Nullable="false" />
        </ComplexType>
        </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="LegitimateEntities">
          <EntitySetMapping Name="GazetteDetails">
            <EntityTypeMapping TypeName="Model.GazetteDetail">
              <MappingFragment StoreEntitySet="GazetteDetails">
                <ScalarProperty Name="GazetteDocumentID" ColumnName="GazetteDocumentID" />
                <ScalarProperty Name="GazetteTypeID" ColumnName="GazetteTypeID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="GazetteNoticeExpiryDate" ColumnName="GazetteNoticeExpiryDate" />
                <ScalarProperty Name="GazettePrintDate" ColumnName="GazettePrintDate" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="GazetteDetailStatusID" ColumnName="GazetteDetailStatusID" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="SourceApplications">
            <EntityTypeMapping TypeName="Model.SourceApplication">
              <MappingFragment StoreEntitySet="SourceApplications">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GazetteDetailStatusUpdate" FunctionName="Model.Store.Pr_GazetteDetailStatusUpdate" />
          <EntitySetMapping Name="Vw_ReceiptDetails">
            <EntityTypeMapping TypeName="Model.Vw_ReceiptDetails">
              <MappingFragment StoreEntitySet="Vw_ReceiptDetails">
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="ReceiptBatchID" ColumnName="ReceiptBatchID" />
                <ScalarProperty Name="CreatedById" ColumnName="CreatedById" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="ReceiptItems" ColumnName="ReceiptItems" />
                <ScalarProperty Name="ApplicantData" ColumnName="ApplicantData" />
                <ScalarProperty Name="PaymentType" ColumnName="PaymentType" />
                <ScalarProperty Name="TotalCost" ColumnName="TotalCost" />
                <ScalarProperty Name="ReceiptNumber" ColumnName="ReceiptNumber" />
                <ScalarProperty Name="ReceiptDetailID" ColumnName="ReceiptDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ReceiptDetails">
            <EntityTypeMapping TypeName="Model.ReceiptDetail">
              <MappingFragment StoreEntitySet="ReceiptDetails">
                <ScalarProperty Name="ProofOfPaymentRefNo" ColumnName="ProofOfPaymentRefNo" />
                <ScalarProperty Name="ApplicantIDNumber" ColumnName="ApplicantIDNumber" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="ProofOfPaymentDocID" ColumnName="ProofOfPaymentDocID" />
                <ScalarProperty Name="HasBulkLicenceApplications" ColumnName="HasBulkLicenceApplications" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ReceiptBatchID" ColumnName="ReceiptBatchID" />
                <ScalarProperty Name="ReceiptItems" ColumnName="ReceiptItems" />
                <ScalarProperty Name="ApplicantData" ColumnName="ApplicantData" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedById" ColumnName="UpdatedById" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedById" ColumnName="CreatedById" />
                <ScalarProperty Name="TotalCost" ColumnName="TotalCost" />
                <ScalarProperty Name="ReceiptNumber" ColumnName="ReceiptNumber" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="ReceiptDetailID" ColumnName="ReceiptDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentTypes">
            <EntityTypeMapping TypeName="Model.DocumentTypes">
              <MappingFragment StoreEntitySet="DocumentTypes">
                <ScalarProperty Name="IsUniqueEntityDocument" ColumnName="IsUniqueEntityDocument" />
                <ScalarProperty Name="IsExpiryDateRequired" ColumnName="IsExpiryDateRequired" />
                <ScalarProperty Name="IsDocumentTitleEditable" ColumnName="IsDocumentTitleEditable" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="AssociationModes">
            <EntityTypeMapping TypeName="Model.AssociationModes">
              <MappingFragment StoreEntitySet="AssociationModes">
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AssociationModeID" ColumnName="AssociationModeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="AssociationTypes">
            <EntityTypeMapping TypeName="Model.AssociationTypes">
              <MappingFragment StoreEntitySet="AssociationTypes">
                <ScalarProperty Name="LtpID" ColumnName="LtpID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AssociationTypeID" ColumnName="AssociationTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="AssociationStatus">
            <EntityTypeMapping TypeName="Model.AssociationStatus">
              <MappingFragment StoreEntitySet="AssociationStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="AssociationStatusID" ColumnName="AssociationStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="VerifiedMembers">
            <EntityTypeMapping TypeName="Model.VerifiedMember">
              <MappingFragment StoreEntitySet="Members">
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="SARSIncomeTaxNumber" ColumnName="SARSIncomeTaxNumber" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="IDTypeDescription" ColumnName="IDTypeDescription" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="TaxClearanceCertificateDocID" ColumnName="TaxClearanceCertificateDocID" />
                <ScalarProperty Name="IdentityDocumentDocID" ColumnName="IdentityDocumentDocID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="VerifiedMemberStatus">
            <EntityTypeMapping TypeName="Model.VerifiedMemberStatus">
              <MappingFragment StoreEntitySet="MemberStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="MemberStatusID" ColumnName="MemberStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <AssociationSetMapping Name="FK_Members_MemberStatusID" TypeName="Model.FK_Members_MemberStatusID" StoreEntitySet="Members">
            <EndProperty Name="Members">
              <ScalarProperty Name="MemberID" ColumnName="MemberID" />
            </EndProperty>
            <EndProperty Name="MemberStatus">
              <ScalarProperty Name="MemberStatusID" ColumnName="MemberStatusID" />
            </EndProperty>
          </AssociationSetMapping>
          <EntitySetMapping Name="AdjudicationDetails">
            <EntityTypeMapping TypeName="Model.AdjudicationDetail">
              <MappingFragment StoreEntitySet="AdjudicationDetails">
                <ScalarProperty Name="AdjudicationNumber" ColumnName="AdjudicationNumber" />
                <ScalarProperty Name="MaxAdjudicationAutoApplicationCount" ColumnName="MaxAdjudicationAutoApplicationCount" />
                <ScalarProperty Name="MeetingTime" ColumnName="MeetingTime" />
                <ScalarProperty Name="MeetingTimeEnd" ColumnName="MeetingTimeEnd" />
                <ScalarProperty Name="MeetingDateEnd" ColumnName="MeetingDateEnd" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="PreAdjudicationObjectionLettersSent" ColumnName="PreAdjudicationObjectionLettersSent" />
                <ScalarProperty Name="PreAdjudicationObjectionNotificationsSent" ColumnName="PreAdjudicationObjectionNotificationsSent" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="PostAdjudicationLettersSent" ColumnName="PostAdjudicationLettersSent" />
                <ScalarProperty Name="PostAdjudicationNotificationsSent" ColumnName="PostAdjudicationNotificationsSent" />
                <ScalarProperty Name="PreAdjudicationLettersSent" ColumnName="PreAdjudicationLettersSent" />
                <ScalarProperty Name="PreAdjudicationNotificationsSent" ColumnName="PreAdjudicationNotificationsSent" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="AdjudicationDetailStatusID" ColumnName="AdjudicationDetailStatusID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Provinces">
            <EntityTypeMapping TypeName="Model.Province">
              <MappingFragment StoreEntitySet="Provinces">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Regions">
            <EntityTypeMapping TypeName="Model.Region">
              <MappingFragment StoreEntitySet="Regions">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Associations">
            <EntityTypeMapping TypeName="Model.Associations">
              <MappingFragment StoreEntitySet="Associations">
                <ScalarProperty Name="AdjudicationOfficeLocationID" ColumnName="AdjudicationOfficeLocationID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="ActiveMemberCount" ColumnName="ActiveMemberCount" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
                <ScalarProperty Name="CellNumber" ColumnName="CellNumber" />
                <ScalarProperty Name="FaxNumber" ColumnName="FaxNumber" />
                <ScalarProperty Name="TelNumber" ColumnName="TelNumber" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="BusRegNumber" ColumnName="BusRegNumber" />
                <ScalarProperty Name="PostalAddressIsDomicilium" ColumnName="PostalAddressIsDomicilium" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="AssociationNameAbbrev" ColumnName="AssociationNameAbbrev" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="AssociationTypeID" ColumnName="AssociationTypeID" />
                <ScalarProperty Name="AssociationModeID" ColumnName="AssociationModeID" />
                <ScalarProperty Name="AssociationStatusID" ColumnName="AssociationStatusID" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Routes">
            <EntityTypeMapping TypeName="Model.Route">
              <MappingFragment StoreEntitySet="Routes">
                <ScalarProperty Name="ParentRouteID" ColumnName="ParentRouteID" />
                <ScalarProperty Name="IsLatest" ColumnName="IsLatest" />
                <ScalarProperty Name="VersionNumber" ColumnName="VersionNumber" />
                <ScalarProperty Name="IsPotentialIncorrectRouteChangeProbability" ColumnName="IsPotentialIncorrectRouteChangeProbability" />
                <ScalarProperty Name="IsPotentialIncorrectRouteChange" ColumnName="IsPotentialIncorrectRouteChange" />
                <ScalarProperty Name="IsChecked" ColumnName="IsChecked" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="RouteStatusID" ColumnName="RouteStatusID" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="DestinationPlaceID" ColumnName="DestinationPlaceID" />
                <ScalarProperty Name="OriginPlaceID" ColumnName="OriginPlaceID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="RouteStatus1">
            <EntityTypeMapping TypeName="Model.RouteStatus">
              <MappingFragment StoreEntitySet="RouteStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="RouteStatusID" ColumnName="RouteStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="PaymentTypes">
            <EntityTypeMapping TypeName="Model.PaymentType">
              <MappingFragment StoreEntitySet="PaymentTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Places">
            <EntityTypeMapping TypeName="Model.Place">
              <MappingFragment StoreEntitySet="Places">
                <ScalarProperty Name="RankOlasID" ColumnName="RankOlasID" />
                <ScalarProperty Name="TownOlasID" ColumnName="TownOlasID" />
                <ScalarProperty Name="RoadlinkOlasID" ColumnName="RoadlinkOlasID" />
                <ScalarProperty Name="IntersectionOlasID" ColumnName="IntersectionOlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="ParentPlaceID" ColumnName="ParentPlaceID" />
                <ScalarProperty Name="Longitude" ColumnName="Longitude" />
                <ScalarProperty Name="Latitude" ColumnName="Latitude" />
                <ScalarProperty Name="PlaceCode" ColumnName="PlaceCode" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="PlaceTypeID" ColumnName="PlaceTypeID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="PlaceID" ColumnName="PlaceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="AdjudicationDetailStatuses">
            <EntityTypeMapping TypeName="Model.AdjudicationDetailStatus">
              <MappingFragment StoreEntitySet="AdjudicationDetailStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="AdjudicationDetailStatusID" ColumnName="AdjudicationDetailStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Licences">
            <EntityTypeMapping TypeName="Model.Licence">
              <MappingFragment StoreEntitySet="Licences">
                <ScalarProperty Name="CleanOperatingLicenceNumber" ColumnName="CleanOperatingLicenceNumber" />
                <ScalarProperty Name="OlasId" ColumnName="OlasId" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="DateOfApproval" ColumnName="DateOfApproval" />
                <ScalarProperty Name="IsTemporaryLicence" ColumnName="IsTemporaryLicence" />
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="LicenceCarryingCapacityID" ColumnName="LicenceCarryingCapacityID" />
                <ScalarProperty Name="LicenceVehicleTypeID" ColumnName="LicenceVehicleTypeID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="IsLatestIssue" ColumnName="IsLatestIssue" />
                <ScalarProperty Name="OriginalOLASNumber" ColumnName="OriginalOLASNumber" />
                <ScalarProperty Name="OriginalLTPSPermitNumber" ColumnName="OriginalLTPSPermitNumber" />
                <ScalarProperty Name="UpliftmentReminderSmsSentDate" ColumnName="UpliftmentReminderSmsSentDate" />
                <ScalarProperty Name="ExpiredNotificationSmsSentDate" ColumnName="ExpiredNotificationSmsSentDate" />
                <ScalarProperty Name="UpcomingExpiryNotificationSmsSentDate" ColumnName="UpcomingExpiryNotificationSmsSentDate" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="Indefinite" ColumnName="Indefinite" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="IssueNumber" ColumnName="IssueNumber" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceStatuses">
            <EntityTypeMapping TypeName="Model.LicenceStatus">
              <MappingFragment StoreEntitySet="LicenceStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vehicles">
            <EntityTypeMapping TypeName="Model.Vehicle">
              <MappingFragment StoreEntitySet="Vehicles">
                <ScalarProperty Name="CertifiedPublicPassangerLiabilityDocID" ColumnName="CertifiedPublicPassangerLiabilityDocID" />
                <ScalarProperty Name="CertifiedServiceRecordsDocID" ColumnName="CertifiedServiceRecordsDocID" />
                <ScalarProperty Name="RankPermitDocID" ColumnName="RankPermitDocID" />
                <ScalarProperty Name="ProfessionalDriversPermitDocID" ColumnName="ProfessionalDriversPermitDocID" />
                <ScalarProperty Name="VehicleModelID" ColumnName="VehicleModelID" />
                <ScalarProperty Name="CertificateOfRegistrationDocID" ColumnName="CertificateOfRegistrationDocID" />
                <ScalarProperty Name="RoadworthyCertificateDocID" ColumnName="RoadworthyCertificateDocID" />
                <ScalarProperty Name="CurrentOdometerReading" ColumnName="CurrentOdometerReading" />
                <ScalarProperty Name="Tare" ColumnName="Tare" />
                <ScalarProperty Name="IgnoreVinException" ColumnName="IgnoreVinException" />
                <ScalarProperty Name="YearOfManufacture" ColumnName="YearOfManufacture" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="VehicleStatusID" ColumnName="VehicleStatusID" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_PrecheckDetailsUpsert" FunctionName="Model.Store.Pr_PrecheckDetailsUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationDetailStatusUpdate" FunctionName="Model.Store.Pr_AdjudicationDetailStatusUpdate" />
          <EntitySetMapping Name="AdjudicationDecisions">
            <EntityTypeMapping TypeName="Model.AdjudicationDecision">
              <MappingFragment StoreEntitySet="AdjudicationDecisions">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="GazetteDetailStatus">
            <EntityTypeMapping TypeName="Model.GazetteDetailStatu">
              <MappingFragment StoreEntitySet="GazetteDetailStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="GazetteDetailStatusID" ColumnName="GazetteDetailStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationPanelMembersGet" FunctionName="Model.Store.Pr_AdjudicationPanelMembersGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AdjudicationPanelMembersGet_Result">
                <ScalarProperty Name="UserID" ColumnName="UserID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="AdjudicationPanels">
            <EntityTypeMapping TypeName="Model.AdjudicationPanel">
              <MappingFragment StoreEntitySet="AdjudicationPanel">
                <ScalarProperty Name="AddedAfterStart" ColumnName="AddedAfterStart" />
                <ScalarProperty Name="DateConfirmed" ColumnName="DateConfirmed" />
                <ScalarProperty Name="IsChairman" ColumnName="IsChairman" />
                <ScalarProperty Name="HasAttended" ColumnName="HasAttended" />
                <ScalarProperty Name="PanelMemberUserID" ColumnName="PanelMemberUserID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="AdjudicationPanelID" ColumnName="AdjudicationPanelID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_AdjudicationPanel">
            <EntityTypeMapping TypeName="Model.Vw_AdjudicationPanel">
              <MappingFragment StoreEntitySet="Vw_AdjudicationPanel">
                <ScalarProperty Name="AddedAfterStart" ColumnName="AddedAfterStart" />
                <ScalarProperty Name="DateConfirmed" ColumnName="DateConfirmed" />
                <ScalarProperty Name="IsChairman" ColumnName="IsChairman" />
                <ScalarProperty Name="Attended" ColumnName="Attended" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="HasAttended" ColumnName="HasAttended" />
                <ScalarProperty Name="PanelMemberUserID" ColumnName="PanelMemberUserID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="AdjudicationPanelID" ColumnName="AdjudicationPanelID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationPanelUpdate" FunctionName="Model.Store.Pr_AdjudicationPanelUpdate" />
          <EntitySetMapping Name="ContractTypes">
            <EntityTypeMapping TypeName="Model.ContractType">
              <MappingFragment StoreEntitySet="ContractTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ContractTypeID" ColumnName="ContractTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="IDTypes">
            <EntityTypeMapping TypeName="Model.IDType">
              <MappingFragment StoreEntitySet="IDTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsForIndividual" ColumnName="IsForIndividual" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="PlaceTypes">
            <EntityTypeMapping TypeName="Model.PlaceType">
              <MappingFragment StoreEntitySet="PlaceTypes">
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="PlaceTypeID" ColumnName="PlaceTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="RouteTypes">
            <EntityTypeMapping TypeName="Model.RouteType">
              <MappingFragment StoreEntitySet="RouteTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ServiceTypes">
            <EntityTypeMapping TypeName="Model.ServiceType">
              <MappingFragment StoreEntitySet="ServiceTypes">
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="VehicleMakes">
            <EntityTypeMapping TypeName="Model.VehicleMake">
              <MappingFragment StoreEntitySet="VehicleMakes">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsMidibusMake" ColumnName="IsMidibusMake" />
                <ScalarProperty Name="IsBusMake" ColumnName="IsBusMake" />
                <ScalarProperty Name="IsMinibusMake" ColumnName="IsMinibusMake" />
                <ScalarProperty Name="IsMotorcarMake" ColumnName="IsMotorcarMake" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="VehicleTypes">
            <EntityTypeMapping TypeName="Model.VehicleType">
              <MappingFragment StoreEntitySet="VehicleTypes">
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="WaypointTypes">
            <EntityTypeMapping TypeName="Model.WaypointType">
              <MappingFragment StoreEntitySet="WaypointTypes">
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="WaypointTypeID" ColumnName="WaypointTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <AssociationSetMapping Name="AssociationMembers" TypeName="Model.AssociationMembers" StoreEntitySet="AssociationMembers">
            <EndProperty Name="VerifiedMember">
              <ScalarProperty Name="MemberID" ColumnName="MemberID" />
            </EndProperty>
            <EndProperty Name="Associations">
              <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
            </EndProperty>
          </AssociationSetMapping>
          <EntitySetMapping Name="Vw_OperatingLicenceDetails">
            <EntityTypeMapping TypeName="Model.Vw_OperatingLicenceDetails">
              <MappingFragment StoreEntitySet="Vw_OperatingLicenceDetails">
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="AccreditationNumber" ColumnName="AccreditationNumber" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
                <ScalarProperty Name="LicenceExceptions" ColumnName="LicenceExceptions" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="YearOfFirstReg" ColumnName="YearOfFirstReg" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="LicensingBoard" ColumnName="LicensingBoard" />
                <ScalarProperty Name="CrossBorder" ColumnName="CrossBorder" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="VehicleType" ColumnName="VehicleType" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <AssociationSetMapping Name="AssociationRoutes" TypeName="Model.AssociationRoutes" StoreEntitySet="AssociationRoutes">
            <EndProperty Name="Route">
              <ScalarProperty Name="RouteID" ColumnName="RouteID" />
            </EndProperty>
            <EndProperty Name="Associations">
              <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
            </EndProperty>
          </AssociationSetMapping>
          <EntitySetMapping Name="LicenceIssueDetails">
            <EntityTypeMapping TypeName="Model.LicenceIssueDetail">
              <MappingFragment StoreEntitySet="LicenceIssueDetails">
                <ScalarProperty Name="LicenceIssueNumber" ColumnName="LicenceIssueNumber" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="IsDocumentVerificationRequired" ColumnName="IsDocumentVerificationRequired" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceIssueInspectionDetails">
            <EntityTypeMapping TypeName="Model.LicenceIssueInspectionDetail">
              <MappingFragment StoreEntitySet="LicenceIssueInspectionDetails">
                <ScalarProperty Name="Additional2DocumentID" ColumnName="Additional2DocumentID" />
                <ScalarProperty Name="Additional1DocumentID" ColumnName="Additional1DocumentID" />
                <ScalarProperty Name="BackRegDocumentID" ColumnName="BackRegDocumentID" />
                <ScalarProperty Name="EngineDocumentID" ColumnName="EngineDocumentID" />
                <ScalarProperty Name="ChassisDocumentID" ColumnName="ChassisDocumentID" />
                <ScalarProperty Name="FrontRegDocumentID" ColumnName="FrontRegDocumentID" />
                <ScalarProperty Name="InspectionSheetDocumentID" ColumnName="InspectionSheetDocumentID" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="DateInspected" ColumnName="DateInspected" />
                <ScalarProperty Name="InspectedByID" ColumnName="InspectedByID" />
                <ScalarProperty Name="LicenceIssueInspectionOutcomeID" ColumnName="LicenceIssueInspectionOutcomeID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceIssueInspectionOutcomes">
            <EntityTypeMapping TypeName="Model.LicenceIssueInspectionOutcome">
              <MappingFragment StoreEntitySet="LicenceIssueInspectionOutcomes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="LicenceIssueInspectionOutcomeID" ColumnName="LicenceIssueInspectionOutcomeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueInspectionComplete" FunctionName="Model.Store.Pr_LicenceIssueInspectionComplete" />
          <EntitySetMapping Name="Vw_LicenceIssueDetails">
            <EntityTypeMapping TypeName="Model.Vw_LicenceIssueDetails">
              <MappingFragment StoreEntitySet="Vw_LicenceIssueDetails">
                <ScalarProperty Name="IsDocumentVerificationRequired" ColumnName="IsDocumentVerificationRequired" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="AccreditationNumber" ColumnName="AccreditationNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="VehicleStandingCapacity" ColumnName="VehicleStandingCapacity" />
                <ScalarProperty Name="MemberFullName" ColumnName="MemberFullName" />
                <ScalarProperty Name="VehicleSeatedCapacity" ColumnName="VehicleSeatedCapacity" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="VehicleEngineNumber" ColumnName="VehicleEngineNumber" />
                <ScalarProperty Name="VehicleVIN" ColumnName="VehicleVIN" />
                <ScalarProperty Name="Association" ColumnName="Association" />
                <ScalarProperty Name="MemberCell" ColumnName="MemberCell" />
                <ScalarProperty Name="MemberIDNumber" ColumnName="MemberIDNumber" />
                <ScalarProperty Name="MemberTaxReference" ColumnName="MemberTaxReference" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationReferenceNumber" ColumnName="ApplicationReferenceNumber" />
                <ScalarProperty Name="LicenceReferenceNumber" ColumnName="LicenceReferenceNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ReceiptBatchGenerate" FunctionName="Model.Store.Pr_ReceiptBatchGenerate" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceStatusSummary" FunctionName="Model.Store.Pr_LicenceStatusSummary">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceStatusSummary_Result">
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="C90DayTotal" ColumnName="90DayTotal" />
                <ScalarProperty Name="C60DayTotal" ColumnName="60DayTotal" />
                <ScalarProperty Name="C30DayTotal" ColumnName="30DayTotal" />
                <ScalarProperty Name="CurrentTotal" ColumnName="CurrentTotal" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="AdjudicationTypes">
            <EntityTypeMapping TypeName="Model.AdjudicationType">
              <MappingFragment StoreEntitySet="AdjudicationType">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicencesExpiredInGracePeriodGet" FunctionName="Model.Store.Pr_LicencesExpiredInGracePeriodGet" />
          <FunctionImportMapping FunctionImportName="Pr_LicencesUpcomingExpiresGet" FunctionName="Model.Store.Pr_LicencesUpcomingExpiresGet">
          </FunctionImportMapping>
          <EntitySetMapping Name="Vw_Vehicles">
            <EntityTypeMapping TypeName="Model.Vw_Vehicles">
              <MappingFragment StoreEntitySet="Vw_Vehicles">
                <ScalarProperty Name="Model" ColumnName="Model" />
                <ScalarProperty Name="CarryingCapacity" ColumnName="CarryingCapacity" />
                <ScalarProperty Name="YearOfManufacture" ColumnName="YearOfManufacture" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="Type" ColumnName="Type" />
                <ScalarProperty Name="Make" ColumnName="Make" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_Places">
            <EntityTypeMapping TypeName="Model.Vw_Places">
              <MappingFragment StoreEntitySet="Vw_Places">
                <ScalarProperty Name="PlaceType" ColumnName="PlaceType" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="PlaceTypeID" ColumnName="PlaceTypeID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="PlaceID" ColumnName="PlaceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_MemberSearch" FunctionName="Model.Store.Pr_MemberSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_MemberSearch_Result">
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="IdentityDocumentDocID" ColumnName="IdentityDocumentDocID" />
                <ScalarProperty Name="TaxClearanceCertificateDocID" ColumnName="TaxClearanceCertificateDocID" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
                <ScalarProperty Name="IDTypeDescription" ColumnName="IDTypeDescription" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="SARSIncomeTaxNumber" ColumnName="SARSIncomeTaxNumber" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="MemberStatusID" ColumnName="MemberStatusID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AssociationSearch" FunctionName="Model.Store.Pr_AssociationSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AssociationSearch_Result">
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="AssociationStatusID" ColumnName="AssociationStatusID" />
                <ScalarProperty Name="AssociationModeID" ColumnName="AssociationModeID" />
                <ScalarProperty Name="AssociationTypeID" ColumnName="AssociationTypeID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="AssociationNameAbbrev" ColumnName="AssociationNameAbbrev" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PostalAddressIsDomicilium" ColumnName="PostalAddressIsDomicilium" />
                <ScalarProperty Name="BusRegNumber" ColumnName="BusRegNumber" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="TelNumber" ColumnName="TelNumber" />
                <ScalarProperty Name="FaxNumber" ColumnName="FaxNumber" />
                <ScalarProperty Name="CellNumber" ColumnName="CellNumber" />
                <ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
                <ScalarProperty Name="ActiveMemberCount" ColumnName="ActiveMemberCount" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="Region" ColumnName="Region" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceSearch" FunctionName="Model.Store.Pr_LicenceSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceSearch_Result">
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="IssueNumber" ColumnName="IssueNumber" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="Indefinite" ColumnName="Indefinite" />
                <ScalarProperty Name="UpcomingExpiryNotificationSmsSentDate" ColumnName="UpcomingExpiryNotificationSmsSentDate" />
                <ScalarProperty Name="ExpiredNotificationSmsSentDate" ColumnName="ExpiredNotificationSmsSentDate" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="UpliftmentReminderSmsSentDate" ColumnName="UpliftmentReminderSmsSentDate" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="OriginalLTPSPermitNumber" ColumnName="OriginalLTPSPermitNumber" />
                <ScalarProperty Name="OriginalOLASNumber" ColumnName="OriginalOLASNumber" />
                <ScalarProperty Name="IsLatestIssue" ColumnName="IsLatestIssue" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="LicenceVehicleTypeID" ColumnName="LicenceVehicleTypeID" />
                <ScalarProperty Name="LicenceCarryingCapacityID" ColumnName="LicenceCarryingCapacityID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_WriteEntry" FunctionName="Model.Store.Pr_WriteEntry" />
          <EntitySetMapping Name="Settings">
            <EntityTypeMapping TypeName="Model.Setting">
              <MappingFragment StoreEntitySet="Settings">
                <ScalarProperty Name="SettingDescription" ColumnName="SettingDescription" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="SettingValue" ColumnName="SettingValue" />
                <ScalarProperty Name="SettingName" ColumnName="SettingName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_RouteSearch" FunctionName="Model.Store.Pr_RouteSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_RouteSearch_Result">
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="RouteDescription" ColumnName="RouteDescription" />
                <ScalarProperty Name="OriginPlaceID" ColumnName="OriginPlaceID" />
                <ScalarProperty Name="DestinationPlaceID" ColumnName="DestinationPlaceID" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
                <ScalarProperty Name="RouteStatusID" ColumnName="RouteStatusID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="RouteOrigin" ColumnName="RouteOrigin" />
                <ScalarProperty Name="RouteDestination" ColumnName="RouteDestination" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
                <ScalarProperty Name="LinkedToVerifiedLicence" ColumnName="LinkedToVerifiedLicence" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="LicenceServiceDetails">
            <EntityTypeMapping TypeName="Model.LicenceServiceDetail">
              <MappingFragment StoreEntitySet="LicenceServiceDetails">
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="LicenceServiceDetailID" ColumnName="LicenceServiceDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_NewRouteRequestDetails">
            <EntityTypeMapping TypeName="Model.Vw_NewRouteRequestDetails">
              <MappingFragment StoreEntitySet="Vw_NewRouteRequestDetails">
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="IsAssessorVerificationRequired" ColumnName="IsAssessorVerificationRequired" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="WorkflowInstanceStatus" ColumnName="WorkflowInstanceStatus" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="RouteDescription" ColumnName="RouteDescription" />
                <ScalarProperty Name="RouteDestination" ColumnName="RouteDestination" />
                <ScalarProperty Name="RouteOrigin" ColumnName="RouteOrigin" />
                <ScalarProperty Name="VerifiedRouteID" ColumnName="VerifiedRouteID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="NewRouteRequestDetailID" ColumnName="NewRouteRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GazetteApplicationBypassExpiry" FunctionName="Model.Store.Pr_GazetteApplicationBypassExpiry" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAdjudicationRestart" FunctionName="Model.Store.Pr_ApplicationAdjudicationRestart" />
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationPanelRemove" FunctionName="Model.Store.Pr_AdjudicationPanelRemove" />
          <FunctionImportMapping FunctionImportName="Pr_ReceiptsGetUnassigned" FunctionName="Model.Store.Pr_ReceiptsGetUnassigned">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ReceiptCreateUnassignedReceipt" FunctionName="Model.Store.Pr_ReceiptCreateUnassignedReceipt" />
          <FunctionImportMapping FunctionImportName="Pr_ReceiptAssignReceipt" FunctionName="Model.Store.Pr_ReceiptAssignReceipt" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_GetAppsWithMissingOrginatingLicences" FunctionName="Model.Store.Pr_Purification_GetAppsWithMissingOrginatingLicences">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_GetAppsWithMissingOrginatingLicences_Result">
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="LegitimateOlNumber" ColumnName="LegitimateOlNumber" />
                <ScalarProperty Name="DateCreated" ColumnName="DateCreated" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_UpdateAppsWithMissingOrginatingLicence" FunctionName="Model.Store.Pr_Purification_UpdateAppsWithMissingOrginatingLicence" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_LicencesLinkedToActiveOLASGet" FunctionName="Model.Store.Pr_Purification_LicencesLinkedToActiveOLASGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_LicencesLinkedToActiveOLASGet_Result">
                <ScalarProperty Name="LegitimateOl" ColumnName="LegitimateOl" />
                <ScalarProperty Name="OlasOL" ColumnName="OlasOL" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceSearchRelatedApplications" FunctionName="Model.Store.Pr_LicenceSearchRelatedApplications">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceSearchRelatedIssues" FunctionName="Model.Store.Pr_LicenceSearchRelatedIssues">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_VehicleSearch" FunctionName="Model.Store.Pr_VehicleSearch">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_VehicleSearchLinkedLicences" FunctionName="Model.Store.Pr_VehicleSearchLinkedLicences">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueWorkflowGet" FunctionName="Model.Store.Pr_LicenceIssueWorkflowGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueWorkflowGet_Result">
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceApplicationWorkflowGet" FunctionName="Model.Store.Pr_LicenceApplicationWorkflowGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceApplicationWorkflowGet_Result">
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceWorkflowDocumentsGet" FunctionName="Model.Store.Pr_LicenceWorkflowDocumentsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceWorkflowDocumentsGet_Result">
                <ScalarProperty Name="Type" ColumnName="Type" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceExceptionsCounts" FunctionName="Model.Store.Pr_LicenceExceptionsCounts">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceExceptionsCounts_Result">
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Total" ColumnName="Total" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicencesWithExceptionGet" FunctionName="Model.Store.Pr_LicencesWithExceptionGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicencesWithExceptionGet_Result">
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="Status" ColumnName="Status" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="CarryingCapacities">
            <EntityTypeMapping TypeName="Model.CarryingCapacity">
              <MappingFragment StoreEntitySet="CarryingCapacities">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceExceptions">
            <EntityTypeMapping TypeName="Model.LicenceException">
              <MappingFragment StoreEntitySet="LicenceExceptions">
                <ScalarProperty Name="Exception" ColumnName="Exception" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="LicenceExceptionID" ColumnName="LicenceExceptionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_VehicleUpsert" FunctionName="Model.Store.Pr_VehicleUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceExceptionsUpdate" FunctionName="Model.Store.Pr_LicenceExceptionsUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_MemberDetailsUpdate" FunctionName="Model.Store.Pr_MemberDetailsUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceStatusUpdate" FunctionName="Model.Store.Pr_LicenceStatusUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_LicencesOverdueUpliftmentsGet" FunctionName="Model.Store.Pr_LicencesOverdueUpliftmentsGet">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationPostPone" FunctionName="Model.Store.Pr_AdjudicationPostPone" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceRouteAdd" FunctionName="Model.Store.Pr_LicenceRouteAdd" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceRouteRemove" FunctionName="Model.Store.Pr_LicenceRouteRemove" />
          <FunctionImportMapping FunctionImportName="Pr_PlaceUpsert" FunctionName="Model.Store.Pr_PlaceUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAdjudicationDecisionReverse" FunctionName="Model.Store.Pr_ApplicationAdjudicationDecisionReverse" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleIsNotUsed" FunctionName="Model.Store.Pr_VehicleIsNotUsed" />
          <FunctionImportMapping FunctionImportName="Pr_RouteAssociationSummary" FunctionName="Model.Store.Pr_RouteAssociationSummary">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_RouteAssociationSummary_Result">
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="TotalMembers" ColumnName="TotalMembers" />
                <ScalarProperty Name="NumberLicencesLinkedToRoute" ColumnName="NumberLicencesLinkedToRoute" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteCounts" FunctionName="Model.Store.Pr_Purification_RouteCounts">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteCounts_Result">
                <ScalarProperty Name="AwaitingRouteDescriptionCheckCount" ColumnName="AwaitingRouteDescriptionCheckCount" />
                <ScalarProperty Name="DuplicateNationalRouteNumbersCount" ColumnName="DuplicateNationalRouteNumbersCount" />
                <ScalarProperty Name="DuplicateBoardRouteNumbersCount" ColumnName="DuplicateBoardRouteNumbersCount" />
                <ScalarProperty Name="DuplicatePlacesCount" ColumnName="DuplicatePlacesCount" />
                <ScalarProperty Name="PotentialOleasDescriptionChangeCount" ColumnName="PotentialOleasDescriptionChangeCount" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteAwaitingRouteDescriptionChecks" FunctionName="Model.Store.Pr_Purification_RouteAwaitingRouteDescriptionChecks">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteAwaitingRouteDescriptionChecks_Result">
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="OriginPlaceID" ColumnName="OriginPlaceID" />
                <ScalarProperty Name="DestinationPlaceID" ColumnName="DestinationPlaceID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="LinkedToLicenses" ColumnName="LinkedToLicenses" />
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDuplicateBoardRouteNumbers" FunctionName="Model.Store.Pr_Purification_RouteDuplicateBoardRouteNumbers">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteDuplicateBoardRouteNumbers_Result">
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDuplicateNationalRouteNumbers" FunctionName="Model.Store.Pr_Purification_RouteDuplicateNationalRouteNumbers">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteDuplicateNationalRouteNumbers_Result">
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDuplicatePlaces" FunctionName="Model.Store.Pr_Purification_RouteDuplicatePlaces">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteDuplicatePlaces_Result">
                <ScalarProperty Name="Description" ColumnName="Description" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDescriptionUpdate" FunctionName="Model.Store.Pr_Purification_RouteDescriptionUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDelete" FunctionName="Model.Store.Pr_Purification_RouteDelete" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDuplicateNationalRouteNumberDetails" FunctionName="Model.Store.Pr_Purification_RouteDuplicateNationalRouteNumberDetails">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteDuplicateNationalRouteNumberDetails_Result">
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_RouteMerge" FunctionName="Model.Store.Pr_RouteMerge" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_RouteDuplicateBoardRouteNumberDetails" FunctionName="Model.Store.Pr_Purification_RouteDuplicateBoardRouteNumberDetails">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RouteDuplicateBoardRouteNumberDetails_Result">
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_RoutesWithPotentialChangesFromOLAS" FunctionName="Model.Store.Pr_Purification_RoutesWithPotentialChangesFromOLAS">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_RoutesWithPotentialChangesFromOLAS_Result">
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="OriginPlaceID" ColumnName="OriginPlaceID" />
                <ScalarProperty Name="DestinationPlaceID" ColumnName="DestinationPlaceID" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="LinkedToLicenses" ColumnName="LinkedToLicenses" />
                <ScalarProperty Name="OlasDescription" ColumnName="OlasDescription" />
                <ScalarProperty Name="OlasRouteName" ColumnName="OlasRouteName" />
                <ScalarProperty Name="OlasRouteXml" ColumnName="OlasRouteXml" />
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_VerificationTasksGet" FunctionName="Model.Store.Pr_VerificationTasksGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_VerificationTasksGet_Result">
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="Step" ColumnName="Step" />
                <ScalarProperty Name="StepDescription" ColumnName="StepDescription" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="FirstVerificationTaskDate" ColumnName="FirstVerificationTaskDate" />
                <ScalarProperty Name="WarningDate" ColumnName="WarningDate" />
                <ScalarProperty Name="DueDate" ColumnName="DueDate" />
                <ScalarProperty Name="AssignedTo" ColumnName="AssignedTo" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_VehicleFlagVinAsCorrect" FunctionName="Model.Store.Pr_VehicleFlagVinAsCorrect" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceServiceTypeAdd" FunctionName="Model.Store.Pr_PurificationLicenceServiceTypeAdd" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceServiceTypeRemove" FunctionName="Model.Store.Pr_PurificationLicenceServiceTypeRemove" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_FindMember" FunctionName="Model.Store.Pr_Purification_FindMember">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_FindMember_Result">
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="MemberDataSource" ColumnName="MemberDataSource" />
                <ScalarProperty Name="RecordsThatWillBeAffectedByUpdate" ColumnName="RecordsThatWillBeAffectedByUpdate" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="SARSIncomeTaxNumber" ColumnName="SARSIncomeTaxNumber" />
                <ScalarProperty Name="SARSReasonIfNoTaxNumber" ColumnName="SARSReasonIfNoTaxNumber" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AssociationRouteAdd" FunctionName="Model.Store.Pr_AssociationRouteAdd" />
          <FunctionImportMapping FunctionImportName="Pr_AssociationRouteRemove" FunctionName="Model.Store.Pr_AssociationRouteRemove" />
          <FunctionImportMapping FunctionImportName="Pr_AssociationRoutesGet" FunctionName="Model.Store.Pr_AssociationRoutesGet">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueWithoutPrint" FunctionName="Model.Store.Pr_LicenceIssueWithoutPrint" />
          <FunctionImportMapping FunctionImportName="Pr_ReceiptCancellation" FunctionName="Model.Store.Pr_ReceiptCancellation" />
          <EntitySetMapping Name="LicenceIssueDocuments">
            <EntityTypeMapping TypeName="Model.LicenceIssueDocument">
              <MappingFragment StoreEntitySet="LicenceIssueDocuments">
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="LicenceIssueDocumentID" ColumnName="LicenceIssueDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueDetaisReport" FunctionName="Model.Store.Pr_LicenceIssueDetaisReport">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueDetaisReport_Result">
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="ShowMeteredTaxiAnnexure" ColumnName="ShowMeteredTaxiAnnexure" />
                <ScalarProperty Name="ShowMidiBusAnnexure" ColumnName="ShowMidiBusAnnexure" />
                <ScalarProperty Name="ShowStaffServiceAnnexure" ColumnName="ShowStaffServiceAnnexure" />
                <ScalarProperty Name="ShowScholarAnnexure" ColumnName="ShowScholarAnnexure" />
                <ScalarProperty Name="ShowBusAnnexure" ColumnName="ShowBusAnnexure" />
                <ScalarProperty Name="ShowMinibusAnnexure" ColumnName="ShowMinibusAnnexure" />
                <ScalarProperty Name="LicenceVehicleTypeID" ColumnName="LicenceVehicleTypeID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ShowTouristAnnexure" ColumnName="ShowTouristAnnexure" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="ShowAnnexure3" ColumnName="ShowAnnexure3" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceVehicleDelink" FunctionName="Model.Store.Pr_LicenceVehicleDelink" />
          <FunctionImportMapping FunctionImportName="Pr_RouteSendToPurification" FunctionName="Model.Store.Pr_RouteSendToPurification" />
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationRemoveApplication" FunctionName="Model.Store.Pr_AdjudicationRemoveApplication" />
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationAddApplication" FunctionName="Model.Store.Pr_AdjudicationAddApplication" />
          <FunctionImportMapping FunctionImportName="Fn_GetSourceApplicationRecordsFromSourceSystem" FunctionName="Model.Store.Fn_GetSourceApplicationRecordsFromSourceSystem">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Fn_GetSourceApplicationRecordsFromSourceSystem_Result">
                <ScalarProperty Name="ID" ColumnName="ID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="LicenceNumber" ColumnName="LicenceNumber" />
                <ScalarProperty Name="LicenceStartDate" ColumnName="LicenceStartDate" />
                <ScalarProperty Name="LicenceEndDate" ColumnName="LicenceEndDate" />
                <ScalarProperty Name="LicenceIndefinite" ColumnName="LicenceIndefinite" />
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
                <ScalarProperty Name="LicenceActive" ColumnName="LicenceActive" />
                <ScalarProperty Name="LicenceIssue" ColumnName="LicenceIssue" />
                <ScalarProperty Name="RelatedPermitNumber" ColumnName="RelatedPermitNumber" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="ApplicantXML" ColumnName="ApplicantXML" />
                <ScalarProperty Name="AssociationXML" ColumnName="AssociationXML" />
                <ScalarProperty Name="LicenceXML" ColumnName="LicenceXML" />
                <ScalarProperty Name="VehicleXML" ColumnName="VehicleXML" />
                <ScalarProperty Name="RoutesXml" ColumnName="RoutesXml" />
                <ScalarProperty Name="ServiceTypesXML" ColumnName="ServiceTypesXML" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="IsInBypassedExpiryList" ColumnName="IsInBypassedExpiryList" />
                <ScalarProperty Name="IsWithinForcedRenewalPeriod" ColumnName="IsWithinForcedRenewalPeriod" />
                <ScalarProperty Name="FullIntegrationXML" ColumnName="FullIntegrationXML" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetAdjudicationAgendeUserEmails" FunctionName="Model.Store.Pr_GetAdjudicationAgendeUserEmails" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueTrackingSearch" FunctionName="Model.Store.Pr_LicenceIssueTrackingSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueTrackingSearch_Result">
                <ScalarProperty Name="IssuingExpiryDate_30Days" ColumnName="IssuingExpiryDate_30Days" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsLetterSent" ColumnName="IssuingExpiryDate_30DaysIsLetterSent" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsLetterSentDate" ColumnName="IssuingExpiryDate_30DaysIsLetterSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_60Days" ColumnName="IssuingExpiryDate_60Days" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsLetterSent" ColumnName="IssuingExpiryDate_60DaysIsLetterSent" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsLetterSentDate" ColumnName="IssuingExpiryDate_60DaysIsLetterSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_90Days" ColumnName="IssuingExpiryDate_90Days" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsLetterSent" ColumnName="IssuingExpiryDate_90DaysIsLetterSent" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsLetterSentDate" ColumnName="IssuingExpiryDate_90DaysIsLetterSentDate" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="LicenceReferenceNumber" ColumnName="LicenceReferenceNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="MemberFullName" ColumnName="MemberFullName" />
                <ScalarProperty Name="Association" ColumnName="Association" />
                <ScalarProperty Name="Task" ColumnName="Task" />
                <ScalarProperty Name="InstanceStep" ColumnName="InstanceStep" />
                <ScalarProperty Name="TaskStep" ColumnName="TaskStep" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="IssuingExpiryDateIsExtended" ColumnName="IssuingExpiryDateIsExtended" />
                <ScalarProperty Name="IssuingExpiryDateExtendedDate" ColumnName="IssuingExpiryDateExtendedDate" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueTrackingFlag" FunctionName="Model.Store.Pr_LicenceIssueTrackingFlag" />
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueTrackingExtend" FunctionName="Model.Store.Pr_LicenceIssueTrackingExtend">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueTrackingExtend_Result">
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="IssuingExpiryDate_30Days" ColumnName="IssuingExpiryDate_30Days" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsSmsSent" ColumnName="IssuingExpiryDate_30DaysIsSmsSent" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsSmsSentDate" ColumnName="IssuingExpiryDate_30DaysIsSmsSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsLetterSent" ColumnName="IssuingExpiryDate_30DaysIsLetterSent" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsLetterSentDate" ColumnName="IssuingExpiryDate_30DaysIsLetterSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_30DaysIsLetterSentByID" ColumnName="IssuingExpiryDate_30DaysIsLetterSentByID" />
                <ScalarProperty Name="IssuingExpiryDate_60Days" ColumnName="IssuingExpiryDate_60Days" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsSmsSent" ColumnName="IssuingExpiryDate_60DaysIsSmsSent" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsSmsSentDate" ColumnName="IssuingExpiryDate_60DaysIsSmsSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsLetterSent" ColumnName="IssuingExpiryDate_60DaysIsLetterSent" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsLetterSentDate" ColumnName="IssuingExpiryDate_60DaysIsLetterSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_60DaysIsLetterSentByID" ColumnName="IssuingExpiryDate_60DaysIsLetterSentByID" />
                <ScalarProperty Name="IssuingExpiryDate_90Days" ColumnName="IssuingExpiryDate_90Days" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsSmsSent" ColumnName="IssuingExpiryDate_90DaysIsSmsSent" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsSmsSentDate" ColumnName="IssuingExpiryDate_90DaysIsSmsSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsLetterSent" ColumnName="IssuingExpiryDate_90DaysIsLetterSent" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsLetterSentDate" ColumnName="IssuingExpiryDate_90DaysIsLetterSentDate" />
                <ScalarProperty Name="IssuingExpiryDate_90DaysIsLetterSentByID" ColumnName="IssuingExpiryDate_90DaysIsLetterSentByID" />
                <ScalarProperty Name="IssuingExpiryDateIsExtended" ColumnName="IssuingExpiryDateIsExtended" />
                <ScalarProperty Name="IssuingExpiryDateExtendedDate" ColumnName="IssuingExpiryDateExtendedDate" />
                <ScalarProperty Name="IssuingExpiryDateByID" ColumnName="IssuingExpiryDateByID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Vw_LicenceUpliftmentExtensionRequestDetails">
            <EntityTypeMapping TypeName="Model.Vw_LicenceUpliftmentExtensionRequestDetails">
              <MappingFragment StoreEntitySet="Vw_LicenceUpliftmentExtensionRequestDetails">
                <ScalarProperty Name="WorkflowInstanceStatusID" ColumnName="WorkflowInstanceStatusID" />
                <ScalarProperty Name="MemberCell" ColumnName="MemberCell" />
                <ScalarProperty Name="MemberIDNumber" ColumnName="MemberIDNumber" />
                <ScalarProperty Name="MemberTaxReference" ColumnName="MemberTaxReference" />
                <ScalarProperty Name="MemberFullName" ColumnName="MemberFullName" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="LicenceUpliftmentReferenceNumber" ColumnName="LicenceUpliftmentReferenceNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="LicenceUpliftmentExtensionRequestDetailID" ColumnName="LicenceUpliftmentExtensionRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetApplicationTypesForConversion" FunctionName="Model.Store.Pr_GetApplicationTypesForConversion">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetApplicationTypesForConversion_Result">
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetReceipt" FunctionName="Model.Store.Pr_GetReceipt">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetReceipt_Result">
                <ScalarProperty Name="ReceiptNumber" ColumnName="ReceiptNumber" />
                <ScalarProperty Name="ApplicantData" ColumnName="ApplicantData" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="ApplicationType" ColumnName="ApplicationType" />
                <ScalarProperty Name="ReceiptItems" ColumnName="ReceiptItems" />
                <ScalarProperty Name="ReceiptDetailID" ColumnName="ReceiptDetailID" />
                <ScalarProperty Name="PaymentType" ColumnName="PaymentType" />
                <ScalarProperty Name="ReceiptCost" ColumnName="ReceiptCost" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="OfficeLocation" ColumnName="OfficeLocation" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="CreatedBy" ColumnName="CreatedBy" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SetReceiptToZero" FunctionName="Model.Store.Pr_SetReceiptToZero" />
          <FunctionImportMapping FunctionImportName="Pr_GetCashupUsers" FunctionName="Model.Store.Pr_GetCashupUsers">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetCashupUsers_Result">
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="OutstandingCashupAmount" ColumnName="OutstandingCashupAmount" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetCashupDetails" FunctionName="Model.Store.Pr_GetCashupDetails" />
          <FunctionImportMapping FunctionImportName="Pr_GetRecentCashups" FunctionName="Model.Store.Pr_GetRecentCashups">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetRecentCashups_Result">
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="BatchTotal" ColumnName="BatchTotal" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="ReceiptBatchID" ColumnName="ReceiptBatchID" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Vw_GazetteApplications">
            <EntityTypeMapping TypeName="Model.Vw_GazetteApplication">
              <MappingFragment StoreEntitySet="Vw_GazetteApplications">
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="GazetteDetailStatusID" ColumnName="GazetteDetailStatusID" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="WorkflowTemplateStepID" ColumnName="WorkflowTemplateStepID" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_AdjudicationDetails">
            <EntityTypeMapping TypeName="Model.Vw_AdjudicationDetails">
              <MappingFragment StoreEntitySet="Vw_AdjudicationDetails">
                <ScalarProperty Name="AdjudicationNumber" ColumnName="AdjudicationNumber" />
                <ScalarProperty Name="AdjudicationFinalisedDate" ColumnName="AdjudicationFinalisedDate" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="PostAdjudicationLettersSent" ColumnName="PostAdjudicationLettersSent" />
                <ScalarProperty Name="PostAdjudicationNotificationsSent" ColumnName="PostAdjudicationNotificationsSent" />
                <ScalarProperty Name="PreAdjudicationObjectionLettersSent" ColumnName="PreAdjudicationObjectionLettersSent" />
                <ScalarProperty Name="PreAdjudicationObjectionNotificationsSent" ColumnName="PreAdjudicationObjectionNotificationsSent" />
                <ScalarProperty Name="PreAdjudicationLettersSent" ColumnName="PreAdjudicationLettersSent" />
                <ScalarProperty Name="PreAdjudicationNotificationsSent" ColumnName="PreAdjudicationNotificationsSent" />
                <ScalarProperty Name="MeetingTime" ColumnName="MeetingTime" />
                <ScalarProperty Name="MeetingPlace" ColumnName="MeetingPlace" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="AdjudicationDetailStatusID" ColumnName="AdjudicationDetailStatusID" />
                <ScalarProperty Name="AdjudicationType" ColumnName="AdjudicationType" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_ApplicationDetails">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationDetails">
              <MappingFragment StoreEntitySet="Vw_ApplicationDetails">
                <ScalarProperty Name="ApplicationCannoutBeAutoAssignedForAdjudication" ColumnName="ApplicationCannoutBeAutoAssignedForAdjudication" />
                <ScalarProperty Name="ApplicationSubStatusID" ColumnName="ApplicationSubStatusID" />
                <ScalarProperty Name="ApplicationStatusID" ColumnName="ApplicationStatusID" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="ForceGazetting" ColumnName="ForceGazetting" />
                <ScalarProperty Name="IsAllowedNewLicence" ColumnName="IsAllowedNewLicence" />
                <ScalarProperty Name="OnlyExistingRoutesOnLicense" ColumnName="OnlyExistingRoutesOnLicense" />
                <ScalarProperty Name="ApplicationIsObjected" ColumnName="ApplicationIsObjected" />
                <ScalarProperty Name="IsBusAndContract" ColumnName="IsBusAndContract" />
                <ScalarProperty Name="IncludeRenewalType" ColumnName="IncludeRenewalType" />
                <ScalarProperty Name="IsApplicantIndividual" ColumnName="IsApplicantIndividual" />
                <ScalarProperty Name="AdjudicationOfficeLocationID" ColumnName="AdjudicationOfficeLocationID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="IsReferralRequired" ColumnName="IsReferralRequired" />
                <ScalarProperty Name="IsInspectionRequired" ColumnName="IsInspectionRequired" />
                <ScalarProperty Name="IsGazettingRequired" ColumnName="IsGazettingRequired" />
                <ScalarProperty Name="VerifiedAssociationID" ColumnName="VerifiedAssociationID" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="ProxyIDNumber" ColumnName="ProxyIDNumber" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <ScalarProperty Name="HasNewRoute" ColumnName="HasNewRoute" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ExistingLicenceHolderID" ColumnName="ExistingLicenceHolderID" />
                <ScalarProperty Name="ExistingLicenceHolder" ColumnName="ExistingLicenceHolder" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="AdjudicationComment" ColumnName="AdjudicationComment" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="ProxyName" ColumnName="ProxyName" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_ApplicationDetails_Light">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationDetails_Light">
              <MappingFragment StoreEntitySet="Vw_ApplicationDetails_Light">
                <ScalarProperty Name="GazetteNoticeExpiryDate" ColumnName="GazetteNoticeExpiryDate" />
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ApplicantRegionID" ColumnName="ApplicantRegionID" />
                <ScalarProperty Name="ApplicantProvinceID" ColumnName="ApplicantProvinceID" />
                <ScalarProperty Name="RequiresProxy" ColumnName="RequiresProxy" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="RelatedTATApplicationRequestID" ColumnName="RelatedTATApplicationRequestID" />
                <ScalarProperty Name="CopiedFromApplicationDetailID" ColumnName="CopiedFromApplicationDetailID" />
                <ScalarProperty Name="PREDataReleased" ColumnName="PREDataReleased" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="ForceGazetting" ColumnName="ForceGazetting" />
                <ScalarProperty Name="IsAllowedNewLicence" ColumnName="IsAllowedNewLicence" />
                <ScalarProperty Name="OnlyExistingRoutesOnLicense" ColumnName="OnlyExistingRoutesOnLicense" />
                <ScalarProperty Name="ApplicationIsObjected" ColumnName="ApplicationIsObjected" />
                <ScalarProperty Name="IsBusAndContract" ColumnName="IsBusAndContract" />
                <ScalarProperty Name="IncludeRenewalType" ColumnName="IncludeRenewalType" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="IsApplicantIndividual" ColumnName="IsApplicantIndividual" />
                <ScalarProperty Name="ProxyIDNumber" ColumnName="ProxyIDNumber" />
                <ScalarProperty Name="IsFinalisationTasksRequired" ColumnName="IsFinalisationTasksRequired" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="IDType" ColumnName="IDType" />
                <ScalarProperty Name="TotalVehicles" ColumnName="TotalVehicles" />
                <ScalarProperty Name="AdjudicationOfficeLocationID" ColumnName="AdjudicationOfficeLocationID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="LastAdjudicationDecisionID" ColumnName="LastAdjudicationDecisionID" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
                <ScalarProperty Name="LiveryDocumentID" ColumnName="LiveryDocumentID" />
                <ScalarProperty Name="IsReferralRequired" ColumnName="IsReferralRequired" />
                <ScalarProperty Name="ApplicationSubStatusID" ColumnName="ApplicationSubStatusID" />
                <ScalarProperty Name="ApplicationStatusID" ColumnName="ApplicationStatusID" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="WorkflowInstanceReference" ColumnName="WorkflowInstanceReference" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="IsInspectionRequired" ColumnName="IsInspectionRequired" />
                <ScalarProperty Name="IsGazettingRequired" ColumnName="IsGazettingRequired" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="IsAdjudicationRequired" ColumnName="IsAdjudicationRequired" />
                <ScalarProperty Name="IsReceiptRequired" ColumnName="IsReceiptRequired" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="WorkflowTemplateID" ColumnName="WorkflowTemplateID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_ApplicationDetails_Receipts">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationDetails_Receipts">
              <MappingFragment StoreEntitySet="Vw_ApplicationDetails_Receipts">
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="ReceiptDetailID" ColumnName="ReceiptDetailID" />
                <ScalarProperty Name="ReceiptNumber" ColumnName="ReceiptNumber" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationSearch" FunctionName="Model.Store.Pr_ApplicationSearch">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_ApplicationSummaryGet" FunctionName="Model.Store.Pr_Dashboard_ApplicationSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_LicenceIssuingSummaryGet" FunctionName="Model.Store.Pr_Dashboard_LicenceIssuingSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssuingSearch" FunctionName="Model.Store.Pr_LicenceIssuingSearch" />
          <FunctionImportMapping FunctionImportName="Pr_InspectorInspectionsGet" FunctionName="Model.Store.Pr_InspectorInspectionsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_InspectorInspectionsGet_Result">
                <ScalarProperty Name="InspectorID" ColumnName="InspectorID" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="InspectionAddress" ColumnName="InspectionAddress" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="ApplicantName" ColumnName="ApplicantName" />
                <ScalarProperty Name="startDate" ColumnName="startDate" />
                <ScalarProperty Name="endDate" ColumnName="endDate" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationsAwaitingInspectionsGet" FunctionName="Model.Store.Pr_ApplicationsAwaitingInspectionsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationsAwaitingInspectionsGet_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="InspectionStatusID" ColumnName="InspectionStatusID" />
                <ScalarProperty Name="InspectorID" ColumnName="InspectorID" />
                <ScalarProperty Name="InspectionDateFrom" ColumnName="InspectionDateFrom" />
                <ScalarProperty Name="InspectionDateTo" ColumnName="InspectionDateTo" />
                <ScalarProperty Name="InspectionAddress" ColumnName="InspectionAddress" />
                <ScalarProperty Name="InspectionPassed" ColumnName="InspectionPassed" />
                <ScalarProperty Name="InspectionResultDocID" ColumnName="InspectionResultDocID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="ApplicantName" ColumnName="ApplicantName" />
                <ScalarProperty Name="InspectionBackToOfficeDocID" ColumnName="InspectionBackToOfficeDocID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_InspectorsGet" FunctionName="Model.Store.Pr_InspectorsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_InspectorsGet_Result">
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="id" ColumnName="id" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationInspectionDetailUpdate" FunctionName="Model.Store.Pr_ApplicationInspectionDetailUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationsAwaitingInspectionOutcomesGet" FunctionName="Model.Store.Pr_ApplicationsAwaitingInspectionOutcomesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationsAwaitingInspectionOutcomesGet_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="InspectionStatusID" ColumnName="InspectionStatusID" />
                <ScalarProperty Name="InspectorID" ColumnName="InspectorID" />
                <ScalarProperty Name="InspectionDateFrom" ColumnName="InspectionDateFrom" />
                <ScalarProperty Name="InspectionDateTo" ColumnName="InspectionDateTo" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Inspector" ColumnName="Inspector" />
                <ScalarProperty Name="Description" ColumnName="Description" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AccreditationSearch" FunctionName="Model.Store.Pr_AccreditationSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AccreditationSearch_Result">
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="AccreditationStatusID" ColumnName="AccreditationStatusID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="NameOnAccreditation" ColumnName="NameOnAccreditation" />
                <ScalarProperty Name="AccreditationNumber" ColumnName="AccreditationNumber" />
                <ScalarProperty Name="IssueNumber" ColumnName="IssueNumber" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="UpcomingExpiryNotificationSmsSentDate" ColumnName="UpcomingExpiryNotificationSmsSentDate" />
                <ScalarProperty Name="ExpiredNotificationSmsSentDate" ColumnName="ExpiredNotificationSmsSentDate" />
                <ScalarProperty Name="NumberOfLicencesAllowed" ColumnName="NumberOfLicencesAllowed" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="AccreditationStatus" ColumnName="AccreditationStatus" />
                <ScalarProperty Name="DateOfIssueFormatted" ColumnName="DateOfIssueFormatted" />
                <ScalarProperty Name="DateOfExpiryFormatted" ColumnName="DateOfExpiryFormatted" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Accreditations">
            <EntityTypeMapping TypeName="Model.Accreditation">
              <MappingFragment StoreEntitySet="Accreditations">
                <ScalarProperty Name="OlasId" ColumnName="OlasId" />
                <ScalarProperty Name="IsLatestIssue" ColumnName="IsLatestIssue" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="NumberOfLicencesAllowed" ColumnName="NumberOfLicencesAllowed" />
                <ScalarProperty Name="ExpiredNotificationSmsSentDate" ColumnName="ExpiredNotificationSmsSentDate" />
                <ScalarProperty Name="UpcomingExpiryNotificationSmsSentDate" ColumnName="UpcomingExpiryNotificationSmsSentDate" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="IssueNumber" ColumnName="IssueNumber" />
                <ScalarProperty Name="AccreditationNumber" ColumnName="AccreditationNumber" />
                <ScalarProperty Name="NameOnAccreditation" ColumnName="NameOnAccreditation" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="AccreditationStatusID" ColumnName="AccreditationStatusID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="AccreditationStatus">
            <EntityTypeMapping TypeName="Model.AccreditationStatu">
              <MappingFragment StoreEntitySet="AccreditationStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="AccreditationStatusID" ColumnName="AccreditationStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_AccreditationIssuingSummaryGet" FunctionName="Model.Store.Pr_Dashboard_AccreditationIssuingSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PrintoutCreate" FunctionName="Model.Store.Pr_PrintoutCreate" >
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_PrintoutCreate_Result">
                <ScalarProperty Name="VerificationToken" ColumnName="VerificationToken" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PrintoutGetByToken" FunctionName="Model.Store.Pr_PrintoutGetByToken">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_PrintoutGetByToken_Result">
                <ScalarProperty Name="PrintoutID" ColumnName="PrintoutID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="PrintoutTypeID" ColumnName="PrintoutTypeID" />
                <ScalarProperty Name="PrintedByID" ColumnName="PrintedByID" />
                <ScalarProperty Name="DatePrinted" ColumnName="DatePrinted" />
                <ScalarProperty Name="VerificationToken" ColumnName="VerificationToken" />
                <ScalarProperty Name="IsTestPrint" ColumnName="IsTestPrint" />
                <ScalarProperty Name="PrintedByName" ColumnName="PrintedByName" />
                <ScalarProperty Name="IsReprint" ColumnName="IsReprint" />
                <ScalarProperty Name="PrinterName" ColumnName="PrinterName" />
                <ScalarProperty Name="BarcodePrinterName" ColumnName="BarcodePrinterName" />
                <ScalarProperty Name="EnablePrintPreview" ColumnName="EnablePrintPreview" />
                <ScalarProperty Name="DocumentNumber" ColumnName="DocumentNumber" />
                <ScalarProperty Name="PrintedSuccussfully" ColumnName="PrintedSuccussfully" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="PrintData" ColumnName="PrintData" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAdjudicationDecisionCommit" FunctionName="Model.Store.Pr_ApplicationAdjudicationDecisionCommit" />
          <FunctionImportMapping FunctionImportName="Pr_AccreditationIssueSearch" FunctionName="Model.Store.Pr_AccreditationIssueSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AccreditationIssueSearch_Result">
                <ScalarProperty Name="AccreditationIssueDetailID" ColumnName="AccreditationIssueDetailID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="VerifiedAccreditationID" ColumnName="VerifiedAccreditationID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="LicenceReferenceNumber" ColumnName="LicenceReferenceNumber" />
                <ScalarProperty Name="ApplicationReferenceNumber" ColumnName="ApplicationReferenceNumber" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="MemberFullName" ColumnName="MemberFullName" />
                <ScalarProperty Name="MemberTaxReference" ColumnName="MemberTaxReference" />
                <ScalarProperty Name="MemberIDNumber" ColumnName="MemberIDNumber" />
                <ScalarProperty Name="MemberCell" ColumnName="MemberCell" />
                <ScalarProperty Name="Association" ColumnName="Association" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdvancedSearch" FunctionName="Model.Store.Pr_AdvancedSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AdvancedSearch_Result">
                <ScalarProperty Name="ID" ColumnName="ID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="URL" ColumnName="URL" />
                <ScalarProperty Name="OpenInNewWindow" ColumnName="OpenInNewWindow" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="GazetteTypes">
            <EntityTypeMapping TypeName="Model.GazetteType">
              <MappingFragment StoreEntitySet="GazetteTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="GazetteTypeID" ColumnName="GazetteTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_AccreditationStatusUpdate" FunctionName="Model.Store.Pr_AccreditationStatusUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_AvgProcessingTime" FunctionName="Model.Store.Pr_Dashboard_AvgProcessingTime" >
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Dashboard_AvgProcessingTime_Result">
                <ScalarProperty Name="TotalApplications" ColumnName="TotalApplications" />
                <ScalarProperty Name="AvgProcessingTime" ColumnName="AvgProcessingTime" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="DocumentTypeQuestions">
            <EntityTypeMapping TypeName="Model.DocumentTypeQuestion">
              <MappingFragment StoreEntitySet="DocumentTypeQuestions">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
                <ScalarProperty Name="Question" ColumnName="Question" />
                <ScalarProperty Name="CaptureFieldID" ColumnName="CaptureFieldID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentTypeQuestionID" ColumnName="DocumentTypeQuestionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationRequestTypes">
            <EntityTypeMapping TypeName="Model.ApplicationRequestType">
              <MappingFragment StoreEntitySet="ApplicationRequestTypes">
                <ScalarProperty Name="IsLicenceDurationRequiredOnApprove" ColumnName="IsLicenceDurationRequiredOnApprove" />
                <ScalarProperty Name="IsAllowedForLG" ColumnName="IsAllowedForLG" />
                <ScalarProperty Name="IsAllowedForLTPS" ColumnName="IsAllowedForLTPS" />
                <ScalarProperty Name="IsAllowedForOLAS" ColumnName="IsAllowedForOLAS" />
                <ScalarProperty Name="IncludeNewOperatingLicenceType" ColumnName="IncludeNewOperatingLicenceType" />
                <ScalarProperty Name="IncludeNormalTransferType" ColumnName="IncludeNormalTransferType" />
                <ScalarProperty Name="IncludeDeceasedTransferType" ColumnName="IncludeDeceasedTransferType" />
                <ScalarProperty Name="IncludeIncreaseInCapacityType" ColumnName="IncludeIncreaseInCapacityType" />
                <ScalarProperty Name="IncludeCovType" ColumnName="IncludeCovType" />
                <ScalarProperty Name="IncludeRenewalType" ColumnName="IncludeRenewalType" />
                <ScalarProperty Name="IsLinkedApplicationType" ColumnName="IsLinkedApplicationType" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationRequestTypeDocumentSetups">
            <EntityTypeMapping TypeName="Model.ApplicationRequestTypeDocumentSetup">
              <MappingFragment StoreEntitySet="ApplicationRequestTypeDocumentSetup">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
                <ScalarProperty Name="IsAvailableForUpload" ColumnName="IsAvailableForUpload" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="WorkflowTemplateID" ColumnName="WorkflowTemplateID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeDocumentID" ColumnName="ApplicationRequestTypeDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_NewRouteRequestSummaryGet" FunctionName="Model.Store.Pr_Dashboard_NewRouteRequestSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_NewRouteRequestSearch" FunctionName="Model.Store.Pr_NewRouteRequestSearch">
          </FunctionImportMapping>
          <EntitySetMapping Name="ApplicationRequestTypeDivisionSetups">
            <EntityTypeMapping TypeName="Model.ApplicationRequestTypeDivisionSetup">
              <MappingFragment StoreEntitySet="ApplicationRequestTypeDivisionSetup">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="GazetteTypeRule" ColumnName="GazetteTypeRule" />
                <ScalarProperty Name="IsGazettingRequiredRule" ColumnName="IsGazettingRequiredRule" />
                <ScalarProperty Name="AdjudicationTypeRule" ColumnName="AdjudicationTypeRule" />
                <ScalarProperty Name="IsAdjudicationRequiredRule" ColumnName="IsAdjudicationRequiredRule" />
                <ScalarProperty Name="IsReferralRequiredRule" ColumnName="IsReferralRequiredRule" />
                <ScalarProperty Name="IsInspectionRequiredRule" ColumnName="IsInspectionRequiredRule" />
                <ScalarProperty Name="IsFinalisationTasksRequiredRule" ColumnName="IsFinalisationTasksRequiredRule" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequiredRule" ColumnName="IsSeniorManagerApprovalRequiredRule" />
                <ScalarProperty Name="IsAssessorApprovalRequiredRule" ColumnName="IsAssessorApprovalRequiredRule" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeDivisionSetupID" ColumnName="ApplicationRequestTypeDivisionSetupID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDivisionSetupCreate" FunctionName="Model.Store.Pr_ApplicationRequestTypeDivisionSetupCreate">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDivisionSetupSearch" FunctionName="Model.Store.Pr_ApplicationRequestTypeDivisionSetupSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationRequestTypeDivisionSetupSearch_Result">
                <ScalarProperty Name="ApplicationRequestTypeDivisionSetupID" ColumnName="ApplicationRequestTypeDivisionSetupID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="ApplicationRequestType" ColumnName="ApplicationRequestType" />
                <ScalarProperty Name="ApplicationRequestTypeCost" ColumnName="ApplicationRequestTypeCost" />
                <ScalarProperty Name="DivisionType" ColumnName="DivisionType" />
                <ScalarProperty Name="Province" ColumnName="Province" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDocumentCancel" FunctionName="Model.Store.Pr_ApplicationRequestTypeDocumentCancel" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDocumentUpsert" FunctionName="Model.Store.Pr_ApplicationRequestTypeDocumentUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_DocumentTypeCancel" FunctionName="Model.Store.Pr_DocumentTypeCancel" />
          <FunctionImportMapping FunctionImportName="Pr_DocumentTypeQuestionCancel" FunctionName="Model.Store.Pr_DocumentTypeQuestionCancel" />
          <FunctionImportMapping FunctionImportName="Pr_DocumentTypeQuestionUpsert" FunctionName="Model.Store.Pr_DocumentTypeQuestionUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_DocumentTypeUpsert" FunctionName="Model.Store.Pr_DocumentTypeUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_UpdateMember" FunctionName="Model.Store.Pr_UpdateMember" />
          <FunctionImportMapping FunctionImportName="Pr_FindMember" FunctionName="Model.Store.Pr_FindMember">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_FindMember_Result">
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="MemberDataSource" ColumnName="MemberDataSource" />
                <ScalarProperty Name="RecordsThatWillBeAffectedByUpdate" ColumnName="RecordsThatWillBeAffectedByUpdate" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="SARSIncomeTaxNumber" ColumnName="SARSIncomeTaxNumber" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
                <ScalarProperty Name="RecordFound" ColumnName="RecordFound" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SearchApplicationRoutes" FunctionName="Model.Store.Pr_SearchApplicationRoutes" >
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchApplicationRoutes_Result">
                <ScalarProperty Name="ApplicationLicenceRouteDetailID" ColumnName="ApplicationLicenceRouteDetailID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationRouteDetailStatusID" ColumnName="ApplicationRouteDetailStatusID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="VerifiedRouteID" ColumnName="VerifiedRouteID" />
                <ScalarProperty Name="NewRouteRequestDetailID" ColumnName="NewRouteRequestDetailID" />
                <ScalarProperty Name="RouteOrigin" ColumnName="RouteOrigin" />
                <ScalarProperty Name="RouteDestination" ColumnName="RouteDestination" />
                <ScalarProperty Name="RouteDescription" ColumnName="RouteDescription" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
                <ScalarProperty Name="RouteNumber" ColumnName="RouteNumber" />
                <ScalarProperty Name="RouteChangeTypeID" ColumnName="RouteChangeTypeID" />
                <ScalarProperty Name="IsExistingLtpsOrOlasRoute" ColumnName="IsExistingLtpsOrOlasRoute" />
                <ScalarProperty Name="IsOriginSameAsPhysicalAddress" ColumnName="IsOriginSameAsPhysicalAddress" />
                <ScalarProperty Name="IsDestinationArea" ColumnName="IsDestinationArea" />
                <ScalarProperty Name="RelatedApplicationLicenceRouteDetailID" ColumnName="RelatedApplicationLicenceRouteDetailID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SearchLicenceRoutes" FunctionName="Model.Store.Pr_SearchLicenceRoutes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchLicenceRoutes_Result">
                <ScalarProperty Name="licenceID" ColumnName="licenceID" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRouteRemove" FunctionName="Model.Store.Pr_ApplicationRouteRemove" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRouteAdd" FunctionName="Model.Store.Pr_ApplicationRouteAdd" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationLicenseSearch" FunctionName="Model.Store.Pr_ApplicationLicenseSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationLicenseSearch_Result">
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="LicenceRoutes">
            <EntityTypeMapping TypeName="Model.LicenceRoute">
              <MappingFragment StoreEntitySet="LicenceRoutes">
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="LicenceRouteID" ColumnName="LicenceRouteID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceServiceTypesGet" FunctionName="Model.Store.Pr_LicenceServiceTypesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceServiceTypesGet_Result">
                <ScalarProperty Name="ApplicationLicenceServiceDetailID" ColumnName="ApplicationLicenceServiceDetailID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
                <ScalarProperty Name="Description" ColumnName="Description" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceRouteRemove" FunctionName="Model.Store.Pr_PurificationLicenceRouteRemove" />
          <FunctionImportMapping FunctionImportName="Pr_VerifiedLicenceServiceTypesGet" FunctionName="Model.Store.Pr_VerifiedLicenceServiceTypesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_VerifiedLicenceServiceTypesGet_Result">
                <ScalarProperty Name="LicenceServiceDetailID" ColumnName="LicenceServiceDetailID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
                <ScalarProperty Name="Description" ColumnName="Description" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceRouteAdd" FunctionName="Model.Store.Pr_PurificationLicenceRouteAdd" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_GetUserDataOnIdSearch" FunctionName="Model.Store.Pr_Purification_GetUserDataOnIdSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_GetUserDataOnIdSearch_Result">
                <ScalarProperty Name="OldorNew" ColumnName="OldorNew" />
                <ScalarProperty Name="Source" ColumnName="Source" />
                <ScalarProperty Name="Reference" ColumnName="Reference" />
                <ScalarProperty Name="Description" ColumnName="Description" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_UpdateIdNumber" FunctionName="Model.Store.Pr_UpdateIdNumber" />
          <EntitySetMapping Name="Vw_AdjudicationApplicationDetails">
            <EntityTypeMapping TypeName="Model.Vw_AdjudicationApplicationDetails">
              <MappingFragment StoreEntitySet="Vw_AdjudicationApplicationDetails">
                <ScalarProperty Name="DecisionID" ColumnName="DecisionID" />
                <ScalarProperty Name="IsReadyForAdjudication" ColumnName="IsReadyForAdjudication" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationAdjudicationID" ColumnName="ApplicationAdjudicationID" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
                <ScalarProperty Name="HasObjections" ColumnName="HasObjections" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="DecisionComments" ColumnName="DecisionComments" />
                <ScalarProperty Name="Decision" ColumnName="Decision" />
                <ScalarProperty Name="Association" ColumnName="Association" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationApplicationListGet" FunctionName="Model.Store.Pr_AdjudicationApplicationListGet">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_GazetteSummaryGet" FunctionName="Model.Store.Pr_Dashboard_GazetteSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_AdjudicationSummaryGet" FunctionName="Model.Store.Pr_Dashboard_AdjudicationSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationApplicationSearch" FunctionName="Model.Store.Pr_AdjudicationApplicationSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AdjudicationApplicationSearch_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_StationeryBatchCreate" FunctionName="Model.Store.Pr_StationeryBatchCreate" />
          <FunctionImportMapping FunctionImportName="Pr_StationeryBatchesGet" FunctionName="Model.Store.Pr_StationeryBatchesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_StationeryBatchesGet_Result">
                <ScalarProperty Name="StationeryBatchID" ColumnName="StationeryBatchID" />
                <ScalarProperty Name="FromNumber" ColumnName="FromNumber" />
                <ScalarProperty Name="ToNumber" ColumnName="ToNumber" />
                <ScalarProperty Name="OfficeLocation" ColumnName="OfficeLocation" />
                <ScalarProperty Name="LastNumberIssued" ColumnName="LastNumberIssued" />
                <ScalarProperty Name="TotalStationery" ColumnName="TotalStationery" />
                <ScalarProperty Name="AvailableStationery" ColumnName="AvailableStationery" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Stationeries">
            <EntityTypeMapping TypeName="Model.Stationery">
              <MappingFragment StoreEntitySet="Stationery">
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="StationeryScanDocID" ColumnName="StationeryScanDocID" />
                <ScalarProperty Name="IssuedToID" ColumnName="IssuedToID" />
                <ScalarProperty Name="StationeryNumber" ColumnName="StationeryNumber" />
                <ScalarProperty Name="StationeryBatchID" ColumnName="StationeryBatchID" />
                <ScalarProperty Name="StationeryStatusID" ColumnName="StationeryStatusID" />
                <ScalarProperty Name="StationeryID" ColumnName="StationeryID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_StationeryAssignPrecheck" FunctionName="Model.Store.Pr_StationeryAssignPrecheck">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_StationeryAssign" FunctionName="Model.Store.Pr_StationeryAssign" />
          <FunctionImportMapping FunctionImportName="Pr_FirstStationeryNumberGet" FunctionName="Model.Store.Pr_FirstStationeryNumberGet">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_IssuedStationeryGet" FunctionName="Model.Store.Pr_IssuedStationeryGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_IssuedStationeryGet_Result">
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="IssuedForUse" ColumnName="IssuedForUse" />
                <ScalarProperty Name="Used" ColumnName="Used" />
                <ScalarProperty Name="Defaced" ColumnName="Defaced" />
                <ScalarProperty Name="Lost" ColumnName="Lost" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_IssuedToStationeryGet" FunctionName="Model.Store.Pr_IssuedToStationeryGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_IssuedToStationeryGet_Result">
                <ScalarProperty Name="StationeryID" ColumnName="StationeryID" />
                <ScalarProperty Name="StationeryStatusID" ColumnName="StationeryStatusID" />
                <ScalarProperty Name="StationeryBatchID" ColumnName="StationeryBatchID" />
                <ScalarProperty Name="StationeryNumber" ColumnName="StationeryNumber" />
                <ScalarProperty Name="IssuedToID" ColumnName="IssuedToID" />
                <ScalarProperty Name="StationeryStatus" ColumnName="StationeryStatus" />
                <ScalarProperty Name="StationeryScanDocID" ColumnName="StationeryScanDocID" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ReturnedIssuedStationery" FunctionName="Model.Store.Pr_ReturnedIssuedStationery" />
          <EntitySetMapping Name="Vw_Associations">
            <EntityTypeMapping TypeName="Model.Vw_Associations">
              <MappingFragment StoreEntitySet="Vw_Associations">
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="Type" ColumnName="Type" />
                <ScalarProperty Name="Mode" ColumnName="Mode" />
                <ScalarProperty Name="Status" ColumnName="Status" />
                <ScalarProperty Name="ActiveMemberCount" ColumnName="ActiveMemberCount" />
                <ScalarProperty Name="AssociationNameAbbrev" ColumnName="AssociationNameAbbrev" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_StationeryTransfer" FunctionName="Model.Store.Pr_StationeryTransfer" />
          <FunctionImportMapping FunctionImportName="Pr_StationeryBatchReceived" FunctionName="Model.Store.Pr_StationeryBatchReceived" />
          <EntitySetMapping Name="Vw_OfficeLocations">
            <EntityTypeMapping TypeName="Model.Vw_OfficeLocation">
              <MappingFragment StoreEntitySet="Vw_OfficeLocations">
                <ScalarProperty Name="RouteApproverUserID" ColumnName="RouteApproverUserID" />
                <ScalarProperty Name="RouteCapturerUserID" ColumnName="RouteCapturerUserID" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="AdjudicationContactEmail" ColumnName="AdjudicationContactEmail" />
                <ScalarProperty Name="AdjudicationContactTelPhone" ColumnName="AdjudicationContactTelPhone" />
                <ScalarProperty Name="AdjudicationContactName" ColumnName="AdjudicationContactName" />
                <ScalarProperty Name="BusinessRuleBypassApproverUserID" ColumnName="BusinessRuleBypassApproverUserID" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="MaxAdjudicationAutoApplicationCount" ColumnName="MaxAdjudicationAutoApplicationCount" />
                <ScalarProperty Name="AdjudicationSecrataryUserID" ColumnName="AdjudicationSecrataryUserID" />
                <ScalarProperty Name="AdjudicationOfficerUserID" ColumnName="AdjudicationOfficerUserID" />
                <ScalarProperty Name="ReferralCapturerUserID" ColumnName="ReferralCapturerUserID" />
                <ScalarProperty Name="InspectionCapturerUserID" ColumnName="InspectionCapturerUserID" />
                <ScalarProperty Name="SeniorManagerApproverUserID" ColumnName="SeniorManagerApproverUserID" />
                <ScalarProperty Name="AdjudicationMeetingQuorumCount" ColumnName="AdjudicationMeetingQuorumCount" />
                <ScalarProperty Name="AdjudicationHearingQuorumCount" ColumnName="AdjudicationHearingQuorumCount" />
                <ScalarProperty Name="AdjudicationAgendaEmails" ColumnName="AdjudicationAgendaEmails" />
                <ScalarProperty Name="GazetteNumberPrefix" ColumnName="GazetteNumberPrefix" />
                <ScalarProperty Name="HandlesGazetting" ColumnName="HandlesGazetting" />
                <ScalarProperty Name="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="AssessorUserID" ColumnName="AssessorUserID" />
                <ScalarProperty Name="PaymentClerkUserID" ColumnName="PaymentClerkUserID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="OfficeLocationDescription" ColumnName="OfficeLocationDescription" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationSearch" FunctionName="Model.Store.Pr_AdjudicationSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AdjudicationSearch_Result">
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="AdjudicationDetailStatusID" ColumnName="AdjudicationDetailStatusID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="MeetingTime" ColumnName="MeetingTime" />
                <ScalarProperty Name="PreAdjudicationNotificationsSent" ColumnName="PreAdjudicationNotificationsSent" />
                <ScalarProperty Name="PreAdjudicationLettersSent" ColumnName="PreAdjudicationLettersSent" />
                <ScalarProperty Name="PostAdjudicationNotificationsSent" ColumnName="PostAdjudicationNotificationsSent" />
                <ScalarProperty Name="PostAdjudicationLettersSent" ColumnName="PostAdjudicationLettersSent" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="PreAdjudicationObjectionNotificationsSent" ColumnName="PreAdjudicationObjectionNotificationsSent" />
                <ScalarProperty Name="PreAdjudicationObjectionLettersSent" ColumnName="PreAdjudicationObjectionLettersSent" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="MeetingDateEnd" ColumnName="MeetingDateEnd" />
                <ScalarProperty Name="MeetingTimeEnd" ColumnName="MeetingTimeEnd" />
                <ScalarProperty Name="MaxAdjudicationAutoApplicationCount" ColumnName="MaxAdjudicationAutoApplicationCount" />
                <ScalarProperty Name="TotalApplicationsAssigned" ColumnName="TotalApplicationsAssigned" />
                <ScalarProperty Name="TotalLicencesAssigned" ColumnName="TotalLicencesAssigned" />
                <ScalarProperty Name="AdjudicationNumber" ColumnName="AdjudicationNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationCreate" FunctionName="Model.Store.Pr_AdjudicationCreate">
          </FunctionImportMapping>
          <EntitySetMapping Name="LicenceDurations">
            <EntityTypeMapping TypeName="Model.LicenceDuration">
              <MappingFragment StoreEntitySet="LicenceDurations">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="DurationInMonths" ColumnName="DurationInMonths" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="LicenceDurationID" ColumnName="LicenceDurationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_StationeryNumberGetNext" FunctionName="Model.Store.Pr_StationeryNumberGetNext" />
          <FunctionImportMapping FunctionImportName="Pr_StationeryStatusHistoryUpdate" FunctionName="Model.Store.Pr_StationeryStatusHistoryUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_PrintoutSaveData" FunctionName="Model.Store.Pr_PrintoutSaveData" />
          <FunctionImportMapping FunctionImportName="Pr_PrintoutUpdate" FunctionName="Model.Store.Pr_PrintoutUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationUpdateDates" FunctionName="Model.Store.Pr_AdjudicationUpdateDates" />
          <FunctionImportMapping FunctionImportName="Pr_AppDocumentsAwaitingVerificationGet" FunctionName="Model.Store.Pr_AppDocumentsAwaitingVerificationGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AppDocumentsAwaitingVerificationGet_Result">
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="DocumentVerificationStatusID" ColumnName="DocumentVerificationStatusID" />
                <ScalarProperty Name="DocumentDescription" ColumnName="DocumentDescription" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAdjudicationGet" FunctionName="Model.Store.Pr_ApplicationAdjudicationGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationAdjudicationGet_Result">
                <ScalarProperty Name="ApplicationAdjudicationID" ColumnName="ApplicationAdjudicationID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="IsActiveAdjudication" ColumnName="IsActiveAdjudication" />
                <ScalarProperty Name="IsReadyForAdjudication" ColumnName="IsReadyForAdjudication" />
                <ScalarProperty Name="FinalAdjudicationDecisionID" ColumnName="FinalAdjudicationDecisionID" />
                <ScalarProperty Name="FinalAdjudicationLicenceDurationMonths" ColumnName="FinalAdjudicationLicenceDurationMonths" />
                <ScalarProperty Name="FinalAdjudicationDecisionDate" ColumnName="FinalAdjudicationDecisionDate" />
                <ScalarProperty Name="FinalAdjudicationLicenceExpiryDate" ColumnName="FinalAdjudicationLicenceExpiryDate" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationLicenceTemporaryReplacementGet" FunctionName="Model.Store.Pr_ApplicationLicenceTemporaryReplacementGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationLicenceTemporaryReplacementGet_Result">
                <ScalarProperty Name="ExistingLicenceNumber" ColumnName="ExistingLicenceNumber" />
                <ScalarProperty Name="ExistingRegistration" ColumnName="ExistingRegistration" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="ReplacementDateFrom" ColumnName="ReplacementDateFrom" />
                <ScalarProperty Name="ReplacementDateTo" ColumnName="ReplacementDateTo" />
                <ScalarProperty Name="TransactionType" ColumnName="TransactionType" />
                <ScalarProperty Name="ReplacementRegistrationNumber" ColumnName="ReplacementRegistrationNumber" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="Mode" ColumnName="Mode" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_VerifiedLicenceXmlGet" FunctionName="Model.Store.Pr_VerifiedLicenceXmlGet" />
          <EntitySetMapping Name="OfficeLocationSetups">
            <EntityTypeMapping TypeName="Model.OfficeLocationSetup">
              <MappingFragment StoreEntitySet="OfficeLocationSetup">
                <ScalarProperty Name="RouteApproverUserID" ColumnName="RouteApproverUserID" />
                <ScalarProperty Name="RouteCapturerUserID" ColumnName="RouteCapturerUserID" />
                <ScalarProperty Name="AdjudicationContactEmail" ColumnName="AdjudicationContactEmail" />
                <ScalarProperty Name="AdjudicationContactTelPhone" ColumnName="AdjudicationContactTelPhone" />
                <ScalarProperty Name="AdjudicationContactName" ColumnName="AdjudicationContactName" />
                <ScalarProperty Name="BusinessRuleBypassApproverUserID" ColumnName="BusinessRuleBypassApproverUserID" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="MaxAdjudicationAutoApplicationCount" ColumnName="MaxAdjudicationAutoApplicationCount" />
                <ScalarProperty Name="AdjudicationMeetingQuorumCount" ColumnName="AdjudicationMeetingQuorumCount" />
                <ScalarProperty Name="AdjudicationHearingQuorumCount" ColumnName="AdjudicationHearingQuorumCount" />
                <ScalarProperty Name="AdjudicationAgendaEmails" ColumnName="AdjudicationAgendaEmails" />
                <ScalarProperty Name="AdjudicationSecrataryUserID" ColumnName="AdjudicationSecrataryUserID" />
                <ScalarProperty Name="AdjudicationOfficerUserID" ColumnName="AdjudicationOfficerUserID" />
                <ScalarProperty Name="GazetteNumberPrefix" ColumnName="GazetteNumberPrefix" />
                <ScalarProperty Name="HandlesGazetting" ColumnName="HandlesGazetting" />
                <ScalarProperty Name="ReferralCapturerUserID" ColumnName="ReferralCapturerUserID" />
                <ScalarProperty Name="InspectionCapturerUserID" ColumnName="InspectionCapturerUserID" />
                <ScalarProperty Name="SeniorManagerApproverUserID" ColumnName="SeniorManagerApproverUserID" />
                <ScalarProperty Name="AssessorUserID" ColumnName="AssessorUserID" />
                <ScalarProperty Name="PaymentClerkUserID" ColumnName="PaymentClerkUserID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="OfficeLocationSetupDocumentTemplates">
            <EntityTypeMapping TypeName="Model.OfficeLocationSetupDocumentTemplate">
              <MappingFragment StoreEntitySet="OfficeLocationSetupDocumentTemplates">
                <ScalarProperty Name="LicenceAnnexure_AdjudicationPanelDocumentID" ColumnName="LicenceAnnexure_AdjudicationPanelDocumentID" />
                <ScalarProperty Name="TATConfirmationReceipt_DocumentID" ColumnName="TATConfirmationReceipt_DocumentID" />
                <ScalarProperty Name="PostAdjudicationLetterStruckOffDocumentID" ColumnName="PostAdjudicationLetterStruckOffDocumentID" />
                <ScalarProperty Name="PostAdjudicationLetterWithdrawnDocumentID" ColumnName="PostAdjudicationLetterWithdrawnDocumentID" />
                <ScalarProperty Name="PostAdjudicationLetterCancelledDocumentID" ColumnName="PostAdjudicationLetterCancelledDocumentID" />
                <ScalarProperty Name="PostAdjudicationLetterRefusedDocumentID" ColumnName="PostAdjudicationLetterRefusedDocumentID" />
                <ScalarProperty Name="PostAdjudicationLetterPostponedDocumentID" ColumnName="PostAdjudicationLetterPostponedDocumentID" />
                <ScalarProperty Name="PostAdjudicationLetterApprovedDocumentID" ColumnName="PostAdjudicationLetterApprovedDocumentID" />
                <ScalarProperty Name="PreAdjudicationObjectionLetterDocumentID" ColumnName="PreAdjudicationObjectionLetterDocumentID" />
                <ScalarProperty Name="PreAdjudicationLetterDocumentID" ColumnName="PreAdjudicationLetterDocumentID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_OfficeLocationSetupDocumentTemplateUpsert" FunctionName="Model.Store.Pr_OfficeLocationSetupDocumentTemplateUpsert" />
          <EntitySetMapping Name="LicencingBoards">
            <EntityTypeMapping TypeName="Model.LicencingBoard">
              <MappingFragment StoreEntitySet="LicencingBoards">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_OfficeLocationSetupUpsert" FunctionName="Model.Store.Pr_OfficeLocationSetupUpsert">
          </FunctionImportMapping>
          <EntitySetMapping Name="DivisionTypes">
            <EntityTypeMapping TypeName="Model.DivisionType">
              <MappingFragment StoreEntitySet="DivisionTypes">
                <ScalarProperty Name="PaymentClerkUserID" ColumnName="PaymentClerkUserID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_VehicleModels">
            <EntityTypeMapping TypeName="Model.Vw_VehicleModels">
              <MappingFragment StoreEntitySet="Vw_VehicleModels">
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="IsValidModel" ColumnName="IsValidModel" />
                <ScalarProperty Name="CarryingCapacity" ColumnName="CarryingCapacity" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="VehicleType" ColumnName="VehicleType" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="TareWeight" ColumnName="TareWeight" />
                <ScalarProperty Name="GrossWeight" ColumnName="GrossWeight" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacityExcludingDriver" ColumnName="SeatedCapacityExcludingDriver" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
                <ScalarProperty Name="VehicleModelID" ColumnName="VehicleModelID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="VehicleModels">
            <EntityTypeMapping TypeName="Model.VehicleModel">
              <MappingFragment StoreEntitySet="VehicleModels">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsValidModel" ColumnName="IsValidModel" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="TareWeight" ColumnName="TareWeight" />
                <ScalarProperty Name="GrossWeight" ColumnName="GrossWeight" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacityExcludingDriver" ColumnName="SeatedCapacityExcludingDriver" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
                <ScalarProperty Name="VehicleModelID" ColumnName="VehicleModelID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDocumentUpdateSqlRules" FunctionName="Model.Store.Pr_ApplicationRequestTypeDocumentUpdateSqlRules" />
          <FunctionImportMapping FunctionImportName="Pr_LicencingBoardUpsert" FunctionName="Model.Store.Pr_LicencingBoardUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleModelCancel" FunctionName="Model.Store.Pr_VehicleModelCancel" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleModelUpsert" FunctionName="Model.Store.Pr_VehicleModelUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_LicencingBoardCancel" FunctionName="Model.Store.Pr_LicencingBoardCancel" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleMakeCancel" FunctionName="Model.Store.Pr_VehicleMakeCancel" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleMakeUpsert" FunctionName="Model.Store.Pr_VehicleMakeUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAwaitingCorrectionsGet" FunctionName="Model.Store.Pr_ApplicationAwaitingCorrectionsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationAwaitingCorrectionsGet_Result">
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="WorkflowInstanceTaskStatusID" ColumnName="WorkflowInstanceTaskStatusID" />
                <ScalarProperty Name="WorkflowTemplateStepID" ColumnName="WorkflowTemplateStepID" />
                <ScalarProperty Name="DateCreated" ColumnName="DateCreated" />
                <ScalarProperty Name="DateCompleted" ColumnName="DateCompleted" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="CompletedByID" ColumnName="CompletedByID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="TaskStatusDescription" ColumnName="TaskStatusDescription" />
                <ScalarProperty Name="WorkflowTemplateStepNumber" ColumnName="WorkflowTemplateStepNumber" />
                <ScalarProperty Name="WorkflowTemplateStepTitle" ColumnName="WorkflowTemplateStepTitle" />
                <ScalarProperty Name="WorkflowTemplateStepDurationOvertime" ColumnName="WorkflowTemplateStepDurationOvertime" />
                <ScalarProperty Name="WorkflowTemplateStepTypeID" ColumnName="WorkflowTemplateStepTypeID" />
                <ScalarProperty Name="WorkflowTemplateStepTypeDescription" ColumnName="WorkflowTemplateStepTypeDescription" />
                <ScalarProperty Name="AssignedToName" ColumnName="AssignedToName" />
                <ScalarProperty Name="CompletedByName" ColumnName="CompletedByName" />
                <ScalarProperty Name="WorkflowInstanceEntityID" ColumnName="WorkflowInstanceEntityID" />
                <ScalarProperty Name="WorkflowInstanceItemID" ColumnName="WorkflowInstanceItemID" />
                <ScalarProperty Name="WorkflowInstanceReference" ColumnName="WorkflowInstanceReference" />
                <ScalarProperty Name="WorkflowInstanceCreatedDate" ColumnName="WorkflowInstanceCreatedDate" />
                <ScalarProperty Name="WorkflowInstanceCreatedByID" ColumnName="WorkflowInstanceCreatedByID" />
                <ScalarProperty Name="WorkflowInstanceCreatedByName" ColumnName="WorkflowInstanceCreatedByName" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="WorkflowFriendlyName" ColumnName="WorkflowFriendlyName" />
                <ScalarProperty Name="WorkflowControllerName" ColumnName="WorkflowControllerName" />
                <ScalarProperty Name="TaskDuration" ColumnName="TaskDuration" />
                <ScalarProperty Name="EscalatedFromID" ColumnName="EscalatedFromID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetReceiptDetails" FunctionName="Model.Store.Pr_GetReceiptDetails">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetReceiptDetails_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ReceiptNumber" ColumnName="ReceiptNumber" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="ApplicantData" ColumnName="ApplicantData" />
                <ScalarProperty Name="ApplicationType" ColumnName="ApplicationType" />
                <ScalarProperty Name="ReceiptItems" ColumnName="ReceiptItems" />
                <ScalarProperty Name="OfficeLocation" ColumnName="OfficeLocation" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="PaymentType" ColumnName="PaymentType" />
                <ScalarProperty Name="ReceiptDetailID" ColumnName="ReceiptDetailID" />
                <ScalarProperty Name="ReceiptCost" ColumnName="ReceiptCost" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="CreatedBy" ColumnName="CreatedBy" />
                <ScalarProperty Name="Division" ColumnName="Division" />
                <ScalarProperty Name="ReceiptHeading" ColumnName="ReceiptHeading" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="ApplicationAllowedNewLicences">
            <EntityTypeMapping TypeName="Model.ApplicationAllowedNewLicence">
              <MappingFragment StoreEntitySet="ApplicationAllowedNewLicences">
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationReferenceNumber" ColumnName="ApplicationReferenceNumber" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="ApplicationAllowedNewLicenceTypeID" ColumnName="ApplicationAllowedNewLicenceTypeID" />
                <ScalarProperty Name="IsUsed" ColumnName="IsUsed" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="IdNumberOrBusinessRegistrationNumber" ColumnName="IdNumberOrBusinessRegistrationNumber" />
                <ScalarProperty Name="MemberName" ColumnName="MemberName" />
                <ScalarProperty Name="ApplicationAllowedNewLicenceID" ColumnName="ApplicationAllowedNewLicenceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetApplicationAllowedNewLicences" FunctionName="Model.Store.Pr_GetApplicationAllowedNewLicences">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetApplicationAllowedNewLicences_Result">
                <ScalarProperty Name="ApplicationAllowedNewLicenceID" ColumnName="ApplicationAllowedNewLicenceID" />
                <ScalarProperty Name="MemberName" ColumnName="MemberName" />
                <ScalarProperty Name="IdNumberOrBusinessRegistrationNumber" ColumnName="IdNumberOrBusinessRegistrationNumber" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="IsUsed" ColumnName="IsUsed" />
                <ScalarProperty Name="ApplicationAllowedNewLicenceTypeID" ColumnName="ApplicationAllowedNewLicenceTypeID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="ApplicationReferenceNumber" ColumnName="ApplicationReferenceNumber" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="Association" ColumnName="Association" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_InsertAllowedNewLicence" FunctionName="Model.Store.Pr_Purification_InsertAllowedNewLicence" />
          <EntitySetMapping Name="StationeryBatches">
            <EntityTypeMapping TypeName="Model.StationeryBatch">
              <MappingFragment StoreEntitySet="StationeryBatches">
                <ScalarProperty Name="BatchNumber" ColumnName="BatchNumber" />
                <ScalarProperty Name="LastNumberIssued" ColumnName="LastNumberIssued" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="ExternalPartyContactEmail" ColumnName="ExternalPartyContactEmail" />
                <ScalarProperty Name="ExternalPartyContactName" ColumnName="ExternalPartyContactName" />
                <ScalarProperty Name="ExternalPartyDescription" ColumnName="ExternalPartyDescription" />
                <ScalarProperty Name="ReceivedByID" ColumnName="ReceivedByID" />
                <ScalarProperty Name="ReceivedDate" ColumnName="ReceivedDate" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="ToNumber" ColumnName="ToNumber" />
                <ScalarProperty Name="FromNumber" ColumnName="FromNumber" />
                <ScalarProperty Name="StationeryBatchTypeID" ColumnName="StationeryBatchTypeID" />
                <ScalarProperty Name="StationeryBatchStatusID" ColumnName="StationeryBatchStatusID" />
                <ScalarProperty Name="StationeryBatchID" ColumnName="StationeryBatchID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetSystemSettings" FunctionName="Model.Store.Pr_GetSystemSettings" />
          <FunctionImportMapping FunctionImportName="Pr_TaskSearch" FunctionName="Model.Store.Pr_TaskSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_TaskSearch_Result">
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="EscalatedFromID" ColumnName="EscalatedFromID" />
                <ScalarProperty Name="TaskDescription" ColumnName="TaskDescription" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="DashboardControllerName" ColumnName="DashboardControllerName" />
                <ScalarProperty Name="WorkflowControllerName" ColumnName="WorkflowControllerName" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAnalytics_ApplicationCreatedBySummmary" FunctionName="Model.Store.Pr_ApplicationAnalytics_ApplicationCreatedBySummmary">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAnalytics_ApplicationPerRegion" FunctionName="Model.Store.Pr_ApplicationAnalytics_ApplicationPerRegion">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAnalytics_ApplicationRequestTypeSummmary" FunctionName="Model.Store.Pr_ApplicationAnalytics_ApplicationRequestTypeSummmary">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAnalyticsSearch" FunctionName="Model.Store.Pr_ApplicationAnalyticsSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationAnalyticsSearch_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="CreatedBy" ColumnName="CreatedBy" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="StepDescription" ColumnName="StepDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_NonBatchedCashReceiptDetailsGet" FunctionName="Model.Store.Pr_NonBatchedCashReceiptDetailsGet">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AddReceiptToApplication" FunctionName="Model.Store.Pr_AddReceiptToApplication" />
          <FunctionImportMapping FunctionImportName="Pr_SearchCashups" FunctionName="Model.Store.Pr_SearchCashups">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchCashups_Result">
                <ScalarProperty Name="ReceiptBatchID" ColumnName="ReceiptBatchID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="BatchTotal" ColumnName="BatchTotal" />
                <ScalarProperty Name="BatchDate" ColumnName="BatchDate" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDivisionSetupUpdate" FunctionName="Model.Store.Pr_ApplicationRequestTypeDivisionSetupUpdate">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationConversionChangeType" FunctionName="Model.Store.Pr_ApplicationConversionChangeType" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestTypeDivisionSetupClone" FunctionName="Model.Store.Pr_ApplicationRequestTypeDivisionSetupClone">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_BusinessRuleBypassRequestInprogressGet" FunctionName="Model.Store.Pr_BusinessRuleBypassRequestInprogressGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_BusinessRuleBypassRequestInprogressGet_Result">
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="InstanceDescription" ColumnName="InstanceDescription" />
                <ScalarProperty Name="TaskDescription" ColumnName="TaskDescription" />
                <ScalarProperty Name="DateAssigned" ColumnName="DateAssigned" />
                <ScalarProperty Name="AssignedTo" ColumnName="AssignedTo" />
                <ScalarProperty Name="BusinessRuleBypassRequestDetailID" ColumnName="BusinessRuleBypassRequestDetailID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_AdjudicationSummaryExceptionsGet" FunctionName="Model.Store.Pr_Dashboard_AdjudicationSummaryExceptionsGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_TAT_ApplicationsPendingDataReleaseGet" FunctionName="Model.Store.Pr_TAT_ApplicationsPendingDataReleaseGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_TAT_ApplicationsPendingDataReleaseGet_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="OriginalApplicationNumber" ColumnName="OriginalApplicationNumber" />
                <ScalarProperty Name="CopiedFromApplicationDetailID" ColumnName="CopiedFromApplicationDetailID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_TAT_ApplicationsReleaseData" FunctionName="Model.Store.Pr_TAT_ApplicationsReleaseData" />
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_LicenceCancelSummaryGet" FunctionName="Model.Store.Pr_Dashboard_LicenceCancelSummaryGet">
          <ResultMapping>
              <ComplexTypeMapping TypeName="Model.DashboardOutcome">
                <ScalarProperty Name="Total" ColumnName="Total" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ViewName" ColumnName="ViewName" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceCancelSearch" FunctionName="Model.Store.Pr_LicenceCancelSearch">
          </FunctionImportMapping>
          <EntitySetMapping Name="Vw_LicenceCancelDetails">
            <EntityTypeMapping TypeName="Model.Vw_LicenceCancelDetails">
              <MappingFragment StoreEntitySet="Vw_LicenceCancelDetails">
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="LicenceCancelNumber" ColumnName="LicenceCancelNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="LicenceCancelDetailID" ColumnName="LicenceCancelDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_Settings">
            <EntityTypeMapping TypeName="Model.Vw_Settings">
              <MappingFragment StoreEntitySet="Vw_Settings">
                <ScalarProperty Name="SettingDetail" ColumnName="SettingDetail" />
                <ScalarProperty Name="SettingValue" ColumnName="SettingValue" />
                <ScalarProperty Name="SettingDescription" ColumnName="SettingDescription" />
                <ScalarProperty Name="SettingName" ColumnName="SettingName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_ApplicationDetails_InProgress">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationDetails_InProgress">
              <MappingFragment StoreEntitySet="Vw_ApplicationDetails_InProgress">
                <ScalarProperty Name="ApplicationCannoutBeAutoAssignedForAdjudication" ColumnName="ApplicationCannoutBeAutoAssignedForAdjudication" />
                <ScalarProperty Name="ApplicationSubStatusID" ColumnName="ApplicationSubStatusID" />
                <ScalarProperty Name="ApplicationStatusID" ColumnName="ApplicationStatusID" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="ForceGazetting" ColumnName="ForceGazetting" />
                <ScalarProperty Name="IsAllowedNewLicence" ColumnName="IsAllowedNewLicence" />
                <ScalarProperty Name="OnlyExistingRoutesOnLicense" ColumnName="OnlyExistingRoutesOnLicense" />
                <ScalarProperty Name="ApplicationIsObjected" ColumnName="ApplicationIsObjected" />
                <ScalarProperty Name="IsApplicantIndividual" ColumnName="IsApplicantIndividual" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="IsBusAndContract" ColumnName="IsBusAndContract" />
                <ScalarProperty Name="IsReferralRequired" ColumnName="IsReferralRequired" />
                <ScalarProperty Name="IsInspectionRequired" ColumnName="IsInspectionRequired" />
                <ScalarProperty Name="IsGazettingRequired" ColumnName="IsGazettingRequired" />
                <ScalarProperty Name="VerifiedAssociationID" ColumnName="VerifiedAssociationID" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="ProxyIDNumber" ColumnName="ProxyIDNumber" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <ScalarProperty Name="HasNewRoute" ColumnName="HasNewRoute" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ExistingLicenceHolderID" ColumnName="ExistingLicenceHolderID" />
                <ScalarProperty Name="ExistingLicenceHolder" ColumnName="ExistingLicenceHolder" />
                <ScalarProperty Name="AdjudicationOfficeLocationID" ColumnName="AdjudicationOfficeLocationID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="AdjudicationComment" ColumnName="AdjudicationComment" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="ProxyName" ColumnName="ProxyName" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="IncludeRenewalType" ColumnName="IncludeRenewalType" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_SettingUpsert" FunctionName="Model.Store.Pr_SettingUpsert" />
          <EntitySetMapping Name="Vw_VehicleMakes">
            <EntityTypeMapping TypeName="Model.Vw_VehicleMakes">
              <MappingFragment StoreEntitySet="Vw_VehicleMakes">
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_LicencingBoards">
            <EntityTypeMapping TypeName="Model.Vw_LicencingBoards">
              <MappingFragment StoreEntitySet="Vw_LicencingBoards">
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Inspectors">
            <EntityTypeMapping TypeName="Model.Inspector">
              <MappingFragment StoreEntitySet="Inspectors">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="InspectorID" ColumnName="InspectorID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_InspectorCancel" FunctionName="Model.Store.Pr_InspectorCancel" />
          <FunctionImportMapping FunctionImportName="Pr_InspectorsGetView" FunctionName="Model.Store.Pr_InspectorsGetView">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_InspectorsGetView_Result">
                <ScalarProperty Name="InspectorID" ColumnName="InspectorID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="OfficeLocation" ColumnName="OfficeLocation" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_InspectorUpsert" FunctionName="Model.Store.Pr_InspectorUpsert" />
          <EntitySetMapping Name="DivisionTypeAnnexureMappings">
            <EntityTypeMapping TypeName="Model.DivisionTypeAnnexureMapping">
              <MappingFragment StoreEntitySet="DivisionTypeAnnexureMappings">
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="AnnexureDocumentID" ColumnName="AnnexureDocumentID" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="DivisionTypeAnnexureMappingID" ColumnName="DivisionTypeAnnexureMappingID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_DivisionTypeAnnexureMappingSearch" FunctionName="Model.Store.Pr_DivisionTypeAnnexureMappingSearch">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_SystemAdministrator" FunctionName="Model.Store.Pr_Dashboard_SystemAdministrator">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Dashboard_SystemAdministrator_Result">
                <ScalarProperty Name="MessageType" ColumnName="MessageType" />
                <ScalarProperty Name="PendingCount" ColumnName="PendingCount" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_SystemAdministrator_FailedTasks" FunctionName="Model.Store.Pr_Dashboard_SystemAdministrator_FailedTasks">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Dashboard_SystemAdministrator_FailedTasks_Result">
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="InstanceDescription" ColumnName="InstanceDescription" />
                <ScalarProperty Name="InstanceTaskDescription" ColumnName="InstanceTaskDescription" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="TaskCreatedDate" ColumnName="TaskCreatedDate" />
                <ScalarProperty Name="WorkflowTemplateStepID" ColumnName="WorkflowTemplateStepID" />
                <ScalarProperty Name="Step" ColumnName="Step" />
                <ScalarProperty Name="CanRequestChange" ColumnName="CanRequestChange" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_SystemAdministrator_RequestCorrection" FunctionName="Model.Store.Pr_Dashboard_SystemAdministrator_RequestCorrection" />
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_SystemAdministrator_RetryFailedTasks" FunctionName="Model.Store.Pr_Dashboard_SystemAdministrator_RetryFailedTasks" />
          <EntitySetMapping Name="Vw_DivisionTypeAnnexureMappings">
            <EntityTypeMapping TypeName="Model.Vw_DivisionTypeAnnexureMappings">
              <MappingFragment StoreEntitySet="Vw_DivisionTypeAnnexureMappings">
                <ScalarProperty Name="VehicleType" ColumnName="VehicleType" />
                <ScalarProperty Name="ServiceType" ColumnName="ServiceType" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="DivisionType" ColumnName="DivisionType" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="AnnexureDocumentID" ColumnName="AnnexureDocumentID" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="DivisionTypeAnnexureMappingID" ColumnName="DivisionTypeAnnexureMappingID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_DivisionTypeAnnexureMappingCancel" FunctionName="Model.Store.Pr_DivisionTypeAnnexureMappingCancel" />
          <FunctionImportMapping FunctionImportName="Pr_DivisionTypeAnnexureMappingUpsert" FunctionName="Model.Store.Pr_DivisionTypeAnnexureMappingUpsert" />
          <EntitySetMapping Name="Vw_ApplicationRequestTypeDivisionSetup">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationRequestTypeDivisionSetup">
              <MappingFragment StoreEntitySet="Vw_ApplicationRequestTypeDivisionSetup">
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="DivisionType" ColumnName="DivisionType" />
                <ScalarProperty Name="ApplicationRequestType" ColumnName="ApplicationRequestType" />
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="GazetteTypeRule" ColumnName="GazetteTypeRule" />
                <ScalarProperty Name="IsGazettingRequiredRule" ColumnName="IsGazettingRequiredRule" />
                <ScalarProperty Name="AdjudicationTypeRule" ColumnName="AdjudicationTypeRule" />
                <ScalarProperty Name="IsAdjudicationRequiredRule" ColumnName="IsAdjudicationRequiredRule" />
                <ScalarProperty Name="IsReferralRequiredRule" ColumnName="IsReferralRequiredRule" />
                <ScalarProperty Name="IsInspectionRequiredRule" ColumnName="IsInspectionRequiredRule" />
                <ScalarProperty Name="IsFinalisationTasksRequiredRule" ColumnName="IsFinalisationTasksRequiredRule" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequiredRule" ColumnName="IsSeniorManagerApprovalRequiredRule" />
                <ScalarProperty Name="IsAssessorApprovalRequiredRule" ColumnName="IsAssessorApprovalRequiredRule" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeDivisionSetupID" ColumnName="ApplicationRequestTypeDivisionSetupID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_ApplicationRequestTypeDocumentSetup">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationRequestTypeDocumentSetup">
              <MappingFragment StoreEntitySet="Vw_ApplicationRequestTypeDocumentSetup">
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="DivisionType" ColumnName="DivisionType" />
                <ScalarProperty Name="ApplicationRequestType" ColumnName="ApplicationRequestType" />
                <ScalarProperty Name="IsNew" ColumnName="IsNew" />
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
                <ScalarProperty Name="IsAvailableForUpload" ColumnName="IsAvailableForUpload" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="WorkflowTemplateID" ColumnName="WorkflowTemplateID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeDocumentID" ColumnName="ApplicationRequestTypeDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_OfficeLocationSetup">
            <EntityTypeMapping TypeName="Model.Vw_OfficeLocationSetup">
              <MappingFragment StoreEntitySet="Vw_OfficeLocationSetup">
                <ScalarProperty Name="RouteApproverUserID" ColumnName="RouteApproverUserID" />
                <ScalarProperty Name="RouteCapturerUserID" ColumnName="RouteCapturerUserID" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="WorkflowReference" ColumnName="WorkflowReference" />
                <ScalarProperty Name="Province" ColumnName="Province" />
                <ScalarProperty Name="DivisionType" ColumnName="DivisionType" />
                <ScalarProperty Name="AdjudicationContactEmail" ColumnName="AdjudicationContactEmail" />
                <ScalarProperty Name="AdjudicationContactTelPhone" ColumnName="AdjudicationContactTelPhone" />
                <ScalarProperty Name="AdjudicationContactName" ColumnName="AdjudicationContactName" />
                <ScalarProperty Name="BusinessRuleBypassApproverUserID" ColumnName="BusinessRuleBypassApproverUserID" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="MaxAdjudicationAutoApplicationCount" ColumnName="MaxAdjudicationAutoApplicationCount" />
                <ScalarProperty Name="AdjudicationMeetingQuorumCount" ColumnName="AdjudicationMeetingQuorumCount" />
                <ScalarProperty Name="AdjudicationHearingQuorumCount" ColumnName="AdjudicationHearingQuorumCount" />
                <ScalarProperty Name="AdjudicationAgendaEmails" ColumnName="AdjudicationAgendaEmails" />
                <ScalarProperty Name="AdjudicationSecrataryUserID" ColumnName="AdjudicationSecrataryUserID" />
                <ScalarProperty Name="AdjudicationOfficerUserID" ColumnName="AdjudicationOfficerUserID" />
                <ScalarProperty Name="GazetteNumberPrefix" ColumnName="GazetteNumberPrefix" />
                <ScalarProperty Name="HandlesGazetting" ColumnName="HandlesGazetting" />
                <ScalarProperty Name="ReferralCapturerUserID" ColumnName="ReferralCapturerUserID" />
                <ScalarProperty Name="InspectionCapturerUserID" ColumnName="InspectionCapturerUserID" />
                <ScalarProperty Name="SeniorManagerApproverUserID" ColumnName="SeniorManagerApproverUserID" />
                <ScalarProperty Name="AssessorUserID" ColumnName="AssessorUserID" />
                <ScalarProperty Name="PaymentClerkUserID" ColumnName="PaymentClerkUserID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_SearchApplicationLicenceVehicleType" FunctionName="Model.Store.Pr_SearchApplicationLicenceVehicleType">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchApplicationLicenceVehicleType_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationLicenceReferenceNumber" ColumnName="ApplicationLicenceReferenceNumber" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="VehicleTypeDescription" ColumnName="VehicleTypeDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SearchApplicationServiceTypes" FunctionName="Model.Store.Pr_SearchApplicationServiceTypes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchApplicationServiceTypes_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationLicenceReferenceNumber" ColumnName="ApplicationLicenceReferenceNumber" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
                <ScalarProperty Name="ApplicationLicenceServiceDetailID" ColumnName="ApplicationLicenceServiceDetailID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SearchLicenceVehicleTypes" FunctionName="Model.Store.Pr_SearchLicenceVehicleTypes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchLicenceVehicleTypes_Result">
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="VehicleTypeI" ColumnName="VehicleTypeI" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SearchLicenceServiceTypes" FunctionName="Model.Store.Pr_SearchLicenceServiceTypes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_SearchLicenceServiceTypes_Result">
                <ScalarProperty Name="LicenceServiceDetailID" ColumnName="LicenceServiceDetailID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationLicenceVehicleTypeUpdate" FunctionName="Model.Store.Pr_ApplicationLicenceVehicleTypeUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationServiceTypeAdd" FunctionName="Model.Store.Pr_ApplicationServiceTypeAdd" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationServiceTypeRemove" FunctionName="Model.Store.Pr_ApplicationServiceTypeRemove" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationLicenseGet" FunctionName="Model.Store.Pr_ApplicationLicenseGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationLicenseGet_Result">
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationServiceTypeUpdate" FunctionName="Model.Store.Pr_ApplicationServiceTypeUpdate" />
          <EntitySetMapping Name="ServiceVehicleTypes">
            <EntityTypeMapping TypeName="Model.ServiceVehicleType">
              <MappingFragment StoreEntitySet="ServiceVehicleTypes">
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ServiceVehicleTypeID" ColumnName="ServiceVehicleTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetSetupAvailableOptions" FunctionName="Model.Store.Pr_GetSetupAvailableOptions">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetSetupAvailableOptions_Result">
                <ScalarProperty Name="Available_Options" ColumnName="Available Options" />
                <ScalarProperty Name="Date_Type" ColumnName="Date Type" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PrintGazetteReport" FunctionName="Model.Store.Pr_PrintGazetteReport">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_PrintGazetteReport_Result">
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="AppDescription" ColumnName="AppDescription" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="ExistingFirstname" ColumnName="ExistingFirstname" />
                <ScalarProperty Name="ExistingSurname" ColumnName="ExistingSurname" />
                <ScalarProperty Name="ExistingIDNumber" ColumnName="ExistingIDNumber" />
                <ScalarProperty Name="ExistingPostalAddress" ColumnName="ExistingPostalAddress" />
                <ScalarProperty Name="ExistingPostalCode" ColumnName="ExistingPostalCode" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="ApplicationRequestTypesTitle" ColumnName="ApplicationRequestTypesTitle" />
                <ScalarProperty Name="GazettePrintDate" ColumnName="GazettePrintDate" />
                <ScalarProperty Name="GazetteNoticeExpiryDate" ColumnName="GazetteNoticeExpiryDate" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="VehicleType" ColumnName="VehicleType" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="ApplicationRegion" ColumnName="ApplicationRegion" />
                <ScalarProperty Name="CapacityDescription" ColumnName="CapacityDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationGazetteRoutesGet" FunctionName="Model.Store.Pr_ApplicationGazetteRoutesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationGazetteRoutesGet_Result">
                <ScalarProperty Name="ServiceTypeNumber" ColumnName="ServiceTypeNumber" />
                <ScalarProperty Name="ServiceType" ColumnName="ServiceType" />
                <ScalarProperty Name="RouteDescription" ColumnName="RouteDescription" />
                <ScalarProperty Name="RouteNumber" ColumnName="RouteNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_GazetteRoutesGet" FunctionName="Model.Store.Pr_GazetteRoutesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GazetteRoutesGet_Result">
                <ScalarProperty Name="ServiceTypeNumber" ColumnName="ServiceTypeNumber" />
                <ScalarProperty Name="ServiceType" ColumnName="ServiceType" />
                <ScalarProperty Name="RouteDescription" ColumnName="RouteDescription" />
                <ScalarProperty Name="RouteNumber" ColumnName="RouteNumber" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_MemberGet" FunctionName="Model.Store.Pr_MemberGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_MemberGet_Result">
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="IdentityDocumentDocID" ColumnName="IdentityDocumentDocID" />
                <ScalarProperty Name="TaxClearanceCertificateDocID" ColumnName="TaxClearanceCertificateDocID" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
                <ScalarProperty Name="IDTypeDescription" ColumnName="IDTypeDescription" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="SARSIncomeTaxNumber" ColumnName="SARSIncomeTaxNumber" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="MemberStatusID" ColumnName="MemberStatusID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceRoutesGet" FunctionName="Model.Store.Pr_LicenceRoutesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceRoutesGet_Result">
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="RouteTypeID" ColumnName="RouteTypeID" />
                <ScalarProperty Name="RouteName" ColumnName="RouteName" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="OriginPlaceID" ColumnName="OriginPlaceID" />
                <ScalarProperty Name="DestinationPlaceID" ColumnName="DestinationPlaceID" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
                <ScalarProperty Name="RouteStatusID" ColumnName="RouteStatusID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
                <ScalarProperty Name="IsChecked" ColumnName="IsChecked" />
                <ScalarProperty Name="IsPotentialIncorrectRouteChange" ColumnName="IsPotentialIncorrectRouteChange" />
                <ScalarProperty Name="IsPotentialIncorrectRouteChangeProbability" ColumnName="IsPotentialIncorrectRouteChangeProbability" />
                <ScalarProperty Name="VersionNumber" ColumnName="VersionNumber" />
                <ScalarProperty Name="IsLatest" ColumnName="IsLatest" />
                <ScalarProperty Name="ParentRouteID" ColumnName="ParentRouteID" />
                <ScalarProperty Name="RouteType" ColumnName="RouteType" />
                <ScalarProperty Name="OriginDescription" ColumnName="OriginDescription" />
                <ScalarProperty Name="DestinationDescription" ColumnName="DestinationDescription" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
        <DesignerProperty Name="UseLegacyProvider" Value="False" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>