﻿<?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="PollFrequencies" EntityType="Model.Store.PollFrequencies" store:Type="Tables" Schema="Svc" />
          <EntitySet Name="Services" EntityType="Model.Store.Services" store:Type="Tables" Schema="Svc" />
          <EntitySet Name="ServiceSettings" EntityType="Model.Store.ServiceSettings" store:Type="Tables" Schema="Svc" />
          <EntitySet Name="ServiceTraces" EntityType="Model.Store.ServiceTraces" store:Type="Tables" Schema="Svc" />
          <AssociationSet Name="FK_Services_PollFrequencies" Association="Model.Store.FK_Services_PollFrequencies">
            <End Role="PollFrequencies" EntitySet="PollFrequencies" />
            <End Role="Services" EntitySet="Services" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceSettings_Services" Association="Model.Store.FK_ServiceSettings_Services">
            <End Role="Services" EntitySet="Services" />
            <End Role="ServiceSettings" EntitySet="ServiceSettings" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceTraces_Services" Association="Model.Store.FK_ServiceTraces_Services">
            <End Role="Services" EntitySet="Services" />
            <End Role="ServiceTraces" EntitySet="ServiceTraces" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="PollFrequencies">
          <Key>
            <PropertyRef Name="PollFrequencyID" />
          </Key>
          <Property Name="PollFrequencyID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" Nullable="false" MaxLength="50" />
        </EntityType>
        <EntityType Name="Services">
          <Key>
            <PropertyRef Name="ServiceID" />
          </Key>
          <Property Name="ServiceID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="ServiceName" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="ServiceTypeName" Type="varchar" Nullable="false" MaxLength="255" />
          <Property Name="PollFrequencyID" Type="smallint" Nullable="false" />
          <Property Name="PollTime" Type="varchar" Nullable="false" MaxLength="10" />
          <Property Name="LastRunDate" Type="smalldatetime" />
          <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" />
        </EntityType>
        <EntityType Name="ServiceSettings">
          <Key>
            <PropertyRef Name="ServiceSettingID" />
          </Key>
          <Property Name="ServiceSettingID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="ServiceID" Type="int" Nullable="false" />
          <Property Name="SettingKey" Type="varchar" Nullable="false" MaxLength="50" />
          <Property Name="SettingValue" Type="varchar(max)" Nullable="false" />
        </EntityType>
        <EntityType Name="ServiceTraces">
          <Key>
            <PropertyRef Name="ServiceTraceID" />
          </Key>
          <Property Name="ServiceTraceID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="ServiceID" Type="int" Nullable="false" />
          <Property Name="RunDate" Type="smalldatetime" Nullable="false" />
          <Property Name="TraceInfo" Type="varchar(max)" Nullable="false" />
        </EntityType>
        <Association Name="FK_Services_PollFrequencies">
          <End Role="PollFrequencies" Type="Model.Store.PollFrequencies" Multiplicity="1" />
          <End Role="Services" Type="Model.Store.Services" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PollFrequencies">
              <PropertyRef Name="PollFrequencyID" />
            </Principal>
            <Dependent Role="Services">
              <PropertyRef Name="PollFrequencyID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceSettings_Services">
          <End Role="Services" Type="Model.Store.Services" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="ServiceSettings" Type="Model.Store.ServiceSettings" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Services">
              <PropertyRef Name="ServiceID" />
            </Principal>
            <Dependent Role="ServiceSettings">
              <PropertyRef Name="ServiceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceTraces_Services">
          <End Role="Services" Type="Model.Store.Services" Multiplicity="1" />
          <End Role="ServiceTraces" Type="Model.Store.ServiceTraces" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Services">
              <PropertyRef Name="ServiceID" />
            </Principal>
            <Dependent Role="ServiceTraces">
              <PropertyRef Name="ServiceID" />
            </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="AfxAdminSvcContext" annotation:LazyLoadingEnabled="false">
          <EntitySet Name="PollFrequencies" EntityType="Model.PollFrequency" />
          <EntitySet Name="Services" EntityType="Model.Service" />
          <EntitySet Name="ServiceSettings" EntityType="Model.ServiceSetting" />
          <EntitySet Name="ServiceTraces" EntityType="Model.ServiceTrace" />
          <AssociationSet Name="FK_Services_PollFrequencies" Association="Model.FK_Services_PollFrequencies">
            <End Role="PollFrequencies" EntitySet="PollFrequencies" />
            <End Role="Services" EntitySet="Services" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceSettings_Services" Association="Model.FK_ServiceSettings_Services">
            <End Role="Services" EntitySet="Services" />
            <End Role="ServiceSettings" EntitySet="ServiceSettings" />
          </AssociationSet>
          <AssociationSet Name="FK_ServiceTraces_Services" Association="Model.FK_ServiceTraces_Services">
            <End Role="Services" EntitySet="Services" />
            <End Role="ServiceTraces" EntitySet="ServiceTraces" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="PollFrequency">
          <Key>
            <PropertyRef Name="PollFrequencyID" />
          </Key>
          <Property Name="PollFrequencyID" Type="Int16" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Services" Relationship="Model.FK_Services_PollFrequencies" FromRole="PollFrequencies" ToRole="Services" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="Service">
          <Key>
            <PropertyRef Name="ServiceID" />
          </Key>
          <Property Name="ServiceID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ServiceName" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="ServiceTypeName" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="PollFrequencyID" Type="Int16" Nullable="false" />
          <Property Name="PollTime" Type="String" Nullable="false" MaxLength="10" Unicode="false" FixedLength="false" />
          <Property Name="LastRunDate" Type="DateTime" />
          <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" />
          <NavigationProperty Name="PollFrequency" Relationship="Model.FK_Services_PollFrequencies" FromRole="Services" ToRole="PollFrequencies" />
          <NavigationProperty Name="ServiceSettings" Relationship="Model.FK_ServiceSettings_Services" FromRole="Services" ToRole="ServiceSettings" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ServiceTraces" Relationship="Model.FK_ServiceTraces_Services" FromRole="Services" ToRole="ServiceTraces" />
        </EntityType>
        <EntityType Name="ServiceSetting">
          <Key>
            <PropertyRef Name="ServiceSettingID" />
          </Key>
          <Property Name="ServiceSettingID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ServiceID" Type="Int32" Nullable="false" />
          <Property Name="SettingKey" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="SettingValue" Type="String" Nullable="false" MaxLength="Max" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Service" Relationship="Model.FK_ServiceSettings_Services" FromRole="ServiceSettings" ToRole="Services" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="ServiceTrace">
          <Key>
            <PropertyRef Name="ServiceTraceID" />
          </Key>
          <Property Name="ServiceTraceID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ServiceID" Type="Int32" Nullable="false" />
          <Property Name="RunDate" Type="DateTime" Nullable="false" />
          <Property Name="TraceInfo" Type="String" Nullable="false" MaxLength="Max" Unicode="false" FixedLength="false" />
          <NavigationProperty Name="Service" Relationship="Model.FK_ServiceTraces_Services" FromRole="ServiceTraces" ToRole="Services" a:GetterAccess="Internal" xmlns:a="http://schemas.microsoft.com/ado/2006/04/codegeneration" a:SetterAccess="Internal" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_Services_PollFrequencies">
          <End Role="PollFrequencies" Type="Model.PollFrequency" Multiplicity="1" />
          <End Role="Services" Type="Model.Service" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="PollFrequencies">
              <PropertyRef Name="PollFrequencyID" />
            </Principal>
            <Dependent Role="Services">
              <PropertyRef Name="PollFrequencyID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceSettings_Services">
          <End Role="Services" Type="Model.Service" Multiplicity="1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="ServiceSettings" Type="Model.ServiceSetting" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Services">
              <PropertyRef Name="ServiceID" />
            </Principal>
            <Dependent Role="ServiceSettings">
              <PropertyRef Name="ServiceID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ServiceTraces_Services">
          <End Role="Services" Type="Model.Service" Multiplicity="1" />
          <End Role="ServiceTraces" Type="Model.ServiceTrace" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Services">
              <PropertyRef Name="ServiceID" />
            </Principal>
            <Dependent Role="ServiceTraces">
              <PropertyRef Name="ServiceID" />
            </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="AfxAdminSvcContext">
          <EntitySetMapping Name="PollFrequencies">
            <EntityTypeMapping TypeName="Model.PollFrequency">
              <MappingFragment StoreEntitySet="PollFrequencies">
                <ScalarProperty Name="PollFrequencyID" ColumnName="PollFrequencyID" />
                <ScalarProperty Name="Title" ColumnName="Title" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Services">
            <EntityTypeMapping TypeName="Model.Service">
              <MappingFragment StoreEntitySet="Services">
                <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
                <ScalarProperty Name="ServiceName" ColumnName="ServiceName" />
                <ScalarProperty Name="ServiceTypeName" ColumnName="ServiceTypeName" />
                <ScalarProperty Name="PollFrequencyID" ColumnName="PollFrequencyID" />
                <ScalarProperty Name="PollTime" ColumnName="PollTime" />
                <ScalarProperty Name="LastRunDate" ColumnName="LastRunDate" />
                <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" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ServiceSettings">
            <EntityTypeMapping TypeName="Model.ServiceSetting">
              <MappingFragment StoreEntitySet="ServiceSettings">
                <ScalarProperty Name="ServiceSettingID" ColumnName="ServiceSettingID" />
                <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
                <ScalarProperty Name="SettingKey" ColumnName="SettingKey" />
                <ScalarProperty Name="SettingValue" ColumnName="SettingValue" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ServiceTraces">
            <EntityTypeMapping TypeName="Model.ServiceTrace">
              <MappingFragment StoreEntitySet="ServiceTraces">
                <ScalarProperty Name="ServiceTraceID" ColumnName="ServiceTraceID" />
                <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
                <ScalarProperty Name="RunDate" ColumnName="RunDate" />
                <ScalarProperty Name="TraceInfo" ColumnName="TraceInfo" />
              </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="SvcModel">
        <EntityTypeShape EntityType="Model.PollFrequency" Width="1.75" PointX="0.75" PointY="2.625" Height="1.5956835937500005" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.Service" Width="1.75" PointX="3.25" PointY="1.5" Height="3.7109993489583326" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ServiceSetting" Width="1.75" PointX="5.75" PointY="1" Height="1.9802864583333335" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ServiceTrace" Width="1.75" PointX="5.75" PointY="3.75" Height="1.9802864583333335" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_Services_PollFrequencies" ManuallyRouted="false">
          <ConnectorPoint PointX="2.5" PointY="3.4228417968750002" />
          <ConnectorPoint PointX="3.25" PointY="3.4228417968750002" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ServiceSettings_Services" ManuallyRouted="false">
          <ConnectorPoint PointX="5" PointY="2.2401432291666667" />
          <ConnectorPoint PointX="5.75" PointY="2.2401432291666667" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ServiceTraces_Services" ManuallyRouted="false">
          <ConnectorPoint PointX="5" PointY="4.4804996744791659" />
          <ConnectorPoint PointX="5.75" PointY="4.4804996744791659" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>