﻿<?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="2005" 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">
        <!--Errors Found During Generation:
warning 6002: The table/view 'EPWP.Security.Vw_Users' 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_Users">
          <Key>
            <PropertyRef Name="UserID" />
            
            
            
          </Key>
          <Property Name="UserID" Type="bigint" Nullable="false" />
          <Property Name="UserStatusID" Type="smallint" Nullable="false" />
          <Property Name="LastName" Type="varchar" MaxLength="50" />
          <Property Name="FirstName" Type="varchar" MaxLength="50" />
          <Property Name="FullName" Type="varchar" MaxLength="101" Nullable="false" />
          <Property Name="KnownAs" Type="varchar" MaxLength="101" />
          <Property Name="Email" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="UserProfileDocID" Type="bigint" />
          <Property Name="OfficeLocationID" Type="bigint" />
        </EntityType>
        <Function Name="Pr_CreateUserDesktopInterfaceToken" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Security">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_GetUserByDesktopInterfaceToken" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Security">
          <Parameter Name="Token" Type="varchar" Mode="In" />
        </Function>
        <Function Name="Pr_GetUserFingerprintTemplates" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Security" />
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="Vw_Users" EntityType="Self.Vw_Users" store:Type="Views" store:Schema="Security">
            <DefiningQuery>SELECT 
[Vw_Users].[UserID] AS [UserID], 
[Vw_Users].[UserStatusID] AS [UserStatusID], 
[Vw_Users].[LastName] AS [LastName], 
[Vw_Users].[FirstName] AS [FirstName], 
[Vw_Users].[FullName] AS [FullName], 
[Vw_Users].[KnownAs] AS [KnownAs], 
[Vw_Users].[Email] AS [Email], 
[Vw_Users].[UserProfileDocID] AS [UserProfileDocID], 
[Vw_Users].[OfficeLocationID] AS [OfficeLocationID]
FROM [Security].[Vw_Users] AS [Vw_Users]</DefiningQuery>
          </EntitySet>
        </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="SecurityContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="Vw_Users" EntityType="Model.Vw_User" />
          <FunctionImport Name="Pr_GetUserFingerprintTemplates" ReturnType="Collection(Model.Pr_GetUserFingerprintTemplates_Result)" />
          <FunctionImport Name="Pr_CreateUserDesktopInterfaceToken" ReturnType="Collection(String)">
          <Parameter Name="UserID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_GetUserByDesktopInterfaceToken" EntitySet="Vw_Users" ReturnType="Collection(Model.Vw_User)">
          <Parameter Name="Token" Mode="In" Type="String" />
          </FunctionImport>
        </EntityContainer>
        <EntityType Name="Vw_User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="Int64" Nullable="false" />
          <Property Name="UserStatusID" Type="Int16" Nullable="false" />
          <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Name="FullName" Type="String" Nullable="false" MaxLength="101" FixedLength="false" Unicode="false" />
          <Property Name="KnownAs" Type="String" MaxLength="101" FixedLength="false" Unicode="false" />
          <Property Name="Email" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="UserProfileDocID" Type="Int64" />
          <Property Name="OfficeLocationID" Type="Int64" />
        </EntityType>
        <ComplexType Name="Pr_GetUserFingerprintTemplates_Result">
          <Property Type="Int64" Name="UserID" Nullable="false" />
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="101" />
          <Property Type="String" Name="Email" Nullable="false" MaxLength="255" />
          <Property Type="Binary" Name="FingerPrintTemplate" Nullable="true" />
        </ComplexType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="SecurityContext">
          <EntitySetMapping Name="Vw_Users">
            <EntityTypeMapping TypeName="Model.Vw_User">
              <MappingFragment StoreEntitySet="Vw_Users">
                <ScalarProperty Name="OfficeLocationID" ColumnName="OfficeLocationID" />
                <ScalarProperty Name="UserProfileDocID" ColumnName="UserProfileDocID" />
                <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="UserStatusID" ColumnName="UserStatusID" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetUserFingerprintTemplates" FunctionName="Model.Store.Pr_GetUserFingerprintTemplates">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetUserFingerprintTemplates_Result">
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="Email" ColumnName="Email" />
                <ScalarProperty Name="FingerPrintTemplate" ColumnName="FingerPrintTemplate" />
              </ComplexTypeMapping>
            </ResultMapping>
          </FunctionImportMapping>
          <FunctionImportMapping FunctionImportName="Pr_CreateUserDesktopInterfaceToken" FunctionName="Model.Store.Pr_CreateUserDesktopInterfaceToken" />
          <FunctionImportMapping FunctionImportName="Pr_GetUserByDesktopInterfaceToken" FunctionName="Model.Store.Pr_GetUserByDesktopInterfaceToken">
          </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="SecurityModel">
        <EntityTypeShape EntityType="Model.Vw_User" Width="1.5" PointX="3.375" PointY="8.75" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>