﻿<?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="NewRouteModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2008" 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="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="NewRouteRequestDetails">
          <Key>
            <PropertyRef Name="NewRouteRequestDetailID" />
          </Key>
          <Property Name="NewRouteRequestDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="VerifiedRouteID" Type="bigint" />
          <Property Name="RouteOrigin" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="RouteOriginPlaceID" Type="bigint" />
          <Property Name="RouteDestination" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="RouteDestinationPlaceID" Type="bigint" />
          <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="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="NewRouteRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="TimeTableDocumentID" Type="bigint" />
          <Property Name="FareScheduleDocumentID" Type="bigint" />
          <Property Name="IsAssessorVerificationRequired" Type="bit" Nullable="false" />
          <Property Name="OriginalDescription" Type="varchar(max)" />
          <Property Name="OriginalNationalRouteNumber" Type="varchar" MaxLength="255" />
          <Property Name="OriginalBoardRouteNumber" Type="varchar" MaxLength="255" />
          <Property Name="IsExistingLtpsOrOlasRoute" Type="bit" />
        </EntityType>
        <EntityType Name="NewRouteRequestTypes">
          <Key>
            <PropertyRef Name="NewRouteRequestTypeID" />
          </Key>
          <Property Name="NewRouteRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="NewRouteRouteNodes">
          <Key>
            <PropertyRef Name="NewRouteRouteNodeID" />
          </Key>
          <Property Name="NewRouteRouteNodeID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="NewRouteRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="PlaceID" Type="bigint" Nullable="false" />
          <Property Name="WaypointTypeID" Type="smallint" Nullable="false" />
          <Property Name="Sequence" Type="int" Nullable="false" />
          <Property Name="DistanceFromOrigin" Type="float" />
        </EntityType>
        <!--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="IsAssessorApprovalRequired" />
            <PropertyRef Name="IsSeniorManagerApprovalRequired" />
            <PropertyRef Name="HasNewRoute" />
            <PropertyRef Name="ExistingLicenceNumber" />
          </Key>
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <Property Name="RequestType" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Cost" Type="money" />
          <Property Name="SurnameOrCompanyName" Type="varchar" MaxLength="511" />
          <Property Name="FirstNames" Type="varchar" MaxLength="255" />
          <Property Name="TradeName" Type="varchar" MaxLength="255" />
          <Property Name="Member" Type="varchar" MaxLength="511" />
          <Property Name="VerifiedMemberID" Type="bigint" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" Nullable="false" />
          <Property Name="SourceApplicationID" Type="smallint" Nullable="false" />
          <Property Name="IsNewAssociationRequired" Type="bit" Nullable="false" />
          <Property Name="IsNewMemberRequired" Type="bit" Nullable="false" />
          <Property Name="IsNewRouteRequired" Type="bit" Nullable="false" />
          <Property Name="IsExceptionRequired" Type="bit" Nullable="false" />
          <Property Name="IsUpliftmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsAdjustmentRequired" Type="bit" Nullable="false" />
          <Property Name="IsCancellationRequired" Type="bit" Nullable="false" />
          <Property Name="GazetteNumber" Type="varchar" MaxLength="20" />
          <Property Name="GazetteDetailID" Type="bigint" />
          <Property Name="MeetingDate" Type="datetime" />
          <Property Name="AdjudicationDetailID" Type="bigint" />
          <Property Name="PaymentTypeID" Type="smallint" />
          <Property Name="VehicleCount" Type="int" Nullable="false" />
          <Property Name="ChassisNumber" Type="varchar" MaxLength="50" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VehicleRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="SeatedCapacity" Type="smallint" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
          <Property Name="AdjudicationDecision" Type="varchar" MaxLength="100" />
          <Property Name="ApplicationDescription" Type="varchar" MaxLength="500" />
          <Property Name="IsRenewal" Type="bit" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="ModeID" Type="smallint" />
          <Property Name="TaxNumber" Type="varchar" MaxLength="50" />
          <Property Name="PrecheckDetailID" Type="bigint" />
          <Property Name="IsStillToBeAcquired" Type="bit" Nullable="false" />
          <Property Name="ProxyName" Type="varchar" MaxLength="511" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
          <Property Name="AdjudicationDecisionID" Type="smallint" />
          <Property Name="AdjudicationComment" Type="varchar" MaxLength="1" Nullable="false" />
          <Property Name="AdjudicationException" Type="bit" />
          <Property Name="TelCell" Type="varchar" MaxLength="14" />
          <Property Name="TelPhone" Type="varchar" MaxLength="14" />
          <Property Name="RegionID" Type="bigint" />
          <Property Name="AdjudicationRegionID" Type="smallint" />
          <Property Name="ExistingLicenceHolder" Type="varchar" MaxLength="511" />
          <Property Name="ExistingLicenceHolderID" Type="varchar" MaxLength="20" />
          <Property Name="Region" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="ExistingVehicleChassisNumber" Type="varchar" MaxLength="50" />
          <Property Name="ExistingVehicleRegNumber" Type="varchar" MaxLength="50" />
          <Property Name="WorkflowStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsAdjudicationBypassed" Type="bit" Nullable="false" />
          <Property Name="IsGazettingBypassed" Type="bit" Nullable="false" />
          <Property Name="IsAssessorApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="IsSeniorManagerApprovalRequired" Type="bit" Nullable="false" />
          <Property Name="HasNewRoute" Type="bit" Nullable="false" />
          <Property Name="ExistingLicenceNumber" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsAutoVerificationRequired" Type="bit" />
          <Property Name="IsLtpsConversion" Type="bit" />
          <Property Name="ProxyIDNumber" Type="varchar" MaxLength="20" />
          <Property Name="StandingCapacity" Type="smallint" />
          <Property Name="AdjudicationCount" Type="smallint" />
          <Property Name="PhysicalAddress" Type="varchar" MaxLength="255" />
          <Property Name="PhysicalAddressCode" Type="varchar" MaxLength="4" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="255" />
          <Property Name="PostalAddressCode" Type="varchar" MaxLength="4" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.App.Vw_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="ReferenceNumber" />
            <PropertyRef Name="WorkflowInstanceStatus" />
            <PropertyRef Name="EntityID" />
            <PropertyRef Name="ItemID" />
            <PropertyRef Name="IsAssessorVerificationRequired" />
          </Key>
          <Property Name="NewRouteRequestDetailID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="VerifiedRouteID" Type="bigint" />
          <Property Name="RouteOrigin" Type="varchar" MaxLength="255" />
          <Property Name="RouteDestination" Type="varchar" MaxLength="255" />
          <Property Name="RouteDescription" Type="varchar(max)" Nullable="false" />
          <Property Name="NationalRouteNumber" Type="varchar" MaxLength="50" />
          <Property Name="BoardRouteNumber" Type="varchar" MaxLength="50" />
          <Property Name="RouteLength" Type="float" />
          <Property Name="ReferenceNumber" Type="varchar" MaxLength="10" Nullable="false" />
          <Property Name="WorkflowInstanceStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="IsAssessorVerificationRequired" Type="bit" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateKZN.Verified.Vw_OperatingLicenceDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_OperatingLicenceDetails">
          <Key>
            <PropertyRef Name="LicenceID" />
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="CrossBorder" />
            <PropertyRef Name="LicensingBoard" />
            <PropertyRef Name="LicenceStatus" />
            <PropertyRef Name="LicenceStatusID" />
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="LicenceID" Type="bigint" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="bigint" Nullable="false" />
          <Property Name="AssociationName" Type="varchar" MaxLength="255" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="18" />
          <Property Name="ApplicationNumber" Type="varchar" MaxLength="10" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="varchar" MaxLength="20" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="100" />
          <Property Name="PostalAddress" Type="varchar" MaxLength="405" />
          <Property Name="RegistrationNumber" Type="varchar" MaxLength="50" />
          <Property Name="GrossMass" Type="bigint" />
          <Property Name="EngineNumber" Type="varchar" MaxLength="50" />
          <Property Name="VIN" Type="varchar" MaxLength="50" />
          <Property Name="VehicleMake" Type="varchar" MaxLength="100" />
          <Property Name="SeatedCapacity" Type="varchar" MaxLength="17" />
          <Property Name="StandingCapacity" Type="varchar" MaxLength="19" />
          <Property Name="VehicleType" Type="varchar" MaxLength="100" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="DateOfIssue" Type="varchar" MaxLength="30" />
          <Property Name="DateOfExpiry" Type="varchar" MaxLength="30" />
          <Property Name="CrossBorder" Type="varchar" MaxLength="2" Nullable="false" />
          <Property Name="LicensingBoard" Type="varchar" MaxLength="57" Nullable="false" />
          <Property Name="YearOfFirstReg" Type="varchar" MaxLength="4" />
          <Property Name="ApplicationRequestTypeID" Type="smallint" />
          <Property Name="LicenceExceptions" Type="varchar" MaxLength="2000" />
          <Property Name="LicenceStatus" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="VehicleID" Type="bigint" />
          <Property Name="AssociationID" Type="bigint" />
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="MemberID" Type="bigint" Nullable="false" />
        </EntityType>
        <Association Name="FK_ApplicationRouteDetails_NewRouteRequestDetails">
          <End Role="NewRouteRequestDetails" Type="Self.NewRouteRequestDetails" Multiplicity="0..1" />
          <End Role="ApplicationRouteDetails" Type="Self.ApplicationRouteDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="NewRouteRequestDetails">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRouteDetails">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_NewRouteRequestDetails_NewRouteRequestTypes">
          <End Role="NewRouteRequestTypes" Type="Self.NewRouteRequestTypes" Multiplicity="1" />
          <End Role="NewRouteRequestDetails" Type="Self.NewRouteRequestDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="NewRouteRequestTypes">
              <PropertyRef Name="NewRouteRequestTypeID" />
            </Principal>
            <Dependent Role="NewRouteRequestDetails">
              <PropertyRef Name="NewRouteRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_NewRouteRouteNodes_NewRouteRequestDetails">
          <End Role="NewRouteRequestDetails" Type="Self.NewRouteRequestDetails" Multiplicity="1" />
          <End Role="NewRouteRouteNodes" Type="Self.NewRouteRouteNodes" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="NewRouteRequestDetails">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Principal>
            <Dependent Role="NewRouteRouteNodes">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <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_NewRouteRequestPostSave" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="NewRouteRequestDetailID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_RouteLinkedLicences" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Verified">
          <Parameter Name="RouteID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <EntityContainer Name="NewRouteModelStoreContainer">
          <EntitySet Name="ApplicationRouteDetails" EntityType="Self.ApplicationRouteDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="NewRouteRequestDetails" EntityType="Self.NewRouteRequestDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="NewRouteRequestTypes" EntityType="Self.NewRouteRequestTypes" Schema="App" store:Type="Tables" />
          <EntitySet Name="NewRouteRouteNodes" EntityType="Self.NewRouteRouteNodes" Schema="App" 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>
          <EntitySet Name="Vw_OperatingLicenceDetails" EntityType="Self.Vw_OperatingLicenceDetails" store:Type="Views" store:Schema="Verified">
            <DefiningQuery>SELECT 
