﻿<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
    <Schema Namespace="Model.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityType Name="LicenceCancelDetails">
          <Key>
            <PropertyRef Name="LicenceCancelDetailID" />
          </Key>
          <Property Name="LicenceCancelDetailID" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="LicenceCancelNumber" Type="varchar" MaxLength="20" />
          <Property Name="VerifiedLicenceID" Type="bigint" 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="OriginalOperatingLicenseDocID" Type="bigint" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
        </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="LicenceStatus">
          <Key>
            <PropertyRef Name="LicenceStatusID" />
          </Key>
          <Property Name="LicenceStatusID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <!--Errors Found During Generation:
warning 6002: The table/view 'LegitimateNATIONAL.App.Vw_LicenceCancelDetails' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
        <EntityType Name="Vw_LicenceCancelDetails">
          <Key>
            <PropertyRef Name="LicenceCancelDetailID" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="LicenceStatus" />
          </Key>
          <Property Name="LicenceCancelDetailID" Type="bigint" Nullable="false" />
          <Property Name="OfficeLocationID" Type="bigint" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="bigint" />
          <Property Name="LicenceCancelNumber" Type="varchar" MaxLength="20" />
          <Property Name="OperatingLicenceNumber" Type="varchar" MaxLength="20" />
          <Property Name="DateOfIssue" Type="datetime" />
          <Property Name="DateOfExpiry" Type="datetime" />
          <Property Name="NameOnLicence" Type="varchar" MaxLength="100" />
          <Property Name="CertificateNumber" Type="varchar" MaxLength="100" />
          <Property Name="LicenceStatus" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <Association Name="FK__LicenceCa__Verif__0CB1922D">
          <End Role="Licences" Type="Self.Licences" Multiplicity="1" />
          <End Role="LicenceCancelDetails" Type="Self.LicenceCancelDetails" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licences">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceCancelDetails">
              <PropertyRef Name="VerifiedLicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_LicenceStatusID">
          <End Role="LicenceStatus" Type="Self.LicenceStatus" Multiplicity="1" />
          <End Role="Licences" Type="Self.Licences" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceStatus">
              <PropertyRef Name="LicenceStatusID" />
            </Principal>
            <Dependent Role="Licences">
              <PropertyRef Name="LicenceStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Pr_LicenceCancelRequestCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="App">
          <Parameter Name="VerifiedLicenceID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="LicenceCancelDetails" EntityType="Self.LicenceCancelDetails" Schema="App" store:Type="Tables" />
          <EntitySet Name="Licences" EntityType="Self.Licences" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="LicenceStatus" EntityType="Self.LicenceStatus" Schema="Verified" store:Type="Tables" />
          <EntitySet Name="Vw_LicenceCancelDetails" EntityType="Self.Vw_LicenceCancelDetails" store:Type="Views" store:Schema="App">
            <DefiningQuery>SELECT 
    [Vw_LicenceCancelDetails].[LicenceCancelDetailID] AS [LicenceCancelDetailID], 
    [Vw_LicenceCancelDetails].[OfficeLocationID] AS [OfficeLocationID], 
    [Vw_LicenceCancelDetails].[WorkflowInstanceID] AS [WorkflowInstanceID], 
    [Vw_LicenceCancelDetails].[LicenceCancelNumber] AS [LicenceCancelNumber], 
    [Vw_LicenceCancelDetails].[OperatingLicenceNumber] AS [OperatingLicenceNumber], 
    [Vw_LicenceCancelDetails].[DateOfIssue] AS [DateOfIssue], 
    [Vw_LicenceCancelDetails].[DateOfExpiry] AS [DateOfExpiry], 
    [Vw_LicenceCancelDetails].[NameOnLicence] AS [NameOnLicence], 
    [Vw_LicenceCancelDetails].[CertificateNumber] AS [CertificateNumber], 
    [Vw_LicenceCancelDetails].[LicenceStatus] AS [LicenceStatus]
    FROM [App].[Vw_LicenceCancelDetails] AS [Vw_LicenceCancelDetails]</DefiningQuery>
          </EntitySet>
          <AssociationSet Name="FK__LicenceCa__Verif__0CB1922D" Association="Self.FK__LicenceCa__Verif__0CB1922D">
            <End Role="Licences" EntitySet="Licences" />
            <End Role="LicenceCancelDetails" EntitySet="LicenceCancelDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_LicenceStatusID" Association="Self.FK_Licences_LicenceStatusID">
            <End Role="LicenceStatus" EntitySet="LicenceStatus" />
            <End Role="Licences" EntitySet="Licences" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="Model" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
        <EntityType Name="LicenceCancelDetail">
          <Key>
            <PropertyRef Name="LicenceCancelDetailID" />
          </Key>
          <Property Name="LicenceCancelDetailID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="LicenceCancelNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="VerifiedLicenceID" Type="Int64" Nullable="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="Licence" Relationship="Model.FK__LicenceCa__Verif__0CB1922D" FromRole="LicenceCancelDetail" ToRole="Licence" />
          <Property Name="OriginalOperatingLicenseDocID" Type="Int64" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
        </EntityType>
        <EntityContainer Name="LicenceCancelContext" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="LicenceCancelDetails" EntityType="Self.LicenceCancelDetail" />
          <EntitySet Name="Licences" EntityType="Model.Licence" />
          <EntitySet Name="LicenceStatus" EntityType="Model.LicenceStatu" />
          <AssociationSet Name="FK__LicenceCa__Verif__0CB1922D" Association="Model.FK__LicenceCa__Verif__0CB1922D">
            <End Role="Licence" EntitySet="Licences" />
            <End Role="LicenceCancelDetail" EntitySet="LicenceCancelDetails" />
          </AssociationSet>
          <AssociationSet Name="FK_Licences_LicenceStatusID" Association="Model.FK_Licences_LicenceStatusID">
            <End Role="LicenceStatu" EntitySet="LicenceStatus" />
            <End Role="Licence" EntitySet="Licences" />
          </AssociationSet>
          <EntitySet Name="Vw_LicenceCancelDetails" EntityType="Model.Vw_LicenceCancelDetails" />
          <FunctionImport Name="Pr_LicenceCancelRequestCreate" EntitySet="Vw_LicenceCancelDetails" ReturnType="Collection(Model.Vw_LicenceCancelDetails)">
            <Parameter Name="VerifiedLicenceID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
        </EntityContainer>
        <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="RegionID" Type="Int64" />
          <Property Name="AssociationID" Type="Int64" />
          <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" />
          <Property Name="AccreditationID" Type="Int64" />
          <Property Name="IsTemporaryLicence" Type="Boolean" />
          <Property Name="DateOfApproval" Type="DateTime" Precision="3" />
          <NavigationProperty Name="LicenceCancelDetails" Relationship="Model.FK__LicenceCa__Verif__0CB1922D" FromRole="Licence" ToRole="LicenceCancelDetail" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="LicenceStatu" Relationship="Model.FK_Licences_LicenceStatusID" FromRole="Licence" ToRole="LicenceStatu" />
        </EntityType>
        <EntityType Name="LicenceStatu">
          <Key>
            <PropertyRef Name="LicenceStatusID" />
          </Key>
          <Property Name="LicenceStatusID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Licences" Relationship="Model.FK_Licences_LicenceStatusID" FromRole="LicenceStatu" ToRole="Licence" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK__LicenceCa__Verif__0CB1922D">
          <End Type="Model.Licence" Role="Licence" Multiplicity="1" />
          <End Type="Model.LicenceCancelDetail" Role="LicenceCancelDetail" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Licence">
              <PropertyRef Name="LicenceID" />
            </Principal>
            <Dependent Role="LicenceCancelDetail">
              <PropertyRef Name="VerifiedLicenceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Licences_LicenceStatusID">
          <End Type="Model.LicenceStatu" Role="LicenceStatu" Multiplicity="1" />
          <End Type="Model.Licence" Role="Licence" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="LicenceStatu">
              <PropertyRef Name="LicenceStatusID" />
            </Principal>
            <Dependent Role="Licence">
              <PropertyRef Name="LicenceStatusID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="Vw_LicenceCancelDetails">
          <Key>
            <PropertyRef Name="LicenceCancelDetailID" />
            <PropertyRef Name="OfficeLocationID" />
            <PropertyRef Name="LicenceStatus" />
          </Key>
          <Property Name="LicenceCancelDetailID" Type="Int64" Nullable="false" />
          <Property Name="OfficeLocationID" Type="Int64" Nullable="false" />
          <Property Name="WorkflowInstanceID" Type="Int64" />
          <Property Name="LicenceCancelNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="OperatingLicenceNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Name="DateOfIssue" Type="DateTime" Precision="3" />
          <Property Name="DateOfExpiry" Type="DateTime" Precision="3" />
          <Property Name="NameOnLicence" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="CertificateNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
          <Property Name="LicenceStatus" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="LicenceCancelContext">
          <EntitySetMapping Name="LicenceCancelDetails">
            <EntityTypeMapping TypeName="Model.LicenceCancelDetail">
              <MappingFragment StoreEntitySet="LicenceCancelDetails">
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="OriginalOperatingLicenseDocID" ColumnName="OriginalOperatingLicenseDocID" />
                <ScalarProperty Name="LicenceCancelDetailID" ColumnName="LicenceCancelDetailID" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="LicenceCancelNumber" ColumnName="LicenceCancelNumber" />
                <ScalarProperty Name="VerifiedLicenceID" ColumnName="VerifiedLicenceID" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Licences">
            <EntityTypeMapping TypeName="Model.Licence">
              <MappingFragment StoreEntitySet="Licences">
                <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="AssociationID" ColumnName="AssociationID" />
                <ScalarProperty Name="RegionID" ColumnName="RegionID" />
                <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="LicenceStatus">
            <EntityTypeMapping TypeName="Model.LicenceStatu">
              <MappingFragment StoreEntitySet="LicenceStatus">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="LicenceStatusID" ColumnName="LicenceStatusID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Vw_LicenceCancelDetails">
            <EntityTypeMapping TypeName="Model.Vw_LicenceCancelDetails">
              <MappingFragment StoreEntitySet="Vw_LicenceCancelDetails">
                <ScalarProperty Name="LicenceStatus" ColumnName="LicenceStatus" />
                <ScalarProperty Name="CertificateNumber" ColumnName="CertificateNumber" />
                <ScalarProperty Name="NameOnLicence" ColumnName="NameOnLicence" />
                <ScalarProperty Name="DateOfExpiry" ColumnName="DateOfExpiry" />
                <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
                <ScalarProperty Name="OperatingLicenceNumber" ColumnName="OperatingLicenceNumber" />
                <ScalarProperty Name="LicenceCancelNumber" ColumnName="LicenceCancelNumber" />
                <ScalarProperty Name="WorkflowInstanceID" ColumnName="WorkflowInstanceID" />
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="LicenceCancelDetailID" ColumnName="LicenceCancelDetailID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_LicenceCancelRequestCreate" FunctionName="Model.Store.Pr_LicenceCancelRequestCreate" />
        </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="UseLegacyProvider" Value="false" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams></Diagrams>
  </Designer>
</edmx:Edmx>