﻿<?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" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2005" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="Actions" EntityType="Model.Store.Actions" store:Type="Tables" Schema="Audit" />
          <EntitySet Name="History" EntityType="Model.Store.History" store:Type="Tables" Schema="Audit" />
          <EntitySet Name="Sources" EntityType="Model.Store.Sources" store:Type="Tables" Schema="Audit" />
          <EntitySet Name="SystemLog" EntityType="Model.Store.SystemLog" store:Type="Tables" Schema="Audit" />
          <EntitySet Name="Users" EntityType="Model.Store.Users" store:Type="Tables" Schema="Security" />
          <AssociationSet Name="FK_AuditActions_AuditHistory" Association="Model.Store.FK_AuditActions_AuditHistory">
            <End Role="Actions" EntitySet="Actions" />
            <End Role="History" EntitySet="History" />
          </AssociationSet>
          <AssociationSet Name="FK_AuditSources_AuditHistory" Association="Model.Store.FK_AuditSources_AuditHistory">
            <End Role="Sources" EntitySet="Sources" />
            <End Role="History" EntitySet="History" />
          </AssociationSet>
          <AssociationSet Name="FK_User_AuditHistory" Association="Model.Store.FK_User_AuditHistory">
            <End Role="Users" EntitySet="Users" />
            <End Role="History" EntitySet="History" />
          </AssociationSet>
          <AssociationSet Name="FK_User_SystemLog" Association="Model.Store.FK_User_SystemLog">
            <End Role="Users" EntitySet="Users" />
            <End Role="SystemLog" EntitySet="SystemLog" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="Actions">
          <Key>
            <PropertyRef Name="ActionID" />
          </Key>
          <Property Name="ActionID" Type="smallint" Nullable="false" />
          <Property Name="Name" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="History">
          <Key>
            <PropertyRef Name="HistoryID" />
          </Key>
          <Property Name="HistoryID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="SourceID" Type="smallint" Nullable="false" />
          <Property Name="ActionID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar(max)" Nullable="false" />
          <Property Name="IsCritical" Type="bit" Nullable="false" />
          <Property Name="IsException" Type="bit" Nullable="false" />
          <Property Name="EntityID" Type="int" />
          <Property Name="ItemID" Type="bigint" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
        </EntityType>
        <EntityType Name="Sources">
          <Key>
            <PropertyRef Name="SourceID" />
          </Key>
          <Property Name="SourceID" Type="smallint" Nullable="false" />
          <Property Name="Name" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="SystemLog">
          <Key>
            <PropertyRef Name="SystemLogID" />
          </Key>
          <Property Name="SystemLogID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="TableName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="TableKey" Type="bigint" Nullable="false" />
          <Property Name="TableOperation" Type="varchar" Nullable="false" MaxLength="20" />
          <Property Name="TableData" Type="xml" Nullable="false" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
        </EntityType>
        <EntityType Name="Users">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="bigint" Nullable="false" />
          <Property Name="UserStatusID" Type="smallint" Nullable="false" />
          <Property Name="EntityID" Type="int" />
          <Property Name="ItemID" Type="varchar" MaxLength="20" />
          <Property Name="LastName" Type="varchar" MaxLength="50" />
          <Property Name="FirstName" Type="varchar" MaxLength="50" />
          <Property Name="FullName" Type="varchar" Nullable="false" MaxLength="101" StoreGeneratedPattern="Computed" />
          <Property Name="KnownAs" Type="varchar" MaxLength="101" />
          <Property Name="Email" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="NTAccount" Type="varchar" MaxLength="255" />
          <Property Name="Cell" Type="varchar" MaxLength="10" />
          <Property Name="IsPasswordExpired" Type="bit" Nullable="false" />
          <Property Name="PasswordDate" Type="datetime" Nullable="false" />
          <Property Name="PasswordHash" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="PasswordSalt" Type="varchar" Nullable="false" MaxLength="20" />
          <Property Name="PasswordChallenge" Type="varchar" MaxLength="20" />
          <Property Name="PasswordQuestion" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="PasswordAnswerHash" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="PasswordAnswerSalt" Type="varchar" Nullable="false" MaxLength="20" />
          <Property Name="PasswordAnswerChallenge" Type="varchar" MaxLength="20" />
          <Property Name="FingerprintTemplate" Type="varbinary(max)" />
          <Property Name="CreatedByID" Type="bigint" Nullable="false" />
          <Property Name="CreatedDate" Type="datetime" Nullable="false" />
          <Property Name="UpdatedByID" Type="bigint" Nullable="false" />
          <Property Name="UpdatedDate" Type="datetime" Nullable="false" />
        </EntityType>
        <Association Name="FK_AuditActions_AuditHistory">
          <End Role="Actions" Type="Model.Store.Actions" Multiplicity="1" />
          <End Role="History" Type="Model.Store.History" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Actions">
              <PropertyRef Name="ActionID" />
            </Principal>
            <Dependent Role="History">
              <PropertyRef Name="ActionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AuditSources_AuditHistory">
          <End Role="Sources" Type="Model.Store.Sources" Multiplicity="1" />
          <End Role="History" Type="Model.Store.History" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Sources">
              <PropertyRef Name="SourceID" />
            </Principal>
            <Dependent Role="History">
              <PropertyRef Name="SourceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_User_AuditHistory">
          <End Role="Users" Type="Model.Store.Users" Multiplicity="1" />
          <End Role="History" Type="Model.Store.History" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="History">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_User_SystemLog">
          <End Role="Users" Type="Model.Store.Users" Multiplicity="1" />
          <End Role="SystemLog" Type="Model.Store.SystemLog" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Users">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="SystemLog">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Pr_AuditHistorySearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Audit">
          <Parameter Name="SourceID" Type="smallint" Mode="In" />
          <Parameter Name="ActionID" Type="smallint" Mode="In" />
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="IsCritical" Type="bit" Mode="In" />
          <Parameter Name="IsException" Type="bit" Mode="In" />
          <Parameter Name="CreatedByID" Type="bigint" Mode="In" />
          <Parameter Name="StartDate" Type="datetime" Mode="In" />
          <Parameter Name="EndDate" Type="datetime" Mode="In" />
        </Function>
        <Function Name="Pr_AuditSystemLogSearch" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Audit">
          <Parameter Name="TableName" Type="varchar" Mode="In" />
          <Parameter Name="TableKey" Type="bigint" Mode="In" />
          <Parameter Name="TableOperation" Type="varchar" Mode="In" />
          <Parameter Name="CreatedByID" Type="bigint" Mode="In" />
          <Parameter Name="StartDate" Type="datetime" Mode="In" />
          <Parameter Name="EndDate" Type="datetime" Mode="In" />
        </Function>
        <Function Name="Pr_GetAuditHistory" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Audit">
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
        </Function>
      </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="AfxAdminAuditContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="Actions" EntityType="Model.Action" />
          <EntitySet Name="Histories" EntityType="Model.History" />
          <EntitySet Name="Sources" EntityType="Model.Source" />
          <EntitySet Name="SystemLogs" EntityType="Model.SystemLog" />
          <AssociationSet Name="FK_AuditActions_AuditHistory" Association="Model.FK_AuditActions_AuditHistory">
            <End Role="Actions" EntitySet="Actions" />
            <End Role="History" EntitySet="Histories" />
          </AssociationSet>
          <AssociationSet Name="FK_AuditSources_AuditHistory" Association="Model.FK_AuditSources_AuditHistory">
            <End Role="Sources" EntitySet="Sources" />
            <End Role="History" EntitySet="Histories" />
          </AssociationSet>
          <EntitySet Name="Users" EntityType="Model.User" />
          <AssociationSet Name="FK_User_AuditHistory" Association="Model.FK_User_AuditHistory">
            <End Role="User" EntitySet="Users" />
            <End Role="History" EntitySet="Histories" />
          </AssociationSet>
          <AssociationSet Name="FK_User_SystemLog" Association="Model.FK_User_SystemLog">
            <End Role="User" EntitySet="Users" />
            <End Role="SystemLog" EntitySet="SystemLogs" />
          </AssociationSet>
          <FunctionImport Name="Pr_AuditHistorySearch" ReturnType="Collection(Model.Pr_AuditHistorySearch_Result)">
            <Parameter Name="SourceID" Mode="In" Type="Int16" />
            <Parameter Name="ActionID" Mode="In" Type="Int16" />
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="IsCritical" Mode="In" Type="Boolean" />
            <Parameter Name="IsException" Mode="In" Type="Boolean" />
            <Parameter Name="CreatedByID" Mode="In" Type="Int64" />
            <Parameter Name="StartDate" Mode="In" Type="DateTime" />
            <Parameter Name="EndDate" Mode="In" Type="DateTime" />
          </FunctionImport>
          <FunctionImport Name="Pr_AuditSystemLogSearch" ReturnType="Collection(Model.Pr_AuditSystemLogSearch_Result)">
            <Parameter Name="TableName" Mode="In" Type="String" />
            <Parameter Name="TableKey" Mode="In" Type="Int64" />
            <Parameter Name="TableOperation" Mode="In" Type="String" />
            <Parameter Name="CreatedByID" Mode="In" Type="Int64" />
            <Parameter Name="StartDate" Mode="In" Type="DateTime" />
            <Parameter Name="EndDate" Mode="In" Type="DateTime" />
          </FunctionImport>
        </EntityContainer>
        <EntityType Name="Action">
          <Key>
            <PropertyRef Name="ActionID" />
          </Key>
          <Property Name="ActionID" Type="Int16" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Histories" Relationship="Model.FK_AuditActions_AuditHistory" FromRole="Actions" ToRole="History" />
        </EntityType>
        <EntityType Name="History">
          <Key>
            <PropertyRef Name="HistoryID" />
          </Key>
          <Property Name="HistoryID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="SourceID" Type="Int16" Nullable="false" />
          <Property Name="ActionID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="Max" Unicode="false" FixedLength="false" />
          <Property Name="IsCritical" Type="Boolean" Nullable="false" />
          <Property Name="IsException" Type="Boolean" Nullable="false" />
          <Property Name="EntityID" Type="Int32" />
          <Property Name="ItemID" Type="Int64" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="Action" Relationship="Model.FK_AuditActions_AuditHistory" FromRole="History" ToRole="Actions" />
          <NavigationProperty Name="Source" Relationship="Model.FK_AuditSources_AuditHistory" FromRole="History" ToRole="Sources" />
          <NavigationProperty Name="User" Relationship="Model.FK_User_AuditHistory" FromRole="History" ToRole="User" />
        </EntityType>
        <EntityType Name="Source">
          <Key>
            <PropertyRef Name="SourceID" />
          </Key>
          <Property Name="SourceID" Type="Int16" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Histories" Relationship="Model.FK_AuditSources_AuditHistory" FromRole="Sources" ToRole="History" />
        </EntityType>
        <EntityType Name="SystemLog">
          <Key>
            <PropertyRef Name="SystemLogID" />
          </Key>
          <Property Name="SystemLogID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="TableName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="TableKey" Type="Int64" Nullable="false" />
          <Property Name="TableOperation" Type="String" Nullable="false" MaxLength="20" Unicode="false" FixedLength="false" />
          <Property Name="TableData" Type="String" Nullable="false" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <NavigationProperty Name="User" Relationship="Model.FK_User_SystemLog" FromRole="SystemLog" ToRole="User" />
        </EntityType>
        <Association Name="FK_AuditActions_AuditHistory">
          <End Role="Actions" Type="Model.Action" Multiplicity="1" />
          <End Role="History" Type="Model.History" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Actions">
              <PropertyRef Name="ActionID" />
            </Principal>
            <Dependent Role="History">
              <PropertyRef Name="ActionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AuditSources_AuditHistory">
          <End Role="Sources" Type="Model.Source" Multiplicity="1" />
          <End Role="History" Type="Model.History" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Sources">
              <PropertyRef Name="SourceID" />
            </Principal>
            <Dependent Role="History">
              <PropertyRef Name="SourceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityType Name="User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="Int16" Name="UserStatusID" Nullable="false" />
          <Property Type="Int32" Name="EntityID" />
          <Property Type="String" Name="ItemID" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="LastName" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="FirstName" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="101" FixedLength="false" Unicode="false" annotation:StoreGeneratedPattern="Computed" />
          <Property Type="String" Name="KnownAs" MaxLength="101" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Email" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="NTAccount" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="Cell" MaxLength="10" FixedLength="false" Unicode="false" />
          <Property Type="Boolean" Name="IsPasswordExpired" Nullable="false" />
          <Property Type="DateTime" Name="PasswordDate" Nullable="false" />
          <Property Type="String" Name="PasswordHash" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PasswordSalt" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PasswordChallenge" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PasswordQuestion" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PasswordAnswerHash" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PasswordAnswerSalt" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="PasswordAnswerChallenge" MaxLength="20" FixedLength="false" Unicode="false" />
          <Property Type="Binary" Name="FingerprintTemplate" MaxLength="Max" FixedLength="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" />
          <NavigationProperty Name="Histories" Relationship="Model.FK_User_AuditHistory" FromRole="User" ToRole="History" />
          <NavigationProperty Name="SystemLogs" Relationship="Model.FK_User_SystemLog" FromRole="User" ToRole="SystemLog" />
        </EntityType>
        <Association Name="FK_User_AuditHistory">
          <End Type="Model.User" Role="User" Multiplicity="1" />
          <End Type="Model.History" Role="History" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="History">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_User_SystemLog">
          <End Type="Model.User" Role="User" Multiplicity="1" />
          <End Type="Model.SystemLog" Role="SystemLog" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="User">
              <PropertyRef Name="UserID" />
            </Principal>
            <Dependent Role="SystemLog">
              <PropertyRef Name="CreatedByID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_AuditHistorySearch_Result">
          <Property Type="Int64" Name="HistoryID" Nullable="false" />
          <Property Type="String" Name="SourceName" Nullable="false" MaxLength="50" />
          <Property Type="Int16" Name="SourceID" Nullable="false" />
          <Property Type="String" Name="ActionName" Nullable="false" MaxLength="50" />
          <Property Type="Int16" Name="ActionID" Nullable="false" />
          <Property Type="String" Name="Description" Nullable="false" />
          <Property Type="Boolean" Name="IsCritical" Nullable="false" />
          <Property Type="Boolean" Name="IsException" Nullable="false" />
          <Property Type="String" Name="EntityName" Nullable="false" MaxLength="50" />
          <Property Type="Int32" Name="EntityID" Nullable="false" />
          <Property Type="Int64" Name="ItemID" Nullable="true" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="101" />
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
        </ComplexType>
        <ComplexType Name="Pr_AuditSystemLogSearch_Result">
          <Property Type="Int64" Name="SystemLogID" Nullable="false" />
          <Property Type="String" Name="TableName" Nullable="false" MaxLength="50" />
          <Property Type="Int64" Name="TableKey" Nullable="false" />
          <Property Type="String" Name="TableOperation" Nullable="false" MaxLength="20" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="String" Name="FullName" Nullable="false" MaxLength="101" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="23" />
        </ComplexType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="AfxAdminAuditContext">
          <EntitySetMapping Name="Actions">
            <EntityTypeMapping TypeName="Model.Action">
              <MappingFragment StoreEntitySet="Actions">
                <ScalarProperty Name="ActionID" ColumnName="ActionID" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Histories">
            <EntityTypeMapping TypeName="Model.History">
              <MappingFragment StoreEntitySet="History">
                <ScalarProperty Name="HistoryID" ColumnName="HistoryID" />
                <ScalarProperty Name="SourceID" ColumnName="SourceID" />
                <ScalarProperty Name="ActionID" ColumnName="ActionID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsCritical" ColumnName="IsCritical" />
                <ScalarProperty Name="IsException" ColumnName="IsException" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Sources">
            <EntityTypeMapping TypeName="Model.Source">
              <MappingFragment StoreEntitySet="Sources">
                <ScalarProperty Name="SourceID" ColumnName="SourceID" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="SystemLogs">
            <EntityTypeMapping TypeName="Model.SystemLog">
              <MappingFragment StoreEntitySet="SystemLog">
                <ScalarProperty Name="SystemLogID" ColumnName="SystemLogID" />
                <ScalarProperty Name="TableName" ColumnName="TableName" />
                <ScalarProperty Name="TableKey" ColumnName="TableKey" />
                <ScalarProperty Name="TableOperation" ColumnName="TableOperation" />
                <ScalarProperty Name="TableData" ColumnName="TableData" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Users">
            <EntityTypeMapping TypeName="Model.User">
              <MappingFragment StoreEntitySet="Users">
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="FingerprintTemplate" ColumnName="FingerprintTemplate" />
                <ScalarProperty Name="PasswordAnswerChallenge" ColumnName="PasswordAnswerChallenge" />
                <ScalarProperty Name="PasswordAnswerSalt" ColumnName="PasswordAnswerSalt" />
                <ScalarProperty Name="PasswordAnswerHash" ColumnName="PasswordAnswerHash" />
                <ScalarProperty Name="PasswordQuestion" ColumnName="PasswordQuestion" />
                <ScalarProperty Name="PasswordChallenge" ColumnName="PasswordChallenge" />
                <ScalarProperty Name="PasswordSalt" ColumnName="PasswordSalt" />
                <ScalarProperty Name="PasswordHash" ColumnName="PasswordHash" />
                <ScalarProperty Name="PasswordDate" ColumnName="PasswordDate" />
                <ScalarProperty Name="IsPasswordExpired" ColumnName="IsPasswordExpired" />
                <ScalarProperty Name="Cell" ColumnName="Cell" />
                <ScalarProperty Name="NTAccount" ColumnName="NTAccount" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="FirstName" ColumnName="FirstName" />
                <ScalarProperty Name="LastName" ColumnName="LastName" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="UserStatusID" ColumnName="UserStatusID" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_AuditHistorySearch" FunctionName="Model.Store.Pr_AuditHistorySearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AuditHistorySearch_Result">
                <ScalarProperty Name="HistoryID" ColumnName="HistoryID" />
                <ScalarProperty Name="SourceName" ColumnName="SourceName" />
                <ScalarProperty Name="SourceID" ColumnName="SourceID" />
                <ScalarProperty Name="ActionName" ColumnName="ActionName" />
                <ScalarProperty Name="ActionID" ColumnName="ActionID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsCritical" ColumnName="IsCritical" />
                <ScalarProperty Name="IsException" ColumnName="IsException" />
                <ScalarProperty Name="EntityName" ColumnName="EntityName" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_AuditSystemLogSearch" FunctionName="Model.Store.Pr_AuditSystemLogSearch">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_AuditSystemLogSearch_Result">
                <ScalarProperty Name="SystemLogID" ColumnName="SystemLogID" />
                <ScalarProperty Name="TableName" ColumnName="TableName" />
                <ScalarProperty Name="TableKey" ColumnName="TableKey" />
                <ScalarProperty Name="TableOperation" ColumnName="TableOperation" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="FullName" ColumnName="FullName" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
              </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" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="AuditModel">
        <EntityTypeShape EntityType="Model.Action" Width="1.5" PointX="0.5" PointY="0.5" Height="1.7879850260416672" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.History" Width="1.5" PointX="3" PointY="1" Height="3.3263964843749996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Source" Width="1.5" PointX="0.5" PointY="2.875" Height="1.7879850260416657" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.SystemLog" Width="1.5" PointX="5.375" PointY="1.375" Height="2.3648893229166656" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_AuditActions_AuditHistory" ManuallyRouted="false">
          <ConnectorPoint PointX="2" PointY="1.6439925130208337" />
          <ConnectorPoint PointX="3" PointY="1.6439925130208337" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_AuditSources_AuditHistory" ManuallyRouted="false">
          <ConnectorPoint PointX="2" PointY="3.7689925130208328" />
          <ConnectorPoint PointX="3" PointY="3.7689925130208328" />
        </AssociationConnector>
        <EntityTypeShape EntityType="Model.User" Width="2" PointX="7.5" PointY="1.375" Height="6.4032194010416674" />
        <AssociationConnector Association="Model.FK_User_AuditHistory" >
          <ConnectorPoint PointX="7.5" PointY="4.3528450520833335" />
          <ConnectorPoint PointX="4.5" PointY="4.3528450520833335" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_User_SystemLog" >
          <ConnectorPoint PointX="7.5" PointY="2.6535953776041667" />
          <ConnectorPoint PointX="6.875" PointY="2.6535953776041667" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>