﻿<?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="CorrespondenceModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
        <Function Name="Pr_PerformanceHistoryCreate" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Performance">
          <Parameter Name="PerformanceMeasureID" Type="bigint" Mode="In" />
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="EntityID" Type="int" Mode="In" />
          <Parameter Name="ItemID" Type="bigint" Mode="In" />
          <Parameter Name="AllowDuplicate" Type="bit" Mode="In" />
          <Parameter Name="CreatedByID" Type="bigint" Mode="In" />
        </Function>
        <Function Name="Pr_PerformanceStatisticsGet" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="Performance">
          <Parameter Name="UserID" Type="bigint" Mode="In" />
          <Parameter Name="RoleID" Type="bigint" Mode="In" />
          <Parameter Name="GroupBy" Type="varchar" Mode="In" />
          <Parameter Name="DateFrom" Type="datetime" Mode="In" />
          <Parameter Name="DateTo" Type="datetime" Mode="In" />
        </Function>
        <EntityContainer Name="CorrespondenceModelStoreContainer" />
      </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="PerformanceContext" annotation:LazyLoadingEnabled="true">
          <FunctionImport Name="Pr_PerformanceHistoryCreate">
            <Parameter Name="PerformanceMeasureID" Mode="In" Type="Int64" />
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="EntityID" Mode="In" Type="Int32" />
            <Parameter Name="ItemID" Mode="In" Type="Int64" />
            <Parameter Name="AllowDuplicate" Mode="In" Type="Boolean" />
            <Parameter Name="CreatedByID" Mode="In" Type="Int64" />
          </FunctionImport>
          <FunctionImport Name="Pr_PerformanceStatisticsGet" ReturnType="Collection(Model.Pr_PerformanceStatisticsGet_Result)">
            <Parameter Name="UserID" Mode="In" Type="Int64" />
            <Parameter Name="RoleID" Mode="In" Type="Int64" />
            <Parameter Name="GroupBy" Mode="In" Type="String" />
            <Parameter Name="DateFrom" Mode="In" Type="DateTime" />
            <Parameter Name="DateTo" Mode="In" Type="DateTime" />
          </FunctionImport>
        </EntityContainer>
        <ComplexType Name="Pr_PerformanceStatisticsGet_Result">
          <Property Type="String" Name="KnownAs" Nullable="true" MaxLength="100" />
          <Property Type="Int32" Name="Year" Nullable="true" />
          <Property Type="Int32" Name="Month" Nullable="true" />
          <Property Type="Int32" Name="Day" Nullable="true" />
          <Property Type="String" Name="Measure" Nullable="true" MaxLength="1000" />
          <Property Type="Int64" Name="Total" 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="CorrespondenceModelStoreContainer" CdmEntityContainer="PerformanceContext">
          <FunctionImportMapping FunctionImportName="Pr_PerformanceHistoryCreate" FunctionName="CorrespondenceModel.Store.Pr_PerformanceHistoryCreate" />
          <FunctionImportMapping FunctionImportName="Pr_PerformanceStatisticsGet" FunctionName="CorrespondenceModel.Store.Pr_PerformanceStatisticsGet">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_PerformanceStatisticsGet_Result">
                <ScalarProperty Name="KnownAs" ColumnName="KnownAs" />
                <ScalarProperty Name="Year" ColumnName="Year" />
                <ScalarProperty Name="Month" ColumnName="Month" />
                <ScalarProperty Name="Day" ColumnName="Day" />
                <ScalarProperty Name="Measure" ColumnName="Measure" />
                <ScalarProperty Name="Total" ColumnName="Total" />
              </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="False" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="PerformanceModel" ZoomLevel="73">
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>