﻿<?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="ApplicationDetails">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="20" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="AccreditationID" Type="bigint" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="VerifiedAssociationID" Type="bigint" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
          <Property Name="OfficeLocationDivisionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationProvinceID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationRegionID" Type="bigint" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="IsLateRenewal" Type="bit" Nullable="false" />
          <Property Name="IsReceiptRequired" Type="bit" Nullable="false" />
          <Property Name="IsGazettingRequired" Type="bit" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="bit" Nullable="false" />
          <Property Name="IsAdjudicationRequired" 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="IsAssessorApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="bit" />
          <Property Name="IsBulkVerificationRequired" Type="bit" />
          <Property Name="IsFinalisationTasksRequired" Type="bit" />
          <Property Name="IsCancellationRequired" Type="bit" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="bit" Nullable="false" />
          <Property Name="ForceGazetting" Type="bit" Nullable="false" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="IsAdjudicationBypassed" Type="bit" Nullable="false" />
          <Property Name="AdjudicationOfficeLocationID" Type="smallint" />
          <Property Name="AdjudicationCount" Type="int" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="HasNewRoute" Type="bit" Nullable="false" />
          <Property Name="IsLtpsConversion" Type="bit" />
          <Property Name="LicenceCount" Type="int" Nullable="false" />
          <Property Name="IsBulkApplication" Type="bit" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="ApplicationStatusID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="smallint" Nullable="false" />
          <Property Name="GazetteTypeID" Type="smallint" />
          <Property Name="IsReferralRequired" Type="bit" Nullable="false" />
          <Property Name="CopiedFromApplicationDetailID" Type="bigint" />
          <Property Name="CopiedFromApplicationLicenceID" Type="bigint" />
          <Property Name="ApplicationPrecheckDetailID" Type="bigint" />
          <Property Name="AmountDue" Type="money" />
          <Property Name="AmountPaid" Type="money" />
          <Property Name="IsBusAndContract" Type="bit" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="smallint" />
          <Property Name="ApplicationIsObjected" Type="bit" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="bit" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="bit" Nullable="false" />
          <Property Name="ApplicationCannoutBeAutoAssignedForAdjudication" Type="bit" />
          <Property Name="RelatedTATApplicationRequestID" Type="bigint" />
        </EntityType>
        <EntityType Name="LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Name="LicenceIssueDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="smallint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="IsDocumentVerificationRequired" Type="bit" />
          <Property Name="LicenceIssueNumber" Type="varchar" MaxLength="20" />
        </EntityType>
        <EntityType Name="LicenceExceptions">
          <Key>
            <PropertyRef Name="LicenceExceptionID" />
          </Key>
          <Property Name="LicenceExceptionID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="Exception" Type="nvarchar" MaxLength="255" Nullable="false" />
        </EntityType>
        <EntityType Name="Licences">
          <Key>
            <PropertyRef Name="LicenceID" />
          </Key>
          <Property Name="LicenceID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="bigint" />
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
          <Property Name="VehicleID" Type="bigint" />
          <Property Name="LicenceVehicleTypeID" Type="smallint" />
          <Property Name="LicenceCarryingCapacityID" Type="smallint" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="LicencingBoardID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AssociationID" Type="bigint" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="100" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="IssueNumber" Type="int" Nullable="false" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="DateOfExpiry" Type="datetime" />
          <Property Name="Indefinite" Type="bit" Nullable="false" />
          <Property Name="UpcomingExpiryNotificationSmsSentDate" Type="datetime" />
          <Property Name="ExpiredNotificationSmsSentDate" Type="datetime" />
          <Property Name="UpliftmentReminderSmsSentDate" Type="datetime" />
          <Property Name="OriginalLTPSPermitNumber" Type="varchar" MaxLength="20" />
          <Property Name="OriginalOLASNumber" Type="varchar" MaxLength="20" />
          <Property Name="IsLatestIssue" Type="bit" />
          <Property Name="AccreditationID" Type="bigint" />
          <Property Name="IsTemporaryLicence" Type="bit" />
          <Property Name="DateOfApproval" Type="datetime" />
        </EntityType>
        <EntityType Name="Members">
          <Key>
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="MemberID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="FullName" Type="varchar" MaxLength="511" StoreGeneratedPattern="Computed" Nullable="false" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="IdentityDocumentDocID" Type="bigint" />
          <Property Name="TaxClearanceCertificateDocID" Type="bigint" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="FirstNames" Type="varchar" MaxLength="255" />
          <Property Name="IDTypeID" Type="smallint" />
          <Property Name="IDTypeDescription" Type="varchar" MaxLength="50" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="50" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="800" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="20" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="800" />
          <Property Name="PhysicalAddressCode" Type="varchar" MaxLength="20" />
          <Property Name="TelPhone" Type="varchar" MaxLength="255" />
          <Property Name="TelCell" Type="varchar" MaxLength="255" />
          <Property Name="TelFax" Type="varchar" MaxLength="255" />
          <Property Name="Email" Type="varchar" MaxLength="255" />
          <Property Name="SARSIncomeTaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="MemberStatusID" Type="smallint" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="BusinessTypeID" Type="bigint" />
        </EntityType>
        <EntityType Name="Vehicles">
          <Key>
            <PropertyRef Name="VehicleID" />
          </Key>
          <Property Name="VehicleID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="53" StoreGeneratedPattern="Computed" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="SeatedCapacity" Type="int" />
          <Property Name="StandingCapacity" Type="int" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="Tare" Type="bigint" />
          <Property Name="VehicleMakeID" Type="smallint" />
          <Property Name="VehicleTypeID" Type="smallint" />
          <Property Name="VehicleStatusID" Type="smallint" Nullable="false" />
          <Property Name="OlasID" Type="bigint" />
          <Property Name="LtpsID" Type="bigint" />
          <Property Name="NeoID" Type="bigint" />
          <Property Name="CarryingCapacityID" Type="smallint" />
          <Property Name="YearOfManufacture" Type="varchar" MaxLength="4" />
          <Property Name="CurrentOdometerReading" Type="bigint" />
          <Property Name="RoadworthyCertificateDocID" Type="bigint" />
          <Property Name="CertificateOfRegistrationDocID" Type="bigint" />
          <Property Name="IgnoreVinException" Type="bit" />
          <Property Name="VehicleModelID" Type="smallint" />
          <Property Name="ProfessionalDriversPermitDocID" Type="bigint" />
          <Property Name="RankPermitDocID" Type="bigint" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNATIONAL.App.Vw_LicenceIssueDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
            
            
            
            
            
            
            
            
          </Key>
          <Property Name="LicenceIssueDetailID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="bigint" Nullable="false" />
          <Property Name="VerifiedVehicleID" Type="bigint" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="LicenceReferenceNumber" Type="varchar" MaxLength="20" Nullable="false" />
          <Property Name="ApplicationReferenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="255" />
          <Property Name="VehicleRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="255" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="IsStillToBeAcquired" Type="bit" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="MemberFullName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="MemberTaxReference" Type="varchar" MaxLength="50" />
          <Property Name="MemberIDNumber" Type="bigint" />
          <Property Name="MemberCell" Type="varchar" MaxLength="255" />
          <Property Name="Association" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="VehicleVIN" Type="varchar" MaxLength="50" />
          <Property Name="VehicleEngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
          <Property Name="VehicleSeatedCapacity" Type="int" />
          <Property Name="VehicleStandingCapacity" Type="int" />
          <Property Name="AccreditationID" Type="bigint" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="AccreditationNumber" Type="varchar" MaxLength="25" Nullable="false" />
          <Property Name="DivisionTypeID" Type="smallint" />
          <Property Name="ProvinceID" Type="smallint" />
          <Property Name="IsDocumentVerificationRequired" Type="bit" />
        </EntityType>
        <Association Name="FK_LicenceExceptions_Licences">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceExceptions" Type="Self.LicenceExceptions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceExceptions">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDetails_ApplicationDetails">
          <End Role="ApplicationDetails" Type="Self.ApplicationDetails" Multiplicity="1" />
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationDetails">
              <PropertyRef Name="ApplicationDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueDetails">
              <PropertyRef Name="ApplicationDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDetails_Licences">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceIssueDetails">
              <PropertyRef Name="VerifiedLicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDetails_Vehicles">
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="0..1" />
          <End Role="LicenceIssueDetails" Type="Self.LicenceIssueDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicles">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="LicenceIssueDetails">
              <PropertyRef Name="VerifiedVehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Members">
          <End Role="Members" Type="Self.Members" Multiplicity="1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Members">
              <PropertyRef Name="MemberID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="MemberID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Vehicles">
          <End Role="Vehicles" Type="Self.Vehicles" Multiplicity="0..1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicles">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="VehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Pr_Dashboard_LicenceIssuingWorkflowSummaryGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceIssueDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_LicenceIssuePostSaveProcess" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="LicenceIssueDetailID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_Svc_CleanseUnusedVehicleData" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App" />
        <Function Name="Pr_VehicleGetLinkedByVIN" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="VIN" Type="varchar" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <EntityContainer Name="ApplicationModelStoreContainer">
          <EntitySet Name="ApplicationDetails" EntityType="Self.ApplicationDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="LicenceIssueDetails" EntityType="Self.LicenceIssueDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="LicenceExceptions" EntityType="Self.LicenceExceptions" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Licences" EntityType="Self.Licences" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Members" EntityType="Self.Members" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Vehicles" EntityType="Self.Vehicles" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Vw_LicenceIssueDetails" EntityType="Self.Vw_LicenceIssueDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_LicenceIssueDetails].[LicenceIssueDetailID] AS [LicenceIssueDetailID], 
    [Vw_LicenceIssueDetails].[ApplicationDetailID] AS [ApplicationDetailID], 
    [Vw_LicenceIssueDetails].[VerifiedLicenceID] AS [VerifiedLicenceID], 
    [Vw_LicenceIssueDetails].[VerifiedVehicleID] AS [VerifiedVehicleID], 
    [Vw_LicenceIssueDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_LicenceIssueDetails].[LicenceReferenceNumber] AS [LicenceReferenceNumber], 
    [Vw_LicenceIssueDetails].[ApplicationReferenceNumber] AS [ApplicationReferenceNumber], 
    [Vw_LicenceIssueDetails].[RequestType] AS [RequestType], 
    [Vw_LicenceIssueDetails].[SurnameOrCompanyName] AS [SurnameOrCompanyName], 
    [Vw_LicenceIssueDetails].[VehicleRegNumber] AS [VehicleRegNumber], 
    [Vw_LicenceIssueDetails].[ApplicationDescription] AS [ApplicationDescription], 
    [Vw_LicenceIssueDetails].[CertificateNumber] AS [CertificateNumber], 
    [Vw_LicenceIssueDetails].[IsStillToBeAcquired] AS [IsStillToBeAcquired], 
    [Vw_LicenceIssueDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
    [Vw_LicenceIssueDetails].[MemberFullName] AS [MemberFullName], 
    [Vw_LicenceIssueDetails].[MemberTaxReference] AS [MemberTaxReference], 
    [Vw_LicenceIssueDetails].[MemberIDNumber] AS [MemberIDNumber], 
    [Vw_LicenceIssueDetails].[MemberCell] AS [MemberCell], 
    [Vw_LicenceIssueDetails].[Association] AS [Association], 
    [Vw_LicenceIssueDetails].[VehicleVIN] AS [VehicleVIN], 
    [Vw_LicenceIssueDetails].[VehicleEngineNumber] AS [VehicleEngineNumber], 
    [Vw_LicenceIssueDetails].[VehicleRegistrationNumber] AS [VehicleRegistrationNumber], 
    [Vw_LicenceIssueDetails].[VehicleMake] AS [VehicleMake], 
    [Vw_LicenceIssueDetails].[VehicleSeatedCapacity] AS [VehicleSeatedCapacity], 
    [Vw_LicenceIssueDetails].[VehicleStandingCapacity] AS [VehicleStandingCapacity], 
    [Vw_LicenceIssueDetails].[AccreditationID] AS [AccreditationID], 
    [Vw_LicenceIssueDetails].[OperatingLicenceNumber] AS [OperatingLicenceNumber], 
    [Vw_LicenceIssueDetails].[DateOfIssue] AS [DateOfIssue], 
    [Vw_LicenceIssueDetails].[AccreditationNumber] AS [AccreditationNumber], 
    [Vw_LicenceIssueDetails].[DivisionTypeID] AS [DivisionTypeID], 
    [Vw_LicenceIssueDetails].[ProvinceID] AS [ProvinceID], 
    [Vw_LicenceIssueDetails].[IsDocumentVerificationRequired] AS [IsDocumentVerificationRequired]
    FROM [App].[Vw_LicenceIssueDetails] AS [Vw_LicenceIssueDetails]</DefiningQuery>
          </EntitySet>
          <AssociationSet Name="FK_LicenceExceptions_Licences" Association="Self.FK_LicenceExceptions_Licences">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceExceptions" EntitySet="LicenceExceptions" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDetails_ApplicationDetails" Association="Self.FK_LicenceIssueDetails_ApplicationDetails">
            <End Role="ApplicationDetails" EntitySet="ApplicationDetails" />
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDetails_Licences" Association="Self.FK_LicenceIssueDetails_Licences">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDetails_Vehicles" Association="Self.FK_LicenceIssueDetails_Vehicles">
            <End Role="Vehicles" EntitySet="Vehicles" />
            <End Role="LicenceIssueDetails" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Members" Association="Self.FK_Licences_Members">
            <End Role="Members" EntitySet="Members" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Vehicles" Association="Self.FK_Licences_Vehicles">
            <End Role="Vehicles" EntitySet="Vehicles" />
            <End Role="Licences" EntitySet="Licences" />
          </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="LicenceIssueContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="Vw_LicenceIssueDetails" EntityType="Model.Vw_LicenceIssueDetails" />
          <EntitySet Name="LicenceIssueDetails" EntityType="Model.LicenceIssueDetail" />
          <EntitySet Name="Licences" EntityType="Model.Licence" />
          <EntitySet Name="Members" EntityType="Model.Member" />
          <EntitySet Name="Vehicles" EntityType="Model.Vehicle" />
          <AssociationSet Name="FK_LicenceIssueDetails_Licences" Association="Model.FK_LicenceIssueDetails_Licences">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Members" Association="Model.FK_Licences_Members">
            <End Role="Member" EntitySet="Members" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_Vehicles" Association="Model.FK_Licences_Vehicles">
            <End Role="Vehicle" EntitySet="Vehicles" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <AssociationSet Name="FK_LicenceIssueDetails_Vehicles" Association="Model.FK_LicenceIssueDetails_Vehicles">
            <End Role="Vehicle" EntitySet="Vehicles" />
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <EntitySet Name="ApplicationDetails" EntityType="Model.ApplicationDetail" />
          <AssociationSet Name="FK_LicenceIssueDetails_ApplicationDetails" Association="Model.FK_LicenceIssueDetails_ApplicationDetails">
            <End Role="ApplicationDetail" EntitySet="ApplicationDetails" />
            <End Role="LicenceIssueDetail" EntitySet="LicenceIssueDetails" />
          </AssociationSet>
          <EntitySet Name="LicenceExceptions" EntityType="Model.LicenceException" />
          <AssociationSet Name="FK_LicenceExceptions_Licences" Association="Model.FK_LicenceExceptions_Licences">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceException" EntitySet="LicenceExceptions" />
          </AssociationSet>
          <FunctionImport Name="Pr_LicenceIssuePostSaveProcess">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Dashboard_LicenceIssuingWorkflowSummaryGet" ReturnType="Collection(Model.Pr_Dashboard_LicenceIssuingWorkflowSummaryGet_Result)">
            <Parameter Name="LicenceIssueDetailID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_VehicleGetLinkedByVIN" ReturnType="Collection(String)">
            <Parameter Name="VIN" Mode="In" Type="String" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_Svc_CleanseUnusedVehicleData" />
        </EntityContainer>
        <EntityType Name="Vw_LicenceIssueDetails">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Name="LicenceIssueDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="Int64" Nullable="false" />
          <Property Name="VerifiedVehicleID" Type="Int64" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="LicenceReferenceNumber" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationReferenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="RequestType" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="VehicleRegNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationDescription" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="IsStillToBeAcquired" Type="Boolean" />
          <Property Name="MemberFullName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="MemberTaxReference" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="MemberIDNumber" Type="Int64" />
          <Property Name="MemberCell" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Association" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="VehicleVIN" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleEngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleRegistrationNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleMake" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="VehicleSeatedCapacity" Type="Int32" />
          <Property Name="VehicleStandingCapacity" Type="Int32" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="AccreditationID" Type="Int64" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="DateTime" Precision="3" />
          <Property Name="AccreditationNumber" Type="String" Nullable="false" MaxLength="25" FixedLength="false" Unicode="false" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="IsDocumentVerificationRequired" Type="Boolean" />
        </EntityType>
        <EntityType Name="LicenceIssueDetail">
          <Key>
            <PropertyRef Name="LicenceIssueDetailID" />
          </Key>
          <Property Name="LicenceIssueDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="Int64" Nullable="false" />
          <Property Name="VerifiedLicenceID" Type="Int64" Nullable="false" />
          <Property Name="VerifiedVehicleID" 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" />
          <Property Name="IsDocumentVerificationRequired" Type="Boolean" />
          <NavigationProperty Name="Licence" Relationship="Model.FK_LicenceIssueDetails_Licences" FromRole="LicenceIssueDetail" ToRole="Licence" />
          <NavigationProperty Name="Vehicle" Relationship="Model.FK_LicenceIssueDetails_Vehicles" FromRole="LicenceIssueDetail" ToRole="Vehicle" />
          <NavigationProperty Name="Application" Relationship="Model.FK_LicenceIssueDetails_ApplicationDetails" FromRole="LicenceIssueDetail" ToRole="ApplicationDetail" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
          <Property Name="LicenceIssueNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityType Name="Licence">
          <Key>
            <PropertyRef Name="LicenceID" />
          </Key>
          <Property Name="LicenceID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationLicenceID" Type="Int64" />
          <Property Name="LicenceStatusID" Type="Int16" Nullable="false" />
          <Property Name="MemberID" Type="Int64" Nullable="false" />
          <Property Name="VehicleID" Type="Int64" />
          <Property Name="LicenceVehicleTypeID" Type="Int16" />
          <Property Name="LicenceCarryingCapacityID" Type="Int16" />
          <Property Name="DivisionTypeID" Type="Int16" />
          <Property Name="LicencingBoardID" Type="Int16" />
          <Property Name="ProvinceID" Type="Int16" />
          <Property Name="NameOnLicence" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="IssueNumber" Type="Int32" Nullable="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="DateTime" Precision="3" />
          <Property Name="DateOfExpiry" Type="DateTime" Precision="3" />
          <Property Name="Indefinite" Type="Boolean" Nullable="false" />
          <Property Name="UpcomingExpiryNotificationSmsSentDate" Type="DateTime" Precision="3" />
          <Property Name="ExpiredNotificationSmsSentDate" Type="DateTime" Precision="3" />
          <Property Name="UpliftmentReminderSmsSentDate" Type="DateTime" Precision="3" />
          <Property Name="OriginalLTPSPermitNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="OriginalOLASNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="IsLatestIssue" Type="Boolean" />
          <NavigationProperty Name="LicenceIssueDetails" Relationship="Model.FK_LicenceIssueDetails_Licences" FromRole="Licence" ToRole="LicenceIssueDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="Member" Relationship="Model.FK_Licences_Members" FromRole="Licence" ToRole="Member" />
          <NavigationProperty Name="Vehicle" Relationship="Model.FK_Licences_Vehicles" FromRole="Licence" ToRole="Vehicle" />
          <NavigationProperty Name="Exceptions" Relationship="Model.FK_LicenceExceptions_Licences" FromRole="Licence" ToRole="LicenceException" />
          <Property Name="AccreditationID" Type="Int64" />
          <Property Name="IsTemporaryLicence" Type="Boolean" />
          <Property Name="DateOfApproval" Type="DateTime" Precision="3" />
          <Property Name="RegionID" Type="Int64" />
          <Property Name="AssociationID" Type="Int64" />
        </EntityType>
        <EntityType Name="Member">
          <Key>
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="MemberID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ReferenceNumber" Type="String" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Name="FullName" Type="String" Nullable="false" MaxLength="511" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Name="IdentityDocumentDocID" Type="Int64" />
          <Property Name="TaxClearanceCertificateDocID" Type="Int64" />
          <Property Name="SurnameOrCompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="FirstNames" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IDTypeID" Type="Int16" />
          <Property Name="IDTypeDescription" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddress" Type="String" MaxLength="800" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddressCode" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="PhysicalAddress" Type="String" MaxLength="800" FixedLength="false" Unicode="false" />
          <Property Name="PhysicalAddressCode" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="TelPhone" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="TelCell" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="TelFax" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="SARSIncomeTaxNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="TradeName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="MemberStatusID" Type="Int16" Nullable="false" />
          <Property Name="OlasID" Type="Int64" />
          <Property Name="LtpsID" Type="Int64" />
          <Property Name="NeoID" Type="Int64" />
          <Property Name="BusinessTypeID" Type="Int64" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Members" FromRole="Member" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="RegionID" Type="Int64" />
        </EntityType>
        <EntityType Name="Vehicle">
          <Key>
            <PropertyRef Name="VehicleID" />
          </Key>
          <Property Name="VehicleID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ReferenceNumber" Type="String" MaxLength="53" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Name="RegistrationNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="EngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VIN" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="SeatedCapacity" Type="Int32" />
          <Property Name="StandingCapacity" Type="Int32" />
          <Property Name="GrossMass" Type="Int64" />
          <Property Name="VehicleMakeID" Type="Int16" />
          <Property Name="VehicleTypeID" Type="Int16" />
          <Property Name="VehicleStatusID" Type="Int16" Nullable="false" />
          <Property Name="OlasID" Type="Int64" />
          <Property Name="LtpsID" Type="Int64" />
          <Property Name="NeoID" Type="Int64" />
          <Property Name="CarryingCapacityID" Type="Int16" />
          <Property Name="YearOfManufacture" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="IgnoreVinException" Type="Boolean" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_Vehicles" FromRole="Vehicle" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="LicenceIssueDetails" Relationship="Model.FK_LicenceIssueDetails_Vehicles" FromRole="Vehicle" ToRole="LicenceIssueDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="Tare" Type="Int64" />
          <Property Name="CurrentOdometerReading" Type="Int64" />
          <Property Name="RoadworthyCertificateDocID" Type="Int64" />
          <Property Name="CertificateOfRegistrationDocID" Type="Int64" />
          <Property Name="VehicleModelID" Type="Int16" />
          <Property Name="ProfessionalDriversPermitDocID" Type="Int64" />
          <Property Name="RankPermitDocID" Type="Int64" />
        </EntityType>
        <Association Name="FK_LicenceIssueDetails_Licences">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceIssueDetail">
              <PropertyRef Name="VerifiedLicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Members">
          <End Type="Model.Member" Role="Member" Multiplicity="1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Member">
              <PropertyRef Name="MemberID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="MemberID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_Vehicles">
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="0..1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicle">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="VehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_LicenceIssueDetails_Vehicles">
          <End Type="Model.Vehicle" Role="Vehicle" Multiplicity="0..1" />
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Vehicle">
              <PropertyRef Name="VehicleID" />
            </Principal>
            <Dependent Role="LicenceIssueDetail">
              <PropertyRef Name="VerifiedVehicleID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="ApplicationDetail">
          <Key>
            <PropertyRef Name="ApplicationDetailID" />
          </Key>
          <Property Name="ApplicationDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" Nullable="false" />
          <Property Name="VerifiedAssociationID" Type="Int64" />
          <Property Name="SourceApplicationID" Type="Int16" Nullable="false" />
          <Property Name="IsRenewal" Type="Boolean" Nullable="false" />
          <Property Name="IsLateRenewal" Type="Boolean" Nullable="false" />
          <Property Name="IsReceiptRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsGazettingRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsInspectionRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAdjudicationRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsExceptionRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsUpliftmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="Boolean" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="IsBulkVerificationRequired" Type="Boolean" />
          <Property Name="IsCancellationRequired" Type="Boolean" 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" />
          <Property Name="IsGazettingBypassed" Type="Boolean" Nullable="false" />
          <Property Name="ForceGazetting" Type="Boolean" Nullable="false" />
          <Property Name="GazetteDetailID" Type="Int64" />
          <Property Name="IsAdjudicationBypassed" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationDetailID" Type="Int64" />
          <Property Name="AdjudicationCount" Type="Int32" />
          <Property Name="HasNewRoute" Type="Boolean" Nullable="false" />
          <Property Name="IsLtpsConversion" Type="Boolean" />
          <Property Name="LicenceCount" Type="Int32" Nullable="false" />
          <Property Name="IsBulkApplication" Type="Boolean" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationStatusID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationSubStatusID" Type="Int16" Nullable="false" />
          <Property Name="GazetteTypeID" Type="Int16" />
          <Property Name="IsReferralRequired" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="LicenceIssueDetails" Relationship="Model.FK_LicenceIssueDetails_ApplicationDetails" FromRole="ApplicationDetail" ToRole="LicenceIssueDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="AccreditationID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int16" Nullable="false" />
          <Property Name="OfficeLocationDivisionTypeID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationProvinceID" Type="Int16" Nullable="false" />
          <Property Name="ApplicationRegionID" Type="Int64" />
          <Property Name="IsFinalisationTasksRequired" Type="Boolean" />
          <Property Name="AdjudicationOfficeLocationID" Type="Int16" />
          <Property Name="CopiedFromApplicationDetailID" Type="Int64" />
          <Property Name="CopiedFromApplicationLicenceID" Type="Int64" />
          <Property Name="ApplicationPrecheckDetailID" Type="Int64" />
          <Property Name="AmountDue" Type="Decimal" Precision="19" Scale="4" />
          <Property Name="AmountPaid" Type="Decimal" Precision="19" Scale="4" />
          <Property Name="IsBusAndContract" Type="Boolean" Nullable="false" />
          <Property Name="AdjudicationTypeID" Type="Int16" />
          <Property Name="ApplicationIsObjected" Type="Boolean" Nullable="false" />
          <Property Name="OnlyExistingRoutesOnLicense" Type="Boolean" Nullable="false" />
          <Property Name="IsAllowedNewLicence" Type="Boolean" Nullable="false" />
          <Property Name="ApplicationCannoutBeAutoAssignedForAdjudication" Type="Boolean" />
          <Property Name="RelatedTATApplicationRequestID" Type="Int64" />
        </EntityType>
        <Association Name="FK_LicenceIssueDetails_ApplicationDetails">
          <End Type="Model.ApplicationDetail" Role="ApplicationDetail" Multiplicity="1" />
          <End Type="Model.LicenceIssueDetail" Role="LicenceIssueDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ApplicationDetail">
              <PropertyRef Name="ApplicationDetailID" />
            </Principal>
            <Dependent Role="LicenceIssueDetail">
              <PropertyRef Name="ApplicationDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="LicenceException">
          <Key>
            <PropertyRef Name="LicenceExceptionID" />
          </Key>
          <Property Name="LicenceExceptionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="LicenceID" Type="Int64" Nullable="false" />
          <Property Name="Exception" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true" />
          <NavigationProperty Name="Licence" Relationship="Model.FK_LicenceExceptions_Licences" FromRole="LicenceException" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_LicenceExceptions_Licences">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceException" Role="LicenceException" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceException">
              <PropertyRef Name="LicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_Dashboard_LicenceIssuingWorkflowSummaryGet_Result">
          <Property Type="String" Name="Title" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="Status" Nullable="true" MaxLength="50" />
          <Property Type="String" Name="StatusDetail" Nullable="true" MaxLength="2000" />
          <Property Type="Int32" Name="OrderBy" Nullable="true" />
        </ComplexType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ApplicationModelStoreContainer" CdmEntityContainer="LicenceIssueContext">
          <EntitySetMapping Name="Vw_LicenceIssueDetails">
            <EntityTypeMapping TypeName="Model.Vw_LicenceIssueDetails">
              <MappingFragment StoreEntitySet="Vw_LicenceIssueDetails">
                <ScalarProperty Name="IsDocumentVerificationRequired" ColumnName="IsDocumentVerificationRequired" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="AccreditationNumber" ColumnName="AccreditationNumber" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="VehicleStandingCapacity" ColumnName="VehicleStandingCapacity" />
                <ScalarProperty Name="VehicleSeatedCapacity" ColumnName="VehicleSeatedCapacity" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VehicleRegistrationNumber" ColumnName="VehicleRegistrationNumber" />
                <ScalarProperty Name="VehicleEngineNumber" ColumnName="VehicleEngineNumber" />
                <ScalarProperty Name="VehicleVIN" ColumnName="VehicleVIN" />
                <ScalarProperty Name="Association" ColumnName="Association" />
                <ScalarProperty Name="MemberCell" ColumnName="MemberCell" />
                <ScalarProperty Name="MemberIDNumber" ColumnName="MemberIDNumber" />
                <ScalarProperty Name="MemberTaxReference" ColumnName="MemberTaxReference" />
                <ScalarProperty Name="MemberFullName" ColumnName="MemberFullName" />
                <ScalarProperty Name="IsStillToBeAcquired" ColumnName="IsStillToBeAcquired" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="ApplicationDescription" ColumnName="ApplicationDescription" />
                <ScalarProperty Name="VehicleRegNumber" ColumnName="VehicleRegNumber" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="RequestType" ColumnName="RequestType" />
                <ScalarProperty Name="ApplicationReferenceNumber" ColumnName="ApplicationReferenceNumber" />
                <ScalarProperty Name="LicenceReferenceNumber" ColumnName="LicenceReferenceNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceIssueDetails">
            <EntityTypeMapping TypeName="Model.LicenceIssueDetail">
              <MappingFragment StoreEntitySet="LicenceIssueDetails">
                <ScalarProperty Name="LicenceIssueNumber" ColumnName="LicenceIssueNumber" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="IsDocumentVerificationRequired" ColumnName="IsDocumentVerificationRequired" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="VerifiedVehicleID" ColumnName="VerifiedVehicleID" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="LicenceIssueDetailID" ColumnName="LicenceIssueDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Licences">
            <EntityTypeMapping TypeName="Model.Licence">
              <MappingFragment StoreEntitySet="Licences">
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="DateOfApproval" ColumnName="DateOfApproval" />
                <ScalarProperty Name="IsTemporaryLicence" ColumnName="IsTemporaryLicence" />
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
                <ScalarProperty Name="IsLatestIssue" ColumnName="IsLatestIssue" />
                <ScalarProperty Name="OriginalOLASNumber" ColumnName="OriginalOLASNumber" />
                <ScalarProperty Name="OriginalLTPSPermitNumber" ColumnName="OriginalLTPSPermitNumber" />
                <ScalarProperty Name="UpliftmentReminderSmsSentDate" ColumnName="UpliftmentReminderSmsSentDate" />
                <ScalarProperty Name="ExpiredNotificationSmsSentDate" ColumnName="ExpiredNotificationSmsSentDate" />
                <ScalarProperty Name="UpcomingExpiryNotificationSmsSentDate" ColumnName="UpcomingExpiryNotificationSmsSentDate" />
                <ScalarProperty Name="Indefinite" ColumnName="Indefinite" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="IssueNumber" ColumnName="IssueNumber" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="ProvinceID" ColumnName="ProvinceID" />
                <ScalarProperty Name="LicencingBoardID" ColumnName="LicencingBoardID" />
                <ScalarProperty Name="DivisionTypeID" ColumnName="DivisionTypeID" />
                <ScalarProperty Name="LicenceCarryingCapacityID" ColumnName="LicenceCarryingCapacityID" />
                <ScalarProperty Name="LicenceVehicleTypeID" ColumnName="LicenceVehicleTypeID" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="ApplicationLicenceID" ColumnName="ApplicationLicenceID" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Members">
            <EntityTypeMapping TypeName="Model.Member">
              <MappingFragment StoreEntitySet="Members">
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="BusinessTypeID" ColumnName="BusinessTypeID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="MemberStatusID" ColumnName="MemberStatusID" />
                <ScalarProperty Name="TradeName" ColumnName="TradeName" />
                <ScalarProperty Name="SARSIncomeTaxNumber" ColumnName="SARSIncomeTaxNumber" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="TelFax" ColumnName="TelFax" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="PhysicalAddressCode" ColumnName="PhysicalAddressCode" />
                <ScalarProperty Name="PhysicalAddress" ColumnName="PhysicalAddress" />
                <ScalarProperty Name="PostalAddressCode" ColumnName="PostalAddressCode" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="IDTypeDescription" ColumnName="IDTypeDescription" />
                <ScalarProperty Name="IDTypeID" ColumnName="IDTypeID" />
                <ScalarProperty Name="FirstNames" ColumnName="FirstNames" />
                <ScalarProperty Name="SurnameOrCompanyName" ColumnName="SurnameOrCompanyName" />
                <ScalarProperty Name="TaxClearanceCertificateDocID" ColumnName="TaxClearanceCertificateDocID" />
                <ScalarProperty Name="IdentityDocumentDocID" ColumnName="IdentityDocumentDocID" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vehicles">
            <EntityTypeMapping TypeName="Model.Vehicle">
              <MappingFragment StoreEntitySet="Vehicles">
                <ScalarProperty Name="RankPermitDocID" ColumnName="RankPermitDocID" />
                <ScalarProperty Name="ProfessionalDriversPermitDocID" ColumnName="ProfessionalDriversPermitDocID" />
                <ScalarProperty Name="VehicleModelID" ColumnName="VehicleModelID" />
                <ScalarProperty Name="CertificateOfRegistrationDocID" ColumnName="CertificateOfRegistrationDocID" />
                <ScalarProperty Name="RoadworthyCertificateDocID" ColumnName="RoadworthyCertificateDocID" />
                <ScalarProperty Name="CurrentOdometerReading" ColumnName="CurrentOdometerReading" />
                <ScalarProperty Name="Tare" ColumnName="Tare" />
                <ScalarProperty Name="IgnoreVinException" ColumnName="IgnoreVinException" />
                <ScalarProperty Name="YearOfManufacture" ColumnName="YearOfManufacture" />
                <ScalarProperty Name="CarryingCapacityID" ColumnName="CarryingCapacityID" />
                <ScalarProperty Name="NeoID" ColumnName="NeoID" />
                <ScalarProperty Name="LtpsID" ColumnName="LtpsID" />
                <ScalarProperty Name="OlasID" ColumnName="OlasID" />
                <ScalarProperty Name="VehicleStatusID" ColumnName="VehicleStatusID" />
                <ScalarProperty Name="VehicleTypeID" ColumnName="VehicleTypeID" />
                <ScalarProperty Name="VehicleMakeID" ColumnName="VehicleMakeID" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="ReferenceNumber" ColumnName="ReferenceNumber" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ApplicationDetails">
            <EntityTypeMapping TypeName="Model.ApplicationDetail">
              <MappingFragment StoreEntitySet="ApplicationDetails">
                <ScalarProperty Name="RelatedTATApplicationRequestID" ColumnName="RelatedTATApplicationRequestID" />
                <ScalarProperty Name="ApplicationCannoutBeAutoAssignedForAdjudication" ColumnName="ApplicationCannoutBeAutoAssignedForAdjudication" />
                <ScalarProperty Name="IsAllowedNewLicence" ColumnName="IsAllowedNewLicence" />
                <ScalarProperty Name="OnlyExistingRoutesOnLicense" ColumnName="OnlyExistingRoutesOnLicense" />
                <ScalarProperty Name="ApplicationIsObjected" ColumnName="ApplicationIsObjected" />
                <ScalarProperty Name="AdjudicationTypeID" ColumnName="AdjudicationTypeID" />
                <ScalarProperty Name="IsBusAndContract" ColumnName="IsBusAndContract" />
                <ScalarProperty Name="AmountPaid" ColumnName="AmountPaid" />
                <ScalarProperty Name="AmountDue" ColumnName="AmountDue" />
                <ScalarProperty Name="ApplicationPrecheckDetailID" ColumnName="ApplicationPrecheckDetailID" />
                <ScalarProperty Name="CopiedFromApplicationLicenceID" ColumnName="CopiedFromApplicationLicenceID" />
                <ScalarProperty Name="CopiedFromApplicationDetailID" ColumnName="CopiedFromApplicationDetailID" />
                <ScalarProperty Name="AdjudicationOfficeLocationID" ColumnName="AdjudicationOfficeLocationID" />
                <ScalarProperty Name="IsFinalisationTasksRequired" ColumnName="IsFinalisationTasksRequired" />
                <ScalarProperty Name="ApplicationRegionID" ColumnName="ApplicationRegionID" />
                <ScalarProperty Name="ApplicationProvinceID" ColumnName="ApplicationProvinceID" />
                <ScalarProperty Name="OfficeLocationDivisionTypeID" ColumnName="OfficeLocationDivisionTypeID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="AccreditationID" ColumnName="AccreditationID" />
                <ScalarProperty Name="IsReferralRequired" ColumnName="IsReferralRequired" />
                <ScalarProperty Name="GazetteTypeID" ColumnName="GazetteTypeID" />
                <ScalarProperty Name="ApplicationSubStatusID" ColumnName="ApplicationSubStatusID" />
                <ScalarProperty Name="ApplicationStatusID" ColumnName="ApplicationStatusID" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="IsBulkApplication" ColumnName="IsBulkApplication" />
                <ScalarProperty Name="LicenceCount" ColumnName="LicenceCount" />
                <ScalarProperty Name="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="HasNewRoute" ColumnName="HasNewRoute" />
                <ScalarProperty Name="AdjudicationCount" ColumnName="AdjudicationCount" />
                <ScalarProperty Name="AdjudicationDetailID" ColumnName="AdjudicationDetailID" />
                <ScalarProperty Name="IsAdjudicationBypassed" ColumnName="IsAdjudicationBypassed" />
                <ScalarProperty Name="GazetteDetailID" ColumnName="GazetteDetailID" />
                <ScalarProperty Name="ForceGazetting" ColumnName="ForceGazetting" />
                <ScalarProperty Name="IsGazettingBypassed" ColumnName="IsGazettingBypassed" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="IsCancellationRequired" ColumnName="IsCancellationRequired" />
                <ScalarProperty Name="IsBulkVerificationRequired" ColumnName="IsBulkVerificationRequired" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <ScalarProperty Name="IsSeniorManagerApprovalRequired" ColumnName="IsSeniorManagerApprovalRequired" />
                <ScalarProperty Name="IsAssessorApprovalRequired" ColumnName="IsAssessorApprovalRequired" />
                <ScalarProperty Name="IsAdjustmentRequired" ColumnName="IsAdjustmentRequired" />
                <ScalarProperty Name="IsUpliftmentRequired" ColumnName="IsUpliftmentRequired" />
                <ScalarProperty Name="IsExceptionRequired" ColumnName="IsExceptionRequired" />
                <ScalarProperty Name="IsNewRouteRequired" ColumnName="IsNewRouteRequired" />
                <ScalarProperty Name="IsAdjudicationRequired" ColumnName="IsAdjudicationRequired" />
                <ScalarProperty Name="IsInspectionRequired" ColumnName="IsInspectionRequired" />
                <ScalarProperty Name="IsGazettingRequired" ColumnName="IsGazettingRequired" />
                <ScalarProperty Name="IsReceiptRequired" ColumnName="IsReceiptRequired" />
                <ScalarProperty Name="IsLateRenewal" ColumnName="IsLateRenewal" />
                <ScalarProperty Name="IsRenewal" ColumnName="IsRenewal" />
                <ScalarProperty Name="SourceApplicationID" ColumnName="SourceApplicationID" />
                <ScalarProperty Name="VerifiedAssociationID" ColumnName="VerifiedAssociationID" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="ApplicationDetailID" ColumnName="ApplicationDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="LicenceExceptions">
            <EntityTypeMapping TypeName="Model.LicenceException">
              <MappingFragment StoreEntitySet="LicenceExceptions">
                <ScalarProperty Name="Exception" ColumnName="Exception" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="LicenceExceptionID" ColumnName="LicenceExceptionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceIssuePostSaveProcess" FunctionName="ApplicationModel.Store.Pr_LicenceIssuePostSaveProcess" />
          <FunctionImportMapping FunctionImportName="Pr_Dashboard_LicenceIssuingWorkflowSummaryGet" FunctionName="ApplicationModel.Store.Pr_Dashboard_LicenceIssuingWorkflowSummaryGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_Dashboard_LicenceIssuingWorkflowSummaryGet_Result">
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="Status" ColumnName="Status" />
                <ScalarProperty Name="StatusDetail" ColumnName="StatusDetail" />
                <ScalarProperty Name="OrderBy" ColumnName="OrderBy" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_VehicleGetLinkedByVIN" FunctionName="ApplicationModel.Store.Pr_VehicleGetLinkedByVIN" />
          <FunctionImportMapping FunctionImportName="Pr_Svc_CleanseUnusedVehicleData" FunctionName="ApplicationModel.Store.Pr_Svc_CleanseUnusedVehicleData" />
        </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 DiagramId="79bbfdb8b482480ca14f44acbc0e404d" Name="Licence Issue Details" ZoomLevel="49" >
        <EntityTypeShape EntityType="Model.LicenceIssueDetail" Width="3.25" PointX="3.75" PointY="0.5" />
        <EntityTypeShape EntityType="Model.Licence" Width="1.5" PointX="7.375" PointY="5.875" />
        <EntityTypeShape EntityType="Model.Member" Width="1.5" PointX="13.5" PointY="6.875" />
        <EntityTypeShape EntityType="Model.Vehicle" Width="1.5" PointX="13.625" PointY="0.75" />
        <AssociationConnector Association="Model.FK_LicenceIssueDetails_Licences" />
        <AssociationConnector Association="Model.FK_Licences_Members" />
        <AssociationConnector Association="Model.FK_Licences_Vehicles" />
        <AssociationConnector Association="Model.FK_LicenceIssueDetails_Vehicles" />
        <EntityTypeShape EntityType="Model.ApplicationDetail" Width="1.5" PointX="0.75" PointY="1.375" />
        <AssociationConnector Association="Model.FK_LicenceIssueDetails_ApplicationDetails" />
        <EntityTypeShape EntityType="Model.LicenceException" Width="1.5" PointX="9.625" PointY="8.125" />
        <AssociationConnector Association="Model.FK_LicenceExceptions_Licences" />
      </Diagram>
      <Diagram DiagramId="d9775f7ebe1541f4af4eaf464e347443" Name="Views" >
        <EntityTypeShape EntityType="Model.Vw_LicenceIssueDetails" Width="3.875" PointX="0.75" PointY="0.75" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>