﻿<?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="AuthTypes" EntityType="Model.Store.AuthTypes" store:Type="Tables" Schema="System" />
          <EntitySet Name="Entities" EntityType="Model.Store.Entities" store:Type="Tables" Schema="System" />
          <EntitySet Name="MailSettings" EntityType="Model.Store.MailSettings" store:Type="Tables" Schema="System" />
          <EntitySet Name="Settings" EntityType="Model.Store.Settings" store:Type="Tables" Schema="System" />
          <EntitySet Name="SmsDeliveryMethods" EntityType="Model.Store.SmsDeliveryMethods" store:Type="Tables" Schema="System" />
          <EntitySet Name="SmsSettings" EntityType="Model.Store.SmsSettings" store:Type="Tables" Schema="System" />
          <AssociationSet Name="FK_SmsSettings_SmsDeliveryMethods" Association="Model.Store.FK_SmsSettings_SmsDeliveryMethods">
            <End Role="SmsDeliveryMethods" EntitySet="SmsDeliveryMethods" />
            <End Role="SmsSettings" EntitySet="SmsSettings" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="AuthTypes">
          <Key>
            <PropertyRef Name="AuthTypeID" />
          </Key>
          <Property Name="AuthTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" Nullable="false" MaxLength="50" />
        </EntityType>
        <EntityType Name="Entities">
          <Key>
            <PropertyRef Name="EntityID" />
          </Key>
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="EntityName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="EntityTableName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="EntityKey" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="EntityViewName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="FolderPrefix" Type="varchar" MaxLength="3" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="MailSettings">
          <Key>
            <PropertyRef Name="MailSettingID" />
          </Key>
          <Property Name="MailSettingID" Type="tinyint" Nullable="false" />
          <Property Name="Host" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="Port" Type="int" Nullable="false" />
          <Property Name="UseDefaultCredentials" Type="bit" Nullable="false" />
          <Property Name="UserName" Type="varchar" MaxLength="50" />
          <Property Name="Password" Type="varchar" MaxLength="50" />
          <Property Name="Domain" Type="varchar" MaxLength="50" />
          <Property Name="EnableSSL" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="Settings">
          <Key>
            <PropertyRef Name="SettingName" />
          </Key>
          <Property Name="SettingName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="SettingValue" Type="varchar(max)" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="SmsDeliveryMethods">
          <Key>
            <PropertyRef Name="SmsDeliveryMethodID" />
          </Key>
          <Property Name="SmsDeliveryMethodID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" Nullable="false" MaxLength="50" />
        </EntityType>
        <EntityType Name="SmsSettings">
          <Key>
            <PropertyRef Name="SmsSettingID" />
          </Key>
          <Property Name="SmsSettingID" Type="tinyint" Nullable="false" />
          <Property Name="SmsDeliveryMethodID" Type="smallint" Nullable="false" />
          <Property Name="UserName" Type="varchar" MaxLength="50" />
          <Property Name="Password" Type="varchar" MaxLength="50" />
          <Property Name="UserRef" Type="varchar" MaxLength="50" />
        </EntityType>
        <Association Name="FK_SmsSettings_SmsDeliveryMethods">
          <End Role="SmsDeliveryMethods" Type="Model.Store.SmsDeliveryMethods" Multiplicity="1" />
          <End Role="SmsSettings" Type="Model.Store.SmsSettings" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="SmsDeliveryMethods">
              <PropertyRef Name="SmsDeliveryMethodID" />
            </Principal>
            <Dependent Role="SmsSettings">
              <PropertyRef Name="SmsDeliveryMethodID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Function Name="Pr_GetSchemaColumns" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="System">
          <Parameter Name="ObjectName" Type="varchar" 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="AfxAdminSysContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="AuthTypes" EntityType="Model.AuthType" />
          <EntitySet Name="Entities" EntityType="Model.Entity" />
          <EntitySet Name="MailSettings" EntityType="Model.MailSetting" />
          <EntitySet Name="Settings" EntityType="Model.Setting" />
          <EntitySet Name="SmsDeliveryMethods" EntityType="Model.SmsDeliveryMethod" />
          <EntitySet Name="SmsSettings" EntityType="Model.SmsSetting" />
          <AssociationSet Name="FK_SmsSettings_SmsDeliveryMethods" Association="Model.FK_SmsSettings_SmsDeliveryMethods">
            <End Role="SmsDeliveryMethods" EntitySet="SmsDeliveryMethods" />
            <End Role="SmsSettings" EntitySet="SmsSettings" />
          </AssociationSet>
          <FunctionImport Name="Pr_GetSchemaColumns" ReturnType="Collection(Model.Pr_GetSchemaColumns_Result)">
            <Parameter Name="ObjectName" Mode="In" Type="String" />
          </FunctionImport>
        </EntityContainer>
        <EntityType Name="AuthType">
          <Key>
            <PropertyRef Name="AuthTypeID" />
          </Key>
          <Property Name="AuthTypeID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
        </EntityType>
        <EntityType Name="Entity">
          <Key>
            <PropertyRef Name="EntityID" />
          </Key>
          <Property Name="EntityID" Type="Int32" Nullable="false" />
          <Property Name="EntityName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="EntityTableName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="EntityKey" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="EntityViewName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="FolderPrefix" Type="String" MaxLength="3" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="MailSetting">
          <Key>
            <PropertyRef Name="MailSettingID" />
          </Key>
          <Property Name="MailSettingID" Type="Byte" Nullable="false" />
          <Property Name="Host" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="Port" Type="Int32" Nullable="false" />
          <Property Name="UseDefaultCredentials" Type="Boolean" Nullable="false" />
          <Property Name="UserName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="Password" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="Domain" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="EnableSSL" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="Setting">
          <Key>
            <PropertyRef Name="SettingName" />
          </Key>
          <Property Name="SettingName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="SettingValue" Type="String" Nullable="false" MaxLength="Max" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
        </EntityType>
        <EntityType Name="SmsDeliveryMethod">
          <Key>
            <PropertyRef Name="SmsDeliveryMethodID" />
          </Key>
          <Property Name="SmsDeliveryMethodID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="SmsSettings" Relationship="Model.FK_SmsSettings_SmsDeliveryMethods" FromRole="SmsDeliveryMethods" ToRole="SmsSettings" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" />
        </EntityType>
        <EntityType Name="SmsSetting">
          <Key>
            <PropertyRef Name="SmsSettingID" />
          </Key>
          <Property Name="SmsSettingID" Type="Byte" Nullable="false" />
          <Property Name="SmsDeliveryMethodID" Type="Int16" Nullable="false" />
          <Property Name="UserName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="Password" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="UserRef" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="SmsDeliveryMethod" Relationship="Model.FK_SmsSettings_SmsDeliveryMethods" FromRole="SmsSettings" ToRole="SmsDeliveryMethods" />
        </EntityType>
        <Association Name="FK_SmsSettings_SmsDeliveryMethods">
          <End Role="SmsDeliveryMethods" Type="Model.SmsDeliveryMethod" Multiplicity="1" />
          <End Role="SmsSettings" Type="Model.SmsSetting" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="SmsDeliveryMethods">
              <PropertyRef Name="SmsDeliveryMethodID" />
            </Principal>
            <Dependent Role="SmsSettings">
              <PropertyRef Name="SmsDeliveryMethodID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <ComplexType Name="Pr_GetSchemaColumns_Result">
          <Property Type="String" Name="ColumnName" Nullable="false" MaxLength="128" />
          <Property Type="String" Name="DataType" Nullable="false" MaxLength="128" />
          <Property Type="Boolean" Name="Nullable" Nullable="true" />
          <Property Type="Int16" Name="MaxLength" 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="AfxAdminSysContext">
          <EntitySetMapping Name="AuthTypes">
            <EntityTypeMapping TypeName="Model.AuthType">
              <MappingFragment StoreEntitySet="AuthTypes">
                <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Entities">
            <EntityTypeMapping TypeName="Model.Entity">
              <MappingFragment StoreEntitySet="Entities">
                <ScalarProperty Name="EntityID" ColumnName="EntityID" />
                <ScalarProperty Name="EntityName" ColumnName="EntityName" />
                <ScalarProperty Name="EntityTableName" ColumnName="EntityTableName" />
                <ScalarProperty Name="EntityKey" ColumnName="EntityKey" />
                <ScalarProperty Name="EntityViewName" ColumnName="EntityViewName" />
                <ScalarProperty Name="FolderPrefix" ColumnName="FolderPrefix" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="MailSettings">
            <EntityTypeMapping TypeName="Model.MailSetting">
              <MappingFragment StoreEntitySet="MailSettings">
                <ScalarProperty Name="MailSettingID" ColumnName="MailSettingID" />
                <ScalarProperty Name="Host" ColumnName="Host" />
                <ScalarProperty Name="Port" ColumnName="Port" />
                <ScalarProperty Name="UseDefaultCredentials" ColumnName="UseDefaultCredentials" />
                <ScalarProperty Name="UserName" ColumnName="UserName" />
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="Domain" ColumnName="Domain" />
                <ScalarProperty Name="EnableSSL" ColumnName="EnableSSL" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Settings">
            <EntityTypeMapping TypeName="Model.Setting">
              <MappingFragment StoreEntitySet="Settings">
                <ScalarProperty Name="SettingName" ColumnName="SettingName" />
                <ScalarProperty Name="SettingValue" ColumnName="SettingValue" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="SmsDeliveryMethods">
            <EntityTypeMapping TypeName="Model.SmsDeliveryMethod">
              <MappingFragment StoreEntitySet="SmsDeliveryMethods">
                <ScalarProperty Name="SmsDeliveryMethodID" ColumnName="SmsDeliveryMethodID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="SmsSettings">
            <EntityTypeMapping TypeName="Model.SmsSetting">
              <MappingFragment StoreEntitySet="SmsSettings">
                <ScalarProperty Name="SmsSettingID" ColumnName="SmsSettingID" />
                <ScalarProperty Name="SmsDeliveryMethodID" ColumnName="SmsDeliveryMethodID" />
                <ScalarProperty Name="UserName" ColumnName="UserName" />
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="UserRef" ColumnName="UserRef" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <FunctionImportMapping FunctionImportName="Pr_GetSchemaColumns" FunctionName="Model.Store.Pr_GetSchemaColumns">
            <ResultMapping>
              <ComplexTypeMapping TypeName="Model.Pr_GetSchemaColumns_Result">
                <ScalarProperty Name="ColumnName" ColumnName="ColumnName" />
                <ScalarProperty Name="DataType" ColumnName="DataType" />
                <ScalarProperty Name="Nullable" ColumnName="Nullable" />
                <ScalarProperty Name="MaxLength" ColumnName="MaxLength" />
              </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="SysModel">
        <EntityTypeShape EntityType="Model.AuthType" Width="1.75" PointX="0.5" PointY="3.25" Height="1.4033821614583335" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Entity" Width="1.75" PointX="2.75" PointY="3.25" Height="2.3648893229166674" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.MailSetting" Width="1.75" PointX="4.875" PointY="3.25" Height="2.5571907552083335" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Setting" Width="1.75" PointX="7" PointY="3.25" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.SmsDeliveryMethod" Width="2" PointX="0.5" PointY="0.5" Height="1.5956835937499996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.SmsSetting" Width="2.125" PointX="3.125" PointY="0.5" Height="2.1725878906249996" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_SmsSettings_SmsDeliveryMethods" ManuallyRouted="false">
          <ConnectorPoint PointX="2.5" PointY="1.2978417968749998" />
          <ConnectorPoint PointX="3.125" PointY="1.2978417968749998" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>