[Vw_OperatingLicenceDetails].[LicenceID] AS [LicenceID], 
[Vw_OperatingLicenceDetails].[ApplicationRequestDetailID] AS [ApplicationRequestDetailID], 
[Vw_OperatingLicenceDetails].[AssociationName] AS [AssociationName], 
[Vw_OperatingLicenceDetails].[OperatingLicenceNumber] AS [OperatingLicenceNumber], 
[Vw_OperatingLicenceDetails].[ApplicationNumber] AS [ApplicationNumber], 
[Vw_OperatingLicenceDetails].[IDNumberOrBusinessRegistrationNo] AS [IDNumberOrBusinessRegistrationNo], 
[Vw_OperatingLicenceDetails].[NameOnLicence] AS [NameOnLicence], 
[Vw_OperatingLicenceDetails].[PostalAddress] AS [PostalAddress], 
[Vw_OperatingLicenceDetails].[RegistrationNumber] AS [RegistrationNumber], 
[Vw_OperatingLicenceDetails].[GrossMass] AS [GrossMass], 
[Vw_OperatingLicenceDetails].[EngineNumber] AS [EngineNumber], 
[Vw_OperatingLicenceDetails].[VIN] AS [VIN], 
[Vw_OperatingLicenceDetails].[VehicleMake] AS [VehicleMake], 
[Vw_OperatingLicenceDetails].[SeatedCapacity] AS [SeatedCapacity], 
[Vw_OperatingLicenceDetails].[StandingCapacity] AS [StandingCapacity], 
[Vw_OperatingLicenceDetails].[VehicleType] AS [VehicleType], 
[Vw_OperatingLicenceDetails].[CertificateNumber] AS [CertificateNumber], 
[Vw_OperatingLicenceDetails].[DateOfIssue] AS [DateOfIssue], 
[Vw_OperatingLicenceDetails].[DateOfExpiry] AS [DateOfExpiry], 
[Vw_OperatingLicenceDetails].[CrossBorder] AS [CrossBorder], 
[Vw_OperatingLicenceDetails].[LicensingBoard] AS [LicensingBoard], 
[Vw_OperatingLicenceDetails].[YearOfFirstReg] AS [YearOfFirstReg], 
[Vw_OperatingLicenceDetails].[ApplicationRequestTypeID] AS [ApplicationRequestTypeID], 
[Vw_OperatingLicenceDetails].[LicenceExceptions] AS [LicenceExceptions], 
[Vw_OperatingLicenceDetails].[LicenceStatus] AS [LicenceStatus], 
[Vw_OperatingLicenceDetails].[VehicleID] AS [VehicleID], 
[Vw_OperatingLicenceDetails].[AssociationID] AS [AssociationID], 
[Vw_OperatingLicenceDetails].[LicenceStatusID] AS [LicenceStatusID], 
[Vw_OperatingLicenceDetails].[MemberID] AS [MemberID]
FROM [Verified].[Vw_OperatingLicenceDetails] AS [Vw_OperatingLicenceDetails]</DefiningQuery>
          </EntitySet>
          <AssociationSet Name="FK_ApplicationRouteDetails_NewRouteRequestDetails" Association="Self.FK_ApplicationRouteDetails_NewRouteRequestDetails">
            <End Role="NewRouteRequestDetails" EntitySet="NewRouteRequestDetails" />
            <End Role="ApplicationRouteDetails" EntitySet="ApplicationRouteDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_NewRouteRequestDetails_NewRouteRequestTypes" Association="Self.FK_NewRouteRequestDetails_NewRouteRequestTypes">
            <End Role="NewRouteRequestTypes" EntitySet="NewRouteRequestTypes" />
            <End Role="NewRouteRequestDetails" EntitySet="NewRouteRequestDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_NewRouteRouteNodes_NewRouteRequestDetails" Association="Self.FK_NewRouteRouteNodes_NewRouteRequestDetails">
            <End Role="NewRouteRequestDetails" EntitySet="NewRouteRequestDetails" />
            <End Role="NewRouteRouteNodes" EntitySet="NewRouteRouteNodes" />
          </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="NewRouteContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="NewRouteRequestDetails" EntityType="Model.NewRouteRequestDetail" />
          <EntitySet Name="Vw_NewRouteRequestDetails" EntityType="Model.Vw_NewRouteRequestDetails" />
          <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>
          <EntitySet Name="NewRouteRouteNodes" EntityType="Model.NewRouteRouteNode" />
          <AssociationSet Name="FK_NewRouteRouteNodes_NewRouteRequestDetails" Association="Model.FK_NewRouteRouteNodes_NewRouteRequestDetails">
            <End Role="NewRouteRequestDetail" EntitySet="NewRouteRequestDetails" />
            <End Role="NewRouteRouteNode" EntitySet="NewRouteRouteNodes" />
          </AssociationSet>
          <EntitySet Name="NewRouteRequestTypes" EntityType="Model.NewRouteRequestType" />
          <AssociationSet Name="FK_NewRouteRequestDetails_NewRouteRequestTypes" Association="Model.FK_NewRouteRequestDetails_NewRouteRequestTypes">
            <End Role="NewRouteRequestType" EntitySet="NewRouteRequestTypes" />
            <End Role="NewRouteRequestDetail" EntitySet="NewRouteRequestDetails" />
          </AssociationSet>
          <EntitySet Name="Vw_ApplicationRequestDetails" EntityType="Model.Vw_ApplicationRequestDetails" />
          <EntitySet Name="ApplicationRouteDetails" EntityType="Model.ApplicationRouteDetail" />
          <AssociationSet Name="FK_ApplicationRouteDetails_NewRouteRequestDetails" Association="Model.FK_ApplicationRouteDetails_NewRouteRequestDetails">
            <End Role="NewRouteRequestDetail" EntitySet="NewRouteRequestDetails" />
            <End Role="ApplicationRouteDetail" EntitySet="ApplicationRouteDetails" />
          </AssociationSet>
          <FunctionImport Name="Pr_NewRouteRequestPostSave">
          <Parameter Name="NewRouteRequestDetailID" Mode="In" Type="Int64" />
          </FunctionImport>
          <EntitySet Name="Vw_OperatingLicenceDetails" EntityType="Model.Vw_OperatingLicenceDetails" />
          <FunctionImport Name="Pr_RouteLinkedLicences" ReturnType="Collection(Model.Pr_RouteLinkedLicences_Result)">
            <Parameter Name="RouteID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
        </EntityContainer>
        <EntityType Name="NewRouteRequestDetail">
          <Key>
            <PropertyRef Name="NewRouteRequestDetailID" />
          </Key>
          <Property Type="Int64" Name="NewRouteRequestDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="WorkflowInstanceID" />
          <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="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="Int64" Name="RouteOriginPlaceID" />
          <Property Type="Int64" Name="RouteDestinationPlaceID" />
          <NavigationProperty Name="Nodes" Relationship="Model.FK_NewRouteRouteNodes_NewRouteRequestDetails" FromRole="NewRouteRequestDetail" ToRole="NewRouteRouteNode" />
          <Property Type="Int16" Name="NewRouteRequestTypeID" Nullable="false" />
          <NavigationProperty Name="RequestType" Relationship="Model.FK_NewRouteRequestDetails_NewRouteRequestTypes" FromRole="NewRouteRequestDetail" ToRole="NewRouteRequestType" />
          <NavigationProperty Name="ApplicationRouteDetails" Relationship="Model.FK_ApplicationRouteDetails_NewRouteRequestDetails" FromRole="NewRouteRequestDetail" ToRole="ApplicationRouteDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="TimeTableDocumentID" Type="Int64" />
          <Property Name="FareScheduleDocumentID" Type="Int64" />
          <Property Name="IsAssessorVerificationRequired" Type="Boolean" Nullable="false" />
          <Property Name="OriginalDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Name="OriginalNationalRouteNumber" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="OriginalBoardRouteNumber" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="IsExistingLtpsOrOlasRoute" Type="Boolean" />
        </EntityType>
        <EntityType Name="Vw_NewRouteRequestDetails">
          <Key>
            <PropertyRef Name="NewRouteRequestDetailID" />
            <PropertyRef Name="ReferenceNumber" />
            <PropertyRef Name="WorkflowInstanceStatus" />
            <PropertyRef Name="EntityID" />
            <PropertyRef Name="ItemID" />
            <PropertyRef Name="IsAssessorVerificationRequired" />
          </Key>
          <Property Type="Int64" Name="NewRouteRequestDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="WorkflowInstanceID" />
          <Property Type="Int64" Name="VerifiedRouteID" />
          <Property Type="String" Name="RouteOrigin" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RouteDestination" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RouteDescription" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NationalRouteNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="BoardRouteNumber" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Double" Name="RouteLength" />
          <Property Name="ReferenceNumber" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="WorkflowInstanceStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="EntityID" Type="Int32" Nullable="false" />
          <Property Name="ItemID" Type="Int64" Nullable="false" />
          <Property Name="IsAssessorVerificationRequired" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="NewRouteRouteNode">
          <Key>
            <PropertyRef Name="NewRouteRouteNodeID" />
          </Key>
          <Property Type="Int64" Name="NewRouteRouteNodeID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="NewRouteRequestDetailID" Nullable="false" />
          <Property Type="Int64" Name="PlaceID" Nullable="false" />
          <Property Type="Int16" Name="WaypointTypeID" Nullable="false" />
          <Property Type="Int32" Name="Sequence" Nullable="false" />
          <NavigationProperty Name="NewRouteRequestDetail" Relationship="Model.FK_NewRouteRouteNodes_NewRouteRequestDetails" FromRole="NewRouteRouteNode" ToRole="NewRouteRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Name="DistanceFromOrigin" Type="Double" />
        </EntityType>
        <Association Name="FK_NewRouteRouteNodes_NewRouteRequestDetails">
          <End Type="Model.NewRouteRequestDetail" Role="NewRouteRequestDetail" Multiplicity="1" />
          <End Type="Model.NewRouteRouteNode" Role="NewRouteRouteNode" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="NewRouteRequestDetail">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Principal>
            <Dependent Role="NewRouteRouteNode">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="NewRouteRequestType">
          <Key>
            <PropertyRef Name="NewRouteRequestTypeID" />
          </Key>
          <Property Type="Int16" Name="NewRouteRequestTypeID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <NavigationProperty Name="NewRouteRequestDetails" Relationship="Model.FK_NewRouteRequestDetails_NewRouteRequestTypes" FromRole="NewRouteRequestType" ToRole="NewRouteRequestDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_NewRouteRequestDetails_NewRouteRequestTypes">
          <End Type="Model.NewRouteRequestType" Role="NewRouteRequestType" Multiplicity="1" />
          <End Type="Model.NewRouteRequestDetail" Role="NewRouteRequestDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="NewRouteRequestType">
              <PropertyRef Name="NewRouteRequestTypeID" />
            </Principal>
            <Dependent Role="NewRouteRequestDetail">
              <PropertyRef Name="NewRouteRequestTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_ApplicationRequestDetails">
          <Key>
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="IsAssessorApprovalRequired" />
            <PropertyRef Name="IsSeniorManagerApprovalRequired" />
            <PropertyRef Name="HasNewRoute" />
            <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 Name="IsCancellationRequired" Type="Boolean" Nullable="false" />
          <Property Name="TaxNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="PrecheckDetailID" Type="Int64" />
          <Property Name="IsStillToBeAcquired" Type="Boolean" 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="AdjudicationRegionID" Type="Int16" />
          <Property Name="ExistingLicenceHolder" Type="String" MaxLength="511" FixedLength="false" Unicode="false" />
          <Property Name="ExistingLicenceHolderID" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="Region" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="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="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="IsAutoVerificationRequired" Type="Boolean" />
          <Property Name="IsLtpsConversion" 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>
        <EntityType Name="ApplicationRouteDetail">
          <Key>
            <PropertyRef Name="ApplicationRouteDetailID" />
          </Key>
          <Property Type="Int64" Name="ApplicationRouteDetailID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="Int64" Name="ApplicationRequestDetailID" Nullable="false" />
          <Property Type="Int16" Name="ApplicationRouteDetailStatusID" Nullable="false" />
          <Property Type="Int64" Name="VerifiedRouteID" />
          <Property Type="Int64" Name="NewRouteRequestDetailID" />
          <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="100" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="BoardRouteNumber" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Type="Double" Name="RouteLength" />
          <NavigationProperty Name="NewRouteRequestDetail" Relationship="Model.FK_ApplicationRouteDetails_NewRouteRequestDetails" FromRole="ApplicationRouteDetail" ToRole="NewRouteRequestDetail" >
            <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>
        <Association Name="FK_ApplicationRouteDetails_NewRouteRequestDetails">
          <End Type="Model.NewRouteRequestDetail" Role="NewRouteRequestDetail" Multiplicity="0..1" />
          <End Type="Model.ApplicationRouteDetail" Role="ApplicationRouteDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="NewRouteRequestDetail">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Principal>
            <Dependent Role="ApplicationRouteDetail">
              <PropertyRef Name="NewRouteRequestDetailID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_OperatingLicenceDetails">
          <Key>
            <PropertyRef Name="LicenceID" />
            <PropertyRef Name="ApplicationRequestDetailID" />
            <PropertyRef Name="CrossBorder" />
            <PropertyRef Name="LicensingBoard" />
            <PropertyRef Name="LicenceStatus" />
            <PropertyRef Name="LicenceStatusID" />
            <PropertyRef Name="MemberID" />
          </Key>
          <Property Name="LicenceID" Type="Int64" Nullable="false" />
          <Property Name="ApplicationRequestDetailID" Type="Int64" Nullable="false" />
          <Property Name="AssociationName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="18" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationNumber" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Name="IDNumberOrBusinessRegistrationNo" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="NameOnLicence" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="PostalAddress" Type="String" MaxLength="405" FixedLength="false" Unicode="false" />
          <Property Name="RegistrationNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="GrossMass" Type="Int64" />
          <Property Name="EngineNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VIN" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleMake" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="SeatedCapacity" Type="String" MaxLength="17" FixedLength="false" Unicode="false" />
          <Property Name="StandingCapacity" Type="String" MaxLength="19" FixedLength="false" Unicode="false" />
          <Property Name="VehicleType" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="DateOfExpiry" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
          <Property Name="CrossBorder" Type="String" Nullable="false" MaxLength="2" FixedLength="false" Unicode="false" />
          <Property Name="LicensingBoard" Type="String" Nullable="false" MaxLength="57" FixedLength="false" Unicode="false" />
          <Property Name="YearOfFirstReg" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
          <Property Name="ApplicationRequestTypeID" Type="Int16" />
          <Property Name="LicenceExceptions" Type="String" MaxLength="2000" FixedLength="false" Unicode="false" />
          <Property Name="LicenceStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="VehicleID" Type="Int64" />
          <Property Name="AssociationID" Type="Int64" />
          <Property Name="LicenceStatusID" Type="Int16" Nullable="false" />
          <Property Name="MemberID" Type="Int64" Nullable="false" />
        </EntityType>
        <ComplexType Name="Pr_RouteLinkedLicences_Result">
          <Property Type="Int64" Name="LicenceID" Nullable="false" />
          <Property Type="String" Name="OperatingLicenceNumber" Nullable="true" MaxLength="18" />
          <Property Type="String" Name="AssociationName" Nullable="true" MaxLength="255" />
          <Property Type="String" Name="NameOnLicence" Nullable="true" MaxLength="100" />
          <Property Type="String" Name="LicenceStatus" Nullable="false" MaxLength="50" />
        </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="NewRouteModelStoreContainer" CdmEntityContainer="NewRouteContext">
          <EntitySetMapping Name="NewRouteRequestDetails">
            <EntityTypeMapping TypeName="Model.NewRouteRequestDetail">
              <MappingFragment StoreEntitySet="NewRouteRequestDetails">
                <ScalarProperty Name="IsExistingLtpsOrOlasRoute" ColumnName="IsExistingLtpsOrOlasRoute" />
                <ScalarProperty Name="OriginalBoardRouteNumber" ColumnName="OriginalBoardRouteNumber" />
                <ScalarProperty Name="OriginalNationalRouteNumber" ColumnName="OriginalNationalRouteNumber" />
                <ScalarProperty Name="OriginalDescription" ColumnName="OriginalDescription" />
                <ScalarProperty Name="IsAssessorVerificationRequired" ColumnName="IsAssessorVerificationRequired" />
                <ScalarProperty Name="FareScheduleDocumentID" ColumnName="FareScheduleDocumentID" />
                <ScalarProperty Name="TimeTableDocumentID" ColumnName="TimeTableDocumentID" />
                <ScalarProperty Name="NewRouteRequestTypeID" ColumnName="NewRouteRequestTypeID" />
                <ScalarProperty Name="RouteDestinationPlaceID" ColumnName="RouteDestinationPlaceID" />
                <ScalarProperty Name="RouteOriginPlaceID" ColumnName="RouteOriginPlaceID" />
                <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="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="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="NewRouteRequestDetailID" ColumnName="NewRouteRequestDetailID" />
              </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_NewRouteRequestDetailsSearch" FunctionName="NewRouteModel.Store.Pr_NewRouteRequestDetailsSearch" />
          <EntitySetMapping Name="NewRouteRouteNodes">
            <EntityTypeMapping TypeName="Model.NewRouteRouteNode">
              <MappingFragment StoreEntitySet="NewRouteRouteNodes">
                <ScalarProperty Name="DistanceFromOrigin" ColumnName="DistanceFromOrigin" />
                <ScalarProperty Name="Sequence" ColumnName="Sequence" />
                <ScalarProperty Name="WaypointTypeID" ColumnName="WaypointTypeID" />
                <ScalarProperty Name="PlaceID" ColumnName="PlaceID" />
                <ScalarProperty Name="NewRouteRequestDetailID" ColumnName="NewRouteRequestDetailID" />
                <ScalarProperty Name="NewRouteRouteNodeID" ColumnName="NewRouteRouteNodeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="NewRouteRequestTypes">
            <EntityTypeMapping TypeName="Model.NewRouteRequestType">
              <MappingFragment StoreEntitySet="NewRouteRequestTypes">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="NewRouteRequestTypeID" ColumnName="NewRouteRequestTypeID" />
              </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="IsLtpsConversion" ColumnName="IsLtpsConversion" />
                <ScalarProperty Name="IsAutoVerificationRequired" ColumnName="IsAutoVerificationRequired" />
                <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="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="AdjudicationRegionID" ColumnName="AdjudicationRegionID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <ScalarProperty Name="TelPhone" ColumnName="TelPhone" />
                <ScalarProperty Name="TelCell" ColumnName="TelCell" />
                <ScalarProperty Name="AdjudicationException" ColumnName="AdjudicationException" />
                <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="AdjudicationComment" ColumnName="AdjudicationComment" />
                <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="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="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="NewRouteRequestDetailID" ColumnName="NewRouteRequestDetailID" />
                <ScalarProperty Name="VerifiedRouteID" ColumnName="VerifiedRouteID" />
                <ScalarProperty Name="ApplicationRouteDetailStatusID" ColumnName="ApplicationRouteDetailStatusID" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="ApplicationRouteDetailID" ColumnName="ApplicationRouteDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_NewRouteRequestPostSave" FunctionName="NewRouteModel.Store.Pr_NewRouteRequestPostSave" />
          <EntitySetMapping Name="Vw_OperatingLicenceDetails">
            <EntityTypeMapping TypeName="Model.Vw_OperatingLicenceDetails">
              <MappingFragment StoreEntitySet="Vw_OperatingLicenceDetails">
                <ScalarProperty Name="MemberID" ColumnName="MemberID" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
                <ScalarProperty Name="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="VehicleID" ColumnName="VehicleID" />
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
                <ScalarProperty Name="LicenceExceptions" ColumnName="LicenceExceptions" />
                <ScalarProperty Name="ApplicationRequestTypeID" ColumnName="ApplicationRequestTypeID" />
                <ScalarProperty Name="YearOfFirstReg" ColumnName="YearOfFirstReg" />
                <ScalarProperty Name="LicensingBoard" ColumnName="LicensingBoard" />
                <ScalarProperty Name="CrossBorder" ColumnName="CrossBorder" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="VehicleType" ColumnName="VehicleType" />
                <ScalarProperty Name="StandingCapacity" ColumnName="StandingCapacity" />
                <ScalarProperty Name="SeatedCapacity" ColumnName="SeatedCapacity" />
                <ScalarProperty Name="VehicleMake" ColumnName="VehicleMake" />
                <ScalarProperty Name="VIN" ColumnName="VIN" />
                <ScalarProperty Name="EngineNumber" ColumnName="EngineNumber" />
                <ScalarProperty Name="GrossMass" ColumnName="GrossMass" />
                <ScalarProperty Name="RegistrationNumber" ColumnName="RegistrationNumber" />
                <ScalarProperty Name="PostalAddress" ColumnName="PostalAddress" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="IDNumberOrBusinessRegistrationNo" ColumnName="IDNumberOrBusinessRegistrationNo" />
                <ScalarProperty Name="ApplicationNumber" ColumnName="ApplicationNumber" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="ApplicationRequestDetailID" ColumnName="ApplicationRequestDetailID" />
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_RouteLinkedLicences" FunctionName="NewRouteModel.Store.Pr_RouteLinkedLicences">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_RouteLinkedLicences_Result">
                <ScalarProperty Name="LicenceID" ColumnName="LicenceID" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="AssociationName" ColumnName="AssociationName" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
        <DesignerProperty Name="UseLegacyProvider" Value="True" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="NewRouteModel" ZoomLevel="121">
        <EntityTypeShape EntityType="Model.NewRouteRequestDetail" Width="2" PointX="0.75" PointY="0.75" Height="2.3648893229166665" />
        <EntityTypeShape EntityType="Model.Vw_NewRouteRequestDetails" Width="1.5" PointX="4.5" PointY="0.625" Height="2.7494921874999996" />
        <EntityTypeShape EntityType="Model.NewRouteRouteNode" Width="1.5" PointX="9.2389548873710243" PointY="0.306192696237095" />
        <AssociationConnector Association="Model.FK_NewRouteRouteNodes_NewRouteRequestDetails" />
        <EntityTypeShape EntityType="Model.NewRouteRequestType" Width="1.5" PointX="3.4370079354555383" PointY="20.024924227979465" />
        <AssociationConnector Association="Model.FK_NewRouteRequestDetails_NewRouteRequestTypes" />
        <EntityTypeShape EntityType="Model.Vw_ApplicationRequestDetails" Width="1.5" PointX="7.75" PointY="10.375" />
        <EntityTypeShape EntityType="Model.ApplicationRouteDetail" Width="1.5" PointX="2.3672987904247358" PointY="7.5109253411697807" />
        <AssociationConnector Association="Model.FK_ApplicationRouteDetails_NewRouteRequestDetails" />
        <EntityTypeShape EntityType="Model.Vw_OperatingLicenceDetails" Width="1.5" PointX="4.375" PointY="5.75" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>