﻿<?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="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="MeetingDate" Type="datetime" Nullable="false" />
          <Property Name="MeetingTime" Type="char" MaxLength="5" Nullable="false" />
          <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="RegionID" Type="bigint" />
          <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" />
        </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="ApplicationAllowedExpiredLicences">
          <Key>
            <PropertyRef Name="OperatingLicenceNumber" />
          </Key>
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IssueNumber" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" />
          <Property Name="CreatedByID" Type="bigint" />
          <Property Name="CreatedReason" Type="varchar(max)" />
          <Property Name="UpdatedByID" Type="bigint" />
          <Property Name="IsUsed" Type="bit" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationSourceID" Type="bigint" />
        </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" />
        </EntityType>
        <EntityType Name="ApplicationAudits">
          <Key>
            <PropertyRef Name="ApplicationAuditID" />
          </Key>
          <Property Name="ApplicationAuditID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationAuditTypeID" Type="smallint" Nullable="false" />
          <Property Name="AuditedUserID" Type="bigint" Nullable="false" />
          <Property Name="AssignedToID" Type="bigint" Nullable="false" />
          <Property Name="AssignedDate" Type="datetime" Nullable="false" />
          <Property Name="AuditCompletedDate" Type="datetime" />
          <Property Name="AuditPassed" Type="bit" />
          <Property Name="AuditComments" Type="nvarchar" MaxLength="2000" />
        </EntityType>
        <EntityType Name="ApplicationDocuments">
          <Key>
            <PropertyRef Name="ApplicationDocumentID" />
          </Key>
          <Property Name="ApplicationDocumentID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" 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="ApplicationRequestDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" Nullable="false" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="PrecheckDetailID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="IsLateRenewal" Type="bit" Nullable="false" />
          <Property Name="IsNewAssociationRequired" Type="bit" Nullable="false" />
          <Property Name="IsNewMemberRequired" Type="bit" 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="Description" Type="varchar" MaxLength="500" />
          <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="IsCancellationRequired" Type="bit" Nullable="false" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AdjudicationDecisionID" Type="smallint" />
          <Property Name="AdjudicationLicenceDurationMonths" Type="int" />
          <Property Name="AdjudicationDecisionDate" Type="datetime" />
          <Property Name="AdjudicationException" Type="bit" />
          <Property Name="AdjudicationLicenceExpiryDate" Type="date" />
          <Property Name="IsAdjudicationBypassed" Type="bit" Nullable="false" />
          <Property Name="AdjudicationRegionID" Type="smallint" />
          <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="IsBulkVehicleApplication" Type="bit" Nullable="false" />
          <Property Name="VehicleCount" Type="int" Nullable="false" />
          <Property Name="IsBulkVehicleVerificationRequired" Type="bit" />
          <Property Name="AdjudicationCount" Type="int" />
          <Property Name="IsReceiptRequired" Type="bit" />
          <Property Name="ForceGazetting" Type="bit" />
          <Property Name="AdjudicationTypeID" Type="smallint" />
        </EntityType>
        <EntityType Name="ApplicationRequestTypeDocuments">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
          </Key>
          <Property Name="ApplicationRequestTypeDocumentID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="WorkflowID" Type="bigint" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsMandatory" Type="bit" Nullable="false" />
        </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="IsCancelled" Type="bit" />
          <Property Name="ImageSrc" Type="varchar" MaxLength="255" />
        </EntityType>
        <EntityType Name="ApplicationVehicleDetailsInBulk">
          <Key>
            <PropertyRef Name="ApplicationVehicleDetailsInBulkID" />
          </Key>
          <Property Name="ApplicationVehicleDetailsInBulkID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="IsStillToBeAcquired" Type="bit" Nullable="false" />
          <Property Name="VehicleMakeID" Type="smallint" />
          <Property Name="VehicleMakeDescription" Type="varchar" MaxLength="100" />
          <Property Name="VehicleTypeID" Type="smallint" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="YearOfManufacture" Type="varchar" MaxLength="4" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="SeatedCapacity" Type="smallint" />
          <Property Name="StandingCapacity" Type="smallint" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="CarryingCapacityID" Type="bigint" />
          <Property Name="CorDocID" Type="bigint" />
          <Property Name="LogbookDocID" Type="bigint" />
          <Property Name="PdpDocID" Type="bigint" />
          <Property Name="VehicleNumber" Type="int" Nullable="false" />
          <Property Name="IsVerified" Type="bit" Nullable="false" />
          <Property Name="IsException" Type="bit" Nullable="false" />
          <Property Name="ExceptionDetails" Type="varchar(max)" />
          <Property Name="VerifiedByID" Type="bigint" />
          <Property Name="VerifiedDate" Type="datetime" />
        </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" Nullable="false" />
          <Property Name="GazetteNoticeExpiryDate" Type="datetime" Nullable="false" />
          <Property Name="ProvinceID" Type="smallint" 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" />
        </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="LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Name="LicenceIssueDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationRequestDetailID" 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="ApplicationVehicleDetailsInBulkID" Type="bigint" />
        </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="PrecheckDetailIncompleteReasons">
          <Key>
            <PropertyRef Name="PrecheckDetailIncompleteReasonID" />
          </Key>
          <Property Name="PrecheckDetailIncompleteReasonID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="2000" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="PrecheckDetails">
          <Key>
            <PropertyRef Name="PrecheckDetailID" />
          </Key>
          <Property Name="PrecheckDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="PrecheckDetailIncompleteReasonID" Type="smallint" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="AssociationID" Type="bigint" />
          <Property Name="ApplicantName" Type="varchar" MaxLength="400" Nullable="false" />
          <Property Name="OlPermitNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IDNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="NltisXml" Type="xml" />
          <Property Name="NltisXmlDataFound" Type="bit" />
          <Property Name="IsComplete" Type="bit" Nullable="false" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="IsLateRenewal" Type="bit" Nullable="false" />
          <Property Name="ContactEmail" Type="varchar" MaxLength="255" />
          <Property Name="ContactCell" Type="varchar" MaxLength="20" />
          <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="ModeID" Type="smallint" />
          <Property Name="IsLtpsConversion" Type="bit" Nullable="false" />
          <Property Name="NumberOfVehiclesRequired" Type="bigint" />
          <Property Name="ServiceTypeID" Type="smallint" />
        </EntityType>
        <EntityType Name="PurificationDetails">
          <Key>
            <PropertyRef Name="PurificationDetailID" />
          </Key>
          <Property Name="PurificationDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="PurificationDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="NeoID" Type="bigint" Nullable="false" />
          <Property Name="PreCheckDetailID" Type="bigint" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" />
          <Property Name="Comments" Type="varchar" MaxLength="2000" />
        </EntityType>
        <EntityType Name="PurificationDetailStatus">
          <Key>
            <PropertyRef Name="PurificationDetailStatusID" />
          </Key>
          <Property Name="PurificationDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" 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="PaymentTypeID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" 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="HasBulkVehicleApplications" 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="IsDocumentTemplate" Type="bit" Nullable="false" />
          <Property Name="IsDocumentTitleEditable" Type="bit" Nullable="false" />
          <Property Name="IsCancelled" 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="bigint" 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="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="Modes">
          <Key>
            <PropertyRef Name="ModeID" />
          </Key>
          <Property Name="ModeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="OlasServiceTypeID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="ExceptionHandlerUserID" 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" />
          <Property Name="PaymentClerkUserID" Type="bigint" />
          <Property Name="RegistryClerkUserID" Type="bigint" />
          <Property Name="AdjudicationRegionID" Type="bigint" />
          <Property Name="AssessorUserID" Type="bigint" />
          <Property Name="LocationName" Type="varchar" MaxLength="255" />
          <Property Name="LocationAddress" Type="varchar" MaxLength="1000" />
        </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="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="IsCancelled" Type="bit" 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" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="100" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </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="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="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" />
        </EntityType>
        <EntityType Name="AssociationCleanupSummary">
          <Key>
            <PropertyRef Name="AssociationID" />
          </Key>
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="AssociationDataReceived" Type="bit" Nullable="false" />
          <Property Name="AssociationDataMemberCount" Type="int" Nullable="false" />
          <Property Name="AssociationDataLicenceCount" Type="int" Nullable="false" />
          <Property Name="TotalMemberVerificationsInProgress" Type="int" Nullable="false" />
          <Property Name="TotalMembersVerified" Type="int" Nullable="false" />
          <Property Name="TotalMembersCancelled" Type="int" Nullable="false" />
          <Property Name="TotalLicenceVerificationsInProgress" Type="int" Nullable="false" />
          <Property Name="TotalLicencesVerified" Type="int" Nullable="false" />
          <Property Name="TotalLicencesCancelled" Type="int" Nullable="false" />
          <Property Name="TotalMembersCleaned" Type="int" StoreGeneratedPattern="Computed" />
          <Property Name="TotalLicencesCleaned" Type="int" StoreGeneratedPattern="Computed" />
        </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="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="AdjudicationRegionID" Type="smallint" />
        </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="LicenceID" />
            <PropertyRef Name="RouteID" />
          </Key>
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="RouteID" Type="bigint" Nullable="false" />
        </EntityType>
        <EntityType Name="Licences">
          <Key>
            <PropertyRef Name="LicenceID" />
          </Key>
          <Property Name="LicenceID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
          <Property Name="VehicleID" Type="bigint" />
          <Property Name="ModeID" Type="smallint" Nullable="false" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="100" />
          <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="ApplicationVehicleDetailsInBulkID" Type="bigint" />
        </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="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="20" />
          <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="TelPhone" Type="varchar" MaxLength="14" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="TelFax" Type="varchar" MaxLength="14" />
          <Property Name="Email" Type="varchar" MaxLength="150" />
          <Property Name="SARSIncomeTaxNumber" Type="varchar" MaxLength="20" />
          <Property Name="SARSReasonIfNoTaxNumber" Type="varchar" MaxLength="1000" />
          <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="PlaceTypeID" Type="smallint" Nullable="false" />
          <Property Name="PlaceStatusID" Type="smallint" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
        </EntityType>
        <EntityType Name="RouteNodes">
          <Key>
            <PropertyRef Name="RouteNodeID" />
          </Key>
          <Property Name="RouteNodeID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="RouteID" Type="bigint" Nullable="false" />
          <Property Name="PlaceID" Type="bigint" Nullable="false" />
          <Property Name="WaypointTypeID" Type="smallint" Nullable="false" />
          <Property Name="Sequence" Type="int" Nullable="false" />
          <Property Name="DistanceFromOrigin" Type="float" />
        </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" />
        </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="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="IgnoreVinException" Type="bit" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.App.Vw_AdjudicationApplicantDetails' 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_AdjudicationApplicantDetails">
          <Key>
            <PropertyRef Name="AdjudicationDetailID" />
            <PropertyRef Name="ApplicationNumber" />
            
            
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="HasObjections" />
          </Key>
          <Property Name="AdjudicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <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="DecisionComments" Type="varchar(max)" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" 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="AdjudicationException" Type="bit" />
          <Property Name="HasObjections" Type="varchar" MaxLength="3" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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 'LegitimateKZN.App.Vw_ApplicationRequestDetails' 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_ApplicationRequestDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            
            
            
            
            
            
            
            
            
            
            <PropertyRef Name="IsCancellationRequired" />
            
            
            <PropertyRef Name="AssociationName" />
            <PropertyRef Name="IsStillToBeAcquired" />
            <PropertyRef Name="ProxyName" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="AdjudicationComment" />
            <PropertyRef Name="Region" />
            <PropertyRef Name="WorkflowStatus" />
            <PropertyRef Name="IsAdjudicationBypassed" />
            
            <PropertyRef Name="IsAssessorApprovalRequired" />
            <PropertyRef Name="IsSeniorManagerApprovalRequired" />
            <PropertyRef Name="HasNewRoute" />
            <PropertyRef Name="ExistingLicenceNumber" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Cost" Type="money" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="511" />
          <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="IsNewAssociationRequired" Type="bit" Nullable="false" />
          <Property Name="IsNewMemberRequired" Type="bit" 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="MeetingDate" Type="datetime" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="VehicleCount" Type="int" Nullable="false" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="50" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="SeatedCapacity" Type="smallint" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
          <Property Name="AdjudicationDecision" Type="varchar" MaxLength="100" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="500" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="ModeID" Type="smallint" />
          <Property Name="TaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="PrecheckDetailID" Type="bigint" />
          <Property Name="IsStillToBeAcquired" Type="bit" Nullable="false" />
          <Property Name="ProxyName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="AdjudicationDecisionID" Type="smallint" />
          <Property Name="AdjudicationComment" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="AdjudicationException" Type="bit" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="TelPhone" Type="varchar" MaxLength="14" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AdjudicationRegionID" 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="ExistingVehicleChassisNumber" Type="varchar" MaxLength="50" />
          <Property Name="ExistingVehicleRegNumber" Type="varchar" MaxLength="50" />
          <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="ExistingLicenceNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="bit" />
          <Property Name="IsLtpsConversion" Type="bit" />
          <Property Name="ProxyIDNumber" Type="varchar" MaxLength="20" />
          <Property Name="StandingCapacity" Type="smallint" />
          <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" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.App.Vw_ApplicationRequestDetails_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_ApplicationRequestDetails_Receipts">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="ApplicationNumber" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="VehicleCount" />
            <PropertyRef Name="IsCancelled" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Cost" Type="money" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="ReceiptNumber" Type="varchar" MaxLength="53" />
          <Property Name="ReceiptDetailID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="VehicleCount" Type="int" Nullable="false" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="50" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="500" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="AdjudicationCount" Type="smallint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.App.Vw_AssociationsPurificationCount' 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_AssociationsPurificationCount">
          <Key>
            <PropertyRef Name="AssociationID" />
            <PropertyRef Name="AssociationName" />
          </Key>
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="AssociationDataReceived" Type="bit" />
          <Property Name="AssociationDataMemberCount" Type="int" />
          <Property Name="AssociationDataLicenceCount" Type="int" />
          <Property Name="TotalMemberVerificationsInProgress" Type="int" />
          <Property Name="TotalMembersVerified" Type="int" />
          <Property Name="TotalMembersCancelled" Type="int" />
          <Property Name="TotalLicenceVerificationsInProgress" Type="int" />
          <Property Name="TotalLicencesVerified" Type="int" />
          <Property Name="TotalLicencesCancelled" Type="int" />
          <Property Name="TotalMembersCleaned" Type="int" />
          <Property Name="TotalLicencesCleaned" Type="int" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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="ApplicationRequestDetailID" />
            
            
            
            
            
            
            
            <PropertyRef Name="IsGazettingBypassed" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <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="bigint" />
          <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 'LegitimateKZN.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="ApplicationRequestDetailID" 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="10" Nullable="false" />
          <Property Name="ApplicationReferenceNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <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="500" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="IsStillToBeAcquired" Type="bit" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="MemberFullName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="MemberTaxReference" Type="varchar" MaxLength="20" />
          <Property Name="MemberIDNumber" Type="bigint" />
          <Property Name="MemberCell" Type="varchar" MaxLength="14" />
          <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" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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" />
            <PropertyRef Name="VerifiedLicenceID" />
            <PropertyRef Name="LicenceUpliftmentReferenceNumber" />
            <PropertyRef Name="MemberFullName" />
          </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="10" 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="20" />
          <Property Name="MemberIDNumber" Type="varchar" MaxLength="20" />
          <Property Name="MemberCell" Type="varchar" MaxLength="14" />
          <Property Name="WorkflowInstanceStatusID" Type="smallint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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="RouteDescription" />
            <PropertyRef Name="ReferenceNumber" />
            <PropertyRef Name="WorkflowInstanceStatus" />
            <PropertyRef Name="EntityID" />
            <PropertyRef Name="ItemID" />
            <PropertyRef Name="IsAssessorVerificationRequired" />
          </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" MaxLength="255" />
          <Property Name="RouteDescription" Type="varchar(max)" Nullable="false" />
          <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="10" 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" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.App.Vw_PrecheckDetailsIncomplete' 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_PrecheckDetailsIncomplete">
          <Key>
            <PropertyRef Name="IDNumber" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="PrecheckDetailID" />
            <PropertyRef Name="SourceApplicationID" />
            <PropertyRef Name="CreatedDate" />
            
            <PropertyRef Name="ApplicantName" />
            <PropertyRef Name="OlPermitNumber" />
            <PropertyRef Name="ChassisNumber" />
            <PropertyRef Name="VehicleRegistrationNumber" />
          </Key>
          <Property Name="ApplicantName" Type="varchar" MaxLength="400" Nullable="false" />
          <Property Name="OlPermitNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IDNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="PrecheckDetailID" Type="bigint" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="ReasonIncomplete" Type="varchar" MaxLength="1" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.App.Vw_PurificationDetails' 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_PurificationDetails">
          <Key>
            <PropertyRef Name="PurificationDetailID" />
            
            
            
            
            
            
          </Key>
          <Property Name="PurificationDetailID" Type="bigint" Nullable="false" />
          <Property Name="PurificationDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="Status" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="WorkflowID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="int" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" />
          <Property Name="PreCheckDetailID" Type="bigint" />
          <Property Name="ApplicantName" Type="varchar" MaxLength="400" />
          <Property Name="IDNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" />
          <Property Name="Comments" Type="varchar" MaxLength="2000" />
          <Property Name="NeoID" Type="bigint" Nullable="false" />
          <Property Name="NeoOLPermitNumber" Type="varchar" MaxLength="500" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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="AssociationName" />
            <PropertyRef Name="PaymentTypeID" />
          </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="ApplicationRequestDetailID" Type="bigint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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="Region" />
            <PropertyRef Name="AssociationID" />
          </Key>
          <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" />
          <Property Name="AssociationID" Type="bigint" Nullable="false" />
          <Property Name="AssociationDataReceived" Type="bit" />
          <Property Name="AssociationDataMemberCount" Type="int" />
          <Property Name="AssociationDataLicenceCount" Type="int" />
          <Property Name="TotalMemberVerificationsInProgress" Type="int" />
          <Property Name="TotalMembersVerified" Type="int" />
          <Property Name="TotalMembersCancelled" Type="int" />
          <Property Name="TotalLicenceVerificationsInProgress" Type="int" />
          <Property Name="TotalLicencesVerified" Type="int" />
          <Property Name="TotalLicencesCancelled" Type="int" />
          <Property Name="TotalMembersCleaned" Type="int" />
          <Property Name="TotalLicencesCleaned" Type="int" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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="LicenceID" />
            
            
            
            <PropertyRef Name="LicenceStatus" />
            <PropertyRef Name="LicenceStatusID" />
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="100" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="405" />
          <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="57" 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" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.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" />
            <PropertyRef Name="PlaceTypeID" />
            <PropertyRef Name="PlaceType" />
            <PropertyRef Name="PlaceStatusID" />
            <PropertyRef Name="Description" />
          </Key>
          <Property Name="PlaceID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="PlaceTypeID" Type="smallint" Nullable="false" />
          <Property Name="PlaceType" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="PlaceStatusID" Type="smallint" 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 'LegitimateKZN.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" />
            <PropertyRef Name="Make" />
            <PropertyRef Name="Type" />
          </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" Nullable="false" />
          <Property Name="Type" Type="varchar" MaxLength="100" Nullable="false" />
          <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_AdjudicationDetails_AdjudicationDetailStatusID">
          <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_AdjudicationDetails_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="1" />
          <End Role="AdjudicationDetails" Type="Self.AdjudicationDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="AdjudicationDetails">
              <PropertyRef Name="ProvinceID" />
            </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_ApplicationAudits_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationAudits" Type="Self.ApplicationAudits" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationAudits">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationDocuments_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationDocuments" Type="Self.ApplicationDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationDocuments">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationDocuments_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="ApplicationDocuments" Type="Self.ApplicationDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationDocuments">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_AdjudicationDetails">
          <End Role="AdjudicationDetails" Type="Self.AdjudicationDetails" Multiplicity="0..1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDetails">
              <PropertyRef Name="AdjudicationDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="AdjudicationDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_ApplicationRequestTypes">
          <End Role="ApplicationRequestTypes" Type="Self.ApplicationRequestTypes" Multiplicity="1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestTypes">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_GazetteDetails">
          <End Role="GazetteDetails" Type="Self.GazetteDetails" Multiplicity="0..1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="GazetteDetails">
              <PropertyRef Name="GazetteDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="GazetteDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_PaymentTypes">
          <End Role="PaymentTypes" Type="Self.PaymentTypes" Multiplicity="0..1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PaymentTypes">
              <PropertyRef Name="PaymentTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="PaymentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_PrecheckDetails">
          <End Role="PrecheckDetails" Type="Self.PrecheckDetails" Multiplicity="0..1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PrecheckDetails">
              <PropertyRef Name="PrecheckDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="PrecheckDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_Provinces">
          <End Role="Provinces" Type="Self.Provinces" Multiplicity="1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_Regions">
          <End Role="Regions" Type="Self.Regions" Multiplicity="0..1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Regions">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_SourceApplications">
          <End Role="SourceApplications" Type="Self.SourceApplications" Multiplicity="1" />
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="SourceApplications">
              <PropertyRef Name="SourceApplicationID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetails">
              <PropertyRef Name="SourceApplicationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
          <End Role="ApplicationRequestTypes" Type="Self.ApplicationRequestTypes" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDocuments" Type="Self.ApplicationRequestTypeDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestTypes">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocuments">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDocuments_DocumentTypes">
          <End Role="DocumentTypes" Type="Self.DocumentTypes" Multiplicity="1" />
          <End Role="ApplicationRequestTypeDocuments" Type="Self.ApplicationRequestTypeDocuments" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocuments">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationVehicleDetailsInBulk" Type="Self.ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_CarryingCapacities">
          <End Role="CarryingCapacities" Type="Self.CarryingCapacities" Multiplicity="0..1" />
          <End Role="ApplicationVehicleDetailsInBulk" Type="Self.ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CarryingCapacities">
              <PropertyRef Name="CarryingCapacityID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="CarryingCapacityID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_VehicleMakes">
          <End Role="VehicleMakes" Type="Self.VehicleMakes" Multiplicity="0..1" />
          <End Role="ApplicationVehicleDetailsInBulk" Type="Self.ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMakes">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="0..1" />
          <End Role="ApplicationVehicleDetailsInBulk" Type="Self.ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="VehicleTypeID" />
            </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_AssociationStatusID">
          <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_GazetteDetails_GazetteDetailStatusID">
          <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_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_LicenceDetails_LicenceServiceDetails">
          <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_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_ApplicationRequestDetails1">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </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_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_LicenceIssueInspectionDetails_LicenceIssueDetails">
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="1" />
          <End Role="LicenceIssueInspectionDetails" Type="Self.LicenceIssueInspectionDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="LicenceIssueDetails">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueInspectionDetails">
              <PropertyRef Name="LicenceIssueDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes">
          <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_Licences_LicenceStatusID">
          <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_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_Modes">
          <End Role="Modes" Type="Self.Modes" Multiplicity="1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Modes">
              <PropertyRef Name="ModeID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="ModeID" />
            </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_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_MemberStatusID">
          <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="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_PrecheckDetails_ApplicationRequestTypes">
          <End Role="ApplicationRequestTypes" Type="Self.ApplicationRequestTypes" Multiplicity="1" />
          <End Role="PrecheckDetails" Type="Self.PrecheckDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestTypes">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="PrecheckDetails">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_PrecheckDetails_Modes">
          <End Role="Modes" Type="Self.Modes" Multiplicity="0..1" />
          <End Role="PrecheckDetails" Type="Self.PrecheckDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Modes">
              <PropertyRef Name="ModeID" />
            </Principal>
            <Dependent Role="PrecheckDetails">
              <PropertyRef Name="ModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_PrecheckDetails_PrecheckDetailIncompleteReasons">
          <End Role="PrecheckDetailIncompleteReasons" Type="Self.PrecheckDetailIncompleteReasons" Multiplicity="0..1" />
          <End Role="PrecheckDetails" Type="Self.PrecheckDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PrecheckDetailIncompleteReasons">
              <PropertyRef Name="PrecheckDetailIncompleteReasonID" />
            </Principal>
            <Dependent Role="PrecheckDetails">
              <PropertyRef Name="PrecheckDetailIncompleteReasonID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_PrecheckDetails_SourceApplications">
          <End Role="SourceApplications" Type="Self.SourceApplications" Multiplicity="1" />
          <End Role="PrecheckDetails" Type="Self.PrecheckDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="SourceApplications">
              <PropertyRef Name="SourceApplicationID" />
            </Principal>
            <Dependent Role="PrecheckDetails">
              <PropertyRef Name="SourceApplicationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_PurificationDetails_PurificationDetailStatusID">
          <End Role="PurificationDetailStatus" Type="Self.PurificationDetailStatus" Multiplicity="1" />
          <End Role="PurificationDetails" Type="Self.PurificationDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PurificationDetailStatus">
              <PropertyRef Name="PurificationDetailStatusID" />
            </Principal>
            <Dependent Role="PurificationDetails">
              <PropertyRef Name="PurificationDetailStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ReceiptDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="0..1" />
          <End Role="ReceiptDetails" Type="Self.ReceiptDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ReceiptDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </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_RouteNodes_Places">
          <End Role="Places" Type="Self.Places" Multiplicity="1" />
          <End Role="RouteNodes" Type="Self.RouteNodes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Places">
              <PropertyRef Name="PlaceID" />
            </Principal>
            <Dependent Role="RouteNodes">
              <PropertyRef Name="PlaceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_RouteNodes_WaypointTypes">
          <End Role="WaypointTypes" Type="Self.WaypointTypes" Multiplicity="1" />
          <End Role="RouteNodes" Type="Self.RouteNodes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="WaypointTypes">
              <PropertyRef Name="WaypointTypeID" />
            </Principal>
            <Dependent Role="RouteNodes">
              <PropertyRef Name="WaypointTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Routes_DestinationPlace">
          <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_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_RouteStatusID">
          <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_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_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>
        <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="ModeID" 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="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_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="ApplicationReferenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="AdjudicationDetailID" 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="UpdatedByID" 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" />
        <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" />
        </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="ApplicationRequestDetailID" 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_ApplicationAddDocument" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="DocumentTypeID" Type="bigint" Mode="In" />
          <Parameter Name="DocumentID" Type="bigint" 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="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAdjudicationRestart" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAuditComplete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationAuditID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAuditCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationrequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationAuditTypeID" Type="smallint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationAuditSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssignedToID" Type="bigint" Mode="In" />
          <Parameter Name="AuditedUserID" Type="bigint" Mode="In" />
          <Parameter Name="IncompleteAuditsOnly" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationBlockedIDNumberCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="IDNumber" Type="varchar" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationBlockedIDNumberDelete" 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_ApplicationBlockedIDNumbersGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App" />
        <Function Name="Pr_ApplicationBlockedLicenceCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationBlockedLicenceDelete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationBlockedLicencesGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App" />
        <Function Name="Pr_ApplicationConversionChangeType" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="NewApplicationRequestTypeID" Type="int" Mode="In" />
          <Parameter Name="Reason" Type="varchar(max)" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationGetDocuments" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestAdjudicationBypass" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" 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="ActualAdjudicationDate" Type="date" Mode="In" />
          <Parameter Name="Comments" Type="varchar(max)" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestAdjudicationDecisionCommit" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="AdjudicationDetailID" 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_ApplicationRequestCreateReceipt" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ReceiptType" Type="varchar" Mode="In" />
          <Parameter Name="ReceiptNumberOfCopies" Type="int" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestDetailsAwaitingReceipts" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="PaymentTypeIDs" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestDetailsRecentReceipts" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App" />
        <Function Name="Pr_ApplicationRequestDetailsSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowInstanceStatusID" Type="smallint" Mode="In" />
          <Parameter Name="WorkflowTaskSteps" Type="varchar" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="AdjudicationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="HasAdjudicationDecision" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestsStatusViewGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestVerificationComplete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowInstanceTaskID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationVehicleDetailsInBulkVerificationUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationVehicleDetailsInBulkID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="IsVerified" Type="bit" Mode="In" />
          <Parameter Name="IsException" Type="bit" Mode="In" />
          <Parameter Name="ExceptionDetails" Type="varchar(max)" Mode="In" />
          <Parameter Name="IsLastVehicleToBeVerified" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationVerificationHandleError" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ExceptionTasksGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ExtensionTasksGet" 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="ApplicationRequestDetailID" 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="UpdatedByID" 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_GazetteGetNumber" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App" />
        <Function Name="Pr_GetApplicationTypesForConversion" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationNumber" Type="varchar" 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" />
        </Function>
        <Function Name="Pr_GetRecentCashups" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetUserDetails" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueDetailsSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceIssueDetailID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowInstanceStatusID" Type="smallint" Mode="In" />
          <Parameter Name="WorkflowTaskSteps" Type="varchar" Mode="In" />
          <Parameter Name="IncludeActiveTasksOnly" Type="bit" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssueDetailVerificationComplete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceIssueDetailDetailID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowInstanceTaskID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" 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_LicenceIssueRequestsStatusViewGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceUpliftmentExtensionDetailVerificationComplete" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceUpliftmentExtensionRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowInstanceTaskID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LogPrintReceipt" 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_NewRouteStatusViewGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <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="ServiceTypeID" Type="smallint" Mode="In" />
          <Parameter Name="CalledFromSave" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_PrecheckDocumentListGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="PreCheckDetailID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_ApplicationRouteChangeUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRouteDetailID" Type="bigint" Mode="In" />
          <Parameter Name="NewRouteChangeTypeID" Type="smallint" Mode="In" />
          <Parameter Name="Reason" Type="varchar" 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" />
        <Function Name="Pr_Purification_GetUserDataOnIdSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OldIDNumber" Type="varchar" Mode="In" />
          <Parameter Name="NewIDNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_InsertAllowedNewLicence" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <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_Purification_LicencesLinkedToActiveOLASGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App" />
        <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_SearchApplicationMode" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AppReferenceNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_SearchApplicationRoutes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AppReferenceNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_SearchApplicationServiceTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AppReferenceNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_SearchLicenceMode" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_SearchLicenceRoutes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="lirReferenceNumber" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_SearchLicenceServiceTypes" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" 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_Purification_UpdateBypassedExpiredLicence" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="OperatingLicenceNumber" Type="varchar" Mode="In" />
          <Parameter Name="IssueNumber" Type="smallint" Mode="In" />
          <Parameter Name="Reason" Type="nvarchar" Mode="In" />
          <Parameter Name="ApplicationNumber" Type="varchar" Mode="In" />
          <Parameter Name="SourceApplicationID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Purification_UpdateIdNumber" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <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_UpdateMember" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <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="SARSReasonIfNoTaxNumber" 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_PurificationApplicationModeUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="NewModeID" Type="smallint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationApplicationRouteAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="NationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="BoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationApplicationRouteRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationNationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="ApplicationBoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="Reason" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationApplicationServiceTypeAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" 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_PurificationApplicationServiceTypeRemove" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationServiceDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationDetailRetry" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="PurificationDetailID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationDetailStatusUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="UpdatedByID" Type="bigint" Mode="In" />
          <Parameter Name="Comments" Type="varchar" Mode="In" />
          <Parameter Name="PurificationDetailID" Type="bigint" Mode="In" />
          <Parameter Name="PurificationDetailStatusID" Type="smallint" Mode="In" />
          <Parameter Name="IsTransactionRequired" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationExceptionsPending" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationPrechecksPending" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PurificationWorkflowsInProgress" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ReceiptAssignReceipt" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" 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="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" />
        <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_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="Pw_GetItemIDFromReference" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="referenceNumber" Type="varchar" 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_AssociationNeoMemberSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="NeoAssociationID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationMemberDataID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AssociationOlasNeoUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UpdatedByID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="OlasID" Type="bigint" Mode="In" />
          <Parameter Name="NeoID" Type="bigint" 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" />
        </Function>
        <Function Name="Pr_AssociationSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RegionID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationName" Type="varchar" 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" />
        </Function>
        <Function Name="Pr_LicenceExceptionsCounts" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified" />
        <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="RegionID" Type="bigint" Mode="In" />
          <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" />
        </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="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="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" />
        </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" />
        </Function>
        <Function Name="Pr_LicenceSearchRelatedApplications" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" 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" />
        </Function>
        <Function Name="Pr_LicencesExpiredInGracePeriodGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified" />
        <Function Name="Pr_LicencesOverdueUpliftmentsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified" />
        <Function Name="Pr_LicenceStatusSummary" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RegionID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceStatusUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="UpdatedByID" 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" />
        <Function Name="Pr_LicencesWithExceptionGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="Exception" Type="varchar" 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" />
        </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="SARSReasonIfNoTaxNumber" 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_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" />
        </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_PurificationLicenceModeUpdate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="NewModeID" Type="smallint" 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="Verified">
          <Parameter Name="licenceIssueDetailIDD" Type="bigint" Mode="In" />
          <Parameter Name="NationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="BoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="Reason" 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="Verified">
          <Parameter Name="LicenceID" Type="bigint" Mode="In" />
          <Parameter Name="LicenceNationalRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="LicenceBoardRouteNumber" Type="varchar" Mode="In" />
          <Parameter Name="Reason" Type="varchar" 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_RouteNodeAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="PlaceID" Type="bigint" Mode="In" />
          <Parameter Name="WaypointTypeID" Type="smallint" Mode="In" />
          <Parameter Name="DistanceFromOrigin" Type="float" Mode="In" />
          <Parameter Name="Sequence" Type="int" 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="ApplicationRequestDetailID" 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_RouteStartUpdateWorkflow" 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_RouteStartVerificationWorkflow" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationRequestDetailID" 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" />
        </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" />
        </Function>
        <Function Name="Pr_VehicleSearchLinkedLicences" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VehicleID" 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="VehicleTypeID" Type="smallint" Mode="In" />
          <Parameter Name="CarryingCapacityID" Type="smallint" Mode="In" />
          <Parameter Name="YearOfManufacture" Type="varchar" 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>
        <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="ApplicationAllowedExpiredLicences" EntityType="Self.ApplicationAllowedExpiredLicences" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationAllowedNewLicences" EntityType="Self.ApplicationAllowedNewLicences" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationAudits" EntityType="Self.ApplicationAudits" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationDocuments" EntityType="Self.ApplicationDocuments" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestDetails" EntityType="Self.ApplicationRequestDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestTypeDocuments" EntityType="Self.ApplicationRequestTypeDocuments" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestTypes" EntityType="Self.ApplicationRequestTypes" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationVehicleDetailsInBulk" EntityType="Self.ApplicationVehicleDetailsInBulk" 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="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="PrecheckDetailIncompleteReasons" EntityType="Self.PrecheckDetailIncompleteReasons" Schema="App" store:Type="Tables" />
          <EntitySet Name="PrecheckDetails" EntityType="Self.PrecheckDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="PurificationDetails" EntityType="Self.PurificationDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="PurificationDetailStatus" EntityType="Self.PurificationDetailStatus" Schema="App" store:Type="Tables" />
          <EntitySet Name="ReceiptDetails" EntityType="Self.ReceiptDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="DocumentTypes" EntityType="Self.DocumentTypes" Schema="Doc" 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="IDTypes" EntityType="Self.IDTypes" Schema="Md" store:Type="Tables" />
          <EntitySet Name="Modes" EntityType="Self.Modes" 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="SourceApplications" EntityType="Self.SourceApplications" Schema="Md" store:Type="Tables" />
          <EntitySet Name="VehicleMakes" EntityType="Self.VehicleMakes" 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="Settings" EntityType="Self.Settings" Schema="System" store:Type="Tables" />
          <EntitySet Name="AssociationCleanupSummary" EntityType="Self.AssociationCleanupSummary" 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="RouteNodes" EntityType="Self.RouteNodes" 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_AdjudicationApplicantDetails" EntityType="Self.Vw_AdjudicationApplicantDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_AdjudicationApplicantDetails].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_AdjudicationApplicantDetails].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_AdjudicationApplicantDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_AdjudicationApplicantDetails].[FirstNames] AS [FirstNames], 
    [Vw_AdjudicationApplicantDetails].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_AdjudicationApplicantDetails].[Title] AS [Title], 
    [Vw_AdjudicationApplicantDetails].[Association] AS [Association], 
    [Vw_AdjudicationApplicantDetails].[Decision] AS [Decision], 
    [Vw_AdjudicationApplicantDetails].[DecisionComments] AS [DecisionComments], 
    [Vw_AdjudicationApplicantDetails].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [Vw_AdjudicationApplicantDetails].[RequestType] AS [RequestType], 
    [Vw_AdjudicationApplicantDetails].[Member] AS [Member], 
    [Vw_AdjudicationApplicantDetails].[TelCell] AS [TelCell], 
    [Vw_AdjudicationApplicantDetails].[AdjudicationException] AS [AdjudicationException], 
    [Vw_AdjudicationApplicantDetails].[HasObjections] AS [HasObjections]
    FROM [App].[Vw_AdjudicationApplicantDetails] AS [Vw_AdjudicationApplicantDetails]</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_ApplicationRequestDetails" EntityType="Self.Vw_ApplicationRequestDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ApplicationRequestDetails].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [Vw_ApplicationRequestDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_ApplicationRequestDetails].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_ApplicationRequestDetails].[RequestType] AS [RequestType], 
    [Vw_ApplicationRequestDetails].[Cost] AS [Cost], 
    [Vw_ApplicationRequestDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_ApplicationRequestDetails].[FirstNames] AS [FirstNames], 
    [Vw_ApplicationRequestDetails].[TradeName] AS [TradeName], 
    [Vw_ApplicationRequestDetails].[Member] AS [Member], 
    [Vw_ApplicationRequestDetails].[VerifiedMemberID] AS [VerifiedMemberID], 
    [Vw_ApplicationRequestDetails].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_ApplicationRequestDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_ApplicationRequestDetails].[SourceApplicationID] AS [SourceApplicationID], 
    [Vw_ApplicationRequestDetails].[IsNewAssociationRequired] AS [IsNewAssociationRequired], 
    [Vw_ApplicationRequestDetails].[IsNewMemberRequired] AS [IsNewMemberRequired], 
    [Vw_ApplicationRequestDetails].[IsNewRouteRequired] AS [IsNewRouteRequired], 
    [Vw_ApplicationRequestDetails].[IsExceptionRequired] AS [IsExceptionRequired], 
    [Vw_ApplicationRequestDetails].[IsUpliftmentRequired] AS [IsUpliftmentRequired], 
    [Vw_ApplicationRequestDetails].[IsAdjustmentRequired] AS [IsAdjustmentRequired], 
    [Vw_ApplicationRequestDetails].[IsCancellationRequired] AS [IsCancellationRequired], 
    [Vw_ApplicationRequestDetails].[GazetteNumber] AS [GazetteNumber], 
    [Vw_ApplicationRequestDetails].[GazetteDetailID] AS [GazetteDetailID], 
    [Vw_ApplicationRequestDetails].[MeetingDate] AS [MeetingDate], 
    [Vw_ApplicationRequestDetails].[AdjudicationDetailID] AS [AdjudicationDetailID], 
    [Vw_ApplicationRequestDetails].[PaymentTypeID] AS [PaymentTypeID], 
    [Vw_ApplicationRequestDetails].[VehicleCount] AS [VehicleCount], 
    [Vw_ApplicationRequestDetails].[ChassisNumber] AS [ChassisNumber], 
    [Vw_ApplicationRequestDetails].[EngineNumber] AS [EngineNumber], 
    [Vw_ApplicationRequestDetails].[VehicleRegNumber] AS [VehicleRegNumber], 
    [Vw_ApplicationRequestDetails].[SeatedCapacity] AS [SeatedCapacity], 
    [Vw_ApplicationRequestDetails].[VehicleMake] AS [VehicleMake], 
    [Vw_ApplicationRequestDetails].[AdjudicationDecision] AS [AdjudicationDecision], 
    [Vw_ApplicationRequestDetails].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_ApplicationRequestDetails].[IsRenewal] AS [IsRenewal], 
    [Vw_ApplicationRequestDetails].[AssociationName] AS [AssociationName], 
    [Vw_ApplicationRequestDetails].[ModeID] AS [ModeID], 
    [Vw_ApplicationRequestDetails].[TaxNumber] AS [TaxNumber], 
    [Vw_ApplicationRequestDetails].[PrecheckDetailID] AS [PrecheckDetailID], 
    [Vw_ApplicationRequestDetails].[IsStillToBeAcquired] AS [IsStillToBeAcquired], 
    [Vw_ApplicationRequestDetails].[ProxyName] AS [ProxyName], 
    [Vw_ApplicationRequestDetails].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationRequestDetails].[AdjudicationDecisionID] AS [AdjudicationDecisionID], 
    [Vw_ApplicationRequestDetails].[AdjudicationComment] AS [AdjudicationComment], 
    [Vw_ApplicationRequestDetails].[AdjudicationException] AS [AdjudicationException], 
    [Vw_ApplicationRequestDetails].[TelCell] AS [TelCell], 
    [Vw_ApplicationRequestDetails].[TelPhone] AS [TelPhone], 
    [Vw_ApplicationRequestDetails].[RegionID] AS [RegionID], 
    [Vw_ApplicationRequestDetails].[AdjudicationRegionID] AS [AdjudicationRegionID], 
    [Vw_ApplicationRequestDetails].[ExistingLicenceHolder] AS [ExistingLicenceHolder], 
    [Vw_ApplicationRequestDetails].[ExistingLicenceHolderID] AS [ExistingLicenceHolderID], 
    [Vw_ApplicationRequestDetails].[Region] AS [Region], 
    [Vw_ApplicationRequestDetails].[ExistingVehicleChassisNumber] AS [ExistingVehicleChassisNumber], 
    [Vw_ApplicationRequestDetails].[ExistingVehicleRegNumber] AS [ExistingVehicleRegNumber], 
    [Vw_ApplicationRequestDetails].[WorkflowStatus] AS [WorkflowStatus], 
    [Vw_ApplicationRequestDetails].[IsAdjudicationBypassed] AS [IsAdjudicationBypassed], 
    [Vw_ApplicationRequestDetails].[IsGazettingBypassed] AS [IsGazettingBypassed], 
    [Vw_ApplicationRequestDetails].[IsAssessorApprovalRequired] AS [IsAssessorApprovalRequired], 
    [Vw_ApplicationRequestDetails].[IsSeniorManagerApprovalRequired] AS [IsSeniorManagerApprovalRequired], 
    [Vw_ApplicationRequestDetails].[HasNewRoute] AS [HasNewRoute], 
    [Vw_ApplicationRequestDetails].[ExistingLicenceNumber] AS [ExistingLicenceNumber], 
    [Vw_ApplicationRequestDetails].[IsAutoVerificationRequired] AS [IsAutoVerificationRequired], 
    [Vw_ApplicationRequestDetails].[IsLtpsConversion] AS [IsLtpsConversion], 
    [Vw_ApplicationRequestDetails].[ProxyIDNumber] AS [ProxyIDNumber], 
    [Vw_ApplicationRequestDetails].[StandingCapacity] AS [StandingCapacity], 
    [Vw_ApplicationRequestDetails].[AdjudicationCount] AS [AdjudicationCount], 
    [Vw_ApplicationRequestDetails].[PhysicalAddress] AS [PhysicalAddress], 
    [Vw_ApplicationRequestDetails].[PhysicalAddressCode] AS [PhysicalAddressCode], 
    [Vw_ApplicationRequestDetails].[PostalAddress] AS [PostalAddress], 
    [Vw_ApplicationRequestDetails].[PostalAddressCode] AS [PostalAddressCode]
    FROM [App].[Vw_ApplicationRequestDetails] AS [Vw_ApplicationRequestDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_ApplicationRequestDetails_Receipts" EntityType="Self.Vw_ApplicationRequestDetails_Receipts" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_ApplicationRequestDetails_Receipts].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [Vw_ApplicationRequestDetails_Receipts].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_ApplicationRequestDetails_Receipts].[ApplicationNumber] AS [ApplicationNumber], 
    [Vw_ApplicationRequestDetails_Receipts].[RequestType] AS [RequestType], 
    [Vw_ApplicationRequestDetails_Receipts].[Cost] AS [Cost], 
    [Vw_ApplicationRequestDetails_Receipts].[Member] AS [Member], 
    [Vw_ApplicationRequestDetails_Receipts].[ReceiptNumber] AS [ReceiptNumber], 
    [Vw_ApplicationRequestDetails_Receipts].[ReceiptDetailID] AS [ReceiptDetailID], 
    [Vw_ApplicationRequestDetails_Receipts].[PaymentTypeID] AS [PaymentTypeID], 
    [Vw_ApplicationRequestDetails_Receipts].[VehicleCount] AS [VehicleCount], 
    [Vw_ApplicationRequestDetails_Receipts].[ChassisNumber] AS [ChassisNumber], 
    [Vw_ApplicationRequestDetails_Receipts].[EngineNumber] AS [EngineNumber], 
    [Vw_ApplicationRequestDetails_Receipts].[VehicleRegNumber] AS [VehicleRegNumber], 
    [Vw_ApplicationRequestDetails_Receipts].[IsCancelled] AS [IsCancelled], 
    [Vw_ApplicationRequestDetails_Receipts].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_ApplicationRequestDetails_Receipts].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
    [Vw_ApplicationRequestDetails_Receipts].[AdjudicationCount] AS [AdjudicationCount]
    FROM [App].[Vw_ApplicationRequestDetails_Receipts] AS [Vw_ApplicationRequestDetails_Receipts]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_AssociationsPurificationCount" EntityType="Self.Vw_AssociationsPurificationCount" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_AssociationsPurificationCount].[AssociationID] AS [AssociationID], 
    [Vw_AssociationsPurificationCount].[NeoID] AS [NeoID], 
    [Vw_AssociationsPurificationCount].[AssociationName] AS [AssociationName], 
    [Vw_AssociationsPurificationCount].[AssociationDataReceived] AS [AssociationDataReceived], 
    [Vw_AssociationsPurificationCount].[AssociationDataMemberCount] AS [AssociationDataMemberCount], 
    [Vw_AssociationsPurificationCount].[AssociationDataLicenceCount] AS [AssociationDataLicenceCount], 
    [Vw_AssociationsPurificationCount].[TotalMemberVerificationsInProgress] AS [TotalMemberVerificationsInProgress], 
    [Vw_AssociationsPurificationCount].[TotalMembersVerified] AS [TotalMembersVerified], 
    [Vw_AssociationsPurificationCount].[TotalMembersCancelled] AS [TotalMembersCancelled], 
    [Vw_AssociationsPurificationCount].[TotalLicenceVerificationsInProgress] AS [TotalLicenceVerificationsInProgress], 
    [Vw_AssociationsPurificationCount].[TotalLicencesVerified] AS [TotalLicencesVerified], 
    [Vw_AssociationsPurificationCount].[TotalLicencesCancelled] AS [TotalLicencesCancelled], 
    [Vw_AssociationsPurificationCount].[TotalMembersCleaned] AS [TotalMembersCleaned], 
    [Vw_AssociationsPurificationCount].[TotalLicencesCleaned] AS [TotalLicencesCleaned]
    FROM [App].[Vw_AssociationsPurificationCount] AS [Vw_AssociationsPurificationCount]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_GazetteApplications" EntityType="Self.Vw_GazetteApplications" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_GazetteApplications].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [Vw_GazetteApplications].[ApplicationNumber] AS [ApplicationNumber], 
    [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_LicenceIssueDetails" EntityType="Self.Vw_LicenceIssueDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_LicenceIssueDetails].[LicenceIssueDetailID] AS [LicenceIssueDetailID], 
    [Vw_LicenceIssueDetails].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [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]
    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]
    FROM [App].[Vw_NewRouteRequestDetails] AS [Vw_NewRouteRequestDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_PrecheckDetailsIncomplete" EntityType="Self.Vw_PrecheckDetailsIncomplete" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_PrecheckDetailsIncomplete].[ApplicantName] AS [ApplicantName], 
    [Vw_PrecheckDetailsIncomplete].[OlPermitNumber] AS [OlPermitNumber], 
    [Vw_PrecheckDetailsIncomplete].[IDNumber] AS [IDNumber], 
    [Vw_PrecheckDetailsIncomplete].[ChassisNumber] AS [ChassisNumber], 
    [Vw_PrecheckDetailsIncomplete].[VehicleRegistrationNumber] AS [VehicleRegistrationNumber], 
    [Vw_PrecheckDetailsIncomplete].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_PrecheckDetailsIncomplete].[PrecheckDetailID] AS [PrecheckDetailID], 
    [Vw_PrecheckDetailsIncomplete].[SourceApplicationID] AS [SourceApplicationID], 
    [Vw_PrecheckDetailsIncomplete].[CreatedDate] AS [CreatedDate], 
    [Vw_PrecheckDetailsIncomplete].[ReasonIncomplete] AS [ReasonIncomplete]
    FROM [App].[Vw_PrecheckDetailsIncomplete] AS [Vw_PrecheckDetailsIncomplete]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_PurificationDetails" EntityType="Self.Vw_PurificationDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_PurificationDetails].[PurificationDetailID] AS [PurificationDetailID], 
    [Vw_PurificationDetails].[PurificationDetailStatusID] AS [PurificationDetailStatusID], 
    [Vw_PurificationDetails].[Status] AS [Status], 
    [Vw_PurificationDetails].[WorkflowID] AS [WorkflowID], 
    [Vw_PurificationDetails].[ItemID] AS [ItemID], 
    [Vw_PurificationDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_PurificationDetails].[SourceApplicationID] AS [SourceApplicationID], 
    [Vw_PurificationDetails].[PreCheckDetailID] AS [PreCheckDetailID], 
    [Vw_PurificationDetails].[ApplicantName] AS [ApplicantName], 
    [Vw_PurificationDetails].[IDNumber] AS [IDNumber], 
    [Vw_PurificationDetails].[VehicleRegistrationNumber] AS [VehicleRegistrationNumber], 
    [Vw_PurificationDetails].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [Vw_PurificationDetails].[Comments] AS [Comments], 
    [Vw_PurificationDetails].[NeoID] AS [NeoID], 
    [Vw_PurificationDetails].[NeoOLPermitNumber] AS [NeoOLPermitNumber]
    FROM [App].[Vw_PurificationDetails] AS [Vw_PurificationDetails]</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].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID]
    FROM [App].[Vw_ReceiptDetails] AS [Vw_ReceiptDetails]</DefiningQuery>
          </EntitySet>
          <EntitySet Name="Vw_Associations" EntityType="Self.Vw_Associations" store:Type="Views" store:Schema="Verified">
            <DefiningQuery>SELECT 
    [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], 
    [Vw_Associations].[AssociationID] AS [AssociationID], 
    [Vw_Associations].[AssociationDataReceived] AS [AssociationDataReceived], 
    [Vw_Associations].[AssociationDataMemberCount] AS [AssociationDataMemberCount], 
    [Vw_Associations].[AssociationDataLicenceCount] AS [AssociationDataLicenceCount], 
    [Vw_Associations].[TotalMemberVerificationsInProgress] AS [TotalMemberVerificationsInProgress], 
    [Vw_Associations].[TotalMembersVerified] AS [TotalMembersVerified], 
    [Vw_Associations].[TotalMembersCancelled] AS [TotalMembersCancelled], 
    [Vw_Associations].[TotalLicenceVerificationsInProgress] AS [TotalLicenceVerificationsInProgress], 
    [Vw_Associations].[TotalLicencesVerified] AS [TotalLicencesVerified], 
    [Vw_Associations].[TotalLicencesCancelled] AS [TotalLicencesCancelled], 
    [Vw_Associations].[TotalMembersCleaned] AS [TotalMembersCleaned], 
    [Vw_Associations].[TotalLicencesCleaned] AS [TotalLicencesCleaned]
    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].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
    [Vw_OperatingLicenceDetails].[AssociationName] AS [AssociationName], 
    [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]
    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].[PlaceStatusID] AS [PlaceStatusID], 
    [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].[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_AdjudicationDetails_AdjudicationDetailStatusID" Association="Self.FK_AdjudicationDetails_AdjudicationDetailStatusID">
            <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_AdjudicationDetails_Provinces" Association="Self.FK_AdjudicationDetails_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <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_ApplicationAudits_ApplicationRequestDetails" Association="Self.FK_ApplicationAudits_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationAudits" EntitySet="ApplicationAudits" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationDocuments_ApplicationRequestDetails" Association="Self.FK_ApplicationDocuments_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationDocuments" EntitySet="ApplicationDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationDocuments_DocumentTypes" Association="Self.FK_ApplicationDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ApplicationDocuments" EntitySet="ApplicationDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_AdjudicationDetails" Association="Self.FK_ApplicationRequestDetails_AdjudicationDetails">
            <End Role="AdjudicationDetails" EntitySet="AdjudicationDetails" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_ApplicationRequestTypes" Association="Self.FK_ApplicationRequestDetails_ApplicationRequestTypes">
            <End Role="ApplicationRequestTypes" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_GazetteDetails" Association="Self.FK_ApplicationRequestDetails_GazetteDetails">
            <End Role="GazetteDetails" EntitySet="GazetteDetails" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_PaymentTypes" Association="Self.FK_ApplicationRequestDetails_PaymentTypes">
            <End Role="PaymentTypes" EntitySet="PaymentTypes" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_PrecheckDetails" Association="Self.FK_ApplicationRequestDetails_PrecheckDetails">
            <End Role="PrecheckDetails" EntitySet="PrecheckDetails" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_Provinces" Association="Self.FK_ApplicationRequestDetails_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_Regions" Association="Self.FK_ApplicationRequestDetails_Regions">
            <End Role="Regions" EntitySet="Regions" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_SourceApplications" Association="Self.FK_ApplicationRequestDetails_SourceApplications">
            <End Role="SourceApplications" EntitySet="SourceApplications" />
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" Association="Self.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
            <End Role="ApplicationRequestTypes" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDocuments" EntitySet="ApplicationRequestTypeDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_DocumentTypes" Association="Self.FK_ApplicationRequestTypeDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ApplicationRequestTypeDocuments" EntitySet="ApplicationRequestTypeDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" Association="Self.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulk" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_CarryingCapacities" Association="Self.FK_ApplicationVehicleDetailsInBulk_CarryingCapacities">
            <End Role="CarryingCapacities" EntitySet="CarryingCapacities" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulk" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_VehicleMakes" Association="Self.FK_ApplicationVehicleDetailsInBulk_VehicleMakes">
            <End Role="VehicleMakes" EntitySet="VehicleMakes" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulk" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_VehicleTypes" Association="Self.FK_ApplicationVehicleDetailsInBulk_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulk" />
          </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_AssociationStatusID" Association="Self.FK_Associations_AssociationStatusID">
            <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_GazetteDetails_GazetteDetailStatusID" Association="Self.FK_GazetteDetails_GazetteDetailStatusID">
            <End Role="GazetteDetailStatus" EntitySet="GazetteDetailStatus" />
            <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_LicenceDetails_LicenceServiceDetails" Association="Self.FK_LicenceDetails_LicenceServiceDetails">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceServiceDetails" EntitySet="LicenceServiceDetails" />
          </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_ApplicationRequestDetails1" Association="Self.FK_LicenceIssueDetails_ApplicationRequestDetails1">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
          </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_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_LicenceIssueInspectionDetails_LicenceIssueDetails" Association="Self.FK_LicenceIssueInspectionDetails_LicenceIssueDetails">
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
            <End Role="LicenceIssueInspectionDetails" EntitySet="LicenceIssueInspectionDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes" Association="Self.FK_LicenceIssueInspectionDetails_LicenceIssueInspectionOutcomes">
            <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_Licences_LicenceStatusID" Association="Self.FK_Licences_LicenceStatusID">
            <End Role="LicenceStatus" EntitySet="LicenceStatus" />
            <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_Modes" Association="Self.FK_Licences_Modes">
            <End Role="Modes" EntitySet="Modes" />
            <End Role="Licences" EntitySet="Licences" />
          </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_Members_IDTypes" Association="Self.FK_Members_IDTypes">
            <End Role="IDTypes" EntitySet="IDTypes" />
            <End Role="Members" EntitySet="Members" />
          </AssociationSet>
          <AssociationSet Name="FK_Members_MemberStatusID" Association="Self.FK_Members_MemberStatusID">
            <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_PrecheckDetails_ApplicationRequestTypes" Association="Self.FK_PrecheckDetails_ApplicationRequestTypes">
            <End Role="ApplicationRequestTypes" EntitySet="ApplicationRequestTypes" />
            <End Role="PrecheckDetails" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PrecheckDetails_Modes" Association="Self.FK_PrecheckDetails_Modes">
            <End Role="Modes" EntitySet="Modes" />
            <End Role="PrecheckDetails" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PrecheckDetails_PrecheckDetailIncompleteReasons" Association="Self.FK_PrecheckDetails_PrecheckDetailIncompleteReasons">
            <End Role="PrecheckDetailIncompleteReasons" EntitySet="PrecheckDetailIncompleteReasons" />
            <End Role="PrecheckDetails" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PrecheckDetails_SourceApplications" Association="Self.FK_PrecheckDetails_SourceApplications">
            <End Role="SourceApplications" EntitySet="SourceApplications" />
            <End Role="PrecheckDetails" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PurificationDetails_PurificationDetailStatusID" Association="Self.FK_PurificationDetails_PurificationDetailStatusID">
            <End Role="PurificationDetailStatus" EntitySet="PurificationDetailStatus" />
            <End Role="PurificationDetails" EntitySet="PurificationDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ReceiptDetails_ApplicationRequestDetails" Association="Self.FK_ReceiptDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ReceiptDetails" EntitySet="ReceiptDetails" />
          </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_RouteNodes_Places" Association="Self.FK_RouteNodes_Places">
            <End Role="Places" EntitySet="Places" />
            <End Role="RouteNodes" EntitySet="RouteNodes" />
          </AssociationSet>
          <AssociationSet Name="FK_RouteNodes_WaypointTypes" Association="Self.FK_RouteNodes_WaypointTypes">
            <End Role="WaypointTypes" EntitySet="WaypointTypes" />
            <End Role="RouteNodes" EntitySet="RouteNodes" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_DestinationPlace" Association="Self.FK_Routes_DestinationPlace">
            <End Role="Places" EntitySet="Places" />
            <End Role="Routes" EntitySet="Routes" />
          </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_RouteStatusID" Association="Self.FK_Routes_RouteStatusID">
            <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_Vehicles_VehicleMakes" Association="Self.FK_Vehicles_VehicleMakes">
            <End Role="VehicleMakes" EntitySet="VehicleMakes" />
            <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>
        </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">
          <EntitySet Name="ApplicationRequestTypes" EntityType="Model.ApplicationRequestType" />
          <EntitySet Name="Vw_ApplicationRequestDetails" EntityType="Model.Vw_ApplicationRequestDetails" />
          <FunctionImport Name="Pr_ApplicationRequestDetailsAwaitingReceipts" ReturnType="Collection(Model.Pr_ApplicationRequestDetailsAwaitingReceipts_Result)">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="PaymentTypeIDs" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestDetailsRecentReceipts" EntitySet="Vw_ReceiptDetails" ReturnType="Collection(Model.Vw_ReceiptDetails)" />
          <FunctionImport Name="Pr_ApplicationRequestDetailsSearch" ReturnType="Collection(Model.Pr_ApplicationRequestDetailsSearch_Result)">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowInstanceStatusID" Mode="In" Type="Int16" />
            <Parameter Name="WorkflowTaskSteps" Mode="In" Type="String" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="HasAdjudicationDecision" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LogPrintReceipt">
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_Associations" EntityType="Model.Vw_Associations" />
          <FunctionImport Name="Pr_ApplicationRequestDetailsAwaitingGazettes" EntitySet="Vw_ApplicationRequestDetails" ReturnType="Collection(Model.Vw_ApplicationRequestDetails)">
          <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="UpdatedByID" 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="ApplicationRequestTypeDocuments" EntityType="Model.ApplicationRequestTypeDocuments" />
          <EntitySet Name="DocumentTypes" EntityType="Model.DocumentTypes" />
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" Association="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDocuments" EntitySet="ApplicationRequestTypeDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_DocumentTypes" Association="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ApplicationRequestTypeDocuments" EntitySet="ApplicationRequestTypeDocuments" />
          </AssociationSet>
          <EntitySet Name="AssociationModes" EntityType="Model.AssociationModes" />
          <EntitySet Name="AssociationTypes" EntityType="Model.AssociationTypes" />
          <EntitySet Name="AssociationStatus" EntityType="Model.AssociationStatus" />
          <FunctionImport Name="Pr_ApplicationRequestDetailsAwaitingAdjudication" EntitySet="Vw_ApplicationRequestDetails" ReturnType="Collection(Model.Vw_ApplicationRequestDetails)">
          <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_AdjudicationDetails_Provinces" Association="Model.FK_AdjudicationDetails_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="AdjudicationDetails" EntitySet="AdjudicationDetails" />
          </AssociationSet>
          <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="ApplicationDocuments" EntityType="Model.ApplicationDocument" />
          <AssociationSet Name="FK_ApplicationDocuments_DocumentTypes" Association="Model.FK_ApplicationDocuments_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="ApplicationDocument" EntitySet="ApplicationDocuments" />
          </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>
          <EntitySet Name="PrecheckDetails" EntityType="Model.PrecheckDetail" />
          <AssociationSet Name="FK_PrecheckDetails_ApplicationRequestTypes" Association="Model.FK_PrecheckDetails_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PrecheckDetails_SourceApplications" Association="Model.FK_PrecheckDetails_SourceApplications">
            <End Role="SourceApplication" EntitySet="SourceApplications" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationRequestVerificationComplete">
            <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="ServiceTypeID" Mode="In" Type="Int16" />
            <Parameter Name="CalledFromSave" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_AdjudicationDetailStatusUpdate">
            <Parameter Name="UpdatedByID" 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_ApplicationRequestAdjudicationDecisionCommit">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDetailID" 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_ApplicationRequestAdjudicationDecisionApproval">
            <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)" />
          <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="Modes" EntityType="Model.Mode" />
          <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_PrecheckDetailsIncomplete" EntityType="Model.Vw_PrecheckDetailsIncomplete" />
          <AssociationSet Name="FK_Licences_Modes" Association="Model.FK_Licences_Modes">
            <End Role="Mode" EntitySet="Modes" />
            <End Role="Licence" EntitySet="Licences" />
          </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="ApplicationRequestDetails" EntityType="Model.ApplicationRequestDetail" />
          <AssociationSet Name="FK_ApplicationRequestDetails_AdjudicationDetails" Association="Model.FK_ApplicationRequestDetails_AdjudicationDetails">
            <End Role="AdjudicationDetail" EntitySet="AdjudicationDetails" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationDocuments_ApplicationRequestDetails" Association="Model.FK_ApplicationDocuments_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationDocument" EntitySet="ApplicationDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_ApplicationRequestTypes" Association="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_GazetteDetails" Association="Model.FK_ApplicationRequestDetails_GazetteDetails">
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_PaymentTypes" Association="Model.FK_ApplicationRequestDetails_PaymentTypes">
            <End Role="PaymentType" EntitySet="PaymentTypes" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_PrecheckDetails" Association="Model.FK_ApplicationRequestDetails_PrecheckDetails">
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_Provinces" Association="Model.FK_ApplicationRequestDetails_Provinces">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestDetails_SourceApplications" Association="Model.FK_ApplicationRequestDetails_SourceApplications">
            <End Role="SourceApplication" EntitySet="SourceApplications" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="LicenceRoutes" Association="Model.LicenceRoutes">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <EntitySet Name="RouteNodes" EntityType="Model.RouteNode" />
          <AssociationSet Name="FK_RouteNodes_WaypointTypes" Association="Model.FK_RouteNodes_WaypointTypes">
            <End Role="WaypointType" EntitySet="WaypointTypes" />
            <End Role="RouteNode" EntitySet="RouteNodes" />
          </AssociationSet>
          <AssociationSet Name="FK_RouteNodes_Places" Association="Model.FK_RouteNodes_Places">
            <End Role="Place" EntitySet="Places" />
            <End Role="RouteNode" EntitySet="RouteNodes" />
          </AssociationSet>
          <AssociationSet Name="FK_RouteNodes_Routes" Association="Model.FK_RouteNodes_Routes">
            <End Role="Route" EntitySet="Routes" />
            <End Role="RouteNode" EntitySet="RouteNodes" />
          </AssociationSet>
          <EntitySet Name="LicenceIssueDetails" EntityType="Model.LicenceIssueDetail" />
          <EntitySet Name="LicenceIssueInspectionDetails" EntityType="Model.LicenceIssueInspectionDetail" />
          <EntitySet Name="LicenceIssueInspectionOutcomes" EntityType="Model.LicenceIssueInspectionOutcome" />
          <AssociationSet Name="FK_LicenceIssueDetails_ApplicationRequestDetails1" Association="Model.FK_LicenceIssueDetails_ApplicationRequestDetails1">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <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_LicenceIssueDetailsSearch" ReturnType="Collection(Model.Pr_LicenceIssueDetailsSearch_Result)">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowInstanceStatusID" Mode="In" Type="Int16" />
            <Parameter Name="WorkflowTaskSteps" Mode="In" Type="String" />
            <Parameter Name="IncludeActiveTasksOnly" Mode="In" Type="Boolean" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <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="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceStatusSummary" ReturnType="Collection(Model.Pr_LicenceStatusSummary_Result)">
            <Parameter Name="RegionID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationID" 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>
          <EntitySet Name="PrecheckDetailIncompleteReasons" EntityType="Model.PrecheckDetailIncompleteReason" />
          <AssociationSet Name="FK_PrecheckDetails_PrecheckDetailIncompleteReasons" Association="Model.FK_PrecheckDetails_PrecheckDetailIncompleteReasons">
            <End Role="PrecheckDetailIncompleteReason" EntitySet="PrecheckDetailIncompleteReasons" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </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)" />
          <FunctionImport Name="Pr_LicencesUpcomingExpiresGet" EntitySet="Licences" ReturnType="Collection(Model.Licence)" />
          <EntitySet Name="Vw_Vehicles" EntityType="Model.Vw_Vehicles" />
          <EntitySet Name="AssociationCleanupSummaries" EntityType="Model.AssociationCleanupSummary" />
          <AssociationSet Name="FK_AssociationCleanupSummary_Associations" Association="Model.FK_AssociationCleanupSummary_Associations">
            <End Role="Associations" EntitySet="Associations" />
            <End Role="AssociationCleanupSummary" EntitySet="AssociationCleanupSummaries" />
          </AssociationSet>
          <EntitySet Name="Vw_PurificationDetails" EntityType="Model.Vw_PurificationDetails" />
          <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" EntitySet="Vw_PurificationDetails" ReturnType="Collection(Model.Vw_PurificationDetails)" >
          <Parameter Name="AssociationID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationPrechecksPending" EntitySet="Vw_PurificationDetails" ReturnType="Collection(Model.Vw_PurificationDetails)" >
          <Parameter Name="AssociationID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationWorkflowsInProgress" EntitySet="Vw_PurificationDetails" ReturnType="Collection(Model.Vw_PurificationDetails)" >
          <Parameter Name="AssociationID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="PurificationDetails" EntityType="Model.PurificationDetail" />
          <EntitySet Name="PurificationDetailStatus" EntityType="Model.PurificationDetailStatu" />
          <AssociationSet Name="FK_PurificationDetails_PurificationDetailStatusID" Association="Model.FK_PurificationDetails_PurificationDetailStatusID">
            <End Role="PurificationDetailStatu" EntitySet="PurificationDetailStatus" />
            <End Role="PurificationDetail" EntitySet="PurificationDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_PurificationDetailRetry">
          <Parameter Name="PurificationDetailID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_AssociationsPurificationCount" EntityType="Model.Vw_AssociationsPurificationCount" />
          <EntitySet Name="Vw_Places" EntityType="Model.Vw_Places" />
          <AssociationSet Name="FK_PrecheckDetails_Modes" Association="Model.FK_PrecheckDetails_Modes">
            <End Role="Mode" EntitySet="Modes" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <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" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationSearch" ReturnType="Collection(Model.Pr_AssociationSearch_Result)">
            <Parameter Name="RegionID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationName" Mode="In" Type="String" />
          </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" />
          </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)" />
          <EntitySet Name="Settings" EntityType="Model.Setting" />
          <FunctionImport Name="Pr_RouteStartVerificationWorkflow">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationRequestDetailID" 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="ApplicationRequestDetailID" 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_LicenceRoutesGet" ReturnType="Collection(Model.Pr_LicenceRoutesGet_Result)">
          <Parameter Name="LicenceID" Mode="In" Type="Int64" />
          </FunctionImport>
          <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>
          <AssociationSet Name="FK_ApplicationRequestDetails_Regions" Association="Model.FK_ApplicationRequestDetails_Regions">
            <End Role="Regions" EntitySet="Regions" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_GazetteApplicationBypassExpiry" ReturnType="Collection(String)">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Comment" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_GazetteApplications" EntityType="Model.Vw_GazetteApplication" />
          <EntitySet Name="ApplicationAllowedExpiredLicences" EntityType="Model.ApplicationAllowedExpiredLicence" />
          <FunctionImport Name="Pr_ApplicationAdjudicationRestart">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="AdjudicationDetailID" 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" />
          </FunctionImport>
          <EntitySet Name="Vw_AdjudicationApplicantDetails" EntityType="Model.Vw_AdjudicationApplicantDetails" />
          <FunctionImport Name="Pr_ReceiptsGetUnassigned" EntitySet="ReceiptDetails" ReturnType="Collection(Model.ReceiptDetail)" />
          <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="ApplicationRequestDetailID" 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)" />
          <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)" />
          <FunctionImport Name="Pr_LicenceSearchRelatedApplications" EntitySet="Vw_ApplicationRequestDetails" ReturnType="Collection(Model.Vw_ApplicationRequestDetails)">
          <Parameter Name="LicenceID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceSearchRelatedIssues" EntitySet="Vw_OperatingLicenceDetails" ReturnType="Collection(Model.Vw_OperatingLicenceDetails)">
          <Parameter Name="LicenceID" 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" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleSearchLinkedLicences" EntitySet="Vw_OperatingLicenceDetails" ReturnType="Collection(Model.Vw_OperatingLicenceDetails)">
          <Parameter Name="VehicleID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceIssueWorkflowGet" ReturnType="Collection(Model.Pr_LicenceIssueWorkflowGet_Result)">
          <Parameter Name="LicenceID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceApplicationWorkflowGet" ReturnType="Collection(Model.Pr_LicenceApplicationWorkflowGet_Result)">
          <Parameter Name="LicenceID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceWorkflowDocumentsGet" ReturnType="Collection(Model.Pr_LicenceWorkflowDocumentsGet_Result)">
          <Parameter Name="LicenceID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_LicenceExceptionsCounts" ReturnType="Collection(Model.Pr_LicenceExceptionsCounts_Result)" />
          <FunctionImport Name="Pr_LicencesWithExceptionGet" ReturnType="Collection(Model.Pr_LicencesWithExceptionGet_Result)">
          <Parameter Name="Exception" Mode="In" Type="String" />
          </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="VehicleTypeID" Mode="In" Type="Int16" />
            <Parameter Name="CarryingCapacityID" Mode="In" Type="Int16" />
            <Parameter Name="YearOfManufacture" Mode="In" Type="String" />
            <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="SARSReasonIfNoTaxNumber" 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="UpdatedByID" 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)" />
          <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="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="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestAdjudicationBypass">
            <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_ApplicationRequestsStatusViewGet" ReturnType="Collection(Model.Pr_ApplicationRequestsStatusViewGet_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="ApplicationrequestDetailID" 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>
          <EntitySet Name="ApplicationAudits" EntityType="Model.ApplicationAudit" />
          <AssociationSet Name="FK_ApplicationAudits_ApplicationRequestDetails" Association="Model.FK_ApplicationAudits_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationAudit" EntitySet="ApplicationAudits" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationAdjudicationDecisionReverse" ReturnType="Collection(Int64)">
            <Parameter Name="AdjudicationDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationRequestDetailID" 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" />
          </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>
          <EntitySet Name="Vw_ApplicationRequestDetails_Receipts" EntityType="Model.Vw_ApplicationRequestDetails_Receipts" />
          <FunctionImport Name="Pr_ExceptionTasksGet" ReturnType="Collection(Model.Pr_ExceptionTasksGet_Result)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ApplicationAllowedNewLicences" EntityType="Model.ApplicationAllowedNewLicence" />
          <AssociationSet Name="FK_ApplicationAllowedNewLicences_Associations" Association="Model.FK_ApplicationAllowedNewLicences_Associations">
            <End Role="Associations" EntitySet="Associations" />
            <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>
          <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_SearchApplicationMode" ReturnType="Collection(Model.Pr_Purification_SearchApplicationMode_Result)">
          <Parameter Name="AppReferenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_SearchApplicationServiceTypes" ReturnType="Collection(Model.Pr_Purification_SearchApplicationServiceTypes_Result)">
          <Parameter Name="AppReferenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_SearchLicenceMode" ReturnType="Collection(Model.Pr_Purification_SearchLicenceMode_Result)">
          <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_SearchLicenceServiceTypes" ReturnType="Collection(Model.Pr_Purification_SearchLicenceServiceTypes_Result)">
          <Parameter Name="OperatingLicenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationApplicationModeUpdate" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="NewModeID" Mode="In" Type="Int16" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationApplicationServiceTypeAdd" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationRequestDetailID" 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_PurificationApplicationServiceTypeRemove" ReturnType="Collection(Int64)">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationServiceDetailID" Mode="In" Type="Int64" />
            <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_Purification_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="SARSReasonIfNoTaxNumber" 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_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" />
          </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>
          <EntitySet Name="ApplicationVehicleDetailsInBulks" EntityType="Model.ApplicationVehicleDetailsInBulk" />
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" Association="Model.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulks" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_CarryingCapacities" Association="Model.FK_ApplicationVehicleDetailsInBulk_CarryingCapacities">
            <End Role="CarryingCapacity" EntitySet="CarryingCapacities" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulks" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_VehicleMakes" Association="Model.FK_ApplicationVehicleDetailsInBulk_VehicleMakes">
            <End Role="VehicleMake" EntitySet="VehicleMakes" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulks" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetailsInBulk_VehicleTypes" Association="Model.FK_ApplicationVehicleDetailsInBulk_VehicleTypes">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="ApplicationVehicleDetailsInBulk" EntitySet="ApplicationVehicleDetailsInBulks" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationVehicleDetailsInBulkVerificationUpdate">
            <Parameter Name="ApplicationVehicleDetailsInBulkID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationRequestDetailID" 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="ApplicationRequestDetailID" 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="ApplicationReferenceNumber" Mode="In" Type="String" />
            <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="ModeID" 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="RegionID" Mode="In" Type="Int64" />
            <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="Pr_Purification_SearchApplicationRoutes" ReturnType="Collection(Model.Pr_Purification_SearchApplicationRoutes_Result)">
          <Parameter Name="AppReferenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_SearchLicenceRoutes" ReturnType="Collection(Model.Pr_Purification_SearchLicenceRoutes_Result)">
          <Parameter Name="lirReferenceNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationApplicationRouteAdd">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="NationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="BoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationApplicationRouteRemove">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationNationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="ApplicationBoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceRouteAdd">
            <Parameter Name="licenceIssueDetailIDD" Mode="In" Type="Int64" />
            <Parameter Name="NationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="BoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PurificationLicenceRouteRemove">
            <Parameter Name="LicenceID" Mode="In" Type="Int64" />
            <Parameter Name="LicenceNationalRouteNumber" Mode="In" Type="String" />
            <Parameter Name="LicenceBoardRouteNumber" Mode="In" Type="String" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <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="ApplicationRequestDetailID" 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>
          <AssociationSet Name="FK_ReceiptDetails_ApplicationRequestDetails" Association="Model.FK_ReceiptDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ReceiptDetail" EntitySet="ReceiptDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_GetApplicationTypesForConversion" ReturnType="Collection(Model.Pr_GetApplicationTypesForConversion_Result)">
          <Parameter Name="ApplicationNumber" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationConversionChangeType">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="NewApplicationRequestTypeID" Mode="In" Type="Int32" />
            <Parameter Name="Reason" Mode="In" Type="String" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetReceipt" ReturnType="Collection(Model.Pr_GetReceipt_Result)">
          <Parameter Name="ReceiptNumber" Mode="In" Type="String" />
          </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_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_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="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_ApplicationRequestCreateReceipt">
            <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>
          <FunctionImport Name="Pr_UpdateIdNumber">
            <Parameter Name="OldIDNumber" Mode="In" Type="String" />
            <Parameter Name="NewIDNumber" Mode="In" Type="String" />
          </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" />
          </FunctionImport>
          <FunctionImport Name="Pr_Purification_UpdateIdNumber">
            <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_Purification_ApplicationRouteChangeUpdate">
            <Parameter Name="ApplicationRouteDetailID" Mode="In" Type="Int64" />
            <Parameter Name="NewRouteChangeTypeID" Mode="In" Type="Int16" />
            <Parameter Name="Reason" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          </EntityContainer>
        <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" Unicode="false" FixedLength="false" />
          <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" />
          <NavigationProperty Name="ApplicationRequestTypeDocuments" Relationship="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="ApplicationRequestTypeDocuments" >
          </NavigationProperty>
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="PrecheckDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="ApplicationRequestDetail" />
          <Property Type="String" Name="ImageSrc" MaxLength="255" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Vw_ApplicationRequestDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="AssociationName" />
            <PropertyRef Name="IsCancellationRequired" />
            <PropertyRef Name="IsStillToBeAcquired" />
            <PropertyRef Name="ProxyName" />
            <PropertyRef Name="IsCancelled" />
            <PropertyRef Name="AdjudicationComment" />
            <PropertyRef Name="Region" />
            <PropertyRef Name="WorkflowStatus" />
            <PropertyRef Name="IsAdjudicationBypassed" />
            <PropertyRef Name="IsAssessorApprovalRequired" />
            <PropertyRef Name="IsSeniorManagerApprovalRequired" />
            <PropertyRef Name="HasNewRoute" />
            <PropertyRef Name="ExistingLicenceNumber" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Nullable="false" Type="Int64" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationNumber" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="RequestType" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="Cost" Precision="19" Scale="4" Type="Decimal" />
          <Property Name="SurnameOrCompanyName" MaxLength="511" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="FirstNames" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="TradeName" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="Member" MaxLength="511" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IDNumberOrBusinessRegistrationNo" MaxLength="20" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ApplicationRequestTypeID" Nullable="false" Type="Int16" />
          <Property Name="SourceApplicationID" Nullable="false" Type="Int16" />
          <Property Name="IsNewAssociationRequired" Nullable="false" Type="Boolean" />
          <Property Name="IsNewMemberRequired" Nullable="false" Type="Boolean" />
          <Property Name="IsNewRouteRequired" Nullable="false" Type="Boolean" />
          <Property Name="VehicleCount" Nullable="false" Type="Int32" />
          <Property Name="GazetteNumber" MaxLength="20" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="GazetteDetailID" Type="Int64" />
          <Property Name="MeetingDate" Precision="3" Type="DateTime" />
          <Property Name="AdjudicationDetailID" Type="Int64" />
          <Property Name="ChassisNumber" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="VehicleRegNumber" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsExceptionRequired" Nullable="false" Type="Boolean" />
          <Property Name="AdjudicationDecision" MaxLength="100" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsUpliftmentRequired" Nullable="false" Type="Boolean" />
          <Property Name="PaymentTypeID" Type="Int16" />
          <Property Name="VerifiedMemberID" Type="Int64" />
          <Property Name="IsAdjustmentRequired" Nullable="false" Type="Boolean" />
          <Property Name="ApplicationDescription" MaxLength="500" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsRenewal" Nullable="false" Type="Boolean" />
          <Property Name="EngineNumber" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AssociationName" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ModeID" Type="Int16" />
          <Property Name="TaxNumber" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsCancellationRequired" Nullable="false" Type="Boolean" />
          <Property Name="PrecheckDetailID" Type="Int64" />
          <Property Name="IsStillToBeAcquired" Nullable="false" Type="Boolean" />
          <Property Name="SeatedCapacity" Type="Int16" />
          <Property Name="VehicleMake" MaxLength="100" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ProxyName" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsCancelled" Nullable="false" Type="Boolean" />
          <Property Name="AdjudicationDecisionID" Type="Int16" />
          <Property Name="AdjudicationComment" Nullable="false" MaxLength="1" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AdjudicationException" Type="Boolean" />
          <Property Name="TelCell" MaxLength="14" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="TelPhone" MaxLength="14" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="ExistingLicenceHolder" MaxLength="511" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ExistingLicenceHolderID" MaxLength="20" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="Region" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ExistingVehicleChassisNumber" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ExistingVehicleRegNumber" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="WorkflowStatus" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsAdjudicationBypassed" Nullable="false" Type="Boolean" />
          <Property Name="AdjudicationRegionID" Type="Int16" />
          <Property Name="IsGazettingBypassed" Nullable="false" Type="Boolean" />
          <Property Name="IsAssessorApprovalRequired" Nullable="false" Type="Boolean" />
          <Property Name="IsSeniorManagerApprovalRequired" Nullable="false" Type="Boolean" />
          <Property Name="HasNewRoute" Nullable="false" Type="Boolean" />
          <Property Name="ExistingLicenceNumber" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <Property Name="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="ProxyIDNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="StandingCapacity" Type="Int16" />
          <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" />
        </EntityType>
        <ComplexType Name="Pr_ApplicationRequestDetailsRecentReceipts_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>
        <ComplexType Name="Pr_ApplicationRequestDetailsSearch_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="Task" Nullable="true" MaxLength="272" />
          <Property Type="String" Name="Member" Nullable="true" MaxLength="511" />
          <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="IsNewAssociationRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsNewMemberRequired" 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="DateTime" Name="MeetingDate" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="AdjudicationDetailID" Nullable="true" />
          <Property Type="Int32" Name="VehicleCount" Nullable="false" />
          <Property Type="Double" Name="InstanceStep" Nullable="false" />
          <Property Type="Double" Name="TaskStep" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
          <Property Type="Boolean" Name="IsExceptionRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsUpliftmentRequired" Nullable="false" />
          <Property Type="String" Name="ChassisNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VehicleRegNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="AdjudicationDecision" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="VerifiedMemberID" Nullable="true" />
          <Property Type="Boolean" Name="IsAdjustmentRequired" Nullable="false" />
          <Property Type="Int16" Name="PaymentTypeID" Nullable="true" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="500" />
          <Property Type="Boolean" Name="IsRenewal" Nullable="false" />
          <Property Type="Boolean" Name="IsCancellationRequired" Nullable="false" />
          <Property Type="String" Name="EngineNumber" Nullable="true" MaxLength="50" />
          <Property Type="Int16" Name="SeatedCapacity" Nullable="true" />
          <Property Type="String" Name="VehicleMake" Nullable="true" MaxLength="100" />
          <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" />
        </ComplexType>
        <EntityType Name="Vw_Associations">
          <Key>
            <PropertyRef Name="AssociationID" />
            <PropertyRef Name="Region" />
          </Key>
          <Property Type="Int64" Name="AssociationID" Nullable="false" />
          <Property Type="String" Name="AssociationName" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="AssociationNameAbbrev" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Status" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Mode" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Type" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Int32" Name="ActiveMemberCount" Nullable="false" />
          <Property Type="Boolean" Name="AssociationDataReceived" />
          <Property Type="Int32" Name="AssociationDataMemberCount" />
          <Property Type="Int32" Name="AssociationDataLicenceCount" />
          <Property Type="Int32" Name="TotalMemberVerificationsInProgress" />
          <Property Type="Int32" Name="TotalMembersVerified" />
          <Property Type="Int32" Name="TotalMembersCancelled" />
          <Property Type="Int32" Name="TotalLicenceVerificationsInProgress" />
          <Property Type="Int32" Name="TotalLicencesVerified" />
          <Property Type="Int32" Name="TotalLicencesCancelled" />
          <Property Type="Int32" Name="TotalMembersCleaned" />
          <Property Type="Int32" Name="TotalLicencesCleaned" />
          <Property Type="String" Name="Region" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
        </EntityType>
        <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" Nullable="false" Precision="3" />
          <Property Type="DateTime" Name="GazetteNoticeExpiryDate" Nullable="false" 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" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_GazetteDetails" FromRole="GazetteDetail" ToRole="ApplicationRequestDetail" >
          </NavigationProperty>
        </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" />
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_SourceApplications" FromRole="SourceApplication" ToRole="PrecheckDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_SourceApplications" FromRole="SourceApplication" ToRole="ApplicationRequestDetail" />
        </EntityType>
        <EntityType Name="Vw_ReceiptDetails">
          <Key>
            <PropertyRef Name="ReceiptDetailID" />
            <PropertyRef Name="AssociationName" />
            <PropertyRef Name="PaymentTypeID" />
          </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="ApplicationRequestDetailID" Type="Int64" />
        </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="HasBulkVehicleApplications" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ReceiptDetails_ApplicationRequestDetails" FromRole="ReceiptDetail" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="ApplicationRequestTypeDocuments">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
          </Key>
          <Property Type="Int32" Name="ApplicationRequestTypeDocumentID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestTypes" Relationship="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" FromRole="ApplicationRequestTypeDocuments" ToRole="ApplicationRequestType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentTypes" Relationship="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" FromRole="ApplicationRequestTypeDocuments" ToRole="DocumentTypes" />
          <Property Type="Int64" Name="WorkflowID" Nullable="false" />
          <Property Name="IsMandatory" Type="Boolean" Nullable="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" />
          <NavigationProperty Name="ApplicationRequestTypeDocuments" Relationship="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" FromRole="DocumentTypes" ToRole="ApplicationRequestTypeDocuments" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationDocuments" Relationship="Model.FK_ApplicationDocuments_DocumentTypes" FromRole="DocumentTypes" ToRole="ApplicationDocument" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="IsDocumentTemplate" Nullable="false" />
          <Property Type="Boolean" Name="IsDocumentTitleEditable" Nullable="false" />
          <NavigationProperty Name="LicenceIssueDocuments" Relationship="Model.FK_LicenceIssueDocuments_DocumentTypes" FromRole="DocumentTypes" ToRole="LicenceIssueDocument" />
        </EntityType>
        <Association Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
          <End Type="Model.ApplicationRequestType" Role="ApplicationRequestType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDocuments" Role="ApplicationRequestTypeDocuments" Multiplicity="*" />
        </Association>
        <Association Name="FK_ApplicationRequestTypeDocuments_DocumentTypes">
          <End Type="Model.DocumentTypes" Role="DocumentTypes" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDocuments" Role="ApplicationRequestTypeDocuments" Multiplicity="*" />
        </Association>
        <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_ApplicationRequestDetailsAwaitingAdjudication_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="IsNewAssociationRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsNewMemberRequired" 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="20" 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="String" Name="TelPhone" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TelCell" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TelFax" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Email" MaxLength="150" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="SARSIncomeTaxNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="SARSReasonIfNoTaxNumber" MaxLength="1000" 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" />
        </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="Int16" Name="ProvinceID" 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="Province" Relationship="Model.FK_AdjudicationDetails_Provinces" FromRole="AdjudicationDetails" ToRole="Provinces" />
          <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" Nullable="false" MaxLength="5" FixedLength="true" Unicode="false" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_AdjudicationDetails" FromRole="AdjudicationDetail" ToRole="ApplicationRequestDetail" />
          <Property Type="Int16" Name="AdjudicationTypeID" Nullable="false" />
          <NavigationProperty Name="Type" Relationship="Model.FK_AdjudicationDetails_AdjudicationType" FromRole="AdjudicationDetail" ToRole="AdjudicationType" />
          <Property Name="RegionID" Type="Int64" />
          <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" />
        </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="AdjudicationDetails" Relationship="Model.FK_AdjudicationDetails_Provinces" FromRole="Provinces" ToRole="AdjudicationDetails" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <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="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_Provinces" FromRole="Province" ToRole="ApplicationRequestDetail" />
        </EntityType>
        <Association Name="FK_AdjudicationDetails_Provinces">
          <End Type="Model.Province" Role="Provinces" Multiplicity="1" />
          <End Type="Model.AdjudicationDetail" Role="AdjudicationDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Provinces">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="AdjudicationDetails">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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>
          <Property Name="PaymentClerkUserID" Type="Int64" />
          <Property Name="RegistryClerkUserID" Type="Int64" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_Regions" FromRole="Regions" ToRole="ApplicationRequestDetail" />
          <Property Name="AdjudicationRegionID" 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" />
        </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" />
          <NavigationProperty Name="AssociationCleanupSummary" Relationship="Model.FK_AssociationCleanupSummary_Associations" FromRole="Associations" ToRole="AssociationCleanupSummary" />
          <Property Name="AdjudicationRegionID" Type="Int16" />
          <NavigationProperty Name="ApplicationAllowedNewLicences" Relationship="Model.FK_ApplicationAllowedNewLicences_Associations" FromRole="Associations" ToRole="ApplicationAllowedNewLicence" >
            <Documentation>
              <Summary>[ScriptIgnore]</Summary>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </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>
          <NavigationProperty Name="Licences" Relationship="Model.LicenceRoutes" FromRole="Route" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="RouteNodes" Relationship="Model.FK_RouteNodes_Routes" FromRole="Route" ToRole="RouteNode" />
          <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" />
        </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>
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_PaymentTypes" FromRole="PaymentType" ToRole="ApplicationRequestDetail" />
        </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" Nullable="false" />
          <Property Type="Int16" Name="PlaceStatusID" Nullable="false" />
          <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" />
          <NavigationProperty Name="RouteNodes" Relationship="Model.FK_RouteNodes_Places" FromRole="Place" ToRole="RouteNode" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="NeoID" />
        </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="100" 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="ApplicationRequestDetailID" 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>
          <Property Type="Int16" Name="ModeID" Nullable="false" />
          <NavigationProperty Name="Mode" Relationship="Model.FK_Licences_Modes" FromRole="Licence" ToRole="Mode" />
          <NavigationProperty Name="Routes" Relationship="Model.LicenceRoutes" FromRole="Licence" ToRole="Route" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </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="ApplicationVehicleDetailsInBulkID" Type="Int64" />
        </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="ApplicationDocument">
          <Key>
            <PropertyRef Name="ApplicationDocumentID" />
          </Key>
          <Property Type="Int64" Name="ApplicationDocumentID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="DocumentTypeID" Nullable="false" />
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_ApplicationDocuments_DocumentTypes" FromRole="ApplicationDocument" ToRole="DocumentTypes" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationDocuments_ApplicationRequestDetails" FromRole="ApplicationDocument" ToRole="ApplicationRequestDetail" />
          <Property Name="IsMandatory" Type="Boolean" Nullable="false" />
          <Property Name="DocumentID" Type="Int64" />
        </EntityType>
        <Association Name="FK_ApplicationDocuments_DocumentTypes">
          <End Type="Model.DocumentTypes" Role="DocumentTypes" Multiplicity="1" />
          <End Type="Model.ApplicationDocument" Role="ApplicationDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationDocument">
              <PropertyRef Name="DocumentTypeID" />
            </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" />
        </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="PrecheckDetail">
          <Key>
            <PropertyRef Name="PrecheckDetailID" />
          </Key>
          <Property Type="Int64" Name="PrecheckDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="String" Name="ApplicantName" Nullable="false" MaxLength="400" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="OlPermitNumber" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="IDNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ChassisNumber" MaxLength="50" FixedLength="false" Unicode="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" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestType" Relationship="Model.FK_PrecheckDetails_ApplicationRequestTypes" FromRole="PrecheckDetail" ToRole="ApplicationRequestType" />
          <NavigationProperty Name="SourceApplication" Relationship="Model.FK_PrecheckDetails_SourceApplications" FromRole="PrecheckDetail" ToRole="SourceApplication" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NltisXml" MaxLength="Max" FixedLength="false" Unicode="true" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Type="Boolean" Name="NltisXmlDataFound" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_PrecheckDetails" FromRole="PrecheckDetail" ToRole="ApplicationRequestDetail" />
          <Property Type="Boolean" Name="IsComplete" Nullable="false" />
          <Property Type="Int64" Name="AssociationID" Nullable="true" />
          <Property Type="Boolean" Name="IsRenewal" Nullable="false" />
          <Property Type="Boolean" Name="IsLateRenewal" Nullable="false" />
          <Property Type="Int16" Name="PrecheckDetailIncompleteReasonID" />
          <Property Type="String" Name="ContactEmail" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ContactCell" MaxLength="20" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Reason" Relationship="Model.FK_PrecheckDetails_PrecheckDetailIncompleteReasons" FromRole="PrecheckDetail" ToRole="PrecheckDetailIncompleteReason" />
          <Property Type="Int16" Name="ModeID" />
          <NavigationProperty Name="Mode" Relationship="Model.FK_PrecheckDetails_Modes" FromRole="PrecheckDetail" ToRole="Mode" />
          <Property Name="IsLtpsConversion" Type="Boolean" Nullable="false" />
          <Property Name="NumberOfVehiclesRequired" Type="Int64" />
          <Property Name="ServiceTypeID" Type="Int16" />
        </EntityType>
        <Association Name="FK_PrecheckDetails_ApplicationRequestTypes">
          <End Type="Model.ApplicationRequestType" Role="ApplicationRequestType" Multiplicity="1" />
          <End Type="Model.PrecheckDetail" Role="PrecheckDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestType">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="PrecheckDetail">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_PrecheckDetails_SourceApplications">
          <End Type="Model.SourceApplication" Role="SourceApplication" Multiplicity="1" />
          <End Type="Model.PrecheckDetail" Role="PrecheckDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="SourceApplication">
              <PropertyRef Name="SourceApplicationID" />
            </Principal>
            <Dependent Role="PrecheckDetail">
              <PropertyRef Name="SourceApplicationID" />
            </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="Mode">
          <Key>
            <PropertyRef Name="ModeID" />
          </Key>
          <Property Type="Int16" Name="ModeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int64" Name="OlasServiceTypeID" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Modes" FromRole="Mode" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_Modes" FromRole="Mode" ToRole="PrecheckDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="ExceptionHandlerUserID" Type="Int64" />
        </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" />
        </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="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="LicenceServiceDetails" Relationship="Model.FK_LicenceServiceDetails_ServiceTypes" FromRole="ServiceType" ToRole="LicenceServiceDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </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>
          <NavigationProperty Name="ApplicationVehicleDetailsInBulks" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_VehicleMakes" FromRole="VehicleMake" ToRole="ApplicationVehicleDetailsInBulk" />
        </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" />
          <NavigationProperty Name="ApplicationVehicleDetailsInBulks" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_VehicleTypes" FromRole="VehicleType" ToRole="ApplicationVehicleDetailsInBulk" />
        </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" />
          <NavigationProperty Name="RouteNodes" Relationship="Model.FK_RouteNodes_WaypointTypes" FromRole="WaypointType" ToRole="RouteNode" />
        </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="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_PrecheckDetailsIncomplete">
          <Key>
            <PropertyRef Name="ApplicantName" />
            <PropertyRef Name="OlPermitNumber" />
            <PropertyRef Name="IDNumber" />
            <PropertyRef Name="ChassisNumber" />
            <PropertyRef Name="VehicleRegistrationNumber" />
            <PropertyRef Name="ApplicationRequestTypeID" />
            <PropertyRef Name="PrecheckDetailID" />
            <PropertyRef Name="SourceApplicationID" />
            <PropertyRef Name="CreatedDate" />
          </Key>
          <Property Type="String" Name="ApplicantName" Nullable="false" MaxLength="400" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="OlPermitNumber" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="IDNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ChassisNumber" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int64" Name="PrecheckDetailID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="String" Name="ReasonIncomplete" MaxLength="1" FixedLength="false" Unicode="false" Nullable="false" />
        </EntityType>
        <Association Name="FK_Licences_Modes">
          <End Type="Model.Mode" Role="Mode" Multiplicity="1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Mode">
              <PropertyRef Name="ModeID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="ModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_OperatingLicenceDetails">
          <Key>
            <PropertyRef Name="LicenceID" />
            <PropertyRef Name="LicenceStatus" />
            <PropertyRef Name="LicenceStatusID" />
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="AssociationName" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="OperatingLicenceNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ApplicationNumber" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NameOnLicence" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddress" MaxLength="405" 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="57" 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" />
        </EntityType>
        <Association Name="AssociationRoutes">
          <End Type="Model.Associations" Role="Associations" Multiplicity="*" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
        </Association>
        <EntityType Name="ApplicationRequestDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="WorkflowInstanceID" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="Int64" Name="GazetteDetailID" />
          <Property Type="Int64" Name="AdjudicationDetailID" />
          <Property Type="Int64" Name="PrecheckDetailID" />
          <Property Type="Int16" Name="PaymentTypeID" />
          <Property Type="Boolean" Name="IsNewAssociationRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsNewMemberRequired" 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="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="AdjudicationDetail" Relationship="Model.FK_ApplicationRequestDetails_AdjudicationDetails" FromRole="ApplicationRequestDetail" ToRole="AdjudicationDetail" />
          <NavigationProperty Name="ApplicationDocuments" Relationship="Model.FK_ApplicationDocuments_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationDocument" />
          <NavigationProperty Name="ApplicationRequestType" Relationship="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes" FromRole="ApplicationRequestDetail" ToRole="ApplicationRequestType" />
          <NavigationProperty Name="GazetteDetail" Relationship="Model.FK_ApplicationRequestDetails_GazetteDetails" FromRole="ApplicationRequestDetail" ToRole="GazetteDetail" />
          <NavigationProperty Name="PaymentType" Relationship="Model.FK_ApplicationRequestDetails_PaymentTypes" FromRole="ApplicationRequestDetail" ToRole="PaymentType" />
          <NavigationProperty Name="PrecheckDetail" Relationship="Model.FK_ApplicationRequestDetails_PrecheckDetails" FromRole="ApplicationRequestDetail" ToRole="PrecheckDetail" />
          <NavigationProperty Name="Province" Relationship="Model.FK_ApplicationRequestDetails_Provinces" FromRole="ApplicationRequestDetail" ToRole="Province" />
          <NavigationProperty Name="SourceApplication" Relationship="Model.FK_ApplicationRequestDetails_SourceApplications" FromRole="ApplicationRequestDetail" ToRole="SourceApplication" />
          <NavigationProperty Name="LicenceIssueDetails" Relationship="Model.FK_LicenceIssueDetails_ApplicationRequestDetails1" FromRole="ApplicationRequestDetail" ToRole="LicenceIssueDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="IsAdjustmentRequired" Nullable="false" />
          <Property Type="String" Name="Description" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsRenewal" Nullable="false" />
          <Property Type="Boolean" Name="IsLateRenewal" Nullable="false" />
          <Property Type="Boolean" Name="IsCancellationRequired" Nullable="false" />
          <Property Name="RegionID" Type="Int64" />
          <NavigationProperty Name="Region" Relationship="Model.FK_ApplicationRequestDetails_Regions" FromRole="ApplicationRequestDetail" ToRole="Regions" />
          <Property Name="AdjudicationDecisionID" Type="Int16" />
          <Property Name="AdjudicationLicenceDurationMonths" Type="Int32" />
          <Property Name="AdjudicationDecisionDate" Type="DateTime" Precision="3" />
          <Property Name="AdjudicationException" Type="Boolean" />
          <Property Name="AdjudicationLicenceExpiryDate" Type="DateTime" Precision="0" />
          <Property Name="IsAdjudicationBypassed" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationRegionID" Type="Int16" />
          <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" />
          <NavigationProperty Name="ApplicationAudits" Relationship="Model.FK_ApplicationAudits_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationAudit" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <Property Name="IsBulkVehicleApplication" Type="Boolean" Nullable="false" />
          <Property Name="VehicleCount" Type="Int32" Nullable="false" />
          <NavigationProperty Name="ApplicationVehicleDetailsInBulks" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationVehicleDetailsInBulk" />
          <Property Name="IsBulkVehicleVerificationRequired" Type="Boolean" />
          <Property Name="AdjudicationCount" Type="Int32" />
          <NavigationProperty Name="ReceiptDetails" Relationship="Model.FK_ReceiptDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ReceiptDetail" />
          <Property Name="IsReceiptRequired" Type="Boolean" />
          <Property Name="ForceGazetting" Type="Boolean" />
          <Property Name="AdjudicationTypeID" Type="Int16" />
        </EntityType>
        <Association Name="FK_ApplicationRequestDetails_AdjudicationDetails">
          <End Type="Model.AdjudicationDetail" Role="AdjudicationDetail" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDetail">
              <PropertyRef Name="AdjudicationDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="AdjudicationDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationDocuments_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationDocument" Role="ApplicationDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationDocument">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_ApplicationRequestTypes">
          <End Type="Model.ApplicationRequestType" Role="ApplicationRequestType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestType">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_GazetteDetails">
          <End Type="Model.GazetteDetail" Role="GazetteDetail" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="GazetteDetail">
              <PropertyRef Name="GazetteDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="GazetteDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_PaymentTypes">
          <End Type="Model.PaymentType" Role="PaymentType" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PaymentType">
              <PropertyRef Name="PaymentTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="PaymentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_PrecheckDetails">
          <End Type="Model.PrecheckDetail" Role="PrecheckDetail" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PrecheckDetail">
              <PropertyRef Name="PrecheckDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="PrecheckDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_Provinces">
          <End Type="Model.Province" Role="Province" Multiplicity="1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestDetails_SourceApplications">
          <End Type="Model.SourceApplication" Role="SourceApplication" Multiplicity="1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="SourceApplication">
              <PropertyRef Name="SourceApplicationID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="SourceApplicationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="LicenceRoutes">
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <End Type="Model.Route" Role="Route" Multiplicity="*" />
        </Association>
        <EntityType Name="RouteNode">
          <Key>
            <PropertyRef Name="RouteNodeID" />
          </Key>
          <Property Type="Int64" Name="RouteNodeID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="RouteID" Nullable="false" />
          <Property Type="Int64" Name="PlaceID" Nullable="false" />
          <Property Type="Int16" Name="WaypointTypeID" Nullable="false" />
          <Property Type="Int32" Name="Sequence" Nullable="false" />
          <NavigationProperty Name="WaypointType" Relationship="Model.FK_RouteNodes_WaypointTypes" FromRole="RouteNode" ToRole="WaypointType" />
          <NavigationProperty Name="Place" Relationship="Model.FK_RouteNodes_Places" FromRole="RouteNode" ToRole="Place" />
          <NavigationProperty Name="Route" Relationship="Model.FK_RouteNodes_Routes" FromRole="RouteNode" ToRole="Route" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="DistanceFromOrigin" Type="Double" />
        </EntityType>
        <Association Name="FK_RouteNodes_WaypointTypes">
          <End Type="Model.WaypointType" Role="WaypointType" Multiplicity="1" />
          <End Type="Model.RouteNode" Role="RouteNode" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="WaypointType">
              <PropertyRef Name="WaypointTypeID" />
            </Principal>
            <Dependent Role="RouteNode">
              <PropertyRef Name="WaypointTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_RouteNodes_Places">
          <End Type="Model.Place" Role="Place" Multiplicity="1" />
          <End Type="Model.RouteNode" Role="RouteNode" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Place">
              <PropertyRef Name="PlaceID" />
            </Principal>
            <Dependent Role="RouteNode">
              <PropertyRef Name="PlaceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_RouteNodes_Routes">
          <End Type="Model.Route" Role="Route" Multiplicity="1" />
          <End Type="Model.RouteNode" Role="RouteNode" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Route">
              <PropertyRef Name="RouteID" />
            </Principal>
            <Dependent Role="RouteNode">
              <PropertyRef Name="RouteID" />
            </Dependent>
          </ReferentialConstraint>
        </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="ApplicationRequestDetailID" Nullable="false" />
          <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="Application" Relationship="Model.FK_LicenceIssueDetails_ApplicationRequestDetails1" FromRole="LicenceIssueDetail" ToRole="ApplicationRequestDetail" />
          <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="ApplicationVehicleDetailsInBulkID" Type="Int64" />
        </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_ApplicationRequestDetails1">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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="ApplicationRequestDetailID" 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="10" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="ApplicationReferenceNumber" Nullable="false" MaxLength="10" 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="500" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="CertificateNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="IsStillToBeAcquired" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="MemberTaxReference" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="MemberIDNumber" Type="Int64" />
          <Property Name="MemberCell" Type="String" MaxLength="14" 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" />
        </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>
        <EntityType Name="PrecheckDetailIncompleteReason">
          <Key>
            <PropertyRef Name="PrecheckDetailIncompleteReasonID" />
          </Key>
          <Property Type="Int16" Name="PrecheckDetailIncompleteReasonID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_PrecheckDetailIncompleteReasons" FromRole="PrecheckDetailIncompleteReason" ToRole="PrecheckDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_PrecheckDetails_PrecheckDetailIncompleteReasons">
          <End Type="Model.PrecheckDetailIncompleteReason" Role="PrecheckDetailIncompleteReason" Multiplicity="0..1" />
          <End Type="Model.PrecheckDetail" Role="PrecheckDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PrecheckDetailIncompleteReason">
              <PropertyRef Name="PrecheckDetailIncompleteReasonID" />
            </Principal>
            <Dependent Role="PrecheckDetail">
              <PropertyRef Name="PrecheckDetailIncompleteReasonID" />
            </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="Make" />
            <PropertyRef Name="Type" />
            <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" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Type" Nullable="false" 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" />
        </EntityType>
        <EntityType Name="AssociationCleanupSummary">
          <Key>
            <PropertyRef Name="AssociationID" />
          </Key>
          <Property Type="Int64" Name="AssociationID" Nullable="false" />
          <Property Type="Boolean" Name="AssociationDataReceived" Nullable="false" />
          <Property Type="Int32" Name="AssociationDataMemberCount" Nullable="false" />
          <Property Type="Int32" Name="AssociationDataLicenceCount" Nullable="false" />
          <Property Type="Int32" Name="TotalMemberVerificationsInProgress" Nullable="false" />
          <Property Type="Int32" Name="TotalMembersVerified" Nullable="false" />
          <Property Type="Int32" Name="TotalMembersCancelled" Nullable="false" />
          <Property Type="Int32" Name="TotalLicenceVerificationsInProgress" Nullable="false" />
          <Property Type="Int32" Name="TotalLicencesVerified" Nullable="false" />
          <Property Type="Int32" Name="TotalLicencesCancelled" Nullable="false" />
          <NavigationProperty Name="Association" Relationship="Model.FK_AssociationCleanupSummary_Associations" FromRole="AssociationCleanupSummary" ToRole="Associations" />
          <Property Type="Int32" Name="TotalMembersCleaned" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="Int32" Name="TotalLicencesCleaned" annotation:StoreGeneratedPattern="Computed" />
        </EntityType>
        <Association Name="FK_AssociationCleanupSummary_Associations">
          <End Type="Model.Associations" Role="Associations" Multiplicity="1" />
          <End Type="Model.AssociationCleanupSummary" Role="AssociationCleanupSummary" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="Associations">
              <PropertyRef Name="AssociationID" />
            </Principal>
            <Dependent Role="AssociationCleanupSummary">
              <PropertyRef Name="AssociationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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>
        <EntityType Name="Vw_PurificationDetails">
          <Key>
            <PropertyRef Name="PurificationDetailID" />
          </Key>
          <Property Type="Int64" Name="PurificationDetailID" Nullable="false" />
          <Property Type="Int16" Name="PurificationDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Status" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int32" Name="WorkflowID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="false" />
          <Property Type="Int32" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" />
          <Property Type="Int64" Name="PreCheckDetailID" />
          <Property Type="String" Name="ApplicantName" MaxLength="400" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="IDNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" />
          <Property Type="String" Name="Comments" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="NeoID" Nullable="false" />
          <Property Type="String" Name="NeoOLPermitNumber" MaxLength="500" FixedLength="false" Unicode="false" />
        </EntityType>
        <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="PurificationDetail">
          <Key>
            <PropertyRef Name="PurificationDetailID" />
          </Key>
          <Property Type="Int64" Name="PurificationDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="PurificationDetailStatusID" Nullable="false" />
          <Property Type="Int64" Name="NeoID" Nullable="false" />
          <Property Type="Int64" Name="PreCheckDetailID" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" />
          <Property Type="String" Name="Comments" MaxLength="2000" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="PurificationDetailStatu" Relationship="Model.FK_PurificationDetails_PurificationDetailStatusID" FromRole="PurificationDetail" ToRole="PurificationDetailStatu" />
        </EntityType>
        <EntityType Name="PurificationDetailStatu">
          <Key>
            <PropertyRef Name="PurificationDetailStatusID" />
          </Key>
          <Property Type="Int16" Name="PurificationDetailStatusID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="PurificationDetails" Relationship="Model.FK_PurificationDetails_PurificationDetailStatusID" FromRole="PurificationDetailStatu" ToRole="PurificationDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_PurificationDetails_PurificationDetailStatusID">
          <End Type="Model.PurificationDetailStatu" Role="PurificationDetailStatu" Multiplicity="1" />
          <End Type="Model.PurificationDetail" Role="PurificationDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PurificationDetailStatu">
              <PropertyRef Name="PurificationDetailStatusID" />
            </Principal>
            <Dependent Role="PurificationDetail">
              <PropertyRef Name="PurificationDetailStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_AssociationsPurificationCount">
          <Key>
            <PropertyRef Name="AssociationID" />
            <PropertyRef Name="AssociationName" />
          </Key>
          <Property Type="Int64" Name="AssociationID" Nullable="false" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="AssociationDataReceived" />
          <Property Type="Int32" Name="AssociationDataMemberCount" />
          <Property Type="Int32" Name="AssociationDataLicenceCount" />
          <Property Type="Int32" Name="TotalMemberVerificationsInProgress" />
          <Property Type="Int32" Name="TotalMembersVerified" />
          <Property Type="Int32" Name="TotalMembersCancelled" />
          <Property Type="Int32" Name="TotalLicenceVerificationsInProgress" />
          <Property Type="Int32" Name="TotalLicencesVerified" />
          <Property Type="Int32" Name="TotalLicencesCancelled" />
          <Property Type="Int32" Name="TotalMembersCleaned" />
          <Property Type="Int32" Name="TotalLicencesCleaned" />
          <Property Name="NeoID" Type="Int64" />
        </EntityType>
        <EntityType Name="Vw_Places">
          <Key>
            <PropertyRef Name="PlaceID" />
            <PropertyRef Name="Description" />
            <PropertyRef Name="PlaceTypeID" />
            <PropertyRef Name="PlaceStatusID" />
            <PropertyRef Name="PlaceType" />
          </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" Nullable="false" />
          <Property Type="Int16" Name="PlaceStatusID" Nullable="false" />
          <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>
        <Association Name="FK_PrecheckDetails_Modes">
          <End Type="Model.Mode" Role="Mode" Multiplicity="0..1" />
          <End Type="Model.PrecheckDetail" Role="PrecheckDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Mode">
              <PropertyRef Name="ModeID" />
            </Principal>
            <Dependent Role="PrecheckDetail">
              <PropertyRef Name="ModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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="SARSReasonIfNoTaxNumber" Nullable="true" MaxLength="1000" />
          <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" />
        </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="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="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="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="true" MaxLength="50" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <Property Type="DateTime" Name="UpliftmentReminderSmsSentDate" Nullable="true" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceIssueDetailsSearch_Result">
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedLicenceID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedVehicleID" Nullable="true" />
          <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="511" />
          <Property Type="String" Name="VehicleRegNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="500" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="Task" Nullable="true" MaxLength="272" />
          <Property Type="Double" Name="InstanceStep" Nullable="false" />
          <Property Type="Double" Name="TaskStep" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceTaskID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
        </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" />
        </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="255" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" />
          <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="RouteDescription" />
            <PropertyRef Name="ReferenceNumber" />
            <PropertyRef Name="WorkflowInstanceStatus" />
            <PropertyRef Name="EntityID" />
            <PropertyRef Name="ItemID" />
            <PropertyRef Name="IsAssessorVerificationRequired" />
          </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="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RouteDescription" Nullable="false" 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="10" 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" />
        </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>
        <Association Name="FK_ApplicationRequestDetails_Regions">
          <End Type="Model.Region" Role="Regions" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Regions">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_GazetteApplication">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="IsGazettingBypassed" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationNumber" Type="String" Nullable="false" MaxLength="10" 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="AdjudicationDetailID" Type="Int64" />
          <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" />
        </EntityType>
        <EntityType Name="ApplicationAllowedExpiredLicence">
          <Key>
            <PropertyRef Name="OperatingLicenceNumber" />
          </Key>
          <Property Name="OperatingLicenceNumber" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IssueNumber" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Precision="3" />
          <Property Name="CreatedByID" Type="Int64" />
          <Property Name="CreatedReason" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="UpdatedByID" Type="Int64" />
          <Property Name="IsUsed" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationSourceID" Type="Int64" />
        </EntityType>
        <EntityType Name="Vw_AdjudicationApplicantDetails">
          <Key>
            <PropertyRef Name="AdjudicationDetailID" />
            <PropertyRef Name="ApplicationNumber" />
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="HasObjections" />
          </Key>
          <Property Name="AdjudicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationNumber" Type="String" Nullable="false" MaxLength="10" 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="ApplicationRequestDetailID" 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="AdjudicationException" Type="Boolean" />
          <Property Name="HasObjections" Type="String" Nullable="false" MaxLength="3" FixedLength="false" Unicode="false" />
        </EntityType>
        <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="20" />
          <Property Type="DateTime" Name="DateCreated" Nullable="false" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_LicencesLinkedToActiveOLASGet_Result">
          <Property Type="String" Name="LegitimateOl" Nullable="true" MaxLength="20" />
          <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="20" />
          <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="Int64" 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="ApplicationVehicleDetailsInBulks" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_CarryingCapacities" FromRole="CarryingCapacity" ToRole="ApplicationVehicleDetailsInBulk" />
        </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="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="ExpiredNotificationSmsSentDate" Nullable="true" Precision="23" />
          <Property Type="DateTime" Name="UpliftmentReminderSmsSentDate" Nullable="true" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_ApplicationRequestsStatusViewGet_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>
        <EntityType Name="ApplicationAudit">
          <Key>
            <PropertyRef Name="ApplicationAuditID" />
          </Key>
          <Property Name="ApplicationAuditID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationAuditTypeID" Type="Int16" Nullable="false" />
          <Property Name="AuditedUserID" Type="Int64" Nullable="false" />
          <Property Name="AssignedToID" Type="Int64" Nullable="false" />
          <Property Name="AssignedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="AuditCompletedDate" Type="DateTime" Precision="3" />
          <Property Name="AuditPassed" Type="Boolean" />
          <Property Name="AuditComments" Type="String" MaxLength="2000" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationAudits_ApplicationRequestDetails" FromRole="ApplicationAudit" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ApplicationAudits_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationAudit" Role="ApplicationAudit" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationAudit">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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="ApplicationRequestDetailID" Nullable="false" />
          <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="String" Name="Member" Nullable="true" 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="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <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="String" Name="AppOrLir" Nullable="true" MaxLength="3" />
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="true" />
          <Property Type="Boolean" Name="IsBulkVehicleApplication" Nullable="true" />
          <Property Type="Int64" Name="VehicleCount" Nullable="true" />
          <Property Type="Int16" Name="Otc" Nullable="true" />
          <Property Type="Int64" Name="LicenceUpliftmentExtensionRequestDetailID" Nullable="true" />
        </ComplexType>
        <EntityType Name="Vw_ApplicationRequestDetails_Receipts">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="ApplicationNumber" />
            <PropertyRef Name="RequestType" />
            <PropertyRef Name="VehicleCount" />
            <PropertyRef Name="IsCancelled" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationNumber" Type="String" Nullable="false" MaxLength="10" 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="Member" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ReceiptNumber" Type="String" MaxLength="53" FixedLength="false" Unicode="false" />
          <Property Name="ReceiptDetailID" Type="Int64" />
          <Property Name="PaymentTypeID" Type="Int16" />
          <Property Name="VehicleCount" Type="Int32" Nullable="false" />
          <Property Name="ChassisNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="EngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleRegNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationDescription" Type="String" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="AdjudicationCount" Type="Int16" />
        </EntityType>
        <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>
        <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" />
          <NavigationProperty Name="Association" Relationship="Model.FK_ApplicationAllowedNewLicences_Associations" FromRole="ApplicationAllowedNewLicence" ToRole="Associations" ></NavigationProperty>
          <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" />
        </EntityType>
        <Association Name="FK_ApplicationAllowedNewLicences_Associations">
          <End Type="Model.Associations" Role="Associations" Multiplicity="1" />
          <End Type="Model.ApplicationAllowedNewLicence" Role="ApplicationAllowedNewLicence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Associations">
              <PropertyRef Name="AssociationID" />
            </Principal>
            <Dependent Role="ApplicationAllowedNewLicence">
              <PropertyRef Name="AssociationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_Purification_SearchApplicationMode_Result">
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="ModeID" Nullable="true" />
          <Property Type="String" Name="ModeDescription" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="LongDistanceReason" Nullable="true" MaxLength="2000" />
        </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_SearchLicenceMode_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="Int16" Name="ModeID" Nullable="false" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_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_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>
        <EntityType Name="ApplicationVehicleDetailsInBulk">
          <Key>
            <PropertyRef Name="ApplicationVehicleDetailsInBulkID" />
          </Key>
          <Property Name="ApplicationVehicleDetailsInBulkID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="IsStillToBeAcquired" Type="Boolean" Nullable="false" />
          <Property Name="VehicleMakeID" Type="Int16" />
          <Property Name="VehicleMakeDescription" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="VehicleTypeID" Type="Int16" />
          <Property Name="VIN" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="EngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="YearOfManufacture" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="VehicleRegistrationNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="SeatedCapacity" Type="Int16" />
          <Property Name="StandingCapacity" Type="Int16" />
          <Property Name="GrossMass" Type="Int64" />
          <Property Name="VerifiedVehicleID" Type="Int64" />
          <Property Name="CarryingCapacityID" Type="Int64" />
          <Property Name="CorDocID" Type="Int64" />
          <Property Name="LogbookDocID" Type="Int64" />
          <Property Name="PdpDocID" Type="Int64" />
          <Property Name="VehicleNumber" Type="Int32" Nullable="false" />
          <Property Name="IsVerified" Type="Boolean" Nullable="false" />
          <Property Name="IsException" Type="Boolean" Nullable="false" />
          <Property Name="ExceptionDetails" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" FromRole="ApplicationVehicleDetailsInBulk" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="CarryingCapacity" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_CarryingCapacities" FromRole="ApplicationVehicleDetailsInBulk" ToRole="CarryingCapacity" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleMake" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_VehicleMakes" FromRole="ApplicationVehicleDetailsInBulk" ToRole="VehicleMake" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleType" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_VehicleTypes" FromRole="ApplicationVehicleDetailsInBulk" ToRole="VehicleType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="VerifiedByID" Type="Int64" />
          <Property Name="VerifiedDate" Type="DateTime" Precision="3" />
        </EntityType>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationVehicleDetailsInBulk" Role="ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_CarryingCapacities">
          <End Type="Model.CarryingCapacity" Role="CarryingCapacity" Multiplicity="0..1" />
          <End Type="Model.ApplicationVehicleDetailsInBulk" Role="ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CarryingCapacity">
              <PropertyRef Name="CarryingCapacityID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="CarryingCapacityID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_VehicleMakes">
          <End Type="Model.VehicleMake" Role="VehicleMake" Multiplicity="0..1" />
          <End Type="Model.ApplicationVehicleDetailsInBulk" Role="ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMake">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetailsInBulk_VehicleTypes">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="0..1" />
          <End Type="Model.ApplicationVehicleDetailsInBulk" Role="ApplicationVehicleDetailsInBulk" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetailsInBulk">
              <PropertyRef Name="VehicleTypeID" />
            </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_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="String" Name="RouteType" Nullable="false" MaxLength="50" />
        </ComplexType>
        <ComplexType Name="Pr_LicenceIssueDetaisReport_Result">
          <Property Type="Int16" Name="ModeID" Nullable="true" />
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="Int32" Name="ShowMeteredTaxiAnnexure" Nullable="false" />
          <Property Type="Int32" Name="ShowEHailingAnnexure" Nullable="false" />
          <Property Type="Int32" Name="ShowMidiBusAnnexure" Nullable="false" />
          <Property Type="Int32" Name="ShowStaffServiceAnnexure" Nullable="false" />
          <Property Type="Int32" Name="ShowScholarAnnexure" Nullable="false" />
          <Property Type="Int32" Name="ShowBusAnnexure" Nullable="false" />
          <Property Type="Int32" Name="ShowMinibusAnnexure" Nullable="false" />
        </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="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="20" />
          <Property Type="String" Name="CertificateNumber" Nullable="true" MaxLength="100" />
          <Property Type="DateTime" Name="DateOfIssue" Nullable="true" Precision="23" />
          <Property Type="Int64" Name="LicenceIssueDetailID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedLicenceID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedVehicleID" Nullable="true" />
          <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="VehicleRegNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="ApplicationDescription" Nullable="true" MaxLength="500" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="String" Name="MemberFullName" Nullable="false" MaxLength="511" />
          <Property Type="String" Name="MemberTaxReference" Nullable="true" MaxLength="20" />
          <Property Type="Int64" Name="MemberIDNumber" Nullable="true" />
          <Property Type="String" Name="MemberCell" Nullable="true" MaxLength="14" />
          <Property Type="String" Name="Association" Nullable="false" MaxLength="255" />
          <Property Type="String" Name="VehicleVIN" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VehicleEngineNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VehicleRegistrationNumber" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="VehicleMake" Nullable="true" MaxLength="100" />
          <Property Type="Int32" Name="VehicleSeatedCapacity" Nullable="true" />
          <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="Int32" Name="VehicleStandingCapacity" Nullable="true" />
          </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>
        <ComplexType Name="Pr_Purification_SearchApplicationRoutes_Result">
          <Property Type="Int64" Name="ApplicationRouteDetailID" Nullable="false" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRouteDetailStatusID" 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="255" />
          <Property Type="String" Name="RouteDescription" Nullable="false" />
          <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" />
        </ComplexType>
        <ComplexType Name="Pr_Purification_SearchLicenceRoutes_Result">
          <Property Type="String" Name="NationalRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="BoardRouteNumber" Nullable="true" MaxLength="100" />
          <Property Type="Int64" Name="licenceID" Nullable="false" />
          </ComplexType>
        <EntityType Name="Vw_LicenceUpliftmentExtensionRequestDetails">
          <Key>
            <PropertyRef Name="LicenceUpliftmentExtensionRequestDetailID" />
            <PropertyRef Name="VerifiedLicenceID" />
            <PropertyRef Name="LicenceUpliftmentReferenceNumber" />
            <PropertyRef Name="MemberFullName" />
          </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="10" 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="20" FixedLength="false" Unicode="false" />
          <Property Name="MemberIDNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="MemberCell" Type="String" MaxLength="14" 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>
        <Association Name="FK_ReceiptDetails_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="0..1" />
          <End Type="Model.ReceiptDetail" Role="ReceiptDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ReceiptDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_GetApplicationTypesForConversion_Result">
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="255" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="ReferenceNumber" Nullable="false" MaxLength="10" />
        </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="10" />
          <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="ApplicationRequestDetailID" Nullable="true" />
          </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_ApplicationRequestDetailsAwaitingReceipts_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="IsNewAssociationRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsNewMemberRequired" 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>
        <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>
        </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="ApplicationRequestTypes">
            <EntityTypeMapping TypeName="Model.ApplicationRequestType">
              <MappingFragment StoreEntitySet="ApplicationRequestTypes">
                <ScalarProperty Name="ImageSrc" ColumnName="ImageSrc" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_ApplicationRequestDetails">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationRequestDetails">
              <MappingFragment StoreEntitySet="Vw_ApplicationRequestDetails">
                <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="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="ProxyIDNumber" ColumnName="ProxyIDNumber" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="ExistingLicenceNumber" ColumnName="ExistingLicenceNumber" />
                <ScalarProperty Name="HasNewRoute" ColumnName="HasNewRoute" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="ExistingVehicleRegNumber" ColumnName="ExistingVehicleRegNumber" />
                <ScalarProperty Name="ExistingVehicleChassisNumber" ColumnName="ExistingVehicleChassisNumber" />
                <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="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="AdjudicationComment" ColumnName="AdjudicationComment" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="ProxyName" ColumnName="ProxyName" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="AdjudicationDecision" ColumnName="AdjudicationDecision" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="VehicleCount" ColumnName="VehicleCount" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="IsNewMemberRequired" ColumnName="IsNewMemberRequired" />
                <ScalarProperty Name="IsNewAssociationRequired" ColumnName="IsNewAssociationRequired" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestDetailsAwaitingReceipts" FunctionName="Model.Store.Pr_ApplicationRequestDetailsAwaitingReceipts" >
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationRequestDetailsAwaitingReceipts_Result">
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="IsNewAssociationRequired" ColumnName="IsNewAssociationRequired" />
                <ScalarProperty Name="IsNewMemberRequired" ColumnName="IsNewMemberRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="VehicleCount" ColumnName="VehicleCount" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="AdjudicationDecision" ColumnName="AdjudicationDecision" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="ProxyName" ColumnName="ProxyName" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
                <ScalarProperty Name="AdjudicationComment" ColumnName="AdjudicationComment" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <ScalarProperty Name="ExistingLicenceHolder" ColumnName="ExistingLicenceHolder" />
                <ScalarProperty Name="ExistingLicenceHolderID" ColumnName="ExistingLicenceHolderID" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ExistingVehicleChassisNumber" ColumnName="ExistingVehicleChassisNumber" />
                <ScalarProperty Name="ExistingVehicleRegNumber" ColumnName="ExistingVehicleRegNumber" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="HasNewRoute" ColumnName="HasNewRoute" />
                <ScalarProperty Name="ExistingLicenceNumber" ColumnName="ExistingLicenceNumber" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="ProxyIDNumber" ColumnName="ProxyIDNumber" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="TotalCost" ColumnName="TotalCost" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestDetailsRecentReceipts" FunctionName="Model.Store.Pr_ApplicationRequestDetailsRecentReceipts">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestDetailsSearch" FunctionName="Model.Store.Pr_ApplicationRequestDetailsSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationRequestDetailsSearch_Result">
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="Task" ColumnName="Task" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="IsNewAssociationRequired" ColumnName="IsNewAssociationRequired" />
                <ScalarProperty Name="IsNewMemberRequired" ColumnName="IsNewMemberRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="VehicleCount" ColumnName="VehicleCount" />
                <ScalarProperty Name="InstanceStep" ColumnName="InstanceStep" />
                <ScalarProperty Name="TaskStep" ColumnName="TaskStep" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="AdjudicationDecision" ColumnName="AdjudicationDecision" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="ProxyName" ColumnName="ProxyName" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
                <ScalarProperty Name="AdjudicationComment" ColumnName="AdjudicationComment" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <ScalarProperty Name="ExistingLicenceHolder" ColumnName="ExistingLicenceHolder" />
                <ScalarProperty Name="ExistingLicenceHolderID" ColumnName="ExistingLicenceHolderID" />
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="ExistingVehicleChassisNumber" ColumnName="ExistingVehicleChassisNumber" />
                <ScalarProperty Name="ExistingVehicleRegNumber" ColumnName="ExistingVehicleRegNumber" />
                <ScalarProperty Name="WorkflowStatus" ColumnName="WorkflowStatus" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="HasNewRoute" ColumnName="HasNewRoute" />
                <ScalarProperty Name="ExistingLicenceNumber" ColumnName="ExistingLicenceNumber" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="ProxyIDNumber" ColumnName="ProxyIDNumber" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LogPrintReceipt" FunctionName="Model.Store.Pr_LogPrintReceipt" />
          <EntitySetMapping Name="Vw_Associations">
            <EntityTypeMapping TypeName="Model.Vw_Associations">
              <MappingFragment StoreEntitySet="Vw_Associations">
                <ScalarProperty Name="Region" ColumnName="Region" />
                <ScalarProperty Name="TotalLicencesCleaned" ColumnName="TotalLicencesCleaned" />
                <ScalarProperty Name="TotalMembersCleaned" ColumnName="TotalMembersCleaned" />
                <ScalarProperty Name="TotalLicencesCancelled" ColumnName="TotalLicencesCancelled" />
                <ScalarProperty Name="TotalLicencesVerified" ColumnName="TotalLicencesVerified" />
                <ScalarProperty Name="TotalLicenceVerificationsInProgress" ColumnName="TotalLicenceVerificationsInProgress" />
                <ScalarProperty Name="TotalMembersCancelled" ColumnName="TotalMembersCancelled" />
                <ScalarProperty Name="TotalMembersVerified" ColumnName="TotalMembersVerified" />
                <ScalarProperty Name="TotalMemberVerificationsInProgress" ColumnName="TotalMemberVerificationsInProgress" />
                <ScalarProperty Name="AssociationDataLicenceCount" ColumnName="AssociationDataLicenceCount" />
                <ScalarProperty Name="AssociationDataMemberCount" ColumnName="AssociationDataMemberCount" />
                <ScalarProperty Name="AssociationDataReceived" ColumnName="AssociationDataReceived" />
                <ScalarProperty Name="ActiveMemberCount" ColumnName="ActiveMemberCount" />
                <ScalarProperty Name="Type" ColumnName="Type" />
                <ScalarProperty Name="Mode" ColumnName="Mode" />
                <ScalarProperty Name="Status" ColumnName="Status" />
                <ScalarProperty Name="AssociationNameAbbrev" ColumnName="AssociationNameAbbrev" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="GazetteDetails">
            <EntityTypeMapping TypeName="Model.GazetteDetail">
              <MappingFragment StoreEntitySet="GazetteDetails">
                <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="HasBulkVehicleApplications" ColumnName="HasBulkVehicleApplications" />
                <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="ApplicationRequestTypeDocuments">
            <EntityTypeMapping TypeName="Model.ApplicationRequestTypeDocuments">
              <MappingFragment StoreEntitySet="ApplicationRequestTypeDocuments">
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="ApplicationRequestTypeDocumentID" ColumnName="ApplicationRequestTypeDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentTypes">
            <EntityTypeMapping TypeName="Model.DocumentTypes">
              <MappingFragment StoreEntitySet="DocumentTypes">
                <ScalarProperty Name="IsDocumentTitleEditable" ColumnName="IsDocumentTitleEditable" />
                <ScalarProperty Name="IsDocumentTemplate" ColumnName="IsDocumentTemplate" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <AssociationSetMapping Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" TypeName="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" StoreEntitySet="ApplicationRequestTypeDocuments">
            <EndProperty Name="ApplicationRequestTypeDocuments">
              <ScalarProperty Name="ApplicationRequestTypeDocumentID" ColumnName="ApplicationRequestTypeDocumentID" />
            </EndProperty>
            <EndProperty Name="ApplicationRequestType">
              <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
            </EndProperty>
          </AssociationSetMapping>
          <AssociationSetMapping Name="FK_ApplicationRequestTypeDocuments_DocumentTypes" TypeName="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" StoreEntitySet="ApplicationRequestTypeDocuments">
            <EndProperty Name="ApplicationRequestTypeDocuments">
              <ScalarProperty Name="ApplicationRequestTypeDocumentID" ColumnName="ApplicationRequestTypeDocumentID" />
            </EndProperty>
            <EndProperty Name="DocumentTypes">
              <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
            </EndProperty>
          </AssociationSetMapping>
          <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="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="SARSReasonIfNoTaxNumber" ColumnName="SARSReasonIfNoTaxNumber" />
                <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="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="PreAdjudicationObjectionLettersSent" ColumnName="PreAdjudicationObjectionLettersSent" />
                <ScalarProperty Name="PreAdjudicationObjectionNotificationsSent" ColumnName="PreAdjudicationObjectionNotificationsSent" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="MeetingTime" ColumnName="MeetingTime" />
                <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="ProvinceID" ColumnName="ProvinceID" />
                <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="LocationAddress" ColumnName="LocationAddress" />
                <ScalarProperty Name="LocationName" ColumnName="LocationName" />
                <ScalarProperty Name="AssessorUserID" ColumnName="AssessorUserID" />
                <ScalarProperty Name="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <ScalarProperty Name="RegistryClerkUserID" ColumnName="RegistryClerkUserID" />
                <ScalarProperty Name="PaymentClerkUserID" ColumnName="PaymentClerkUserID" />
                <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="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <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="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="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="PlaceStatusID" ColumnName="PlaceStatusID" />
                <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="ApplicationVehicleDetailsInBulkID" ColumnName="ApplicationVehicleDetailsInBulkID" />
                <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="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="Indefinite" ColumnName="Indefinite" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <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="ApplicationDocuments">
            <EntityTypeMapping TypeName="Model.ApplicationDocument">
              <MappingFragment StoreEntitySet="ApplicationDocuments">
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationDocumentID" ColumnName="ApplicationDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vehicles">
            <EntityTypeMapping TypeName="Model.Vehicle">
              <MappingFragment StoreEntitySet="Vehicles">
                <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>
          <EntitySetMapping Name="PrecheckDetails">
            <EntityTypeMapping TypeName="Model.PrecheckDetail">
              <MappingFragment StoreEntitySet="PrecheckDetails">
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="NumberOfVehiclesRequired" ColumnName="NumberOfVehiclesRequired" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="ContactCell" ColumnName="ContactCell" />
                <ScalarProperty Name="ContactEmail" ColumnName="ContactEmail" />
                <ScalarProperty Name="PrecheckDetailIncompleteReasonID" ColumnName="PrecheckDetailIncompleteReasonID" />
                <ScalarProperty Name="IsLateRenewal" ColumnName="IsLateRenewal" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="IsComplete" ColumnName="IsComplete" />
                <ScalarProperty Name="NltisXmlDataFound" ColumnName="NltisXmlDataFound" />
                <ScalarProperty Name="NltisXml" ColumnName="NltisXml" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <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="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="OlPermitNumber" ColumnName="OlPermitNumber" />
                <ScalarProperty Name="ApplicantName" ColumnName="ApplicantName" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestVerificationComplete" FunctionName="Model.Store.Pr_ApplicationRequestVerificationComplete" />
          <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>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestAdjudicationDecisionCommit" FunctionName="Model.Store.Pr_ApplicationRequestAdjudicationDecisionCommit" />
          <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="Modes">
            <EntityTypeMapping TypeName="Model.Mode">
              <MappingFragment StoreEntitySet="Modes">
                <ScalarProperty Name="ExceptionHandlerUserID" ColumnName="ExceptionHandlerUserID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasServiceTypeID" ColumnName="OlasServiceTypeID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
              </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="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="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="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_PrecheckDetailsIncomplete">
            <EntityTypeMapping TypeName="Model.Vw_PrecheckDetailsIncomplete">
              <MappingFragment StoreEntitySet="Vw_PrecheckDetailsIncomplete">
                <ScalarProperty Name="ReasonIncomplete" ColumnName="ReasonIncomplete" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="ChassisNumber" ColumnName="ChassisNumber" />
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="OlPermitNumber" ColumnName="OlPermitNumber" />
                <ScalarProperty Name="ApplicantName" ColumnName="ApplicantName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_OperatingLicenceDetails">
            <EntityTypeMapping TypeName="Model.Vw_OperatingLicenceDetails">
              <MappingFragment StoreEntitySet="Vw_OperatingLicenceDetails">
                <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" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </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="ApplicationRequestDetails">
            <EntityTypeMapping TypeName="Model.ApplicationRequestDetail">
              <MappingFragment StoreEntitySet="ApplicationRequestDetails">
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="ForceGazetting" ColumnName="ForceGazetting" />
                <ScalarProperty Name="IsReceiptRequired" ColumnName="IsReceiptRequired" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="IsBulkVehicleVerificationRequired" ColumnName="IsBulkVehicleVerificationRequired" />
                <ScalarProperty Name="VehicleCount" ColumnName="VehicleCount" />
                <ScalarProperty Name="IsBulkVehicleApplication" ColumnName="IsBulkVehicleApplication" />
                <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="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="AdjudicationLicenceExpiryDate" ColumnName="AdjudicationLicenceExpiryDate" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="AdjudicationDecisionDate" ColumnName="AdjudicationDecisionDate" />
                <ScalarProperty Name="AdjudicationLicenceDurationMonths" ColumnName="AdjudicationLicenceDurationMonths" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="IsLateRenewal" ColumnName="IsLateRenewal" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <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="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="IsNewMemberRequired" ColumnName="IsNewMemberRequired" />
                <ScalarProperty Name="IsNewAssociationRequired" ColumnName="IsNewAssociationRequired" />
                <ScalarProperty Name="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <AssociationSetMapping Name="LicenceRoutes" TypeName="Model.LicenceRoutes" StoreEntitySet="LicenceRoutes">
            <EndProperty Name="Route">
              <ScalarProperty Name="RouteID" ColumnName="RouteID" />
            </EndProperty>
            <EndProperty Name="Licence">
              <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
            </EndProperty>
          </AssociationSetMapping>
          <EntitySetMapping Name="RouteNodes">
            <EntityTypeMapping TypeName="Model.RouteNode">
              <MappingFragment StoreEntitySet="RouteNodes">
                <ScalarProperty Name="DistanceFromOrigin" ColumnName="DistanceFromOrigin" />
                <ScalarProperty Name="Sequence" ColumnName="Sequence" />
                <ScalarProperty Name="WaypointTypeID" ColumnName="WaypointTypeID" />
                <ScalarProperty Name="PlaceID" ColumnName="PlaceID" />
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
                <ScalarProperty Name="RouteNodeID" ColumnName="RouteNodeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceIssueDetails">
            <EntityTypeMapping TypeName="Model.LicenceIssueDetail">
              <MappingFragment StoreEntitySet="LicenceIssueDetails">
                <ScalarProperty Name="ApplicationVehicleDetailsInBulkID" ColumnName="ApplicationVehicleDetailsInBulkID" />
                <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <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="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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueDetailsSearch" FunctionName="Model.Store.Pr_LicenceIssueDetailsSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueDetailsSearch_Result">
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <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="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="Task" ColumnName="Task" />
                <ScalarProperty Name="InstanceStep" ColumnName="InstanceStep" />
                <ScalarProperty Name="TaskStep" ColumnName="TaskStep" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <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>
          <EntitySetMapping Name="PrecheckDetailIncompleteReasons">
            <EntityTypeMapping TypeName="Model.PrecheckDetailIncompleteReason">
              <MappingFragment StoreEntitySet="PrecheckDetailIncompleteReasons">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="PrecheckDetailIncompleteReasonID" ColumnName="PrecheckDetailIncompleteReasonID" />
              </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="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="AssociationCleanupSummaries">
            <EntityTypeMapping TypeName="Model.AssociationCleanupSummary">
              <MappingFragment StoreEntitySet="AssociationCleanupSummary">
                <ScalarProperty Name="TotalLicencesCleaned" ColumnName="TotalLicencesCleaned" />
                <ScalarProperty Name="TotalMembersCleaned" ColumnName="TotalMembersCleaned" />
                <ScalarProperty Name="TotalLicencesCancelled" ColumnName="TotalLicencesCancelled" />
                <ScalarProperty Name="TotalLicencesVerified" ColumnName="TotalLicencesVerified" />
                <ScalarProperty Name="TotalLicenceVerificationsInProgress" ColumnName="TotalLicenceVerificationsInProgress" />
                <ScalarProperty Name="TotalMembersCancelled" ColumnName="TotalMembersCancelled" />
                <ScalarProperty Name="TotalMembersVerified" ColumnName="TotalMembersVerified" />
                <ScalarProperty Name="TotalMemberVerificationsInProgress" ColumnName="TotalMemberVerificationsInProgress" />
                <ScalarProperty Name="AssociationDataLicenceCount" ColumnName="AssociationDataLicenceCount" />
                <ScalarProperty Name="AssociationDataMemberCount" ColumnName="AssociationDataMemberCount" />
                <ScalarProperty Name="AssociationDataReceived" ColumnName="AssociationDataReceived" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_PurificationDetails">
            <EntityTypeMapping TypeName="Model.Vw_PurificationDetails">
              <MappingFragment StoreEntitySet="Vw_PurificationDetails">
                <ScalarProperty Name="NeoOLPermitNumber" ColumnName="NeoOLPermitNumber" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="ApplicantName" ColumnName="ApplicantName" />
                <ScalarProperty Name="PreCheckDetailID" ColumnName="PreCheckDetailID" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="Status" ColumnName="Status" />
                <ScalarProperty Name="PurificationDetailStatusID" ColumnName="PurificationDetailStatusID" />
                <ScalarProperty Name="PurificationDetailID" ColumnName="PurificationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationDetailStatusUpdate" FunctionName="Model.Store.Pr_PurificationDetailStatusUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationExceptionsPending" FunctionName="Model.Store.Pr_PurificationExceptionsPending">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationPrechecksPending" FunctionName="Model.Store.Pr_PurificationPrechecksPending">
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationWorkflowsInProgress" FunctionName="Model.Store.Pr_PurificationWorkflowsInProgress">
          </FunctionImportMapping>
          <EntitySetMapping Name="PurificationDetails">
            <EntityTypeMapping TypeName="Model.PurificationDetail">
              <MappingFragment StoreEntitySet="PurificationDetails">
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="PreCheckDetailID" ColumnName="PreCheckDetailID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="PurificationDetailStatusID" ColumnName="PurificationDetailStatusID" />
                <ScalarProperty Name="PurificationDetailID" ColumnName="PurificationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="PurificationDetailStatus">
            <EntityTypeMapping TypeName="Model.PurificationDetailStatu">
              <MappingFragment StoreEntitySet="PurificationDetailStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="PurificationDetailStatusID" ColumnName="PurificationDetailStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationDetailRetry" FunctionName="Model.Store.Pr_PurificationDetailRetry" />
          <EntitySetMapping Name="Vw_AssociationsPurificationCount">
            <EntityTypeMapping TypeName="Model.Vw_AssociationsPurificationCount">
              <MappingFragment StoreEntitySet="Vw_AssociationsPurificationCount">
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="TotalLicencesCleaned" ColumnName="TotalLicencesCleaned" />
                <ScalarProperty Name="TotalMembersCleaned" ColumnName="TotalMembersCleaned" />
                <ScalarProperty Name="TotalLicencesCancelled" ColumnName="TotalLicencesCancelled" />
                <ScalarProperty Name="TotalLicencesVerified" ColumnName="TotalLicencesVerified" />
                <ScalarProperty Name="TotalLicenceVerificationsInProgress" ColumnName="TotalLicenceVerificationsInProgress" />
                <ScalarProperty Name="TotalMembersCancelled" ColumnName="TotalMembersCancelled" />
                <ScalarProperty Name="TotalMembersVerified" ColumnName="TotalMembersVerified" />
                <ScalarProperty Name="TotalMemberVerificationsInProgress" ColumnName="TotalMemberVerificationsInProgress" />
                <ScalarProperty Name="AssociationDataLicenceCount" ColumnName="AssociationDataLicenceCount" />
                <ScalarProperty Name="AssociationDataMemberCount" ColumnName="AssociationDataMemberCount" />
                <ScalarProperty Name="AssociationDataReceived" ColumnName="AssociationDataReceived" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
              </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="PlaceStatusID" ColumnName="PlaceStatusID" />
                <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="SARSReasonIfNoTaxNumber" ColumnName="SARSReasonIfNoTaxNumber" />
                <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" />
              </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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <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" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_WriteEntry" FunctionName="Model.Store.Pr_WriteEntry" />
          <FunctionImportMapping FunctionImportName="Pr_GazetteGetNumber" FunctionName="Model.Store.Pr_GazetteGetNumber" />
          <EntitySetMapping Name="Settings">
            <EntityTypeMapping TypeName="Model.Setting">
              <MappingFragment StoreEntitySet="Settings">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="SettingValue" ColumnName="SettingValue" />
                <ScalarProperty Name="SettingName" ColumnName="SettingName" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_RouteStartVerificationWorkflow" FunctionName="Model.Store.Pr_RouteStartVerificationWorkflow" />
          <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="AssociationName" ColumnName="AssociationName" />
                <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>
          <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="RouteType" ColumnName="RouteType" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AssociationOlasNeoUpdate" FunctionName="Model.Store.Pr_AssociationOlasNeoUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_AssociationNeoMemberSearch" FunctionName="Model.Store.Pr_AssociationNeoMemberSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AssociationNeoMemberSearch_Result">
                <ScalarProperty Name="AssociationMemberDataID" ColumnName="AssociationMemberDataID" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="Association_Name" ColumnName="Association Name" />
                <ScalarProperty Name="Surname_Or_Company_Name" ColumnName="Surname Or Company Name" />
                <ScalarProperty Name="Member_First_Name" ColumnName="Member First Name" />
                <ScalarProperty Name="Member_ID_Number" ColumnName="Member ID Number" />
                <ScalarProperty Name="ID_Type" ColumnName="ID Type" />
                <ScalarProperty Name="Postal_Address" ColumnName="Postal Address" />
                <ScalarProperty Name="Postal_Address_Code" ColumnName="Postal Address Code" />
                <ScalarProperty Name="Physical_Address" ColumnName="Physical Address" />
                <ScalarProperty Name="Tax_Number" ColumnName="Tax Number" />
                <ScalarProperty Name="Tel__Number" ColumnName="Tel  Number" />
                <ScalarProperty Name="Fax_Number" ColumnName="Fax Number" />
                <ScalarProperty Name="Cell_Number" ColumnName="Cell Number" />
                <ScalarProperty Name="Email_Address" ColumnName="Email Address" />
                <ScalarProperty Name="OL_Permit_Number" ColumnName="OL Permit Number" />
                <ScalarProperty Name="Vehicle_Chassis_Number" ColumnName="Vehicle Chassis Number" />
                <ScalarProperty Name="vehicle_registration" ColumnName="vehicle registration" />
                <ScalarProperty Name="LegitimateApplicationRequestDetailID" ColumnName="LegitimateApplicationRequestDetailID" />
                <ScalarProperty Name="AddedDate" ColumnName="AddedDate" />
                <ScalarProperty Name="ModifiedDate" ColumnName="ModifiedDate" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Vw_NewRouteRequestDetails">
            <EntityTypeMapping TypeName="Model.Vw_NewRouteRequestDetails">
              <MappingFragment StoreEntitySet="Vw_NewRouteRequestDetails">
                <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_RouteStartUpdateWorkflow" FunctionName="Model.Store.Pr_RouteStartUpdateWorkflow" />
          <FunctionImportMapping FunctionImportName="Pr_RouteNodeAdd" FunctionName="Model.Store.Pr_RouteNodeAdd" />
          <FunctionImportMapping FunctionImportName="Pr_GazetteApplicationBypassExpiry" FunctionName="Model.Store.Pr_GazetteApplicationBypassExpiry" />
          <EntitySetMapping Name="Vw_GazetteApplications">
            <EntityTypeMapping TypeName="Model.Vw_GazetteApplication">
              <MappingFragment StoreEntitySet="Vw_GazetteApplications">
                <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="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationAllowedExpiredLicences">
            <EntityTypeMapping TypeName="Model.ApplicationAllowedExpiredLicence">
              <MappingFragment StoreEntitySet="ApplicationAllowedExpiredLicences">
                <ScalarProperty Name="ApplicationSourceID" ColumnName="ApplicationSourceID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="IsUsed" ColumnName="IsUsed" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedReason" ColumnName="CreatedReason" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="IssueNumber" ColumnName="IssueNumber" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAdjudicationRestart" FunctionName="Model.Store.Pr_ApplicationAdjudicationRestart" />
          <FunctionImportMapping FunctionImportName="Pr_AdjudicationPanelRemove" FunctionName="Model.Store.Pr_AdjudicationPanelRemove" />
          <EntitySetMapping Name="Vw_AdjudicationApplicantDetails">
            <EntityTypeMapping TypeName="Model.Vw_AdjudicationApplicantDetails">
              <MappingFragment StoreEntitySet="Vw_AdjudicationApplicantDetails">
                <ScalarProperty Name="HasObjections" ColumnName="HasObjections" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <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_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_UpdateBypassedExpiredLicence" FunctionName="Model.Store.Pr_Purification_UpdateBypassedExpiredLicence" />
          <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_ApplicationRequestAdjudicationBypass" FunctionName="Model.Store.Pr_ApplicationRequestAdjudicationBypass" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestsStatusViewGet" FunctionName="Model.Store.Pr_ApplicationRequestsStatusViewGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationRequestsStatusViewGet_Result">
                <ScalarProperty Name="ApplicationType" ColumnName="ApplicationType" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AssignedTo" ColumnName="AssignedTo" />
                <ScalarProperty Name="Age" ColumnName="Age" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueRequestsStatusViewGet" FunctionName="Model.Store.Pr_LicenceIssueRequestsStatusViewGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueRequestsStatusViewGet_Result">
                <ScalarProperty Name="ApplicationType" ColumnName="ApplicationType" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AssignedTo" ColumnName="AssignedTo" />
                <ScalarProperty Name="Age" ColumnName="Age" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_NewRouteStatusViewGet" FunctionName="Model.Store.Pr_NewRouteStatusViewGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_NewRouteStatusViewGet_Result">
                <ScalarProperty Name="ApplicationType" ColumnName="ApplicationType" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AssignedTo" ColumnName="AssignedTo" />
                <ScalarProperty Name="Age" ColumnName="Age" />
                <ScalarProperty Name="MemberName" ColumnName="MemberName" />
                <ScalarProperty Name="Association" ColumnName="Association" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PlaceUpsert" FunctionName="Model.Store.Pr_PlaceUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAuditComplete" FunctionName="Model.Store.Pr_ApplicationAuditComplete" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAuditCreate" FunctionName="Model.Store.Pr_ApplicationAuditCreate" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAuditSearch" FunctionName="Model.Store.Pr_ApplicationAuditSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationAuditSearch_Result">
                <ScalarProperty Name="ApplicationAuditID" ColumnName="ApplicationAuditID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationAuditTypeID" ColumnName="ApplicationAuditTypeID" />
                <ScalarProperty Name="AuditedUserID" ColumnName="AuditedUserID" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="AssignedDate" ColumnName="AssignedDate" />
                <ScalarProperty Name="AuditCompletedDate" ColumnName="AuditCompletedDate" />
                <ScalarProperty Name="AuditPassed" ColumnName="AuditPassed" />
                <ScalarProperty Name="AuditComments" ColumnName="AuditComments" />
                <ScalarProperty Name="AssignedToKnownAs" ColumnName="AssignedToKnownAs" />
                <ScalarProperty Name="AuditedUserKnownAs" ColumnName="AuditedUserKnownAs" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="ApplicationAudits">
            <EntityTypeMapping TypeName="Model.ApplicationAudit">
              <MappingFragment StoreEntitySet="ApplicationAudits">
                <ScalarProperty Name="AuditComments" ColumnName="AuditComments" />
                <ScalarProperty Name="AuditPassed" ColumnName="AuditPassed" />
                <ScalarProperty Name="AuditCompletedDate" ColumnName="AuditCompletedDate" />
                <ScalarProperty Name="AssignedDate" ColumnName="AssignedDate" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="AuditedUserID" ColumnName="AuditedUserID" />
                <ScalarProperty Name="ApplicationAuditTypeID" ColumnName="ApplicationAuditTypeID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationAuditID" ColumnName="ApplicationAuditID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAdjudicationDecisionReverse" FunctionName="Model.Store.Pr_ApplicationAdjudicationDecisionReverse" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationBlockedLicenceCreate" FunctionName="Model.Store.Pr_ApplicationBlockedLicenceCreate" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationBlockedLicencesGet" FunctionName="Model.Store.Pr_ApplicationBlockedLicencesGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationBlockedLicencesGet_Result">
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="Reason" ColumnName="Reason" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="Step" ColumnName="Step" />
                <ScalarProperty Name="StepDescription" ColumnName="StepDescription" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <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="AppOrLir" ColumnName="AppOrLir" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="IsBulkVehicleApplication" ColumnName="IsBulkVehicleApplication" />
                <ScalarProperty Name="VehicleCount" ColumnName="VehicleCount" />
                <ScalarProperty Name="Otc" ColumnName="Otc" />
                <ScalarProperty Name="LicenceUpliftmentExtensionRequestDetailID" ColumnName="LicenceUpliftmentExtensionRequestDetailID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="Vw_ApplicationRequestDetails_Receipts">
            <EntityTypeMapping TypeName="Model.Vw_ApplicationRequestDetails_Receipts">
              <MappingFragment StoreEntitySet="Vw_ApplicationRequestDetails_Receipts">
                <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="VehicleCount" ColumnName="VehicleCount" />
                <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ExceptionTasksGet" FunctionName="Model.Store.Pr_ExceptionTasksGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ExceptionTasksGet_Result">
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="Step" ColumnName="Step" />
                <ScalarProperty Name="StepDescription" ColumnName="StepDescription" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="ApplicationAllowedNewLicences">
            <EntityTypeMapping TypeName="Model.ApplicationAllowedNewLicence">
              <MappingFragment StoreEntitySet="ApplicationAllowedNewLicences">
                <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_Purification_InsertAllowedNewLicence" FunctionName="Model.Store.Pr_Purification_InsertAllowedNewLicence" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleFlagVinAsCorrect" FunctionName="Model.Store.Pr_VehicleFlagVinAsCorrect" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationBlockedLicenceDelete" FunctionName="Model.Store.Pr_ApplicationBlockedLicenceDelete" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_SearchApplicationMode" FunctionName="Model.Store.Pr_Purification_SearchApplicationMode">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_SearchApplicationMode_Result">
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="ModeDescription" ColumnName="ModeDescription" />
                <ScalarProperty Name="LongDistanceReason" ColumnName="LongDistanceReason" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_SearchApplicationServiceTypes" FunctionName="Model.Store.Pr_Purification_SearchApplicationServiceTypes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_SearchApplicationServiceTypes_Result">
                <ScalarProperty Name="ApplicationServiceDetailID" ColumnName="ApplicationServiceDetailID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_SearchLicenceMode" FunctionName="Model.Store.Pr_Purification_SearchLicenceMode">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_SearchLicenceMode_Result">
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_SearchLicenceServiceTypes" FunctionName="Model.Store.Pr_Purification_SearchLicenceServiceTypes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_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_PurificationApplicationModeUpdate" FunctionName="Model.Store.Pr_PurificationApplicationModeUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationApplicationServiceTypeAdd" FunctionName="Model.Store.Pr_PurificationApplicationServiceTypeAdd" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationApplicationServiceTypeRemove" FunctionName="Model.Store.Pr_PurificationApplicationServiceTypeRemove" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceModeUpdate" FunctionName="Model.Store.Pr_PurificationLicenceModeUpdate" />
          <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_Purification_UpdateMember" FunctionName="Model.Store.Pr_Purification_UpdateMember" />
          <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_ApplicationBlockedIDNumberCreate" FunctionName="Model.Store.Pr_ApplicationBlockedIDNumberCreate" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationBlockedIDNumberDelete" FunctionName="Model.Store.Pr_ApplicationBlockedIDNumberDelete" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationBlockedIDNumbersGet" FunctionName="Model.Store.Pr_ApplicationBlockedIDNumbersGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationBlockedIDNumbersGet_Result">
                <ScalarProperty Name="IDNumber" ColumnName="IDNumber" />
                <ScalarProperty Name="Reason" ColumnName="Reason" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="CancelledbyID" ColumnName="CancelledbyID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </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_LicenceIssueDetailVerificationComplete" FunctionName="Model.Store.Pr_LicenceIssueDetailVerificationComplete" />
          <EntitySetMapping Name="ApplicationVehicleDetailsInBulks">
            <EntityTypeMapping TypeName="Model.ApplicationVehicleDetailsInBulk">
              <MappingFragment StoreEntitySet="ApplicationVehicleDetailsInBulk">
                <ScalarProperty Name="VerifiedDate" ColumnName="VerifiedDate" />
                <ScalarProperty Name="VerifiedByID" ColumnName="VerifiedByID" />
                <ScalarProperty Name="ExceptionDetails" ColumnName="ExceptionDetails" />
                <ScalarProperty Name="IsException" ColumnName="IsException" />
                <ScalarProperty Name="IsVerified" ColumnName="IsVerified" />
                <ScalarProperty Name="VehicleNumber" ColumnName="VehicleNumber" />
                <ScalarProperty Name="PdpDocID" ColumnName="PdpDocID" />
                <ScalarProperty Name="LogbookDocID" ColumnName="LogbookDocID" />
                <ScalarProperty Name="CorDocID" ColumnName="CorDocID" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="YearOfManufacture" ColumnName="YearOfManufacture" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="VehicleMakeDescription" ColumnName="VehicleMakeDescription" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationVehicleDetailsInBulkID" ColumnName="ApplicationVehicleDetailsInBulkID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationVehicleDetailsInBulkVerificationUpdate" FunctionName="Model.Store.Pr_ApplicationVehicleDetailsInBulkVerificationUpdate" />
          <FunctionImportMapping FunctionImportName="Pr_PrecheckDocumentListGet" FunctionName="Model.Store.Pr_PrecheckDocumentListGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_PrecheckDocumentListGet_Result">
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentTitle" ColumnName="DocumentTitle" />
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssueDetaisReport" FunctionName="Model.Store.Pr_LicenceIssueDetaisReport">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_LicenceIssueDetaisReport_Result">
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="ShowMeteredTaxiAnnexure" ColumnName="ShowMeteredTaxiAnnexure" />
                <ScalarProperty Name="ShowEHailingAnnexure" ColumnName="ShowEHailingAnnexure" />
                <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" />
              </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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <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="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <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" />
                <ScalarProperty Name="VehicleVIN" ColumnName="VehicleVIN" />
                <ScalarProperty Name="VehicleEngineNumber" ColumnName="VehicleEngineNumber" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VehicleSeatedCapacity" ColumnName="VehicleSeatedCapacity" />
                <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="VehicleStandingCapacity" ColumnName="VehicleStandingCapacity" />
                </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>
          <FunctionImportMapping FunctionImportName="Pr_Purification_SearchApplicationRoutes" FunctionName="Model.Store.Pr_Purification_SearchApplicationRoutes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_SearchApplicationRoutes_Result">
                <ScalarProperty Name="ApplicationRouteDetailID" ColumnName="ApplicationRouteDetailID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationRouteDetailStatusID" ColumnName="ApplicationRouteDetailStatusID" />
                <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" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_Purification_SearchLicenceRoutes" FunctionName="Model.Store.Pr_Purification_SearchLicenceRoutes">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Purification_SearchLicenceRoutes_Result">
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="licenceID" ColumnName="licenceID" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PurificationApplicationRouteAdd" FunctionName="Model.Store.Pr_PurificationApplicationRouteAdd" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationApplicationRouteRemove" FunctionName="Model.Store.Pr_PurificationApplicationRouteRemove" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceRouteAdd" FunctionName="Model.Store.Pr_PurificationLicenceRouteAdd" />
          <FunctionImportMapping FunctionImportName="Pr_PurificationLicenceRouteRemove" FunctionName="Model.Store.Pr_PurificationLicenceRouteRemove" />
          <FunctionImportMapping FunctionImportName="Pw_GetItemIDFromReference" FunctionName="Model.Store.Pw_GetItemIDFromReference" />
          <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_LicenceUpliftmentExtensionDetailVerificationComplete" FunctionName="Model.Store.Pr_LicenceUpliftmentExtensionDetailVerificationComplete" />
          <FunctionImportMapping FunctionImportName="Pr_ExtensionTasksGet" FunctionName="Model.Store.Pr_ExtensionTasksGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ExtensionTasksGet_Result">
                <ScalarProperty Name="LicenceUpliftmentExtensionRequestDetailID" ColumnName="LicenceUpliftmentExtensionRequestDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="AssignedToID" ColumnName="AssignedToID" />
                <ScalarProperty Name="Step" ColumnName="Step" />
                <ScalarProperty Name="StepDescription" ColumnName="StepDescription" />
                <ScalarProperty Name="WorkflowInstanceTaskID" ColumnName="WorkflowInstanceTaskID" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationVerificationHandleError" FunctionName="Model.Store.Pr_ApplicationVerificationHandleError" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationGetDocuments" FunctionName="Model.Store.Pr_ApplicationGetDocuments">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_ApplicationGetDocuments_Result">
                <ScalarProperty Name="ApplicationDocumentID" ColumnName="ApplicationDocumentID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationAddDocument" FunctionName="Model.Store.Pr_ApplicationAddDocument" />
          <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationConversionChangeType" FunctionName="Model.Store.Pr_ApplicationConversionChangeType" />
          <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_SetReceiptToZero" FunctionName="Model.Store.Pr_SetReceiptToZero" />
          <FunctionImportMapping FunctionImportName="Pr_AddReceiptToApplication" FunctionName="Model.Store.Pr_AddReceiptToApplication" />
          <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_GetUserDetails" FunctionName="Model.Store.Pr_GetUserDetails">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetUserDetails_Result">
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="UserStatusID" ColumnName="UserStatusID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="NTAccount" ColumnName="NTAccount" />
                <ScalarProperty Name="Cell" ColumnName="Cell" />
                <ScalarProperty Name="IsPasswordExpired" ColumnName="IsPasswordExpired" />
                <ScalarProperty Name="PasswordDate" ColumnName="PasswordDate" />
                <ScalarProperty Name="PasswordHash" ColumnName="PasswordHash" />
                <ScalarProperty Name="PasswordSalt" ColumnName="PasswordSalt" />
                <ScalarProperty Name="PasswordChallenge" ColumnName="PasswordChallenge" />
                <ScalarProperty Name="PasswordQuestion" ColumnName="PasswordQuestion" />
                <ScalarProperty Name="PasswordAnswerHash" ColumnName="PasswordAnswerHash" />
                <ScalarProperty Name="PasswordAnswerSalt" ColumnName="PasswordAnswerSalt" />
                <ScalarProperty Name="PasswordAnswerChallenge" ColumnName="PasswordAnswerChallenge" />
                <ScalarProperty Name="FingerprintTemplate" ColumnName="FingerprintTemplate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <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>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestCreateReceipt" FunctionName="Model.Store.Pr_ApplicationRequestCreateReceipt" />
          <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_Purification_UpdateIdNumber" FunctionName="Model.Store.Pr_Purification_UpdateIdNumber" />
          <FunctionImportMapping FunctionImportName="Pr_Purification_ApplicationRouteChangeUpdate" FunctionName="Model.Store.Pr_Purification_ApplicationRouteChangeUpdate" />
          </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>