﻿<?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="ApplicationModel.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="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="ApplicationApplicantDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <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="255" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="255" />
          <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="50" />
          <Property Name="SARSReasonIfNoTaxNumber" Type="varchar" MaxLength="1000" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="TypeOfBusiness" Type="varchar" MaxLength="255" />
          <Property Name="BusinessTypeID" Type="bigint" />
          <Property Name="VerifiedMemberID" Type="bigint" />
          <Property Name="VerifiedAssociationID" Type="bigint" />
        </EntityType>
        <EntityType Name="ApplicationContractDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="ContractTypeID" Type="smallint" />
          <Property Name="ContractReferenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="NameOfParties1" Type="varchar" MaxLength="200" />
          <Property Name="AddressOfParties1" Type="varchar" MaxLength="255" />
          <Property Name="AddressCodeOfParties1" Type="varchar" MaxLength="4" />
          <Property Name="NameOfParties2" Type="varchar" MaxLength="200" />
          <Property Name="AddressOfParties2" Type="varchar" MaxLength="255" />
          <Property Name="AddressCodeOfParties2" Type="varchar" MaxLength="4" />
          <Property Name="NameOfSubContractor" Type="varchar" MaxLength="200" />
          <Property Name="AddressOfSubContractor" Type="varchar" MaxLength="255" />
          <Property Name="AddressCodeOfSubContractor" Type="varchar" MaxLength="4" />
          <Property Name="ContractFromDate" Type="date" />
          <Property Name="ContractToDate" Type="date" />
        </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="ApplicationExistingLicenceHolders">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <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="255" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="255" />
          <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="50" />
          <Property Name="SARSReasonIfNoTaxNumber" Type="varchar" MaxLength="1000" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="TypeOfBusiness" Type="varchar" MaxLength="255" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="50" />
          <Property Name="YearOfManufacture" Type="varchar" MaxLength="4" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="CarryingCapacity" Type="varchar" MaxLength="2" />
          <Property Name="RoadworthyCertificateNumber" Type="varchar" MaxLength="20" />
          <Property Name="RoadworthyCertificateDocID" Type="bigint" />
          <Property Name="RoadworthyExpiryDate" Type="datetime" />
          <Property Name="VehicleTypeID" Type="smallint" />
          <Property Name="UseExisitingVehicle" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ApplicationExistingLicences">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="50" />
          <Property Name="OperatingLicenceIssuingBoard" Type="varchar" MaxLength="255" />
          <Property Name="OperatingLicenceIssueDate" Type="datetime" />
          <Property Name="OperatingLicenceExpiryDate" Type="datetime" />
          <Property Name="ReasonForAmendment" Type="varchar(max)" />
          <Property Name="SpecialLicenceDetails" Type="varchar" MaxLength="1000" />
          <Property Name="SpecialLicenceDateFrom" Type="datetime" />
          <Property Name="SpecialLicenceDateTo" Type="datetime" />
        </EntityType>
        <EntityType Name="ApplicationExistingVehicleDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <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="RoadworthyCertificateNumber" Type="varchar" MaxLength="20" />
          <Property Name="RoadworthyCertificateDocID" Type="bigint" />
          <Property Name="RoadworthyExpiryDate" Type="datetime" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="CarryingCapacityID" Type="bigint" />
        </EntityType>
        <EntityType Name="ApplicationModeDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="ModeID" Type="smallint" />
          <Property Name="ModeDescription" Type="varchar" MaxLength="100" />
          <Property Name="LongDistanceReason" Type="varchar" MaxLength="2000" />
          <Property Name="IsUberMeteredTaxi" Type="bit" />
        </EntityType>
        <EntityType Name="ApplicationProxyDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="Surname" 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="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="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
        </EntityType>
        <EntityType Name="ApplicationRankDetails">
          <Key>
            <PropertyRef Name="ApplicationRankDetailID" />
          </Key>
          <Property Name="ApplicationRankDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="RankName" Type="varchar" MaxLength="255" />
          <Property Name="RankLocation" Type="varchar" MaxLength="255" />
        </EntityType>
        <EntityType Name="ApplicationRequestAdjudicationDecisions">
          <Key>
            <PropertyRef Name="ApplicationRequestAdjudicationDecisionID" />
          </Key>
          <Property Name="ApplicationRequestAdjudicationDecisionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="AdjudicationDecisionID" Type="smallint" />
          <Property Name="AdjudicatedByID" Type="bigint" />
          <Property Name="AdjudicationDate" Type="datetime" />
          <Property Name="LicenceDurationInMonths" Type="int" />
          <Property Name="LicenceDurationID" Type="smallint" />
          <Property Name="Comments" Type="varchar(max)" />
          <Property Name="IsActiveAdjudication" Type="bit" Nullable="false" />
          <Property Name="LicenceExpiryDate" Type="date" />
        </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="ApplicationRequestObjections">
          <Key>
            <PropertyRef Name="ApplicationRequestObjectionID" />
          </Key>
          <Property Name="ApplicationRequestObjectionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="Objector" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Objection" Type="varchar(max)" Nullable="false" />
          <Property Name="ObjectionDate" Type="datetime" Nullable="false" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" Nullable="false" />
          <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="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="ObjectionDocumentID" Type="bigint" />
        </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="ApplicationRouteDetails">
          <Key>
            <PropertyRef Name="ApplicationRouteDetailID" />
          </Key>
          <Property Name="ApplicationRouteDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationRouteDetailStatusID" Type="smallint" Nullable="false" />
          <Property Name="VerifiedRouteID" Type="bigint" />
          <Property Name="NewRouteRequestDetailID" Type="bigint" />
          <Property Name="RouteOrigin" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="RouteDestination" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="RouteDescription" Type="varchar(max)" Nullable="false" />
          <Property Name="NationalRouteNumber" Type="varchar" MaxLength="100" />
          <Property Name="BoardRouteNumber" Type="varchar" MaxLength="100" />
          <Property Name="RouteLength" Type="float" />
          <Property Name="TimeTableDocumentID" Type="bigint" />
          <Property Name="FareScheduleDocumentID" Type="bigint" />
          <Property Name="RouteNumber" Type="smallint" />
          <Property Name="RouteChangeTypeID" Type="smallint" />
          <Property Name="IsExistingLtpsOrOlasRoute" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ApplicationServiceDetails">
          <Key>
            <PropertyRef Name="ApplicationServiceDetailID" />
          </Key>
          <Property Name="ApplicationServiceDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="ServiceTypeID" Type="smallint" />
          <Property Name="ServiceTypeDescription" Type="varchar" MaxLength="100" />
        </EntityType>
        <EntityType Name="ApplicationVehicleDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <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="RoadworthyCertificateNumber" Type="varchar" MaxLength="20" />
          <Property Name="RoadworthyCertificateDocID" Type="bigint" />
          <Property Name="RoadworthyExpiryDate" Type="datetime" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="CarryingCapacityID" Type="bigint" />
        </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="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="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="BusinessTypes">
          <Key>
            <PropertyRef Name="BusinessTypeID" />
          </Key>
          <Property Name="BusinessTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" />
          <Property Name="OlasID" Type="smallint" />
          <Property Name="LtpsID" Type="smallint" />
          <Property Name="IsCancelled" Type="bit" />
        </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="LicenceDurations">
          <Key>
            <PropertyRef Name="LicenceDurationID" />
          </Key>
          <Property Name="LicenceDurationID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="DurationInMonths" Type="int" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="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="Users">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="bigint" Nullable="false" />
          <Property Name="UserStatusID" Type="smallint" Nullable="false" />
          <Property Name="EntityID" Type="int" />
          <Property Name="ItemID" Type="varchar" MaxLength="20" />
          <Property Name="LastName" Type="varchar" MaxLength="50" />
          <Property Name="FirstName" Type="varchar" MaxLength="50" />
          <Property Name="FullName" Type="varchar" MaxLength="101" StoreGeneratedPattern="Computed" Nullable="false" />
          <Property Name="KnownAs" Type="varchar" MaxLength="101" />
          <Property Name="Email" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="NTAccount" Type="varchar" MaxLength="255" />
          <Property Name="Cell" Type="varchar" MaxLength="10" />
          <Property Name="IsPasswordExpired" Type="bit" Nullable="false" />
          <Property Name="PasswordDate" Type="datetime" Nullable="false" />
          <Property Name="PasswordHash" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="PasswordSalt" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="PasswordChallenge" Type="varchar" MaxLength="20" />
          <Property Name="PasswordQuestion" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="PasswordAnswerHash" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="PasswordAnswerSalt" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="PasswordAnswerChallenge" Type="varchar" MaxLength="20" />
          <Property Name="FingerprintTemplate" Type="varbinary(max)" />
          <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="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>
        <!--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="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_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" />
            <PropertyRef Name="RouteOrigin" />
            <PropertyRef Name="RouteDestination" />
          </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" Nullable="false" />
          <Property Name="RouteDestination" Type="varchar" MaxLength="255" Nullable="false" />
          <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>
        <Association Name="FK_ApplicationApplicantDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationApplicantDetails" Type="Self.ApplicationApplicantDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationApplicantDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationApplicantDetails_IDTypes">
          <End Role="IDTypes" Type="Self.IDTypes" Multiplicity="0..1" />
          <End Role="ApplicationApplicantDetails" Type="Self.ApplicationApplicantDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDTypes">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="ApplicationApplicantDetails">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationContractDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationContractDetails" Type="Self.ApplicationContractDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationContractDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationContractDetails_ContractTypes">
          <End Role="ContractTypes" Type="Self.ContractTypes" Multiplicity="0..1" />
          <End Role="ApplicationContractDetails" Type="Self.ApplicationContractDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ContractTypes">
              <PropertyRef Name="ContractTypeID" />
            </Principal>
            <Dependent Role="ApplicationContractDetails">
              <PropertyRef Name="ContractTypeID" />
            </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_ApplicationExistingLicence_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationExistingLicences" Type="Self.ApplicationExistingLicences" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicences">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationExistingLicenceHolders" Type="Self.ApplicationExistingLicenceHolders" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicenceHolders">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingLicenceHolders_IDTypes">
          <End Role="IDTypes" Type="Self.IDTypes" Multiplicity="0..1" />
          <End Role="ApplicationExistingLicenceHolders" Type="Self.ApplicationExistingLicenceHolders" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDTypes">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicenceHolders">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingLicenceHolders_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="0..1" />
          <End Role="ApplicationExistingLicenceHolders" Type="Self.ApplicationExistingLicenceHolders" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicenceHolders">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationExistingVehicleDetails" Type="Self.ApplicationExistingVehicleDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationExistingVehicleDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingVehicleDetails_VehicleMakes">
          <End Role="VehicleMakes" Type="Self.VehicleMakes" Multiplicity="0..1" />
          <End Role="ApplicationExistingVehicleDetails" Type="Self.ApplicationExistingVehicleDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMakes">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="ApplicationExistingVehicleDetails">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingVehicleDetails_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="0..1" />
          <End Role="ApplicationExistingVehicleDetails" Type="Self.ApplicationExistingVehicleDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationExistingVehicleDetails">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationModeDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationModeDetails" Type="Self.ApplicationModeDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationModeDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationModeDetails_Modes">
          <End Role="Modes" Type="Self.Modes" Multiplicity="0..1" />
          <End Role="ApplicationModeDetails" Type="Self.ApplicationModeDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Modes">
              <PropertyRef Name="ModeID" />
            </Principal>
            <Dependent Role="ApplicationModeDetails">
              <PropertyRef Name="ModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationProxyDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationProxyDetails" Type="Self.ApplicationProxyDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationProxyDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationProxyDetails_IDTypes">
          <End Role="IDTypes" Type="Self.IDTypes" Multiplicity="0..1" />
          <End Role="ApplicationProxyDetails" Type="Self.ApplicationProxyDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDTypes">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="ApplicationProxyDetails">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRankDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationRankDetails" Type="Self.ApplicationRankDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRankDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions">
          <End Role="AdjudicationDecisions" Type="Self.AdjudicationDecisions" Multiplicity="0..1" />
          <End Role="ApplicationRequestAdjudicationDecisions" Type="Self.ApplicationRequestAdjudicationDecisions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDecisions">
              <PropertyRef Name="AdjudicationDecisionID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecisions">
              <PropertyRef Name="AdjudicationDecisionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationRequestAdjudicationDecisions" Type="Self.ApplicationRequestAdjudicationDecisions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecisions">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_LicenceDurations">
          <End Role="LicenceDurations" Type="Self.LicenceDurations" Multiplicity="0..1" />
          <End Role="ApplicationRequestAdjudicationDecisions" Type="Self.ApplicationRequestAdjudicationDecisions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceDurations">
              <PropertyRef Name="LicenceDurationID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecisions">
              <PropertyRef Name="LicenceDurationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_Users">
          <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
          <End Role="ApplicationRequestAdjudicationDecisions" Type="Self.ApplicationRequestAdjudicationDecisions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecisions">
              <PropertyRef Name="AdjudicatedByID" />
            </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_ApplicationRequestObjections_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationRequestObjections" Type="Self.ApplicationRequestObjections" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestObjections">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestObjections_Users">
          <End Role="Users" Type="Self.Users" Multiplicity="1" />
          <End Role="ApplicationRequestObjections" Type="Self.ApplicationRequestObjections" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="ApplicationRequestObjections">
              <PropertyRef Name="CreatedByID" />
            </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_ApplicationRouteDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationRouteDetails" Type="Self.ApplicationRouteDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRouteDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationServiceDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationServiceDetails" Type="Self.ApplicationServiceDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationServiceDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationServiceDetails_ServiceTypes">
          <End Role="ServiceTypes" Type="Self.ServiceTypes" Multiplicity="0..1" />
          <End Role="ApplicationServiceDetails" Type="Self.ApplicationServiceDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceTypes">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="ApplicationServiceDetails">
              <PropertyRef Name="ServiceTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Self.ApplicationRequestDetails" Multiplicity="1" />
          <End Role="ApplicationVehicleDetails" Type="Self.ApplicationVehicleDetails" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetails_VehicleMakes">
          <End Role="VehicleMakes" Type="Self.VehicleMakes" Multiplicity="0..1" />
          <End Role="ApplicationVehicleDetails" Type="Self.ApplicationVehicleDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMakes">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetails">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetails_VehicleTypes">
          <End Role="VehicleTypes" Type="Self.VehicleTypes" Multiplicity="0..1" />
          <End Role="ApplicationVehicleDetails" Type="Self.ApplicationVehicleDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleTypes">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetails">
              <PropertyRef Name="VehicleTypeID" />
            </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_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_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_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_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_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_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>
        <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_ApplicationCheckSecurity" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Action" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <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_ApplicationRequestObjectionUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="ApplicationRequestObjectionID" Type="bigint" Mode="In" />
          <Parameter Name="ApplicationRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="Objector" Type="varchar" Mode="In" />
          <Parameter Name="Objection" Type="varchar(max)" Mode="In" />
          <Parameter Name="ObjectionDate" Type="datetime" Mode="In" />
          <Parameter Name="PostalAddress" Type="varchar" Mode="In" />
          <Parameter Name="PostalAddressCode" 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="ObjectionDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_ApplicationRequestPostSaveProcess" 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_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_NewRouteRequestDetailsSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="NewRouteRequestDetailID" Type="bigint" Mode="In" />
          <Parameter Name="WorkflowInstanceStatusID" Type="smallint" Mode="In" />
          <Parameter Name="Description" Type="varchar" 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_AssociationMemberAdd" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="MemberID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_AssociationUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="AssociationID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationModeID" Type="int" Mode="In" />
          <Parameter Name="AssociationTypeID" Type="smallint" Mode="In" />
          <Parameter Name="RegionID" Type="bigint" Mode="In" />
          <Parameter Name="AssociationName" Type="varchar" Mode="In" />
          <Parameter Name="AssociationNameAbbrev" Type="varchar" Mode="In" />
          <Parameter Name="RegistrationNumber" 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="PostalAddressIsDomicilium" Type="bit" Mode="In" />
          <Parameter Name="BusRegNumber" Type="varchar" Mode="In" />
          <Parameter Name="TaxNumber" Type="varchar" Mode="In" />
          <Parameter Name="TelNumber" Type="varchar" Mode="In" />
          <Parameter Name="FaxNumber" Type="varchar" Mode="In" />
          <Parameter Name="CellNumber" Type="varchar" Mode="In" />
          <Parameter Name="EmailAddress" 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>
        <Function Name="Pr_MemberUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="MemberID" Type="bigint" Mode="In" />
          <Parameter Name="IdentityDocumentDocID" Type="bigint" Mode="In" />
          <Parameter Name="TaxClearanceCertificateDocID" Type="bigint" Mode="In" />
          <Parameter Name="SurnameOrCompanyName" Type="varchar" Mode="In" />
          <Parameter Name="FirstNames" Type="varchar" Mode="In" />
          <Parameter Name="IDTypeID" Type="smallint" Mode="In" />
          <Parameter Name="IDTypeDescription" Type="varchar" Mode="In" />
          <Parameter Name="IDNumberOrBusinessRegistrationNo" 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="OlasID" Type="bigint" Mode="In" />
          <Parameter Name="LtpsID" Type="bigint" Mode="In" />
          <Parameter Name="BusinessTypeID" 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_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_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_RouteNodeRemove" 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="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_RouteUpsert" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="RouteTypeID" Type="smallint" Mode="In" />
          <Parameter Name="RouteName" Type="varchar" Mode="In" />
          <Parameter Name="Description" Type="varchar(max)" Mode="In" />
          <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="RouteLength" Type="float" Mode="In" />
          <Parameter Name="TimeTableDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="FareScheduleDocumentID" Type="bigint" Mode="In" />
          <Parameter Name="OlasID" Type="bigint" Mode="In" />
          <Parameter Name="LtpsID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="AuditDescription" Type="varchar" Mode="In" />
          <Parameter Name="ForceUpdateIfExists" Type="bit" Mode="In" />
        </Function>
        <Function Name="Pr_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="ApplicationModelStoreContainer">
          <EntitySet Name="AdjudicationDecisions" EntityType="Self.AdjudicationDecisions" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationAllowedExpiredLicences" EntityType="Self.ApplicationAllowedExpiredLicences" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationApplicantDetails" EntityType="Self.ApplicationApplicantDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationContractDetails" EntityType="Self.ApplicationContractDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationDocuments" EntityType="Self.ApplicationDocuments" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationExistingLicenceHolders" EntityType="Self.ApplicationExistingLicenceHolders" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationExistingLicences" EntityType="Self.ApplicationExistingLicences" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationExistingVehicleDetails" EntityType="Self.ApplicationExistingVehicleDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationModeDetails" EntityType="Self.ApplicationModeDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationProxyDetails" EntityType="Self.ApplicationProxyDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRankDetails" EntityType="Self.ApplicationRankDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestAdjudicationDecisions" EntityType="Self.ApplicationRequestAdjudicationDecisions" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestDetails" EntityType="Self.ApplicationRequestDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationRequestObjections" EntityType="Self.ApplicationRequestObjections" 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="ApplicationRouteDetails" EntityType="Self.ApplicationRouteDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationServiceDetails" EntityType="Self.ApplicationServiceDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="ApplicationVehicleDetails" EntityType="Self.ApplicationVehicleDetails" 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="PrecheckDetails" EntityType="Self.PrecheckDetails" 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="BusinessTypes" EntityType="Self.BusinessTypes" 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="LicenceDurations" EntityType="Self.LicenceDurations" 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="Users" EntityType="Self.Users" Schema="Security" store:Type="Tables" />
          <EntitySet Name="Routes" EntityType="Self.Routes" Schema="Verified" store:Type="Tables" />
          <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_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>
          <AssociationSet Name="FK_ApplicationApplicantDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationApplicantDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationApplicantDetails" EntitySet="ApplicationApplicantDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationApplicantDetails_IDTypes" Association="Self.FK_ApplicationApplicantDetails_IDTypes">
            <End Role="IDTypes" EntitySet="IDTypes" />
            <End Role="ApplicationApplicantDetails" EntitySet="ApplicationApplicantDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationContractDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationContractDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationContractDetails" EntitySet="ApplicationContractDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationContractDetails_ContractTypes" Association="Self.FK_ApplicationContractDetails_ContractTypes">
            <End Role="ContractTypes" EntitySet="ContractTypes" />
            <End Role="ApplicationContractDetails" EntitySet="ApplicationContractDetails" />
          </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_ApplicationExistingLicence_ApplicationRequestDetails" Association="Self.FK_ApplicationExistingLicence_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationExistingLicences" EntitySet="ApplicationExistingLicences" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails" Association="Self.FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationExistingLicenceHolders" EntitySet="ApplicationExistingLicenceHolders" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingLicenceHolders_IDTypes" Association="Self.FK_ApplicationExistingLicenceHolders_IDTypes">
            <End Role="IDTypes" EntitySet="IDTypes" />
            <End Role="ApplicationExistingLicenceHolders" EntitySet="ApplicationExistingLicenceHolders" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingLicenceHolders_VehicleTypes" Association="Self.FK_ApplicationExistingLicenceHolders_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="ApplicationExistingLicenceHolders" EntitySet="ApplicationExistingLicenceHolders" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationExistingVehicleDetails" EntitySet="ApplicationExistingVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingVehicleDetails_VehicleMakes" Association="Self.FK_ApplicationExistingVehicleDetails_VehicleMakes">
            <End Role="VehicleMakes" EntitySet="VehicleMakes" />
            <End Role="ApplicationExistingVehicleDetails" EntitySet="ApplicationExistingVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingVehicleDetails_VehicleTypes" Association="Self.FK_ApplicationExistingVehicleDetails_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="ApplicationExistingVehicleDetails" EntitySet="ApplicationExistingVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationModeDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationModeDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationModeDetails" EntitySet="ApplicationModeDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationModeDetails_Modes" Association="Self.FK_ApplicationModeDetails_Modes">
            <End Role="Modes" EntitySet="Modes" />
            <End Role="ApplicationModeDetails" EntitySet="ApplicationModeDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationProxyDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationProxyDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationProxyDetails" EntitySet="ApplicationProxyDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationProxyDetails_IDTypes" Association="Self.FK_ApplicationProxyDetails_IDTypes">
            <End Role="IDTypes" EntitySet="IDTypes" />
            <End Role="ApplicationProxyDetails" EntitySet="ApplicationProxyDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRankDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationRankDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRankDetails" EntitySet="ApplicationRankDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions" Association="Self.FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions">
            <End Role="AdjudicationDecisions" EntitySet="AdjudicationDecisions" />
            <End Role="ApplicationRequestAdjudicationDecisions" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails" Association="Self.FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRequestAdjudicationDecisions" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_LicenceDurations" Association="Self.FK_ApplicationRequestAdjudicationDecisions_LicenceDurations">
            <End Role="LicenceDurations" EntitySet="LicenceDurations" />
            <End Role="ApplicationRequestAdjudicationDecisions" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_Users" Association="Self.FK_ApplicationRequestAdjudicationDecisions_Users">
            <End Role="Users" EntitySet="Users" />
            <End Role="ApplicationRequestAdjudicationDecisions" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </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_ApplicationRequestObjections_ApplicationRequestDetails" Association="Self.FK_ApplicationRequestObjections_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRequestObjections" EntitySet="ApplicationRequestObjections" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestObjections_Users" Association="Self.FK_ApplicationRequestObjections_Users">
            <End Role="Users" EntitySet="Users" />
            <End Role="ApplicationRequestObjections" EntitySet="ApplicationRequestObjections" />
          </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_ApplicationRouteDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationRouteDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRouteDetails" EntitySet="ApplicationRouteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationServiceDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationServiceDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationServiceDetails" EntitySet="ApplicationServiceDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationServiceDetails_ServiceTypes" Association="Self.FK_ApplicationServiceDetails_ServiceTypes">
            <End Role="ServiceTypes" EntitySet="ServiceTypes" />
            <End Role="ApplicationServiceDetails" EntitySet="ApplicationServiceDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetails_ApplicationRequestDetails" Association="Self.FK_ApplicationVehicleDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationVehicleDetails" EntitySet="ApplicationVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetails_VehicleMakes" Association="Self.FK_ApplicationVehicleDetails_VehicleMakes">
            <End Role="VehicleMakes" EntitySet="VehicleMakes" />
            <End Role="ApplicationVehicleDetails" EntitySet="ApplicationVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetails_VehicleTypes" Association="Self.FK_ApplicationVehicleDetails_VehicleTypes">
            <End Role="VehicleTypes" EntitySet="VehicleTypes" />
            <End Role="ApplicationVehicleDetails" EntitySet="ApplicationVehicleDetails" />
          </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_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_GazetteDetails_Provinces" Association="Self.FK_GazetteDetails_Provinces">
            <End Role="Provinces" EntitySet="Provinces" />
            <End Role="GazetteDetails" EntitySet="GazetteDetails" />
          </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_SourceApplications" Association="Self.FK_PrecheckDetails_SourceApplications">
            <End Role="SourceApplications" EntitySet="SourceApplications" />
            <End Role="PrecheckDetails" EntitySet="PrecheckDetails" />
          </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_Routes_RouteTypes" Association="Self.FK_Routes_RouteTypes">
            <End Role="RouteTypes" EntitySet="RouteTypes" />
            <End Role="Routes" EntitySet="Routes" />
          </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="ApplicationContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="ApplicationApplicantDetails" EntityType="Model.ApplicationApplicantDetail" />
          <EntitySet Name="ApplicationModeDetails" EntityType="Model.ApplicationModeDetail" />
          <EntitySet Name="ApplicationProxyDetails" EntityType="Model.ApplicationProxyDetail" />
          <EntitySet Name="ApplicationRequestDetails" EntityType="Model.ApplicationRequestDetail" />
          <EntitySet Name="ApplicationRouteDetails" EntityType="Model.ApplicationRouteDetail" />
          <EntitySet Name="ApplicationServiceDetails" EntityType="Model.ApplicationServiceDetail" />
          <AssociationSet Name="FK_ApplicationApplicantDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationApplicantDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationApplicantDetails" EntitySet="ApplicationApplicantDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationModeDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationModeDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationModeDetails" EntitySet="ApplicationModeDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationProxyDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationProxyDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationProxyDetails" EntitySet="ApplicationProxyDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRouteDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationRouteDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRouteDetails" EntitySet="ApplicationRouteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationServiceDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationServiceDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetails" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationServiceDetails" EntitySet="ApplicationServiceDetails" />
          </AssociationSet>
          <EntitySet Name="ApplicationDocuments" EntityType="Model.ApplicationDocument" />
          <AssociationSet Name="FK_ApplicationDocuments_ApplicationRequestDetails" Association="Model.FK_ApplicationDocuments_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationDocument" EntitySet="ApplicationDocuments" />
          </AssociationSet>
          <EntitySet Name="ApplicationContractDetails" EntityType="Model.ApplicationContractDetail" />
          <AssociationSet Name="FK_ApplicationContractDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationContractDetails_ApplicationRequestDetails">
            <End EntitySet="ApplicationRequestDetails" Role="ApplicationRequestDetail" />
            <End EntitySet="ApplicationContractDetails" Role="ApplicationContractDetail" />
          </AssociationSet>
          <EntitySet Name="ApplicationRequestTypes" EntityType="Model.ApplicationRequestType" />
          <AssociationSet Name="FK_ApplicationRequestDetails_ApplicationRequestTypes" Association="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_LogPrintReceipt">
            <Parameter Name="ReceiptDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="ReceiptDetails" EntityType="Model.ReceiptDetail" />
          <FunctionImport Name="Pr_NewRouteRequestDetailsSearch" EntitySet="Vw_NewRouteRequestDetails" ReturnType="Collection(Model.Vw_NewRouteRequestDetails)">
            <Parameter Name="NewRouteRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="WorkflowInstanceStatusID" Mode="In" Type="Int16" />
            <Parameter Name="Description" Mode="In" Type="String" />
          </FunctionImport>
          <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>
          <EntitySet Name="ApplicationRequestTypeDocuments" EntityType="Model.ApplicationRequestTypeDocument" />
          <EntitySet Name="DocumentTypes" EntityType="Model.DocumentType" />
          <AssociationSet Name="FK_ApplicationDocuments_DocumentTypes" Association="Model.FK_ApplicationDocuments_DocumentTypes">
            <End Role="DocumentType" EntitySet="DocumentTypes" />
            <End Role="ApplicationDocument" EntitySet="ApplicationDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" Association="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="ApplicationRequestTypeDocument" EntitySet="ApplicationRequestTypeDocuments" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestTypeDocuments_DocumentTypes" Association="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes">
            <End Role="DocumentType" EntitySet="DocumentTypes" />
            <End Role="ApplicationRequestTypeDocument" EntitySet="ApplicationRequestTypeDocuments" />
          </AssociationSet>
          <EntitySet Name="PrecheckDetails" EntityType="Model.PrecheckDetail" />
          <AssociationSet Name="FK_ApplicationRequestDetails_PrecheckDetails" Association="Model.FK_ApplicationRequestDetails_PrecheckDetails">
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PrecheckDetails_ApplicationRequestTypes" Association="Model.FK_PrecheckDetails_ApplicationRequestTypes">
            <End Role="ApplicationRequestType" EntitySet="ApplicationRequestTypes" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <EntitySet Name="ApplicationExistingLicenceHolders" EntityType="Model.ApplicationExistingLicenceHolder" />
          <EntitySet Name="ApplicationExistingLicences" EntityType="Model.ApplicationExistingLicence" />
          <EntitySet Name="ApplicationRankDetails" EntityType="Model.ApplicationRankDetail" />
          <AssociationSet Name="FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails" Association="Model.FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationExistingLicenceHolder" EntitySet="ApplicationExistingLicenceHolders" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingLicence_ApplicationRequestDetails" Association="Model.FK_ApplicationExistingLicence_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationExistingLicence" EntitySet="ApplicationExistingLicences" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRankDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationRankDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRankDetail" EntitySet="ApplicationRankDetails" />
          </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>
          <AssociationSet Name="FK_ApplicationRequestDetails_PaymentTypes" Association="Model.FK_ApplicationRequestDetails_PaymentTypes">
            <End Role="PaymentType" EntitySet="PaymentTypes" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <EntitySet Name="AssociationModes" EntityType="Model.AssociationMode" />
          <EntitySet Name="AssociationTypes" EntityType="Model.AssociationType" />
          <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="Provinces" EntityType="Model.Province" />
          <EntitySet Name="Regions" EntityType="Model.Region" />
          <EntitySet Name="RouteTypes" EntityType="Model.RouteType" />
          <EntitySet Name="ServiceTypes" EntityType="Model.ServiceType" />
          <EntitySet Name="SourceApplications" EntityType="Model.SourceApplication" />
          <EntitySet Name="VehicleMakes" EntityType="Model.VehicleMake" />
          <EntitySet Name="VehicleTypes" EntityType="Model.VehicleType" />
          <EntitySet Name="WaypointTypes" EntityType="Model.WaypointType" />
          <AssociationSet Name="FK_ApplicationApplicantDetails_IDTypes" Association="Model.FK_ApplicationApplicantDetails_IDTypes">
            <End Role="IDType" EntitySet="IDTypes" />
            <End Role="ApplicationApplicantDetail" EntitySet="ApplicationApplicantDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationContractDetails_ContractTypes" Association="Model.FK_ApplicationContractDetails_ContractTypes">
            <End EntitySet="ContractTypes" Role="ContractType" />
            <End EntitySet="ApplicationContractDetails" Role="ApplicationContractDetail" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingLicenceHolders_IDTypes" Association="Model.FK_ApplicationExistingLicenceHolders_IDTypes">
            <End Role="IDType" EntitySet="IDTypes" />
            <End Role="ApplicationExistingLicenceHolder" EntitySet="ApplicationExistingLicenceHolders" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingLicenceHolders_VehicleTypes" Association="Model.FK_ApplicationExistingLicenceHolders_VehicleTypes">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="ApplicationExistingLicenceHolder" EntitySet="ApplicationExistingLicenceHolders" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationModeDetails_Modes" Association="Model.FK_ApplicationModeDetails_Modes">
            <End Role="Mode" EntitySet="Modes" />
            <End Role="ApplicationModeDetail" EntitySet="ApplicationModeDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationProxyDetails_IDTypes" Association="Model.FK_ApplicationProxyDetails_IDTypes">
            <End Role="IDType" EntitySet="IDTypes" />
            <End Role="ApplicationProxyDetail" EntitySet="ApplicationProxyDetails" />
          </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="FK_ApplicationServiceDetails_ServiceTypes" Association="Model.FK_ApplicationServiceDetails_ServiceTypes">
            <End Role="ServiceType" EntitySet="ServiceTypes" />
            <End Role="ApplicationServiceDetail" EntitySet="ApplicationServiceDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_PrecheckDetails_SourceApplications" Association="Model.FK_PrecheckDetails_SourceApplications">
            <End Role="SourceApplication" EntitySet="SourceApplications" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Regions_Provinces" Association="Model.FK_Regions_Provinces">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="Region" EntitySet="Regions" />
          </AssociationSet>
          <EntitySet Name="Vw_NewRouteRequestDetails" EntityType="Model.Vw_NewRouteRequestDetails" />
          <FunctionImport Name="Pr_AssociationMemberAdd">
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="MemberID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_AssociationUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="AssociationID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationModeID" Mode="In" Type="Int32" />
            <Parameter Name="AssociationTypeID" Mode="In" Type="Int16" />
            <Parameter Name="RegionID" Mode="In" Type="Int64" />
            <Parameter Name="AssociationName" Mode="In" Type="String" />
            <Parameter Name="AssociationNameAbbrev" Mode="In" Type="String" />
            <Parameter Name="RegistrationNumber" 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="PostalAddressIsDomicilium" Mode="In" Type="Boolean" />
            <Parameter Name="BusRegNumber" Mode="In" Type="String" />
            <Parameter Name="TaxNumber" Mode="In" Type="String" />
            <Parameter Name="TelNumber" Mode="In" Type="String" />
            <Parameter Name="FaxNumber" Mode="In" Type="String" />
            <Parameter Name="CellNumber" Mode="In" Type="String" />
            <Parameter Name="EmailAddress" 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_MemberUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="MemberID" Mode="In" Type="Int64" />
            <Parameter Name="IdentityDocumentDocID" Mode="In" Type="Int64" />
            <Parameter Name="TaxClearanceCertificateDocID" Mode="In" Type="Int64" />
            <Parameter Name="SurnameOrCompanyName" Mode="In" Type="String" />
            <Parameter Name="FirstNames" Mode="In" Type="String" />
            <Parameter Name="IDTypeID" Mode="In" Type="Int16" />
            <Parameter Name="IDTypeDescription" Mode="In" Type="String" />
            <Parameter Name="IDNumberOrBusinessRegistrationNo" 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="OlasID" Mode="In" Type="Int64" />
            <Parameter Name="LtpsID" Mode="In" Type="Int64" />
            <Parameter Name="BusinessTypeID" 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_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_RouteNodeRemove">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="PlaceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_RouteUpsert" ReturnType="Collection(Int64)">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="RouteTypeID" Mode="In" Type="Int16" />
            <Parameter Name="RouteName" Mode="In" Type="String" />
            <Parameter Name="Description" Mode="In" Type="String" />
            <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="RouteLength" Mode="In" Type="Double" />
            <Parameter Name="TimeTableDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="FareScheduleDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="OlasID" Mode="In" Type="Int64" />
            <Parameter Name="LtpsID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="AuditDescription" Mode="In" Type="String" />
            <Parameter Name="ForceUpdateIfExists" Mode="In" Type="Boolean" />
          </FunctionImport>
          <FunctionImport Name="Pr_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>
          <EntitySet Name="BusinessTypes" EntityType="Model.BusinessType" />
          <EntitySet Name="ApplicationRequestObjections" EntityType="Model.ApplicationRequestObjection" />
          <AssociationSet Name="FK_ApplicationRequestObjections_ApplicationRequestDetails" Association="Model.FK_ApplicationRequestObjections_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRequestObjection" EntitySet="ApplicationRequestObjections" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationRequestPostSaveProcess">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Routes" EntityType="Model.Route" />
          <AssociationSet Name="FK_ApplicationRouteDetails_Routes" Association="Model.FK_ApplicationRouteDetails_Routes">
            <End Role="Route" EntitySet="Routes" />
            <End Role="ApplicationRouteDetail" EntitySet="ApplicationRouteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Routes_RouteTypes" Association="Model.FK_Routes_RouteTypes">
            <End Role="RouteType" EntitySet="RouteTypes" />
            <End Role="Route" EntitySet="Routes" />
          </AssociationSet>
          <EntitySet Name="ApplicationExistingVehicleDetails" EntityType="Model.ApplicationExistingVehicleDetail" />
          <AssociationSet Name="FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationExistingVehicleDetail" EntitySet="ApplicationExistingVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingVehicleDetails_VehicleMakes" Association="Model.FK_ApplicationExistingVehicleDetails_VehicleMakes">
            <End Role="VehicleMake" EntitySet="VehicleMakes" />
            <End Role="ApplicationExistingVehicleDetail" EntitySet="ApplicationExistingVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationExistingVehicleDetails_VehicleTypes" Association="Model.FK_ApplicationExistingVehicleDetails_VehicleTypes">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="ApplicationExistingVehicleDetail" EntitySet="ApplicationExistingVehicleDetails" />
          </AssociationSet>
          <EntitySet Name="ApplicationVehicleDetails" EntityType="Model.ApplicationVehicleDetail" />
          <AssociationSet Name="FK_ApplicationVehicleDetails_ApplicationRequestDetails" Association="Model.FK_ApplicationVehicleDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationVehicleDetail" EntitySet="ApplicationVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetails_VehicleMakes" Association="Model.FK_ApplicationVehicleDetails_VehicleMakes">
            <End Role="VehicleMake" EntitySet="VehicleMakes" />
            <End Role="ApplicationVehicleDetail" EntitySet="ApplicationVehicleDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationVehicleDetails_VehicleTypes" Association="Model.FK_ApplicationVehicleDetails_VehicleTypes">
            <End Role="VehicleType" EntitySet="VehicleTypes" />
            <End Role="ApplicationVehicleDetail" EntitySet="ApplicationVehicleDetails" />
          </AssociationSet>
          <EntitySet Name="Vw_ApplicationRequestDetails" EntityType="Model.Vw_ApplicationRequestDetails" />
          <AssociationSet Name="FK_PrecheckDetails_Modes" Association="Model.FK_PrecheckDetails_Modes">
            <End Role="Mode" EntitySet="Modes" />
            <End Role="PrecheckDetail" EntitySet="PrecheckDetails" />
          </AssociationSet>
          <EntitySet Name="ApplicationAllowedExpiredLicences" EntityType="Model.ApplicationAllowedExpiredLicence" />
          <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="Region" EntitySet="Regions" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <EntitySet Name="AdjudicationDecisions" EntityType="Model.AdjudicationDecision" />
          <EntitySet Name="ApplicationRequestAdjudicationDecisions" EntityType="Model.ApplicationRequestAdjudicationDecision" />
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions" Association="Model.FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions">
            <End Role="AdjudicationDecision" EntitySet="AdjudicationDecisions" />
            <End Role="ApplicationRequestAdjudicationDecision" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails" Association="Model.FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ApplicationRequestAdjudicationDecision" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <EntitySet Name="LicenceDurations" EntityType="Model.LicenceDuration" />
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_LicenceDurations" Association="Model.FK_ApplicationRequestAdjudicationDecisions_LicenceDurations">
            <End Role="LicenceDuration" EntitySet="LicenceDurations" />
            <End Role="ApplicationRequestAdjudicationDecision" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationRequestObjectionUpsert">
            <Parameter Name="ApplicationRequestObjectionID" Mode="In" Type="Int64" />
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Objector" Mode="In" Type="String" />
            <Parameter Name="Objection" Mode="In" Type="String" />
            <Parameter Name="ObjectionDate" Mode="In" Type="DateTime" />
            <Parameter Name="PostalAddress" Mode="In" Type="String" />
            <Parameter Name="PostalAddressCode" 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="ObjectionDocumentID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="GazetteDetails" EntityType="Model.GazetteDetail" />
          <AssociationSet Name="FK_ApplicationRequestDetails_GazetteDetails" Association="Model.FK_ApplicationRequestDetails_GazetteDetails">
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_GazetteDetails_Provinces" Association="Model.FK_GazetteDetails_Provinces">
            <End Role="Province" EntitySet="Provinces" />
            <End Role="GazetteDetail" EntitySet="GazetteDetails" />
          </AssociationSet>
          <EntitySet Name="Users" EntityType="Model.User" />
          <AssociationSet Name="FK_ApplicationRequestAdjudicationDecisions_Users" Association="Model.FK_ApplicationRequestAdjudicationDecisions_Users">
            <End Role="User" EntitySet="Users" />
            <End Role="ApplicationRequestAdjudicationDecision" EntitySet="ApplicationRequestAdjudicationDecisions" />
          </AssociationSet>
          <AssociationSet Name="FK_ApplicationRequestObjections_Users" Association="Model.FK_ApplicationRequestObjections_Users">
            <End Role="User" EntitySet="Users" />
            <End Role="ApplicationRequestObjection" EntitySet="ApplicationRequestObjections" />
          </AssociationSet>
          <FunctionImport Name="Pr_ApplicationCheckSecurity">
            <Parameter Name="ApplicationRequestDetailID" Mode="In" Type="Int64" />
            <Parameter Name="Action" 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_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="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_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>
          <AssociationSet Name="FK_ReceiptDetails_ApplicationRequestDetails" Association="Model.FK_ReceiptDetails_ApplicationRequestDetails">
            <End Role="ApplicationRequestDetail" EntitySet="ApplicationRequestDetails" />
            <End Role="ReceiptDetail" EntitySet="ReceiptDetails" />
          </AssociationSet>
          <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>
        </EntityContainer>
        <EntityType Name="ApplicationApplicantDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="FirstNames" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" Unicode="false" FixedLength="false" />
          <Property Name="PostalAddress" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="PostalAddressCode" Type="String" MaxLength="4" Unicode="false" FixedLength="false" />
          <Property Name="PhysicalAddress" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="PhysicalAddressCode" Type="String" MaxLength="4" Unicode="false" FixedLength="false" />
          <Property Name="TelPhone" Type="String" MaxLength="14" Unicode="false" FixedLength="false" />
          <Property Name="TelCell" Type="String" MaxLength="14" Unicode="false" FixedLength="false" />
          <Property Name="TelFax" Type="String" MaxLength="14" Unicode="false" FixedLength="false" />
          <Property Name="Email" Type="String" MaxLength="150" Unicode="false" FixedLength="false" />
          <Property Name="SARSIncomeTaxNumber" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="SARSReasonIfNoTaxNumber" Type="String" MaxLength="1000" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationApplicantDetails_ApplicationRequestDetails" FromRole="ApplicationApplicantDetails" ToRole="ApplicationRequestDetails" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="String" Name="TradeName" 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="TypeOfBusiness" MaxLength="255" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="IDType" Relationship="Model.FK_ApplicationApplicantDetails_IDTypes" FromRole="ApplicationApplicantDetail" ToRole="IDType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="BusinessTypeID" />
          <Property Type="Int64" Name="VerifiedMemberID" />
          <Property Type="Int64" Name="VerifiedAssociationID" />
        </EntityType>
        <EntityType Name="ApplicationModeDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="ModeDescription" Type="String" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="LongDistanceReason" Type="String" MaxLength="2000" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationModeDetails_ApplicationRequestDetails" FromRole="ApplicationModeDetails" ToRole="ApplicationRequestDetails" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int16" Name="ModeID" />
          <NavigationProperty Name="Mode" Relationship="Model.FK_ApplicationModeDetails_Modes" FromRole="ApplicationModeDetail" ToRole="Mode" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="IsUberMeteredTaxi" Type="Boolean" />
        </EntityType>
        <EntityType Name="ApplicationProxyDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="Surname" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="FirstNames" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="TelPhone" Type="String" MaxLength="14" Unicode="false" FixedLength="false" />
          <Property Name="TelCell" Type="String" MaxLength="14" Unicode="false" FixedLength="false" />
          <Property Name="TelFax" Type="String" MaxLength="14" Unicode="false" FixedLength="false" />
          <Property Name="Email" Type="String" MaxLength="150" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationProxyDetails_ApplicationRequestDetails" FromRole="ApplicationProxyDetails" ToRole="ApplicationRequestDetails" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="IDTypeID" />
          <Property Type="String" Name="IDTypeDescription" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="IDType" Relationship="Model.FK_ApplicationProxyDetails_IDTypes" FromRole="ApplicationProxyDetail" ToRole="IDType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="ApplicationRequestDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Applicant" Relationship="Model.FK_ApplicationApplicantDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetails" ToRole="ApplicationApplicantDetails" />
          <NavigationProperty Name="Mode" Relationship="Model.FK_ApplicationModeDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetails" ToRole="ApplicationModeDetails" />
          <NavigationProperty Name="Proxy" Relationship="Model.FK_ApplicationProxyDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetails" ToRole="ApplicationProxyDetails" />
          <NavigationProperty Name="Routes" Relationship="Model.FK_ApplicationRouteDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetails" ToRole="ApplicationRouteDetails" />
          <NavigationProperty Name="Services" Relationship="Model.FK_ApplicationServiceDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetails" ToRole="ApplicationServiceDetails" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_ApplicationDocuments_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationDocument" />
          <NavigationProperty Name="Contract" Relationship="Model.FK_ApplicationContractDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationContractDetail" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <NavigationProperty Name="RequestType" Relationship="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes" FromRole="ApplicationRequestDetail" ToRole="ApplicationRequestType" />
          <Property Type="Int16" Name="ProvinceID" Nullable="false" />
          <Property Type="Int16" Name="SourceApplicationID" Nullable="false" />
          <Property Type="Int64" Name="GazetteDetailID" />
          <Property Type="Boolean" Name="IsNewAssociationRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsNewMemberRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsNewRouteRequired" Nullable="false" />
          <Property Type="Int64" Name="AdjudicationDetailID" />
          <Property Type="Int64" Name="PrecheckDetailID" />
          <NavigationProperty Name="PrecheckDetail" Relationship="Model.FK_ApplicationRequestDetails_PrecheckDetails" FromRole="ApplicationRequestDetail" ToRole="PrecheckDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="IsExceptionRequired" Nullable="false" />
          <Property Type="Boolean" Name="IsUpliftmentRequired" Nullable="false" />
          <NavigationProperty Name="ExistingLicenceHolder" Relationship="Model.FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationExistingLicenceHolder" />
          <NavigationProperty Name="ExistingLicence" Relationship="Model.FK_ApplicationExistingLicence_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationExistingLicence" />
          <NavigationProperty Name="Ranks" Relationship="Model.FK_ApplicationRankDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationRankDetail" />
          <Property Type="Int16" Name="PaymentTypeID" />
          <NavigationProperty Name="PaymentType" Relationship="Model.FK_ApplicationRequestDetails_PaymentTypes" FromRole="ApplicationRequestDetail" ToRole="PaymentType" />
          <NavigationProperty Name="Province" Relationship="Model.FK_ApplicationRequestDetails_Provinces" FromRole="ApplicationRequestDetail" ToRole="Province" />
          <NavigationProperty Name="SourceApplication" Relationship="Model.FK_ApplicationRequestDetails_SourceApplications" FromRole="ApplicationRequestDetail" ToRole="SourceApplication" />
          <Property Type="Boolean" Name="IsAdjustmentRequired" Nullable="false" />
          <NavigationProperty Name="Objections" Relationship="Model.FK_ApplicationRequestObjections_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationRequestObjection" />
          <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" />
          <NavigationProperty Name="ExistingVehicle" Relationship="Model.FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationExistingVehicleDetail" />
          <NavigationProperty Name="Vehicle" Relationship="Model.FK_ApplicationVehicleDetails_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationVehicleDetail" />
          <Property Type="Boolean" Name="IsCancellationRequired" Nullable="false" />
          <Property Name="RegionID" Type="Int64" />
          <NavigationProperty Name="Region" Relationship="Model.FK_ApplicationRequestDetails_Regions" FromRole="ApplicationRequestDetail" ToRole="Region" />
          <Property Name="AdjudicationDecisionID" Type="Int16" />
          <Property Name="AdjudicationLicenceDurationMonths" Type="Int32" />
          <Property Name="AdjudicationDecisionDate" Type="DateTime" Precision="3" />
          <NavigationProperty Name="ApplicationRequestAdjudicationDecisions" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationRequestAdjudicationDecision" />
          <Property Name="AdjudicationException" Type="Boolean" />
          <Property Name="AdjudicationLicenceExpiryDate" Type="DateTime" Precision="0" />
          <NavigationProperty Name="GazetteDetail" Relationship="Model.FK_ApplicationRequestDetails_GazetteDetails" FromRole="ApplicationRequestDetail" ToRole="GazetteDetail" />
          <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" />
          <Property Name="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <NavigationProperty Name="ApplicationVehicleDetailsInBulk" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" FromRole="ApplicationRequestDetail" ToRole="ApplicationVehicleDetailsInBulk" />
          <Property Name="IsBulkVehicleApplication" Type="Boolean" Nullable="false" />
          <Property Name="VehicleCount" Type="Int32" Nullable="false" />
          <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>
        <EntityType Name="ApplicationRouteDetail">
          <Key>
            <PropertyRef Name="ApplicationRouteDetailID" />
          </Key>
          <Property Name="ApplicationRouteDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="RouteOrigin" Type="String" Unicode="false" FixedLength="false" MaxLength="255" Nullable="false" />
          <Property Name="RouteDestination" Type="String" Unicode="false" FixedLength="false" MaxLength="255" Nullable="false" />
          <Property Name="RouteDescription" Type="String" MaxLength="Max" Unicode="false" FixedLength="false" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationRouteDetails_ApplicationRequestDetails" FromRole="ApplicationRouteDetails" ToRole="ApplicationRequestDetails" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int16" Name="ApplicationRouteDetailStatusID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedRouteID" />
          <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="Int64" Name="NewRouteRequestDetailID" />
          <NavigationProperty Name="Route" Relationship="Model.FK_ApplicationRouteDetails_Routes" FromRole="ApplicationRouteDetail" ToRole="Route" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="TimeTableDocumentID" Type="Int64" />
          <Property Name="FareScheduleDocumentID" Type="Int64" />
          <Property Name="RouteNumber" Type="Int16" />
          <Property Name="RouteChangeTypeID" Type="Int16" />
          <Property Name="IsExistingLtpsOrOlasRoute" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="ApplicationServiceDetail">
          <Key>
            <PropertyRef Name="ApplicationServiceDetailID" />
          </Key>
          <Property Name="ApplicationServiceDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationServiceDetails_ApplicationRequestDetails" FromRole="ApplicationServiceDetails" ToRole="ApplicationRequestDetails" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int16" Name="ServiceTypeID" />
          <Property Type="String" Name="ServiceTypeDescription" MaxLength="100" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="ServiceType" Relationship="Model.FK_ApplicationServiceDetails_ServiceTypes" FromRole="ApplicationServiceDetail" ToRole="ServiceType" />
        </EntityType>
        <Association Name="FK_ApplicationApplicantDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Model.ApplicationRequestDetail" Multiplicity="1" />
          <End Role="ApplicationApplicantDetails" Type="Model.ApplicationApplicantDetail" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationApplicantDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationModeDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Model.ApplicationRequestDetail" Multiplicity="1" />
          <End Role="ApplicationModeDetails" Type="Model.ApplicationModeDetail" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationModeDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationProxyDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Model.ApplicationRequestDetail" Multiplicity="1" />
          <End Role="ApplicationProxyDetails" Type="Model.ApplicationProxyDetail" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationProxyDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRouteDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Model.ApplicationRequestDetail" Multiplicity="1" />
          <End Role="ApplicationRouteDetails" Type="Model.ApplicationRouteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRouteDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationServiceDetails_ApplicationRequestDetails">
          <End Role="ApplicationRequestDetails" Type="Model.ApplicationRequestDetail" Multiplicity="1" />
          <End Role="ApplicationServiceDetails" Type="Model.ApplicationServiceDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationServiceDetails">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </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="ApplicationRequestDetail" Relationship="Model.FK_ApplicationDocuments_ApplicationRequestDetails" FromRole="ApplicationDocument" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_ApplicationDocuments_DocumentTypes" FromRole="ApplicationDocument" ToRole="DocumentType" />
          <Property Name="IsMandatory" Type="Boolean" Nullable="false" />
          <Property Name="DocumentID" Type="Int64" />
        </EntityType>
        <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>
        <EntityType Name="ApplicationContractDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Nullable="false" Type="Int64" />
          <Property Name="ContractReferenceNumber" MaxLength="20" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="NameOfParties1" MaxLength="200" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AddressOfParties1" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AddressCodeOfParties1" MaxLength="4" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="NameOfParties2" MaxLength="200" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AddressOfParties2" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AddressCodeOfParties2" MaxLength="4" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="NameOfSubContractor" MaxLength="200" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AddressOfSubContractor" MaxLength="255" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="AddressCodeOfSubContractor" MaxLength="4" FixedLength="false" Unicode="false" Type="String" />
          <Property Name="ContractFromDate" Precision="0" Type="DateTime" />
          <Property Name="ContractToDate" Precision="0" Type="DateTime" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationContractDetails_ApplicationRequestDetails" FromRole="ApplicationContractDetail" ToRole="ApplicationRequestDetail">
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="ContractTypeID" Type="Int16" />
          <NavigationProperty Name="ContractType" Relationship="Model.FK_ApplicationContractDetails_ContractTypes" FromRole="ApplicationContractDetail" ToRole="ContractType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ApplicationContractDetails_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Multiplicity="1" Role="ApplicationRequestDetail" />
          <End Type="Model.ApplicationContractDetail" Multiplicity="0..1" Role="ApplicationContractDetail" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationContractDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="ApplicationRequestType">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeID" />
          </Key>
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Decimal" Name="Cost" Precision="19" Scale="4" Nullable="false" />
          <Property Type="Boolean" Name="IsCancelled" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestTypeDocuments" Relationship="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="ApplicationRequestTypeDocument" />
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_ApplicationRequestTypes" FromRole="ApplicationRequestType" ToRole="PrecheckDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="String" Name="ImageSrc" MaxLength="255" FixedLength="false" Unicode="false" />
        </EntityType>
        <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>
        <EntityType Name="ReceiptDetail">
          <Key>
            <PropertyRef Name="ReceiptDetailID" />
          </Key>
          <Property Type="Int64" Name="ReceiptDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <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="Int16" Name="PaymentTypeID" 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>
        <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="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="String" Name="Task" Nullable="true" MaxLength="255" />
        </ComplexType>
        <EntityType Name="ApplicationRequestTypeDocument">
          <Key>
            <PropertyRef Name="ApplicationRequestTypeDocumentID" />
          </Key>
          <Property Type="Int32" Name="ApplicationRequestTypeDocumentID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int16" Name="ApplicationRequestTypeID" Nullable="false" />
          <Property Type="Int16" Name="DocumentTypeID" Nullable="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestType" Relationship="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" FromRole="ApplicationRequestTypeDocument" ToRole="ApplicationRequestType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" FromRole="ApplicationRequestTypeDocument" ToRole="DocumentType" />
          <Property Type="Int64" Name="WorkflowID" Nullable="false" />
          <Property Name="IsMandatory" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentType">
          <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="ApplicationDocuments" Relationship="Model.FK_ApplicationDocuments_DocumentTypes" FromRole="DocumentType" ToRole="ApplicationDocument" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestTypeDocuments" Relationship="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" FromRole="DocumentType" ToRole="ApplicationRequestTypeDocument" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Boolean" Name="IsDocumentTemplate" Nullable="false" />
          <Property Type="Boolean" Name="IsDocumentTitleEditable" Nullable="false" />
        </EntityType>
        <Association Name="FK_ApplicationDocuments_DocumentTypes">
          <End Type="Model.DocumentType" Role="DocumentType" Multiplicity="1" />
          <End Type="Model.ApplicationDocument" Role="ApplicationDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentType">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationDocument">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes">
          <End Type="Model.ApplicationRequestType" Role="ApplicationRequestType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDocument" Role="ApplicationRequestTypeDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestType">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocument">
              <PropertyRef Name="ApplicationRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestTypeDocuments_DocumentTypes">
          <End Type="Model.DocumentType" Role="DocumentType" Multiplicity="1" />
          <End Type="Model.ApplicationRequestTypeDocument" Role="ApplicationRequestTypeDocument" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentType">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="ApplicationRequestTypeDocument">
              <PropertyRef Name="DocumentTypeID" />
            </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="String" Name="VehicleRegistrationNumber" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NltisXml" MaxLength="Max" FixedLength="false" Unicode="true" />
          <Property Type="Boolean" Name="NltisXmlDataFound" />
          <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="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_PrecheckDetails" FromRole="PrecheckDetail" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <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="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" />
          <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_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_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>
        <EntityType Name="ApplicationExistingLicenceHolder">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <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="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddressCode" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PhysicalAddress" MaxLength="255" 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="50" 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" />
          <Property Type="String" Name="TypeOfBusiness" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VIN" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleMake" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="YearOfManufacture" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="CarryingCapacity" MaxLength="2" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RoadworthyCertificateNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="RoadworthyCertificateDocID" />
          <Property Type="DateTime" Name="RoadworthyExpiryDate" Precision="3" />
          <Property Type="Int16" Name="VehicleTypeID" />
          <Property Type="Boolean" Name="UseExisitingVehicle" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails" FromRole="ApplicationExistingLicenceHolder" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="IDType" Relationship="Model.FK_ApplicationExistingLicenceHolders_IDTypes" FromRole="ApplicationExistingLicenceHolder" ToRole="IDType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleType" Relationship="Model.FK_ApplicationExistingLicenceHolders_VehicleTypes" FromRole="ApplicationExistingLicenceHolder" ToRole="VehicleType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="ApplicationExistingLicence">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="OperatingLicenceIssuingBoard" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="DateTime" Name="OperatingLicenceIssueDate" Precision="3" />
          <Property Type="String" Name="ReasonForAmendment" MaxLength="Max" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationExistingLicence_ApplicationRequestDetails" FromRole="ApplicationExistingLicence" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="DateTime" Name="OperatingLicenceExpiryDate" Precision="3" />
          <Property Type="String" Name="SpecialLicenceDetails" MaxLength="1000" FixedLength="false" Unicode="false" />
          <Property Type="DateTime" Name="SpecialLicenceDateFrom" Precision="3" />
          <Property Type="DateTime" Name="SpecialLicenceDateTo" Precision="3" />
        </EntityType>
        <EntityType Name="ApplicationRankDetail">
          <Key>
            <PropertyRef Name="ApplicationRankDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRankDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="RankName" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RankLocation" MaxLength="255" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationRankDetails_ApplicationRequestDetails" FromRole="ApplicationRankDetail" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationExistingLicenceHolder" Role="ApplicationExistingLicenceHolder" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicenceHolder">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingLicence_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationExistingLicence" Role="ApplicationExistingLicence" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicence">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRankDetails_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationRankDetail" Role="ApplicationRankDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRankDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </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" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ReceiptDetails_PaymentTypes">
          <End Type="Model.PaymentType" Role="PaymentType" Multiplicity="1" />
          <End Type="Model.ReceiptDetail" Role="ReceiptDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PaymentType">
              <PropertyRef Name="PaymentTypeID" />
            </Principal>
            <Dependent Role="ReceiptDetail">
              <PropertyRef Name="PaymentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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>
        <EntityType Name="AssociationMode">
          <Key>
            <PropertyRef Name="AssociationModeID" />
          </Key>
          <Property Type="Int16" Name="AssociationModeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpsID" />
        </EntityType>
        <EntityType Name="AssociationType">
          <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" />
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpID" />
        </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" />
          <NavigationProperty Name="ApplicationContractDetails" Relationship="Model.FK_ApplicationContractDetails_ContractTypes" FromRole="ContractType" ToRole="ApplicationContractDetail" />
        </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="ApplicationApplicantDetails" Relationship="Model.FK_ApplicationApplicantDetails_IDTypes" FromRole="IDType" ToRole="ApplicationApplicantDetail" />
          <NavigationProperty Name="ApplicationExistingLicenceHolders" Relationship="Model.FK_ApplicationExistingLicenceHolders_IDTypes" FromRole="IDType" ToRole="ApplicationExistingLicenceHolder" />
          <NavigationProperty Name="ApplicationProxyDetails" Relationship="Model.FK_ApplicationProxyDetails_IDTypes" FromRole="IDType" ToRole="ApplicationProxyDetail" />
        </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" />
          <NavigationProperty Name="ApplicationModeDetails" Relationship="Model.FK_ApplicationModeDetails_Modes" FromRole="Mode" ToRole="ApplicationModeDetail" />
          <Property Type="Int64" Name="OlasServiceTypeID" />
          <Property Type="Int64" Name="LtpsID" />
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_Modes" FromRole="Mode" ToRole="PrecheckDetail" />
          <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" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
        </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="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_Provinces" FromRole="Province" ToRole="ApplicationRequestDetail" />
          <NavigationProperty Name="Regions" Relationship="Model.FK_Regions_Provinces" FromRole="Province" ToRole="Region" />
          <NavigationProperty Name="GazetteDetails" Relationship="Model.FK_GazetteDetails_Provinces" FromRole="Province" ToRole="GazetteDetail" />
        </EntityType>
        <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="Region" ToRole="Province" />
          <Property Name="PaymentClerkUserID" Type="Int64" />
          <Property Name="RegistryClerkUserID" Type="Int64" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_Regions" FromRole="Region" 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>
        <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" />
          <NavigationProperty Name="ApplicationServiceDetails" Relationship="Model.FK_ApplicationServiceDetails_ServiceTypes" FromRole="ServiceType" ToRole="ApplicationServiceDetail" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
        </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="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_SourceApplications" FromRole="SourceApplication" ToRole="ApplicationRequestDetail" />
          <NavigationProperty Name="PrecheckDetails" Relationship="Model.FK_PrecheckDetails_SourceApplications" FromRole="SourceApplication" ToRole="PrecheckDetail" />
        </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="ApplicationExistingVehicleDetails" Relationship="Model.FK_ApplicationExistingVehicleDetails_VehicleMakes" FromRole="VehicleMake" ToRole="ApplicationExistingVehicleDetail" />
          <NavigationProperty Name="ApplicationVehicleDetails" Relationship="Model.FK_ApplicationVehicleDetails_VehicleMakes" FromRole="VehicleMake" ToRole="ApplicationVehicleDetail" />
          <NavigationProperty Name="ApplicationVehicleDetailsInBulks" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_VehicleMakes" FromRole="VehicleMake" ToRole="ApplicationVehicleDetailsInBulk" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </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="ApplicationExistingLicenceHolders" Relationship="Model.FK_ApplicationExistingLicenceHolders_VehicleTypes" FromRole="VehicleType" ToRole="ApplicationExistingLicenceHolder" />
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpsID" />
          <NavigationProperty Name="ApplicationExistingVehicleDetails" Relationship="Model.FK_ApplicationExistingVehicleDetails_VehicleTypes" FromRole="VehicleType" ToRole="ApplicationExistingVehicleDetail" />
          <NavigationProperty Name="ApplicationVehicleDetails" Relationship="Model.FK_ApplicationVehicleDetails_VehicleTypes" FromRole="VehicleType" ToRole="ApplicationVehicleDetail" />
          <NavigationProperty Name="ApplicationVehicleDetailsInBulks" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_VehicleTypes" FromRole="VehicleType" ToRole="ApplicationVehicleDetailsInBulk" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="WaypointType">
          <Key>
            <PropertyRef Name="WaypointTypeID" />
          </Key>
          <Property Type="Int16" Name="WaypointTypeID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
        </EntityType>
        <Association Name="FK_ApplicationApplicantDetails_IDTypes">
          <End Type="Model.IDType" Role="IDType" Multiplicity="0..1" />
          <End Type="Model.ApplicationApplicantDetail" Role="ApplicationApplicantDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDType">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="ApplicationApplicantDetail">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationContractDetails_ContractTypes">
          <End Type="Model.ContractType" Multiplicity="0..1" Role="ContractType" />
          <End Type="Model.ApplicationContractDetail" Multiplicity="*" Role="ApplicationContractDetail" />
          <ReferentialConstraint>
            <Principal Role="ContractType">
              <PropertyRef Name="ContractTypeID" />
            </Principal>
            <Dependent Role="ApplicationContractDetail">
              <PropertyRef Name="ContractTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingLicenceHolders_IDTypes">
          <End Type="Model.IDType" Role="IDType" Multiplicity="0..1" />
          <End Type="Model.ApplicationExistingLicenceHolder" Role="ApplicationExistingLicenceHolder" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDType">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicenceHolder">
              <PropertyRef Name="IDTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingLicenceHolders_VehicleTypes">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="0..1" />
          <End Type="Model.ApplicationExistingLicenceHolder" Role="ApplicationExistingLicenceHolder" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationExistingLicenceHolder">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationModeDetails_Modes">
          <End Type="Model.Mode" Role="Mode" Multiplicity="0..1" />
          <End Type="Model.ApplicationModeDetail" Role="ApplicationModeDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Mode">
              <PropertyRef Name="ModeID" />
            </Principal>
            <Dependent Role="ApplicationModeDetail">
              <PropertyRef Name="ModeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationProxyDetails_IDTypes">
          <End Type="Model.IDType" Role="IDType" Multiplicity="0..1" />
          <End Type="Model.ApplicationProxyDetail" Role="ApplicationProxyDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="IDType">
              <PropertyRef Name="IDTypeID" />
            </Principal>
            <Dependent Role="ApplicationProxyDetail">
              <PropertyRef Name="IDTypeID" />
            </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="FK_ApplicationServiceDetails_ServiceTypes">
          <End Type="Model.ServiceType" Role="ServiceType" Multiplicity="0..1" />
          <End Type="Model.ApplicationServiceDetail" Role="ApplicationServiceDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ServiceType">
              <PropertyRef Name="ServiceTypeID" />
            </Principal>
            <Dependent Role="ApplicationServiceDetail">
              <PropertyRef Name="ServiceTypeID" />
            </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>
        <Association Name="FK_Regions_Provinces">
          <End Type="Model.Province" Role="Province" Multiplicity="1" />
          <End Type="Model.Region" Role="Region" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="Region">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_NewRouteRequestDetails">
          <Key>
            <PropertyRef Name="NewRouteRequestDetailID" />
            <PropertyRef Name="RouteOrigin" />
            <PropertyRef Name="RouteDestination" />
            <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" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RouteDestination" Nullable="false" 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>
        <EntityType Name="BusinessType">
          <Key>
            <PropertyRef Name="BusinessTypeID" />
          </Key>
          <Property Type="Int16" Name="BusinessTypeID" Nullable="false" />
          <Property Type="String" Name="Description" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="OlasID" />
          <Property Type="Int16" Name="LtpsID" />
          <Property Type="Boolean" Name="IsCancelled" />
        </EntityType>
        <EntityType Name="ApplicationRequestObjection">
          <Key>
            <PropertyRef Name="ApplicationRequestObjectionID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestObjectionID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="String" Name="Objector" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Objection" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="DateTime" Name="ObjectionDate" Nullable="false" Precision="3" />
          <Property Type="String" Name="PostalAddress" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PostalAddressCode" Nullable="false" 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" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationRequestObjections_ApplicationRequestDetails" FromRole="ApplicationRequestObjection" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <NavigationProperty Name="CreatedBy" Relationship="Model.FK_ApplicationRequestObjections_Users" FromRole="ApplicationRequestObjection" ToRole="User" />
          <Property Name="ObjectionDocumentID" Type="Int64" />
        </EntityType>
        <Association Name="FK_ApplicationRequestObjections_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationRequestObjection" Role="ApplicationRequestObjection" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestObjection">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Route">
          <Key>
            <PropertyRef Name="RouteID" />
          </Key>
          <Property Type="Int64" Name="RouteID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="ReferenceNumber" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <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" />
          <Property Type="Int64" Name="OlasID" />
          <Property Type="Int64" Name="LtpsID" />
          <Property Type="Int64" Name="NeoID" />
          <NavigationProperty Name="ApplicationRouteDetails" Relationship="Model.FK_ApplicationRouteDetails_Routes" FromRole="Route" ToRole="ApplicationRouteDetail" />
          <NavigationProperty Name="RouteType" Relationship="Model.FK_Routes_RouteTypes" FromRole="Route" ToRole="RouteType" />
          <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>
        <Association Name="FK_ApplicationRouteDetails_Routes">
          <End Type="Model.Route" Role="Route" Multiplicity="0..1" />
          <End Type="Model.ApplicationRouteDetail" Role="ApplicationRouteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Route">
              <PropertyRef Name="RouteID" />
            </Principal>
            <Dependent Role="ApplicationRouteDetail">
              <PropertyRef Name="VerifiedRouteID" />
            </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>
        <EntityType Name="ApplicationExistingVehicleDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Type="Int16" Name="VehicleMakeID" />
          <Property Type="String" Name="VehicleMakeDescription" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="VehicleTypeID" />
          <Property Type="String" Name="VIN" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="EngineNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="YearOfManufacture" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="SeatedCapacity" />
          <Property Type="Int16" Name="StandingCapacity" />
          <Property Type="String" Name="RoadworthyCertificateNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="RoadworthyCertificateDocID" />
          <Property Type="DateTime" Name="RoadworthyExpiryDate" Precision="3" />
          <Property Type="Int64" Name="GrossMass" />
          <Property Type="Int64" Name="VerifiedVehicleID" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails" FromRole="ApplicationExistingVehicleDetail" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleMake" Relationship="Model.FK_ApplicationExistingVehicleDetails_VehicleMakes" FromRole="ApplicationExistingVehicleDetail" ToRole="VehicleMake" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleType" Relationship="Model.FK_ApplicationExistingVehicleDetails_VehicleTypes" FromRole="ApplicationExistingVehicleDetail" ToRole="VehicleType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="CarryingCapacityID" />
        </EntityType>
        <Association Name="FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationExistingVehicleDetail" Role="ApplicationExistingVehicleDetail" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationExistingVehicleDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingVehicleDetails_VehicleMakes">
          <End Type="Model.VehicleMake" Role="VehicleMake" Multiplicity="0..1" />
          <End Type="Model.ApplicationExistingVehicleDetail" Role="ApplicationExistingVehicleDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMake">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="ApplicationExistingVehicleDetail">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationExistingVehicleDetails_VehicleTypes">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="0..1" />
          <End Type="Model.ApplicationExistingVehicleDetail" Role="ApplicationExistingVehicleDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationExistingVehicleDetail">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="ApplicationVehicleDetail">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Type="Int16" Name="VehicleMakeID" />
          <Property Type="String" Name="VehicleMakeDescription" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="VehicleTypeID" />
          <Property Type="String" Name="VIN" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="EngineNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="YearOfManufacture" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegistrationNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="SeatedCapacity" />
          <Property Type="Int16" Name="StandingCapacity" />
          <Property Type="String" Name="RoadworthyCertificateNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="RoadworthyCertificateDocID" />
          <Property Type="DateTime" Name="RoadworthyExpiryDate" Precision="3" />
          <Property Type="Int64" Name="GrossMass" />
          <Property Type="Int64" Name="VerifiedVehicleID" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationVehicleDetails_ApplicationRequestDetails" FromRole="ApplicationVehicleDetail" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleMake" Relationship="Model.FK_ApplicationVehicleDetails_VehicleMakes" FromRole="ApplicationVehicleDetail" ToRole="VehicleMake" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="VehicleType" Relationship="Model.FK_ApplicationVehicleDetails_VehicleTypes" FromRole="ApplicationVehicleDetail" ToRole="VehicleType" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="Int64" Name="CarryingCapacityID" />
        </EntityType>
        <Association Name="FK_ApplicationVehicleDetails_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationVehicleDetail" Role="ApplicationVehicleDetail" Multiplicity="0..1" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetails_VehicleMakes">
          <End Type="Model.VehicleMake" Role="VehicleMake" Multiplicity="0..1" />
          <End Type="Model.ApplicationVehicleDetail" Role="ApplicationVehicleDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleMake">
              <PropertyRef Name="VehicleMakeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetail">
              <PropertyRef Name="VehicleMakeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationVehicleDetails_VehicleTypes">
          <End Type="Model.VehicleType" Role="VehicleType" Multiplicity="0..1" />
          <End Type="Model.ApplicationVehicleDetail" Role="ApplicationVehicleDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="VehicleType">
              <PropertyRef Name="VehicleTypeID" />
            </Principal>
            <Dependent Role="ApplicationVehicleDetail">
              <PropertyRef Name="VehicleTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_ApplicationRequestDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="ExistingLicenceNumber" />
          </Key>
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="WorkflowInstanceID" />
          <Property Type="String" Name="ApplicationNumber" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RequestType" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Decimal" Name="Cost" Precision="19" Scale="4" />
          <Property Type="String" Name="SurnameOrCompanyName" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="FirstNames" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="TradeName" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Member" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="VerifiedMemberID" />
          <Property Type="String" Name="IDNumberOrBusinessRegistrationNo" MaxLength="20" FixedLength="false" Unicode="false" />
          <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="String" Name="GazetteNumber" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="GazetteDetailID" />
          <Property Type="DateTime" Name="MeetingDate" Precision="3" />
          <Property Type="Int64" Name="AdjudicationDetailID" />
          <Property Type="Int16" Name="PaymentTypeID" />
          <Property Type="Int32" Name="VehicleCount" Nullable="false" />
          <Property Type="String" Name="ChassisNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="EngineNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="VehicleRegNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="AdjudicationDecision" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="AdjudicationComment" MaxLength="1" FixedLength="false" Unicode="false" Nullable="false" />
          <Property Type="String" Name="ApplicationDescription" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsRenewal" Nullable="false" />
          <Property Type="String" Name="AssociationName" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="ModeID" />
          <Property Type="Boolean" Name="IsCancellationRequired" Nullable="false" />
          <Property Type="String" Name="TaxNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="PrecheckDetailID" />
          <Property Type="Boolean" Name="IsStillToBeAcquired" Nullable="false" />
          <Property Name="SeatedCapacity" Type="Int16" />
          <Property Name="VehicleMake" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="ProxyName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationDecisionID" Type="Int16" />
          <Property Name="AdjudicationException" Type="Boolean" />
          <Property Name="TelCell" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="TelPhone" Type="String" MaxLength="14" FixedLength="false" Unicode="false" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="ExistingLicenceHolder" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ExistingLicenceHolderID" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="Region" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="ExistingVehicleChassisNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ExistingVehicleRegNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsAdjudicationBypassed" Type="Boolean" Nullable="false" />
          <Property Name="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" />
          <Property Name="ExistingLicenceNumber" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <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>
        <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>
        <EntityType Name="ApplicationAllowedExpiredLicence">
          <Key>
            <PropertyRef Name="OperatingLicenceNumber" />
          </Key>
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="IssueNumber" 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>
        <Association Name="FK_ApplicationRequestDetails_Regions">
          <End Type="Model.Region" Role="Region" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Region">
              <PropertyRef Name="RegionID" />
            </Principal>
            <Dependent Role="ApplicationRequestDetail">
              <PropertyRef Name="RegionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="AdjudicationDecision">
          <Key>
            <PropertyRef Name="AdjudicationDecisionID" />
          </Key>
          <Property Name="AdjudicationDecisionID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestAdjudicationDecisions" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions" FromRole="AdjudicationDecision" ToRole="ApplicationRequestAdjudicationDecision" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="ApplicationRequestAdjudicationDecision">
          <Key>
            <PropertyRef Name="ApplicationRequestAdjudicationDecisionID" />
          </Key>
          <Property Name="ApplicationRequestAdjudicationDecisionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="AdjudicationDecisionID" Type="Int16" />
          <Property Name="AdjudicatedByID" Type="Int64" />
          <Property Name="AdjudicationDate" Type="DateTime" Precision="3" />
          <Property Name="Comments" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="IsActiveAdjudication" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="AdjudicationDecision" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions" FromRole="ApplicationRequestAdjudicationDecision" ToRole="AdjudicationDecision" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails" FromRole="ApplicationRequestAdjudicationDecision" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="LicenceDurationID" Type="Int16" />
          <NavigationProperty Name="LicenceDuration" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_LicenceDurations" FromRole="ApplicationRequestAdjudicationDecision" ToRole="LicenceDuration" />
          <Property Name="LicenceExpiryDate" Type="DateTime" Precision="0" />
          <NavigationProperty Name="AdjudicatedBy" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_Users" FromRole="ApplicationRequestAdjudicationDecision" ToRole="User" />
        </EntityType>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions">
          <End Type="Model.AdjudicationDecision" Role="AdjudicationDecision" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestAdjudicationDecision" Role="ApplicationRequestAdjudicationDecision" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AdjudicationDecision">
              <PropertyRef Name="AdjudicationDecisionID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecision">
              <PropertyRef Name="AdjudicationDecisionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails">
          <End Type="Model.ApplicationRequestDetail" Role="ApplicationRequestDetail" Multiplicity="1" />
          <End Type="Model.ApplicationRequestAdjudicationDecision" Role="ApplicationRequestAdjudicationDecision" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationRequestDetail">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecision">
              <PropertyRef Name="ApplicationRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="LicenceDuration">
          <Key>
            <PropertyRef Name="LicenceDurationID" />
          </Key>
          <Property Name="LicenceDurationID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="DurationInMonths" Type="Int32" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="ApplicationRequestAdjudicationDecisions" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_LicenceDurations" FromRole="LicenceDuration" ToRole="ApplicationRequestAdjudicationDecision" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_LicenceDurations">
          <End Type="Model.LicenceDuration" Role="LicenceDuration" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestAdjudicationDecision" Role="ApplicationRequestAdjudicationDecision" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceDuration">
              <PropertyRef Name="LicenceDurationID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecision">
              <PropertyRef Name="LicenceDurationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="GazetteDetail">
          <Key>
            <PropertyRef Name="GazetteDetailID" />
          </Key>
          <Property Name="GazetteDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="GazetteDetailStatusID" Type="Int16" Nullable="false" />
          <Property Name="GazetteNumber" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="GazettePrintDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="GazetteNoticeExpiryDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="ProvinceID" Type="Int16" Nullable="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="ApplicationRequestDetails" Relationship="Model.FK_ApplicationRequestDetails_GazetteDetails" FromRole="GazetteDetail" ToRole="ApplicationRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Province" Relationship="Model.FK_GazetteDetails_Provinces" FromRole="GazetteDetail" ToRole="Province" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <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_GazetteDetails_Provinces">
          <End Type="Model.Province" Role="Province" Multiplicity="1" />
          <End Type="Model.GazetteDetail" Role="GazetteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Province">
              <PropertyRef Name="ProvinceID" />
            </Principal>
            <Dependent Role="GazetteDetail">
              <PropertyRef Name="ProvinceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="Int64" Nullable="false" />
          <Property Name="UserStatusID" Type="Int16" Nullable="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="EntityID" Type="Int32" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="ItemID" Type="String" MaxLength="20" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="FullName" Type="String" Nullable="false" MaxLength="101" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Name="KnownAs" Type="String" MaxLength="101" FixedLength="false" Unicode="false" />
          <Property Name="Email" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="NTAccount" Type="String" MaxLength="255" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="Cell" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="IsPasswordExpired" Type="Boolean" Nullable="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordDate" Type="DateTime" Nullable="false" Precision="3" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordHash" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordSalt" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordChallenge" Type="String" MaxLength="20" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordQuestion" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordAnswerHash" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordAnswerSalt" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="PasswordAnswerChallenge" Type="String" MaxLength="20" FixedLength="false" Unicode="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="FingerprintTemplate" Type="Binary" MaxLength="Max" FixedLength="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="ApplicationRequestAdjudicationDecisions" Relationship="Model.FK_ApplicationRequestAdjudicationDecisions_Users" FromRole="User" ToRole="ApplicationRequestAdjudicationDecision" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ApplicationRequestObjections" Relationship="Model.FK_ApplicationRequestObjections_Users" FromRole="User" ToRole="ApplicationRequestObjection" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_ApplicationRequestAdjudicationDecisions_Users">
          <End Type="Model.User" Role="User" Multiplicity="0..1" />
          <End Type="Model.ApplicationRequestAdjudicationDecision" Role="ApplicationRequestAdjudicationDecision" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="ApplicationRequestAdjudicationDecision">
              <PropertyRef Name="AdjudicatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ApplicationRequestObjections_Users">
          <End Type="Model.User" Role="User" Multiplicity="1" />
          <End Type="Model.ApplicationRequestObjection" Role="ApplicationRequestObjection" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="ApplicationRequestObjection">
              <PropertyRef Name="CreatedByID" />
            </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" />
          <NavigationProperty Name="ApplicationRequestDetail" Relationship="Model.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" FromRole="ApplicationVehicleDetailsInBulk" ToRole="ApplicationRequestDetail" >
            <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="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" />
          <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_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="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_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" />
        </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>
      </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="ApplicationModelStoreContainer" CdmEntityContainer="ApplicationContext">
          <EntitySetMapping Name="ApplicationApplicantDetails"><EntityTypeMapping TypeName="Model.ApplicationApplicantDetail"><MappingFragment StoreEntitySet="ApplicationApplicantDetails">
            <ScalarProperty Name="VerifiedAssociationID" ColumnName="VerifiedAssociationID" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
                <ScalarProperty Name="TypeOfBusiness" ColumnName="TypeOfBusiness" />
                <ScalarProperty Name="IDTypeDescription" ColumnName="IDTypeDescription" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
            <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
            <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
            <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" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="ApplicationModeDetails"><EntityTypeMapping TypeName="Model.ApplicationModeDetail"><MappingFragment StoreEntitySet="ApplicationModeDetails">
            <ScalarProperty Name="IsUberMeteredTaxi" ColumnName="IsUberMeteredTaxi" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
            <ScalarProperty Name="ModeDescription" ColumnName="ModeDescription" />
            <ScalarProperty Name="LongDistanceReason" ColumnName="LongDistanceReason" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="ApplicationProxyDetails"><EntityTypeMapping TypeName="Model.ApplicationProxyDetail"><MappingFragment StoreEntitySet="ApplicationProxyDetails">
                <ScalarProperty Name="IDTypeDescription" ColumnName="IDTypeDescription" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
            <ScalarProperty Name="Surname" ColumnName="Surname" />
            <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
            <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
            <ScalarProperty Name="TelCell" ColumnName="TelCell" />
            <ScalarProperty Name="TelFax" ColumnName="TelFax" />
            <ScalarProperty Name="Email" ColumnName="Email" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <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="PaymentTypeID" ColumnName="PaymentTypeID" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="IsNewMemberRequired" ColumnName="IsNewMemberRequired" />
                <ScalarProperty Name="IsNewAssociationRequired" ColumnName="IsNewAssociationRequired" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
            <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
            <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
            <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
            <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
            <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
            <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="ApplicationRouteDetails"><EntityTypeMapping TypeName="Model.ApplicationRouteDetail"><MappingFragment StoreEntitySet="ApplicationRouteDetails">
            <ScalarProperty Name="IsExistingLtpsOrOlasRoute" ColumnName="IsExistingLtpsOrOlasRoute" />
                <ScalarProperty Name="RouteChangeTypeID" ColumnName="RouteChangeTypeID" />
                <ScalarProperty Name="RouteNumber" ColumnName="RouteNumber" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="NewRouteRequestDetailID" ColumnName="NewRouteRequestDetailID" />
                <ScalarProperty Name="RouteLength" ColumnName="RouteLength" />
                <ScalarProperty Name="BoardRouteNumber" ColumnName="BoardRouteNumber" />
                <ScalarProperty Name="NationalRouteNumber" ColumnName="NationalRouteNumber" />
                <ScalarProperty Name="VerifiedRouteID" ColumnName="VerifiedRouteID" />
                <ScalarProperty Name="ApplicationRouteDetailStatusID" ColumnName="ApplicationRouteDetailStatusID" />
                <ScalarProperty Name="ApplicationRouteDetailID" ColumnName="ApplicationRouteDetailID" />
            <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
            <ScalarProperty Name="RouteOrigin" ColumnName="RouteOrigin" />
            <ScalarProperty Name="RouteDestination" ColumnName="RouteDestination" />
            <ScalarProperty Name="RouteDescription" ColumnName="RouteDescription" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="ApplicationServiceDetails"><EntityTypeMapping TypeName="Model.ApplicationServiceDetail"><MappingFragment StoreEntitySet="ApplicationServiceDetails">
            <ScalarProperty Name="ServiceTypeDescription" ColumnName="ServiceTypeDescription" />
                <ScalarProperty Name="ServiceTypeID" ColumnName="ServiceTypeID" />
                <ScalarProperty Name="ApplicationServiceDetailID" ColumnName="ApplicationServiceDetailID" />
            <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
            </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="ApplicationContractDetails">
            <EntityTypeMapping TypeName="Model.ApplicationContractDetail">
              <MappingFragment StoreEntitySet="ApplicationContractDetails">
                <ScalarProperty Name="ContractTypeID" ColumnName="ContractTypeID" />
                <ScalarProperty Name="ContractToDate" ColumnName="ContractToDate" />
                <ScalarProperty Name="ContractFromDate" ColumnName="ContractFromDate" />
                <ScalarProperty Name="AddressCodeOfSubContractor" ColumnName="AddressCodeOfSubContractor" />
                <ScalarProperty Name="AddressOfSubContractor" ColumnName="AddressOfSubContractor" />
                <ScalarProperty Name="NameOfSubContractor" ColumnName="NameOfSubContractor" />
                <ScalarProperty Name="AddressCodeOfParties2" ColumnName="AddressCodeOfParties2" />
                <ScalarProperty Name="AddressOfParties2" ColumnName="AddressOfParties2" />
                <ScalarProperty Name="NameOfParties2" ColumnName="NameOfParties2" />
                <ScalarProperty Name="AddressCodeOfParties1" ColumnName="AddressCodeOfParties1" />
                <ScalarProperty Name="AddressOfParties1" ColumnName="AddressOfParties1" />
                <ScalarProperty Name="NameOfParties1" ColumnName="NameOfParties1" />
                <ScalarProperty Name="ContractReferenceNumber" ColumnName="ContractReferenceNumber" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationRequestTypes">
            <EntityTypeMapping TypeName="Model.ApplicationRequestType">
              <MappingFragment StoreEntitySet="ApplicationRequestTypes">
                <ScalarProperty Name="ImageSrc" ColumnName="ImageSrc" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LogPrintReceipt" FunctionName="ApplicationModel.Store.Pr_LogPrintReceipt" />
          <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="PaymentTypeID" ColumnName="PaymentTypeID" />
                <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="ReceiptDetailID" ColumnName="ReceiptDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_NewRouteRequestDetailsSearch" FunctionName="ApplicationModel.Store.Pr_NewRouteRequestDetailsSearch" />
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestDetailsSearch" FunctionName="ApplicationModel.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="ReceiptNumber" ColumnName="ReceiptNumber" />
                <ScalarProperty Name="Task" ColumnName="Task" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <EntitySetMapping Name="ApplicationRequestTypeDocuments">
            <EntityTypeMapping TypeName="Model.ApplicationRequestTypeDocument">
              <MappingFragment StoreEntitySet="ApplicationRequestTypeDocuments">
                <ScalarProperty Name="IsMandatory" ColumnName="IsMandatory" />
                <ScalarProperty Name="WorkflowID" ColumnName="WorkflowID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="ApplicationRequestTypeDocumentID" ColumnName="ApplicationRequestTypeDocumentID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentTypes">
            <EntityTypeMapping TypeName="Model.DocumentType">
              <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>
          <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="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="NltisXmlDataFound" ColumnName="NltisXmlDataFound" />
                <ScalarProperty Name="NltisXml" ColumnName="NltisXml" />
                <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" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="PrecheckDetailID" ColumnName="PrecheckDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationExistingLicenceHolders">
            <EntityTypeMapping TypeName="Model.ApplicationExistingLicenceHolder">
              <MappingFragment StoreEntitySet="ApplicationExistingLicenceHolders">
                <ScalarProperty Name="UseExisitingVehicle" ColumnName="UseExisitingVehicle" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="RoadworthyExpiryDate" ColumnName="RoadworthyExpiryDate" />
                <ScalarProperty Name="RoadworthyCertificateDocID" ColumnName="RoadworthyCertificateDocID" />
                <ScalarProperty Name="RoadworthyCertificateNumber" ColumnName="RoadworthyCertificateNumber" />
                <ScalarProperty Name="CarryingCapacity" ColumnName="CarryingCapacity" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="YearOfManufacture" ColumnName="YearOfManufacture" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="TypeOfBusiness" ColumnName="TypeOfBusiness" />
                <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="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationExistingLicences">
            <EntityTypeMapping TypeName="Model.ApplicationExistingLicence">
              <MappingFragment StoreEntitySet="ApplicationExistingLicences">
                <ScalarProperty Name="SpecialLicenceDateTo" ColumnName="SpecialLicenceDateTo" />
                <ScalarProperty Name="SpecialLicenceDateFrom" ColumnName="SpecialLicenceDateFrom" />
                <ScalarProperty Name="SpecialLicenceDetails" ColumnName="SpecialLicenceDetails" />
                <ScalarProperty Name="OperatingLicenceExpiryDate" ColumnName="OperatingLicenceExpiryDate" />
                <ScalarProperty Name="ReasonForAmendment" ColumnName="ReasonForAmendment" />
                <ScalarProperty Name="OperatingLicenceIssueDate" ColumnName="OperatingLicenceIssueDate" />
                <ScalarProperty Name="OperatingLicenceIssuingBoard" ColumnName="OperatingLicenceIssuingBoard" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationRankDetails">
            <EntityTypeMapping TypeName="Model.ApplicationRankDetail">
              <MappingFragment StoreEntitySet="ApplicationRankDetails">
                <ScalarProperty Name="RankLocation" ColumnName="RankLocation" />
                <ScalarProperty Name="RankName" ColumnName="RankName" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationRankDetailID" ColumnName="ApplicationRankDetailID" />
              </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="AssociationModes">
            <EntityTypeMapping TypeName="Model.AssociationMode">
              <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.AssociationType">
              <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="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="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="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="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>
          <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>
          <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_AssociationMemberAdd" FunctionName="ApplicationModel.Store.Pr_AssociationMemberAdd" />
          <FunctionImportMapping FunctionImportName="Pr_AssociationUpsert" FunctionName="ApplicationModel.Store.Pr_AssociationUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_MemberUpsert" FunctionName="ApplicationModel.Store.Pr_MemberUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_PlaceUpsert" FunctionName="ApplicationModel.Store.Pr_PlaceUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_RouteNodeRemove" FunctionName="ApplicationModel.Store.Pr_RouteNodeRemove" />
          <FunctionImportMapping FunctionImportName="Pr_RouteUpsert" FunctionName="ApplicationModel.Store.Pr_RouteUpsert" />
          <FunctionImportMapping FunctionImportName="Pr_VehicleUpsert" FunctionName="ApplicationModel.Store.Pr_VehicleUpsert" />
          <EntitySetMapping Name="BusinessTypes">
            <EntityTypeMapping TypeName="Model.BusinessType">
              <MappingFragment StoreEntitySet="BusinessTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationRequestObjections">
            <EntityTypeMapping TypeName="Model.ApplicationRequestObjection">
              <MappingFragment StoreEntitySet="ApplicationRequestObjections">
                <ScalarProperty Name="ObjectionDocumentID" ColumnName="ObjectionDocumentID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="ObjectionDate" ColumnName="ObjectionDate" />
                <ScalarProperty Name="Objection" ColumnName="Objection" />
                <ScalarProperty Name="Objector" ColumnName="Objector" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationRequestObjectionID" ColumnName="ApplicationRequestObjectionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestPostSaveProcess" FunctionName="ApplicationModel.Store.Pr_ApplicationRequestPostSaveProcess" />
          <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="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="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="RouteID" ColumnName="RouteID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationExistingVehicleDetails">
            <EntityTypeMapping TypeName="Model.ApplicationExistingVehicleDetail">
              <MappingFragment StoreEntitySet="ApplicationExistingVehicleDetails">
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="RoadworthyExpiryDate" ColumnName="RoadworthyExpiryDate" />
                <ScalarProperty Name="RoadworthyCertificateDocID" ColumnName="RoadworthyCertificateDocID" />
                <ScalarProperty Name="RoadworthyCertificateNumber" ColumnName="RoadworthyCertificateNumber" />
                <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" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationVehicleDetails">
            <EntityTypeMapping TypeName="Model.ApplicationVehicleDetail">
              <MappingFragment StoreEntitySet="ApplicationVehicleDetails">
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="RoadworthyExpiryDate" ColumnName="RoadworthyExpiryDate" />
                <ScalarProperty Name="RoadworthyCertificateDocID" ColumnName="RoadworthyCertificateDocID" />
                <ScalarProperty Name="RoadworthyCertificateNumber" ColumnName="RoadworthyCertificateNumber" />
                <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" />
              </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="TaxNumber" ColumnName="TaxNumber" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="ModeID" ColumnName="ModeID" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="AdjudicationDecision" ColumnName="AdjudicationDecision" />
                <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="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="MeetingDate" ColumnName="MeetingDate" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="GazetteNumber" ColumnName="GazetteNumber" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <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="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="VerifiedMemberID" ColumnName="VerifiedMemberID" />
                <ScalarProperty Name="Member" ColumnName="Member" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="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_RouteNodeAdd" FunctionName="ApplicationModel.Store.Pr_RouteNodeAdd" />
          <EntitySetMapping Name="AdjudicationDecisions">
            <EntityTypeMapping TypeName="Model.AdjudicationDecision">
              <MappingFragment StoreEntitySet="AdjudicationDecisions">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationRequestAdjudicationDecisions">
            <EntityTypeMapping TypeName="Model.ApplicationRequestAdjudicationDecision">
              <MappingFragment StoreEntitySet="ApplicationRequestAdjudicationDecisions">
                <ScalarProperty Name="LicenceExpiryDate" ColumnName="LicenceExpiryDate" />
                <ScalarProperty Name="LicenceDurationID" ColumnName="LicenceDurationID" />
                <ScalarProperty Name="IsActiveAdjudication" ColumnName="IsActiveAdjudication" />
                <ScalarProperty Name="Comments" ColumnName="Comments" />
                <ScalarProperty Name="AdjudicationDate" ColumnName="AdjudicationDate" />
                <ScalarProperty Name="AdjudicatedByID" ColumnName="AdjudicatedByID" />
                <ScalarProperty Name="AdjudicationDecisionID" ColumnName="AdjudicationDecisionID" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationRequestAdjudicationDecisionID" ColumnName="ApplicationRequestAdjudicationDecisionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceDurations">
            <EntityTypeMapping TypeName="Model.LicenceDuration">
              <MappingFragment StoreEntitySet="LicenceDurations">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="DurationInMonths" ColumnName="DurationInMonths" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="LicenceDurationID" ColumnName="LicenceDurationID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationRequestObjectionUpsert" FunctionName="ApplicationModel.Store.Pr_ApplicationRequestObjectionUpsert" />
          <EntitySetMapping Name="GazetteDetails">
            <EntityTypeMapping TypeName="Model.GazetteDetail">
              <MappingFragment StoreEntitySet="GazetteDetails">
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <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="Users">
            <EntityTypeMapping TypeName="Model.User">
              <MappingFragment StoreEntitySet="Users">
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="FingerprintTemplate" ColumnName="FingerprintTemplate" />
                <ScalarProperty Name="PasswordAnswerChallenge" ColumnName="PasswordAnswerChallenge" />
                <ScalarProperty Name="PasswordAnswerSalt" ColumnName="PasswordAnswerSalt" />
                <ScalarProperty Name="PasswordAnswerHash" ColumnName="PasswordAnswerHash" />
                <ScalarProperty Name="PasswordQuestion" ColumnName="PasswordQuestion" />
                <ScalarProperty Name="PasswordChallenge" ColumnName="PasswordChallenge" />
                <ScalarProperty Name="PasswordSalt" ColumnName="PasswordSalt" />
                <ScalarProperty Name="PasswordHash" ColumnName="PasswordHash" />
                <ScalarProperty Name="PasswordDate" ColumnName="PasswordDate" />
                <ScalarProperty Name="IsPasswordExpired" ColumnName="IsPasswordExpired" />
                <ScalarProperty Name="Cell" ColumnName="Cell" />
                <ScalarProperty Name="NTAccount" ColumnName="NTAccount" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="UserStatusID" ColumnName="UserStatusID" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_ApplicationCheckSecurity" FunctionName="ApplicationModel.Store.Pr_ApplicationCheckSecurity" />
          <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="Fn_GetSourceApplicationRecordsFromSourceSystem" FunctionName="ApplicationModel.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_RouteSearch" FunctionName="ApplicationModel.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" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_PrecheckDetailsUpsert" FunctionName="ApplicationModel.Store.Pr_PrecheckDetailsUpsert" />
        </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>
      <Diagram Name="ApplicationModel" ZoomLevel="44">
        <EntityTypeShape EntityType="Model.ApplicationApplicantDetail" Width="2.875" PointX="9.125" PointY="38.25" Height="4.8648079427083335" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ApplicationModeDetail" Width="3.125" PointX="10" PointY="61.25" Height="2.1725878906249996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ApplicationProxyDetail" Width="3.625" PointX="9.125" PointY="64.25" Height="3.3263964843750031" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ApplicationRequestDetail" Width="3.125" PointX="5.25" PointY="51.5" Height="5.8263151041666674" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ApplicationRouteDetail" Width="2.5" PointX="9.125" PointY="68.125" Height="2.172587890624996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ApplicationServiceDetail" Width="3.25" PointX="9.125" PointY="72.25" Height="1.9802864583333353" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_ApplicationApplicantDetails_ApplicationRequestDetails" ManuallyRouted="false">
          <ConnectorPoint PointX="4.49267556640625" PointY="14" />
          <ConnectorPoint PointX="4.49267556640625" PointY="7.4324039713541667" />
          <ConnectorPoint PointX="5.6154006315104175" PointY="7.4324039713541659" />
          <ConnectorPoint PointX="5.7820672981770835" PointY="7.4324039713541667" />
          <ConnectorPoint PointX="6.875" PointY="7.4324039713541667" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ApplicationModeDetails_ApplicationRequestDetails" ManuallyRouted="false">
          <ConnectorPoint PointX="5.095704765625" PointY="14" />
          <ConnectorPoint PointX="5.095704765625" PointY="11.7112939453125" />
          <ConnectorPoint PointX="5.6154006315104175" PointY="11.7112939453125" />
          <ConnectorPoint PointX="5.7820672981770835" PointY="11.7112939453125" />
          <ConnectorPoint PointX="6.875" PointY="11.7112939453125" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ApplicationProxyDetails_ApplicationRequestDetails" ManuallyRouted="false">
          <ConnectorPoint PointX="6.125" PointY="15.413198242187502" />
          <ConnectorPoint PointX="6.875" PointY="15.413198242187502" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ApplicationRouteDetails_ApplicationRequestDetails" ManuallyRouted="false">
          <ConnectorPoint PointX="6.125" PointY="18.725657552083334" />
          <ConnectorPoint PointX="6.875" PointY="18.725657552083334" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ApplicationServiceDetails_ApplicationRequestDetails" ManuallyRouted="false">
          <ConnectorPoint PointX="4.5625" PointY="20.018616536458335" />
          <ConnectorPoint PointX="4.5625" PointY="21.809591471354171" />
          <ConnectorPoint PointX="5.2916691666666669" PointY="21.809591471354171" />
          <ConnectorPoint PointX="5.4583358333333329" PointY="21.809591471354171" />
          <ConnectorPoint PointX="11" PointY="21.809591471354171" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.ApplicationDocument" Width="3" PointX="9.125" PointY="57.25" Height="1.9802864583333317" />
        <AssociationConnector Association="Model.FK_ApplicationDocuments_ApplicationRequestDetails" >
          <ConnectorPoint PointX="5.6987339648437505" PointY="14" />
          <ConnectorPoint PointX="5.6987339648437505" PointY="3.3025162760416666" />
          <ConnectorPoint PointX="6.875" PointY="3.3025162760416666" />
        </AssociationConnector>
        <EntityTypeShape Height="3.9033007812500031" EntityType="Model.ApplicationContractDetail" PointX="6.75" PointY="80" Width="4.5" />
        <AssociationConnector Association="Model.FK_ApplicationContractDetails_ApplicationRequestDetails">
          <ConnectorPoint PointX="3.7499975" PointY="20.018616536458335" />
          <ConnectorPoint PointX="3.7499975" PointY="29.326650390625" />
          <ConnectorPoint PointX="6.875" PointY="29.326650390625" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.ApplicationRequestType" Width="1.5" PointX="0.75" PointY="31.25" Height="1.9802864583333317" />
        <AssociationConnector Association="Model.FK_ApplicationRequestDetails_ApplicationRequestTypes" >
          <ConnectorPoint PointX="2.25" PointY="16.740143229166666" />
          <ConnectorPoint PointX="3" PointY="16.740143229166666" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.ReceiptDetail" Width="1.5" PointX="2.75" PointY="51.125" Height="2.7494921875000031" />
        <EntityTypeShape EntityType="Model.ApplicationRequestTypeDocument" Width="1.5" PointX="3" PointY="31.125" />
        <EntityTypeShape EntityType="Model.DocumentType" Width="1.5" PointX="0.75" PointY="28.5" />
        <AssociationConnector Association="Model.FK_ApplicationDocuments_DocumentTypes" />
        <AssociationConnector Association="Model.FK_ApplicationRequestTypeDocuments_ApplicationRequestTypes" />
        <AssociationConnector Association="Model.FK_ApplicationRequestTypeDocuments_DocumentTypes" />
        <EntityTypeShape EntityType="Model.PrecheckDetail" Width="1.5" PointX="3" PointY="74.5" />
        <AssociationConnector Association="Model.FK_ApplicationRequestDetails_PrecheckDetails" />
        <AssociationConnector Association="Model.FK_PrecheckDetails_ApplicationRequestTypes" />
        <EntityTypeShape EntityType="Model.ApplicationExistingLicenceHolder" Width="3.5" PointX="14" PointY="43.625" />
        <EntityTypeShape EntityType="Model.ApplicationExistingLicence" Width="3.875" PointX="9.125" PointY="35.125" />
        <EntityTypeShape EntityType="Model.ApplicationRankDetail" Width="2.75" PointX="9.125" PointY="54.125" />
        <AssociationConnector Association="Model.FK_ApplicationExistingLicenceHolders_ApplicationRequestDetails" />
        <AssociationConnector Association="Model.FK_ApplicationExistingLicence_ApplicationRequestDetails" />
        <AssociationConnector Association="Model.FK_ApplicationRankDetails_ApplicationRequestDetails" />
        <EntityTypeShape EntityType="Model.PaymentType" Width="1.5" PointX="0.5" PointY="54.625" />
        <AssociationConnector Association="Model.FK_ReceiptDetails_PaymentTypes" />
        <AssociationConnector Association="Model.FK_ApplicationRequestDetails_PaymentTypes" />
        <EntityTypeShape EntityType="Model.ApplicationRequestObjection" Width="1.5" PointX="9.3347893549757028" PointY="25.176525381010272" />
        <AssociationConnector Association="Model.FK_ApplicationRequestObjections_ApplicationRequestDetails" />
        <EntityTypeShape EntityType="Model.ApplicationExistingVehicleDetail" Width="1.5" PointX="4.5" PointY="22.375" />
        <AssociationConnector Association="Model.FK_ApplicationExistingVehicleDetails_ApplicationRequestDetails" />
        <EntityTypeShape EntityType="Model.ApplicationVehicleDetail" Width="1.5" PointX="11.75" PointY="75.5" />
        <AssociationConnector Association="Model.FK_ApplicationVehicleDetails_ApplicationRequestDetails" />
        <EntityTypeShape EntityType="Model.Vw_ApplicationRequestDetails" Width="1.5" PointX="6.6572760653948766" PointY="12.569453081381253" />
        <EntityTypeShape EntityType="Model.ApplicationAllowedExpiredLicence" Width="1.5" PointX="11.165082139505577" PointY="25.084207933900974" />
        <EntityTypeShape EntityType="Model.AdjudicationDecision" Width="1.5" PointX="0.75" PointY="0.875" />
        <EntityTypeShape EntityType="Model.ApplicationRequestAdjudicationDecision" Width="2.625" PointX="9.125" PointY="29.875" />
        <AssociationConnector Association="Model.FK_ApplicationRequestAdjudicationDecisions_AdjudicationDecisions" />
        <AssociationConnector Association="Model.FK_ApplicationRequestAdjudicationDecisions_ApplicationRequestDetails" />
        <EntityTypeShape EntityType="Model.LicenceDuration" Width="1.5" PointX="0.75" PointY="3.875" />
        <AssociationConnector Association="Model.FK_ApplicationRequestAdjudicationDecisions_LicenceDurations" />
        <EntityTypeShape EntityType="Model.GazetteDetail" Width="1.5" PointX="5.375" PointY="1" />
        <AssociationConnector Association="Model.FK_ApplicationRequestDetails_GazetteDetails" />
        <EntityTypeShape EntityType="Model.User" Width="1.5" PointX="3.375" PointY="6.125" />
        <AssociationConnector Association="Model.FK_ApplicationRequestAdjudicationDecisions_Users" />
        <AssociationConnector Association="Model.FK_ApplicationRequestObjections_Users" />
        <EntityTypeShape EntityType="Model.ApplicationVehicleDetailsInBulk" Width="3" PointX="9.125" PointY="47.5" />
        <AssociationConnector Association="Model.FK_ApplicationVehicleDetailsInBulk_ApplicationRequestDetails" />
        <AssociationConnector Association="Model.FK_ReceiptDetails_ApplicationRequestDetails" />
      </Diagram>
      <Diagram DiagramId="a1dd545f778245f7a9218f9cb4efa8d3" Name="MasterData" >
        <EntityTypeShape EntityType="Model.AssociationMode" Width="1.5" PointX="6.2982566609504893" PointY="3.5489525960520623" />
        <EntityTypeShape EntityType="Model.AssociationType" Width="1.5" PointX="4.57206896905418" PointY="16.184415422465847" />
        <EntityTypeShape EntityType="Model.ContractType" Width="1.5" PointX="9.6301323797694085" PointY="2.4650029551540515" />
        <EntityTypeShape EntityType="Model.IDType" Width="1.5" PointX="4.4101017994853207" PointY="3.0501125916140679" />
        <EntityTypeShape EntityType="Model.Mode" Width="1.5" PointX="1.2283855402974344" PointY="8.8143651079453367" />
        <EntityTypeShape EntityType="Model.PlaceType" Width="1.5" PointX="5.5925467152113777" PointY="14.887397847551572" />
        <EntityTypeShape EntityType="Model.Province" Width="1.5" PointX="0.37789737823321362" PointY="15.971670947955769" />
        <EntityTypeShape EntityType="Model.Region" Width="1.5" PointX="8.6154152697955322" PointY="7.7389592862403758" />
        <EntityTypeShape EntityType="Model.RouteType" Width="1.5" PointX="5.28813457176468" PointY="15.274792529304881" />
        <EntityTypeShape EntityType="Model.ServiceType" Width="1.5" PointX="4.8971086800550614" PointY="15.435555435454265" />
        <EntityTypeShape EntityType="Model.SourceApplication" Width="1.5" PointX="1.4747653647674086" PointY="17.139808588260696" />
        <EntityTypeShape EntityType="Model.VehicleMake" Width="3" PointX="12.5" PointY="1" />
        <EntityTypeShape EntityType="Model.VehicleType" Width="3" PointX="11.375" PointY="4.375" />
        <EntityTypeShape EntityType="Model.WaypointType" Width="1.5" PointX="0.78943973816439494" PointY="11.072876249939611" />
        <AssociationConnector Association="Model.FK_Regions_Provinces" />
        <EntityTypeShape EntityType="Model.BusinessType" Width="1.5" PointX="10.112638955056966" PointY="12.062236597790493" />
      </Diagram>
      <Diagram DiagramId="79bbfdb8b482480ca14f44acbc0e404d" Name="Views" ZoomLevel="108" >
        <EntityTypeShape EntityType="Model.Vw_NewRouteRequestDetails" Width="1.5" PointX="3.5467278973882683" PointY="5.054494591920867" />
      </Diagram>
      <Diagram DiagramId="d1b283f6281d4cb4acf70098e55db53f" Name="VerifiedData" >
        <EntityTypeShape EntityType="Model.Route" Width="1.5" PointX="2.9882355309036726" PointY="11.026984219917555" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>