﻿<?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="DocumentMimeTypes" EntityType="Model.Store.DocumentMimeTypes" store:Type="Tables" Schema="Doc" />
          <EntitySet Name="Documents" EntityType="Model.Store.Documents" store:Type="Tables" Schema="Doc" />
          <EntitySet Name="DocumentStore" EntityType="Model.Store.DocumentStore" store:Type="Tables" Schema="Doc" />
          <EntitySet Name="DocumentStoreLocations" EntityType="Model.Store.DocumentStoreLocations" store:Type="Tables" Schema="Doc" />
          <EntitySet Name="DocumentStoreTypes" EntityType="Model.Store.DocumentStoreTypes" store:Type="Tables" Schema="Doc" />
          <EntitySet Name="DocumentTypes" EntityType="Model.Store.DocumentTypes" store:Type="Tables" Schema="Doc" />
          <AssociationSet Name="FK_Documents_DocumentMimeTypes" Association="Model.Store.FK_Documents_DocumentMimeTypes">
            <End Role="DocumentMimeTypes" EntitySet="DocumentMimeTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentStoreLocations" Association="Model.Store.FK_Documents_DocumentStoreLocations">
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentTypes" Association="Model.Store.FK_Documents_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_DocumentStoreTypes" Association="Model.Store.FK_DocumentStoreLocations_DocumentStoreTypes">
            <End Role="DocumentStoreTypes" EntitySet="DocumentStoreTypes" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumeStore_Documents" Association="Model.Store.FK_DocumeStore_Documents">
            <End Role="Documents" EntitySet="Documents" />
            <End Role="DocumentStore" EntitySet="DocumentStore" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="DocumentMimeTypes">
          <Key>
            <PropertyRef Name="DocumentMimeTypeID" />
          </Key>
          <Property Name="DocumentMimeTypeID" Type="smallint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="MimeType" Type="varchar" Nullable="false" MaxLength="100" />
          <Property Name="IconFileName" Type="varchar" MaxLength="255" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Documents">
          <Key>
            <PropertyRef Name="DocumentID" />
          </Key>
          <Property Name="DocumentID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="DocumentStoreLocationID" Type="bigint" Nullable="false" />
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" />
          <Property Name="IsCancelled" Type="bit" 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="DocumentMimeTypeID" Type="smallint" Nullable="false" />
        </EntityType>
        <EntityType Name="DocumentStore">
          <Key>
            <PropertyRef Name="DocumentStoreID" />
          </Key>
          <Property Name="DocumentStoreID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="DocumentID" Type="bigint" Nullable="false" />
          <Property Name="Version" Type="smallint" Nullable="false" />
          <Property Name="ContentBLOB" Type="image" Nullable="false" />
          <Property Name="MimeType" Type="varchar" Nullable="false" MaxLength="100" />
          <Property Name="Size" Type="bigint" Nullable="false" />
          <Property Name="Name" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="Ext" Type="varchar" Nullable="false" MaxLength="5" />
        </EntityType>
        <EntityType Name="DocumentStoreLocations">
          <Key>
            <PropertyRef Name="DocumentStoreLocationID" />
          </Key>
          <Property Name="DocumentStoreLocationID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="DocumentStoreTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="ConnectionString" Type="varchar" Nullable="false" MaxLength="2000" />
          <Property Name="AuthTypeID" Type="smallint" Nullable="false" />
          <Property Name="AuthDomain" Type="varchar" MaxLength="50" />
          <Property Name="AuthUser" Type="varchar" MaxLength="50" />
          <Property Name="AuthPassword" Type="varchar" MaxLength="50" />
          <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" />
        </EntityType>
        <EntityType Name="DocumentStoreTypes">
          <Key>
            <PropertyRef Name="DocumentStoreTypeID" />
          </Key>
          <Property Name="DocumentStoreTypeID" Type="smallint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="varchar" Nullable="false" MaxLength="255" />
        </EntityType>
        <EntityType Name="DocumentTypes">
          <Key>
            <PropertyRef Name="DocumentTypeID" />
          </Key>
          <Property Name="DocumentTypeID" Type="smallint" Nullable="false" />
          <Property Name="Description" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="IsDocumentTemplate" Type="bit" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <Association Name="FK_Documents_DocumentMimeTypes">
          <End Role="DocumentMimeTypes" Type="Model.Store.DocumentMimeTypes" Multiplicity="1" />
          <End Role="Documents" Type="Model.Store.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentMimeTypes">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentStoreLocations">
          <End Role="DocumentStoreLocations" Type="Model.Store.DocumentStoreLocations" Multiplicity="1" />
          <End Role="Documents" Type="Model.Store.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentTypes">
          <End Role="DocumentTypes" Type="Model.Store.DocumentTypes" Multiplicity="1" />
          <End Role="Documents" Type="Model.Store.Documents" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_DocumentStoreTypes">
          <End Role="DocumentStoreTypes" Type="Model.Store.DocumentStoreTypes" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Model.Store.DocumentStoreLocations" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreTypes">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumeStore_Documents">
          <End Role="Documents" Type="Model.Store.Documents" Multiplicity="1" />
          <End Role="DocumentStore" Type="Model.Store.DocumentStore" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Documents">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentStore">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </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="AfxAdminDocContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="DocumentMimeTypes" EntityType="Model.DocumentMimeType" />
          <EntitySet Name="Documents" EntityType="Model.Document" />
          <EntitySet Name="DocumentStores" EntityType="Model.DocumentStore" />
          <EntitySet Name="DocumentStoreLocations" EntityType="Model.DocumentStoreLocation" />
          <EntitySet Name="DocumentStoreTypes" EntityType="Model.DocumentStoreType" />
          <EntitySet Name="DocumentTypes" EntityType="Model.DocumentType" />
          <AssociationSet Name="FK_Documents_DocumentMimeTypes" Association="Model.FK_Documents_DocumentMimeTypes">
            <End Role="DocumentMimeTypes" EntitySet="DocumentMimeTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentStoreLocations" Association="Model.FK_Documents_DocumentStoreLocations">
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_Documents_DocumentTypes" Association="Model.FK_Documents_DocumentTypes">
            <End Role="DocumentTypes" EntitySet="DocumentTypes" />
            <End Role="Documents" EntitySet="Documents" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumeStore_Documents" Association="Model.FK_DocumeStore_Documents">
            <End Role="Documents" EntitySet="Documents" />
            <End Role="DocumentStore" EntitySet="DocumentStores" />
          </AssociationSet>
          <AssociationSet Name="FK_DocumentStoreLocations_DocumentStoreTypes" Association="Model.FK_DocumentStoreLocations_DocumentStoreTypes">
            <End Role="DocumentStoreTypes" EntitySet="DocumentStoreTypes" />
            <End Role="DocumentStoreLocations" EntitySet="DocumentStoreLocations" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="DocumentMimeType">
          <Key>
            <PropertyRef Name="DocumentMimeTypeID" />
          </Key>
          <Property Name="DocumentMimeTypeID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="MimeType" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="IconFileName" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_DocumentMimeTypes" FromRole="DocumentMimeTypes" ToRole="Documents" />
        </EntityType>
        <EntityType Name="Document">
          <Key>
            <PropertyRef Name="DocumentID" />
          </Key>
          <Property Name="DocumentID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="DocumentStoreLocationID" Type="Int64" Nullable="false" />
          <Property Name="EntityID" Type="Int32" Nullable="false" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <Summary>[NoScript]</Summary>
            </Documentation>
          </Property>
          <Property Name="ItemID" Type="Int64" Nullable="false" />
          <Property Name="Description" Type="String" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" />
          <Property Name="DocumentMimeTypeID" Type="Int16" Nullable="false" />
          <NavigationProperty Name="DocumentMimeType" Relationship="Model.FK_Documents_DocumentMimeTypes" FromRole="Documents" ToRole="DocumentMimeTypes" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" />
          <NavigationProperty Name="DocumentStoreLocation" Relationship="Model.FK_Documents_DocumentStoreLocations" FromRole="Documents" ToRole="DocumentStoreLocations" />
          <NavigationProperty Name="DocumentType" Relationship="Model.FK_Documents_DocumentTypes" FromRole="Documents" ToRole="DocumentTypes" />
          <NavigationProperty Name="DocumentStores" Relationship="Model.FK_DocumeStore_Documents" FromRole="Documents" ToRole="DocumentStore" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" />
        </EntityType>
        <EntityType Name="DocumentStore">
          <Key>
            <PropertyRef Name="DocumentStoreID" />
          </Key>
          <Property Name="DocumentStoreID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentID" Type="Int64" Nullable="false" />
          <Property Name="Version" Type="Int16" Nullable="false" />
          <Property Name="ContentBLOB" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </Property>
          <Property Name="MimeType" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="Size" Type="Int64" Nullable="false" />
          <Property Name="Name" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="Ext" Type="String" Nullable="false" MaxLength="5" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Document" Relationship="Model.FK_DocumeStore_Documents" FromRole="DocumentStore" ToRole="Documents" />
        </EntityType>
        <EntityType Name="DocumentStoreLocation">
          <Key>
            <PropertyRef Name="DocumentStoreLocationID" />
          </Key>
          <Property Name="DocumentStoreLocationID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="DocumentStoreTypeID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="ConnectionString" Type="String" Nullable="false" MaxLength="2000" Unicode="false" FixedLength="false" />
          <Property Name="AuthTypeID" Type="Int16" Nullable="false" />
          <Property Name="AuthDomain" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="AuthUser" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="AuthPassword" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_DocumentStoreLocations" FromRole="DocumentStoreLocations" ToRole="Documents" />
          <NavigationProperty Name="DocumentStoreType" Relationship="Model.FK_DocumentStoreLocations_DocumentStoreTypes" FromRole="DocumentStoreLocations" ToRole="DocumentStoreTypes" />
        </EntityType>
        <EntityType Name="DocumentStoreType">
          <Key>
            <PropertyRef Name="DocumentStoreTypeID" />
          </Key>
          <Property Name="DocumentStoreTypeID" Type="Int16" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="DocumentStoreLocations" Relationship="Model.FK_DocumentStoreLocations_DocumentStoreTypes" FromRole="DocumentStoreTypes" ToRole="DocumentStoreLocations" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" />
        </EntityType>
        <EntityType Name="DocumentType">
          <Key>
            <PropertyRef Name="DocumentTypeID" />
          </Key>
          <Property Name="DocumentTypeID" Type="Int16" Nullable="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="100" Unicode="false" FixedLength="false" />
          <Property Name="IsDocumentTemplate" Type="Boolean" Nullable="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="Documents" Relationship="Model.FK_Documents_DocumentTypes" FromRole="DocumentTypes" ToRole="Documents" />
        </EntityType>
        <Association Name="FK_Documents_DocumentMimeTypes">
          <End Role="DocumentMimeTypes" Type="Model.DocumentMimeType" Multiplicity="1" />
          <End Role="Documents" Type="Model.Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentMimeTypes">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentMimeTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentStoreLocations">
          <End Role="DocumentStoreLocations" Type="Model.DocumentStoreLocation" Multiplicity="1" />
          <End Role="Documents" Type="Model.Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentStoreLocationID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Documents_DocumentTypes">
          <End Role="DocumentTypes" Type="Model.DocumentType" Multiplicity="1" />
          <End Role="Documents" Type="Model.Document" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentTypes">
              <PropertyRef Name="DocumentTypeID" />
            </Principal>
            <Dependent Role="Documents">
              <PropertyRef Name="DocumentTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumeStore_Documents">
          <End Role="Documents" Type="Model.Document" Multiplicity="1" />
          <End Role="DocumentStore" Type="Model.DocumentStore" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Documents">
              <PropertyRef Name="DocumentID" />
            </Principal>
            <Dependent Role="DocumentStore">
              <PropertyRef Name="DocumentID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DocumentStoreLocations_DocumentStoreTypes">
          <End Role="DocumentStoreTypes" Type="Model.DocumentStoreType" Multiplicity="1" />
          <End Role="DocumentStoreLocations" Type="Model.DocumentStoreLocation" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="DocumentStoreTypes">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Principal>
            <Dependent Role="DocumentStoreLocations">
              <PropertyRef Name="DocumentStoreTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
      </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="AfxAdminDocContext">
          <EntitySetMapping Name="DocumentMimeTypes">
            <EntityTypeMapping TypeName="Model.DocumentMimeType">
              <MappingFragment StoreEntitySet="DocumentMimeTypes">
                <ScalarProperty Name="DocumentMimeTypeID" ColumnName="DocumentMimeTypeID" />
                <ScalarProperty Name="MimeType" ColumnName="MimeType" />
                <ScalarProperty Name="IconFileName" ColumnName="IconFileName" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Documents">
            <EntityTypeMapping TypeName="Model.Document">
              <MappingFragment StoreEntitySet="Documents">
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="ItemID" ColumnName="ItemID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="DocumentMimeTypeID" ColumnName="DocumentMimeTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentStores">
            <EntityTypeMapping TypeName="Model.DocumentStore">
              <MappingFragment StoreEntitySet="DocumentStore">
                <ScalarProperty Name="DocumentStoreID" ColumnName="DocumentStoreID" />
                <ScalarProperty Name="DocumentID" ColumnName="DocumentID" />
                <ScalarProperty Name="Version" ColumnName="Version" />
                <ScalarProperty Name="ContentBLOB" ColumnName="ContentBLOB" />
                <ScalarProperty Name="MimeType" ColumnName="MimeType" />
                <ScalarProperty Name="Size" ColumnName="Size" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Ext" ColumnName="Ext" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentStoreLocations">
            <EntityTypeMapping TypeName="Model.DocumentStoreLocation">
              <MappingFragment StoreEntitySet="DocumentStoreLocations">
                <ScalarProperty Name="DocumentStoreLocationID" ColumnName="DocumentStoreLocationID" />
                <ScalarProperty Name="DocumentStoreTypeID" ColumnName="DocumentStoreTypeID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ConnectionString" ColumnName="ConnectionString" />
                <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
                <ScalarProperty Name="AuthDomain" ColumnName="AuthDomain" />
                <ScalarProperty Name="AuthUser" ColumnName="AuthUser" />
                <ScalarProperty Name="AuthPassword" ColumnName="AuthPassword" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentStoreTypes">
            <EntityTypeMapping TypeName="Model.DocumentStoreType">
              <MappingFragment StoreEntitySet="DocumentStoreTypes">
                <ScalarProperty Name="DocumentStoreTypeID" ColumnName="DocumentStoreTypeID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DocumentTypes">
            <EntityTypeMapping TypeName="Model.DocumentType">
              <MappingFragment StoreEntitySet="DocumentTypes">
                <ScalarProperty Name="DocumentTypeID" ColumnName="DocumentTypeID" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="IsDocumentTemplate" ColumnName="IsDocumentTemplate" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
        </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="DocModel">
        <EntityTypeShape EntityType="Model.DocumentMimeType" Width="2.125" PointX="3.125" PointY="4.875" Height="1.9802864583333335" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Document" Width="2" PointX="6" PointY="1" Height="4.0956022135416656" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentStore" Width="1.875" PointX="9" PointY="1.625" Height="2.7494921874999996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentStoreLocation" Width="2.125" PointX="3.125" PointY="0.5" Height="3.9033007812499991" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentStoreType" Width="2" PointX="0.5" PointY="1.125" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.DocumentType" Width="1.875" PointX="9" PointY="4.75" Height="1.9802864583333317" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_Documents_DocumentMimeTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="5.25" PointY="6.399741647135416" />
          <ConnectorPoint PointX="6.6289053125000006" PointY="6.399741647135416" />
          <ConnectorPoint PointX="6.6289053125000006" PointY="5.0956022135416656" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Documents_DocumentStoreLocations" ManuallyRouted="false">
          <ConnectorPoint PointX="5.25" PointY="2.701650390625" />
          <ConnectorPoint PointX="6" PointY="2.701650390625" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Documents_DocumentTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="9" PointY="5.9441968359374995" />
          <ConnectorPoint PointX="7.320315625" PointY="5.9441968359374995" />
          <ConnectorPoint PointX="7.320315625" PointY="5.0956022135416656" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumeStore_Documents" ManuallyRouted="false">
          <ConnectorPoint PointX="8" PointY="2.99974609375" />
          <ConnectorPoint PointX="9" PointY="2.99974609375" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_DocumentStoreLocations_DocumentStoreTypes" ManuallyRouted="false">
          <ConnectorPoint PointX="2.5" PointY="1.9228417968749998" />
          <ConnectorPoint PointX="3.125" PointY="1.9228417968749998" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>