﻿<?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">
        <EntityType Name="CommandTypes">
          <Key>
            <PropertyRef Name="CommandTypeID" />
          </Key>
          <Property Name="CommandTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="Connections">
          <Key>
            <PropertyRef Name="ConnectionID" />
          </Key>
          <Property Name="ConnectionID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="ConnectionName" Type="varchar" MaxLength="50" />
          <Property Name="ConnectionTypeID" Type="smallint" Nullable="false" />
          <Property Name="ConnectionString" Type="varchar" MaxLength="500" Nullable="false" />
          <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="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="ConnectionTypes">
          <Key>
            <PropertyRef Name="ConnectionTypeID" />
          </Key>
          <Property Name="ConnectionTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <EntityType Name="DataSources">
          <Key>
            <PropertyRef Name="DataSourceID" />
          </Key>
          <Property Name="DataSourceID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="DataSourceName" Type="varchar" MaxLength="50" Nullable="false" />
          <Property Name="ConnectionID" Type="int" Nullable="false" />
          <Property Name="CommandTypeID" Type="smallint" Nullable="false" />
          <Property Name="RequestQuery" Type="varchar(max)" />
          <Property Name="RequestHeaders" Type="xml" />
          <Property Name="ResponseXsl" Type="xml" />
          <Property Name="EntitySchema" Type="xml" />
          <Property Name="IsCacheEnabled" Type="bit" Nullable="false" />
          <Property Name="CacheMinutes" Type="int" Nullable="false" />
          <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="AuthTypes">
          <Key>
            <PropertyRef Name="AuthTypeID" />
          </Key>
          <Property Name="AuthTypeID" Type="smallint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
        </EntityType>
        <Association Name="FK_AuthTypes_Connections">
          <End Role="AuthTypes" Type="Self.AuthTypes" Multiplicity="1" />
          <End Role="Connections" Type="Self.Connections" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AuthTypes">
              <PropertyRef Name="AuthTypeID" />
            </Principal>
            <Dependent Role="Connections">
              <PropertyRef Name="AuthTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Connections_DataSources">
          <End Role="Connections" Type="Self.Connections" Multiplicity="1" />
          <End Role="DataSources" Type="Self.DataSources" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Connections">
              <PropertyRef Name="ConnectionID" />
            </Principal>
            <Dependent Role="DataSources">
              <PropertyRef Name="ConnectionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ConnectionTypes_Connections">
          <End Role="ConnectionTypes" Type="Self.ConnectionTypes" Multiplicity="1" />
          <End Role="Connections" Type="Self.Connections" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ConnectionTypes">
              <PropertyRef Name="ConnectionTypeID" />
            </Principal>
            <Dependent Role="Connections">
              <PropertyRef Name="ConnectionTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_DataSources_CommandTypes">
          <End Role="CommandTypes" Type="Self.CommandTypes" Multiplicity="1" />
          <End Role="DataSources" Type="Self.DataSources" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CommandTypes">
              <PropertyRef Name="CommandTypeID" />
            </Principal>
            <Dependent Role="DataSources">
              <PropertyRef Name="CommandTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="CommandTypes" EntityType="Self.CommandTypes" Schema="Integration" store:Type="Tables" />
          <EntitySet Name="Connections" EntityType="Self.Connections" Schema="Integration" store:Type="Tables" />
          <EntitySet Name="ConnectionTypes" EntityType="Self.ConnectionTypes" Schema="Integration" store:Type="Tables" />
          <EntitySet Name="DataSources" EntityType="Self.DataSources" Schema="Integration" store:Type="Tables" />
          <EntitySet Name="AuthTypes" EntityType="Self.AuthTypes" Schema="System" store:Type="Tables" />
          <AssociationSet Name="FK_AuthTypes_Connections" Association="Self.FK_AuthTypes_Connections">
            <End Role="AuthTypes" EntitySet="AuthTypes" />
            <End Role="Connections" EntitySet="Connections" />
          </AssociationSet>
          <AssociationSet Name="FK_Connections_DataSources" Association="Self.FK_Connections_DataSources">
            <End Role="Connections" EntitySet="Connections" />
            <End Role="DataSources" EntitySet="DataSources" />
          </AssociationSet>
          <AssociationSet Name="FK_ConnectionTypes_Connections" Association="Self.FK_ConnectionTypes_Connections">
            <End Role="ConnectionTypes" EntitySet="ConnectionTypes" />
            <End Role="Connections" EntitySet="Connections" />
          </AssociationSet>
          <AssociationSet Name="FK_DataSources_CommandTypes" Association="Self.FK_DataSources_CommandTypes">
            <End Role="CommandTypes" EntitySet="CommandTypes" />
            <End Role="DataSources" EntitySet="DataSources" />
          </AssociationSet>
        </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="IntegrationContext" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="CommandTypes" EntityType="Model.CommandType" />
          <EntitySet Name="Connections" EntityType="Model.Connection" />
          <EntitySet Name="ConnectionTypes" EntityType="Model.ConnectionType" />
          <EntitySet Name="DataSources" EntityType="Model.DataSource" />
          <EntitySet Name="AuthTypes" EntityType="Model.AuthType" />
          <AssociationSet Name="FK_DataSources_CommandTypes" Association="Model.FK_DataSources_CommandTypes">
            <End Role="CommandType" EntitySet="CommandTypes" />
            <End Role="DataSource" EntitySet="DataSources" />
          </AssociationSet>
          <AssociationSet Name="FK_AuthTypes_Connections" Association="Model.FK_AuthTypes_Connections">
            <End Role="AuthType" EntitySet="AuthTypes" />
            <End Role="Connection" EntitySet="Connections" />
          </AssociationSet>
          <AssociationSet Name="FK_Connections_DataSources" Association="Model.FK_Connections_DataSources">
            <End Role="Connection" EntitySet="Connections" />
            <End Role="DataSource" EntitySet="DataSources" />
          </AssociationSet>
          <AssociationSet Name="FK_ConnectionTypes_Connections" Association="Model.FK_ConnectionTypes_Connections">
            <End Role="ConnectionType" EntitySet="ConnectionTypes" />
            <End Role="Connection" EntitySet="Connections" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="CommandType">
          <Key>
            <PropertyRef Name="CommandTypeID" />
          </Key>
          <Property Type="Int16" Name="CommandTypeID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="DataSources" Relationship="Model.FK_DataSources_CommandTypes" FromRole="CommandType" ToRole="DataSource" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="Connection">
          <Key>
            <PropertyRef Name="ConnectionID" />
          </Key>
          <Property Type="Int32" Name="ConnectionID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="ConnectionName" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="ConnectionTypeID" Nullable="false" />
          <Property Type="String" Name="ConnectionString" Nullable="false" MaxLength="500" FixedLength="false" Unicode="false" />
          <Property Type="Int16" Name="AuthTypeID" Nullable="false" />
          <Property Type="String" Name="AuthDomain" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="AuthUser" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="AuthPassword" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <NavigationProperty Name="AuthType" Relationship="Model.FK_AuthTypes_Connections" FromRole="Connection" ToRole="AuthType" />
          <NavigationProperty Name="DataSources" Relationship="Model.FK_Connections_DataSources" FromRole="Connection" ToRole="DataSource" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <NavigationProperty Name="ConnectionType" Relationship="Model.FK_ConnectionTypes_Connections" FromRole="Connection" ToRole="ConnectionType" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
        </EntityType>
        <EntityType Name="ConnectionType">
          <Key>
            <PropertyRef Name="ConnectionTypeID" />
          </Key>
          <Property Type="Int16" Name="ConnectionTypeID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Connections" Relationship="Model.FK_ConnectionTypes_Connections" FromRole="ConnectionType" ToRole="Connection" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="DataSource">
          <Key>
            <PropertyRef Name="DataSourceID" />
          </Key>
          <Property Type="Int32" Name="DataSourceID" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Type="String" Name="DataSourceName" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <Property Type="Int32" Name="ConnectionID" Nullable="false" />
          <Property Type="Int16" Name="CommandTypeID" Nullable="false" />
          <Property Type="String" Name="RequestQuery" MaxLength="Max" FixedLength="false" Unicode="false" />
          <Property Type="String" Name="RequestHeaders" MaxLength="Max" FixedLength="false" Unicode="true" />
          <Property Type="String" Name="EntitySchema" MaxLength="Max" FixedLength="false" Unicode="true" >
          </Property>
          <Property Type="Int64" Name="CreatedByID" Nullable="false" />
          <Property Type="DateTime" Name="CreatedDate" Nullable="false" Precision="3" />
          <Property Type="Int64" Name="UpdatedByID" Nullable="false" />
          <Property Type="DateTime" Name="UpdatedDate" Nullable="false" Precision="3" />
          <NavigationProperty Name="CommandType" Relationship="Model.FK_DataSources_CommandTypes" FromRole="DataSource" ToRole="CommandType" />
          <NavigationProperty Name="Connection" Relationship="Model.FK_Connections_DataSources" FromRole="DataSource" ToRole="Connection" />
          <Property Type="Boolean" Name="IsCancelled" Nullable="false" />
          <Property Type="String" Name="ResponseXsl" MaxLength="Max" FixedLength="false" Unicode="true" />
          <Property Type="Boolean" Name="IsCacheEnabled" Nullable="false" />
          <Property Type="Int32" Name="CacheMinutes" Nullable="false" />
        </EntityType>
        <EntityType Name="AuthType">
          <Key>
            <PropertyRef Name="AuthTypeID" />
          </Key>
          <Property Type="Int16" Name="AuthTypeID" Nullable="false" />
          <Property Type="String" Name="Title" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Connections" Relationship="Model.FK_AuthTypes_Connections" FromRole="AuthType" ToRole="Connection" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <Association Name="FK_DataSources_CommandTypes">
          <End Type="Model.CommandType" Role="CommandType" Multiplicity="1" />
          <End Type="Model.DataSource" Role="DataSource" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CommandType">
              <PropertyRef Name="CommandTypeID" />
            </Principal>
            <Dependent Role="DataSource">
              <PropertyRef Name="CommandTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_AuthTypes_Connections">
          <End Type="Model.AuthType" Role="AuthType" Multiplicity="1" />
          <End Type="Model.Connection" Role="Connection" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="AuthType">
              <PropertyRef Name="AuthTypeID" />
            </Principal>
            <Dependent Role="Connection">
              <PropertyRef Name="AuthTypeID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_Connections_DataSources">
          <End Type="Model.Connection" Role="Connection" Multiplicity="1" />
          <End Type="Model.DataSource" Role="DataSource" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Connection">
              <PropertyRef Name="ConnectionID" />
            </Principal>
            <Dependent Role="DataSource">
              <PropertyRef Name="ConnectionID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ConnectionTypes_Connections">
          <End Type="Model.ConnectionType" Role="ConnectionType" Multiplicity="1" />
          <End Type="Model.Connection" Role="Connection" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="ConnectionType">
              <PropertyRef Name="ConnectionTypeID" />
            </Principal>
            <Dependent Role="Connection">
              <PropertyRef Name="ConnectionTypeID" />
            </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="IntegrationContext">
          <EntitySetMapping Name="CommandTypes">
            <EntityTypeMapping TypeName="Model.CommandType">
              <MappingFragment StoreEntitySet="CommandTypes">
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="CommandTypeID" ColumnName="CommandTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Connections">
            <EntityTypeMapping TypeName="Model.Connection">
              <MappingFragment StoreEntitySet="Connections">
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="AuthPassword" ColumnName="AuthPassword" />
                <ScalarProperty Name="AuthUser" ColumnName="AuthUser" />
                <ScalarProperty Name="AuthDomain" ColumnName="AuthDomain" />
                <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
                <ScalarProperty Name="ConnectionString" ColumnName="ConnectionString" />
                <ScalarProperty Name="ConnectionTypeID" ColumnName="ConnectionTypeID" />
                <ScalarProperty Name="ConnectionName" ColumnName="ConnectionName" />
                <ScalarProperty Name="ConnectionID" ColumnName="ConnectionID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="ConnectionTypes">
            <EntityTypeMapping TypeName="Model.ConnectionType">
              <MappingFragment StoreEntitySet="ConnectionTypes">
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="ConnectionTypeID" ColumnName="ConnectionTypeID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="DataSources">
            <EntityTypeMapping TypeName="Model.DataSource">
              <MappingFragment StoreEntitySet="DataSources">
                <ScalarProperty Name="CacheMinutes" ColumnName="CacheMinutes" />
                <ScalarProperty Name="IsCacheEnabled" ColumnName="IsCacheEnabled" />
                <ScalarProperty Name="ResponseXsl" ColumnName="ResponseXsl" />
                <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
                <ScalarProperty Name="UpdatedDate" ColumnName="UpdatedDate" />
                <ScalarProperty Name="UpdatedByID" ColumnName="UpdatedByID" />
                <ScalarProperty Name="CreatedDate" ColumnName="CreatedDate" />
                <ScalarProperty Name="CreatedByID" ColumnName="CreatedByID" />
                <ScalarProperty Name="EntitySchema" ColumnName="EntitySchema" />
                <ScalarProperty Name="RequestHeaders" ColumnName="RequestHeaders" />
                <ScalarProperty Name="RequestQuery" ColumnName="RequestQuery" />
                <ScalarProperty Name="CommandTypeID" ColumnName="CommandTypeID" />
                <ScalarProperty Name="ConnectionID" ColumnName="ConnectionID" />
                <ScalarProperty Name="DataSourceName" ColumnName="DataSourceName" />
                <ScalarProperty Name="DataSourceID" ColumnName="DataSourceID" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="AuthTypes">
            <EntityTypeMapping TypeName="Model.AuthType">
              <MappingFragment StoreEntitySet="AuthTypes">
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
              </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" />
        <DesignerProperty Name="UseLegacyProvider" Value="True" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="Model">
        <EntityTypeShape EntityType="Model.CommandType" Width="1.5" PointX="8" PointY="0.5" Height="1.5956835937499996" />
        <EntityTypeShape EntityType="Model.Connection" Width="1.875" PointX="3" PointY="0.5" Height="3.9033007812499996" />
        <EntityTypeShape EntityType="Model.ConnectionType" Width="1.5" PointX="0.5" PointY="0.5" Height="1.5956835937499996" />
        <EntityTypeShape EntityType="Model.DataSource" Width="1.75" PointX="5.625" PointY="0.5" Height="3.5186979166666661" />
        <EntityTypeShape EntityType="Model.AuthType" Width="1.5" PointX="0.5" PointY="2.375" Height="1.5956835937499996" />
        <AssociationConnector Association="Model.FK_DataSources_CommandTypes" >
          <ConnectorPoint PointX="8" PointY="1.2978417968749998" />
          <ConnectorPoint PointX="7.375" PointY="1.2978417968749998" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_AuthTypes_Connections" >
          <ConnectorPoint PointX="2" PointY="3.172841796875" />
          <ConnectorPoint PointX="3" PointY="3.172841796875" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_Connections_DataSources" >
          <ConnectorPoint PointX="4.875" PointY="2.2593489583333328" />
          <ConnectorPoint PointX="5.625" PointY="2.2593489583333328" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ConnectionTypes_Connections" >
          <ConnectorPoint PointX="2" PointY="1.2978417968749998" />
          <ConnectorPoint PointX="3" PointY="1.2978417968749998" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>