﻿<?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="2012" 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="Groups">
          <Key>
            <PropertyRef Name="ReportGroupID" />
          </Key>
          <Property Name="ReportGroupID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="IsCancelled" Type="bit" Nullable="false" />
        </EntityType>
        <EntityType Name="ReportDefinitions">
          <Key>
            <PropertyRef Name="ReportDefinitionID" />
          </Key>
          <Property Name="ReportDefinitionID" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
          <Property Name="ReportServerID" Type="int" Nullable="false" />
          <Property Name="ReportGroupID" Type="int" Nullable="false" />
          <Property Name="EntityID" Type="int" Nullable="false" />
          <Property Name="ItemID" Type="bigint" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Description" Type="varchar" MaxLength="1000" Nullable="false" />
          <Property Name="ReportFolder" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="ReportName" Type="varchar" MaxLength="255" 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" />
          <Property Name="SecurableID" Type="smallint" />
        </EntityType>
        <EntityType Name="Servers">
          <Key>
            <PropertyRef Name="ReportServerID" />
          </Key>
          <Property Name="ReportServerID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Title" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Url" Type="varchar" MaxLength="1000" Nullable="false" />
          <Property Name="ServiceFileName" Type="varchar" MaxLength="50" 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>
        <Association Name="FK_ReportDefinitions_Groups">
          <End Role="Groups" Type="Self.Groups" Multiplicity="1" />
          <End Role="ReportDefinitions" Type="Self.ReportDefinitions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Groups">
              <PropertyRef Name="ReportGroupID" />
            </Principal>
            <Dependent Role="ReportDefinitions">
              <PropertyRef Name="ReportGroupID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ReportDefinitions_Servers">
          <End Role="Servers" Type="Self.Servers" Multiplicity="1" />
          <End Role="ReportDefinitions" Type="Self.ReportDefinitions" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Servers">
              <PropertyRef Name="ReportServerID" />
            </Principal>
            <Dependent Role="ReportDefinitions">
              <PropertyRef Name="ReportServerID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="ModelStoreContainer">
          <EntitySet Name="Groups" EntityType="Self.Groups" Schema="Report" store:Type="Tables" />
          <EntitySet Name="ReportDefinitions" EntityType="Self.ReportDefinitions" Schema="Report" store:Type="Tables" />
          <EntitySet Name="Servers" EntityType="Self.Servers" Schema="Report" store:Type="Tables" />
          <AssociationSet Name="FK_ReportDefinitions_Groups" Association="Self.FK_ReportDefinitions_Groups">
            <End Role="Groups" EntitySet="Groups" />
            <End Role="ReportDefinitions" EntitySet="ReportDefinitions" />
          </AssociationSet>
          <AssociationSet Name="FK_ReportDefinitions_Servers" Association="Self.FK_ReportDefinitions_Servers">
            <End Role="Servers" EntitySet="Servers" />
            <End Role="ReportDefinitions" EntitySet="ReportDefinitions" />
          </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="ReportContext" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="ReportGroups" EntityType="Model.ReportGroup" />
          <EntitySet Name="ReportDefinitions" EntityType="Model.ReportDefinition" />
          <EntitySet Name="ReportServers" EntityType="Model.ReportServer" />
          <AssociationSet Name="FK_ReportDefinitions_Groups" Association="Model.FK_ReportDefinitions_Groups">
            <End Role="Groups" EntitySet="ReportGroups" />
            <End Role="ReportDefinitions" EntitySet="ReportDefinitions" />
          </AssociationSet>
          <AssociationSet Name="FK_ReportDefinitions_Servers" Association="Model.FK_ReportDefinitions_Servers">
            <End Role="Servers" EntitySet="ReportServers" />
            <End Role="ReportDefinitions" EntitySet="ReportDefinitions" />
          </AssociationSet>
        </EntityContainer>
        <EntityType Name="ReportGroup">
          <Key>
            <PropertyRef Name="ReportGroupID" />
          </Key>
          <Property Name="ReportGroupID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="IsCancelled" Type="Boolean" Nullable="false" />
          <NavigationProperty Name="ReportDefinitions" Relationship="Model.FK_ReportDefinitions_Groups" FromRole="Groups" ToRole="ReportDefinitions" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
        </EntityType>
        <EntityType Name="ReportDefinition">
          <Key>
            <PropertyRef Name="ReportDefinitionID" />
          </Key>
          <Property Name="ReportDefinitionID" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="ReportServerID" Type="Int32" Nullable="false" />
          <Property Name="ReportGroupID" Type="Int32" Nullable="false" />
          <Property Name="EntityID" Type="Int32" Nullable="false" />
          <Property Name="ItemID" Type="Int64" Nullable="false" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="Description" Type="String" Nullable="false" MaxLength="1000" Unicode="false" FixedLength="false" />
          <Property Name="ReportFolder" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="ReportName" Type="String" Nullable="false" 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" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="Group" Relationship="Model.FK_ReportDefinitions_Groups" FromRole="ReportDefinitions" ToRole="Groups" />
          <NavigationProperty Name="Server" Relationship="Model.FK_ReportDefinitions_Servers" FromRole="ReportDefinitions" ToRole="Servers" />
          <Property Name="SecurableID" Type="Int16" />
        </EntityType>
        <EntityType Name="ReportServer">
          <Key>
            <PropertyRef Name="ReportServerID" />
          </Key>
          <Property Name="ReportServerID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Title" Type="String" Nullable="false" MaxLength="255" Unicode="false" FixedLength="false" />
          <Property Name="Url" Type="String" Nullable="false" MaxLength="1000" 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="IsCancelled" Type="Boolean" Nullable="false" />
          <Property Name="CreatedByID" Type="Int64" Nullable="false" />
          <Property Name="CreatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <Property Name="UpdatedByID" Type="Int64" Nullable="false" />
          <Property Name="UpdatedDate" Type="DateTime" Nullable="false" Precision="3" />
          <NavigationProperty Name="ReportDefinitions" Relationship="Model.FK_ReportDefinitions_Servers" FromRole="Servers" ToRole="ReportDefinitions" >
            <Documentation>
              <LongDescription>[ScriptIgnore]</LongDescription>
            </Documentation>
          </NavigationProperty>
          <Property Type="String" Name="ServiceFileName" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
        </EntityType>
        <Association Name="FK_ReportDefinitions_Groups">
          <End Role="Groups" Type="Model.ReportGroup" Multiplicity="1" />
          <End Role="ReportDefinitions" Type="Model.ReportDefinition" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Groups">
              <PropertyRef Name="ReportGroupID" />
            </Principal>
            <Dependent Role="ReportDefinitions">
              <PropertyRef Name="ReportGroupID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="FK_ReportDefinitions_Servers">
          <End Role="Servers" Type="Model.ReportServer" Multiplicity="1" />
          <End Role="ReportDefinitions" Type="Model.ReportDefinition" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Servers">
              <PropertyRef Name="ReportServerID" />
            </Principal>
            <Dependent Role="ReportDefinitions">
              <PropertyRef Name="ReportServerID" />
            </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="ReportContext">
          <EntitySetMapping Name="ReportGroups"><EntityTypeMapping TypeName="Model.ReportGroup"><MappingFragment StoreEntitySet="Groups">
            <ScalarProperty Name="ReportGroupID" ColumnName="ReportGroupID" />
            <ScalarProperty Name="Description" ColumnName="Description" />
            <ScalarProperty Name="IsCancelled" ColumnName="IsCancelled" />
          </MappingFragment></EntityTypeMapping></EntitySetMapping>
          <EntitySetMapping Name="ReportDefinitions"><EntityTypeMapping TypeName="Model.ReportDefinition"><MappingFragment StoreEntitySet="ReportDefinitions">
                <ScalarProperty Name="SecurableID" ColumnName="SecurableID" />
                <ScalarProperty Name="ReportDefinitionID" ColumnName="ReportDefinitionID" />
            <ScalarProperty Name="ReportServerID" ColumnName="ReportServerID" />
            <ScalarProperty Name="ReportGroupID" ColumnName="ReportGroupID" />
            <ScalarProperty Name="EntityID" ColumnName="EntityID" />
            <ScalarProperty Name="ItemID" ColumnName="ItemID" />
            <ScalarProperty Name="Title" ColumnName="Title" />
            <ScalarProperty Name="Description" ColumnName="Description" />
            <ScalarProperty Name="ReportFolder" ColumnName="ReportFolder" />
            <ScalarProperty Name="ReportName" ColumnName="ReportName" />
            <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="ReportServers"><EntityTypeMapping TypeName="Model.ReportServer"><MappingFragment StoreEntitySet="Servers">
            <ScalarProperty Name="ServiceFileName" ColumnName="ServiceFileName" />
                <ScalarProperty Name="ReportServerID" ColumnName="ReportServerID" />
            <ScalarProperty Name="Title" ColumnName="Title" />
            <ScalarProperty Name="Url" ColumnName="Url" />
            <ScalarProperty Name="AuthTypeID" ColumnName="AuthTypeID" />
            <ScalarProperty Name="AuthDomain" ColumnName="AuthDomain" />
            <ScalarProperty Name="AuthUser" ColumnName="AuthUser" />
            <ScalarProperty Name="AuthPassword" ColumnName="AuthPassword" />
            <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>
        </EntityContainerMapping>
      </Mapping>
    </edmx:Mappings>
  </edmx:Runtime>
  <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="True" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
        <DesignerProperty Name="UseLegacyProvider" Value="False" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="Model">
        <EntityTypeShape EntityType="Model.ReportGroup" Width="1.5" PointX="0.75" PointY="2.125" Height="1.5923063151041665" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ReportDefinition" Width="2.25" PointX="3" PointY="1" Height="3.8931689453124996" IsExpanded="true" />
        <EntityTypeShape EntityType="Model.ReportServer" Width="1.5" PointX="0.75" PointY="5.375" Height="3.0714322916666665" IsExpanded="true" />
        <AssociationConnector Association="Model.FK_ReportDefinitions_Groups" ManuallyRouted="false">
          <ConnectorPoint PointX="2.25" PointY="2.9211531575520833" />
          <ConnectorPoint PointX="3" PointY="2.9211531575520833" />
        </AssociationConnector>
        <AssociationConnector Association="Model.FK_ReportDefinitions_Servers" ManuallyRouted="false">
          <ConnectorPoint PointX="2.25" PointY="7.2745610416666677" />
          <ConnectorPoint PointX="3.5273446875" PointY="7.2745610416666677" />
          <ConnectorPoint PointX="3.5273446875" PointY="4.8931689453125" />
        </AssociationConnector>
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>