<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  <!-- EF Runtime content -->
  <edmx:Runtime>
    <!-- SSDL content -->
    <edmx:StorageModels>
      <Schema Namespace="EMIS.Entities.Log.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
        <EntityContainer Name="EMISEntitiesLogStoreContainer">
          <EntitySet Name="Log_Operate" EntityType="EMIS.Entities.Log.Store.Log_Operate" store:Type="Tables" Schema="dbo" />
          <EntitySet Name="VW_Sys_User" EntityType="EMIS.Entities.Log.Store.VW_Sys_User" store:Type="Views" store:Schema="dbo" store:Name="VW_Sys_User">
            <DefiningQuery>SELECT 
      [VW_Sys_User].[UserID] AS [UserID], 
      [VW_Sys_User].[LoginID] AS [LoginID], 
      [VW_Sys_User].[Password] AS [Password], 
      [VW_Sys_User].[Name] AS [Name], 
      [VW_Sys_User].[RecordStatus] AS [RecordStatus], 
      [VW_Sys_User].[CreateUserID] AS [CreateUserID], 
      [VW_Sys_User].[CreateTime] AS [CreateTime], 
      [VW_Sys_User].[ModifyUserID] AS [ModifyUserID], 
      [VW_Sys_User].[ModifyTime] AS [ModifyTime]
      FROM [dbo].[VW_Sys_User] AS [VW_Sys_User]</DefiningQuery>
          </EntitySet>
        </EntityContainer>
        <EntityType Name="Log_Operate">
          <Key>
            <PropertyRef Name="OperateID" />
          </Key>
          <Property Name="OperateID" Type="uniqueidentifier" Nullable="false" />
          <Property Name="UserID" Type="uniqueidentifier" />
          <Property Name="IP" Type="varchar" MaxLength="50" />
          <Property Name="TableName" Type="varchar" MaxLength="50" />
          <Property Name="SourceUrl" Type="varchar" MaxLength="500" />
          <Property Name="Operate" Type="nvarchar" MaxLength="50" />
          <Property Name="Detail" Type="nvarchar(max)" />
          <Property Name="IsSuccess" Type="bit" />
          <Property Name="OperateTime" Type="datetime" />
        </EntityType>
        <!--生成过程中发现错误:
      警告 6002: 表/视图“EMISNewLog.dbo.VW_Sys_User”未定义主键。已推断出该键,并将定义创建为只读的表/视图。
      -->
        <EntityType Name="VW_Sys_User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="uniqueidentifier" Nullable="false" />
          <Property Name="LoginID" Type="varchar" MaxLength="50" />
          <Property Name="Password" Type="varchar" MaxLength="50" />
          <Property Name="Name" Type="nvarchar" MaxLength="50" />
          <Property Name="RecordStatus" Type="int" />
          <Property Name="CreateUserID" Type="uniqueidentifier" />
          <Property Name="CreateTime" Type="datetime" />
          <Property Name="ModifyUserID" Type="uniqueidentifier" />
          <Property Name="ModifyTime" Type="datetime" />
        </EntityType>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="EMIS.Entities.Log" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
        <EntityContainer Name="EMISNewLogContext" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="Log_Operate" EntityType="EMIS.Entities.Log.Log_Operate" />
          <EntitySet Name="VW_Sys_User" EntityType="EMIS.Entities.Log.VW_Sys_User" />
        </EntityContainer>
        <EntityType Name="Log_Operate">
          <Key>
            <PropertyRef Name="OperateID" />
          </Key>
          <Property Name="OperateID" Type="Guid" Nullable="false" />
          <Property Name="UserID" Type="Guid" />
          <Property Name="IP" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="TableName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="SourceUrl" Type="String" MaxLength="2000" Unicode="false" FixedLength="false" />
          <Property Name="Operate" Type="String" MaxLength="50" Unicode="true" FixedLength="false" />
          <Property Name="Detail" Type="String" MaxLength="Max" Unicode="true" FixedLength="false" />
          <Property Name="IsSuccess" Type="Boolean" />
          <Property Name="OperateTime" Type="DateTime" />
        </EntityType>
        <EntityType Name="VW_Sys_User">
          <Key>
            <PropertyRef Name="UserID" />
          </Key>
          <Property Name="UserID" Type="Guid" Nullable="false" />
          <Property Name="LoginID" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="Password" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
          <Property Name="Name" Type="String" MaxLength="50" Unicode="true" FixedLength="false" />
          <Property Name="RecordStatus" Type="Int32" />
          <Property Name="CreateUserID" Type="Guid" />
          <Property Name="CreateTime" Type="DateTime" />
          <Property Name="ModifyUserID" Type="Guid" />
          <Property Name="ModifyTime" Type="DateTime" />
        </EntityType>
      </Schema>
    </edmx:ConceptualModels>
    <!-- C-S mapping content -->
    <edmx:Mappings>
      <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
        <EntityContainerMapping StorageEntityContainer="EMISEntitiesLogStoreContainer" CdmEntityContainer="EMISNewLogContext">
          <EntitySetMapping Name="Log_Operate">
            <EntityTypeMapping TypeName="EMIS.Entities.Log.Log_Operate">
              <MappingFragment StoreEntitySet="Log_Operate">
                <ScalarProperty Name="OperateID" ColumnName="OperateID" />
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="IP" ColumnName="IP" />
                <ScalarProperty Name="TableName" ColumnName="TableName" />
                <ScalarProperty Name="SourceUrl" ColumnName="SourceUrl" />
                <ScalarProperty Name="Operate" ColumnName="Operate" />
                <ScalarProperty Name="Detail" ColumnName="Detail" />
                <ScalarProperty Name="IsSuccess" ColumnName="IsSuccess" />
                <ScalarProperty Name="OperateTime" ColumnName="OperateTime" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="VW_Sys_User">
            <EntityTypeMapping TypeName="EMIS.Entities.Log.VW_Sys_User">
              <MappingFragment StoreEntitySet="VW_Sys_User">
                <ScalarProperty Name="UserID" ColumnName="UserID" />
                <ScalarProperty Name="LoginID" ColumnName="LoginID" />
                <ScalarProperty Name="Password" ColumnName="Password" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="RecordStatus" ColumnName="RecordStatus" />
                <ScalarProperty Name="CreateUserID" ColumnName="CreateUserID" />
                <ScalarProperty Name="CreateTime" ColumnName="CreateTime" />
                <ScalarProperty Name="ModifyUserID" ColumnName="ModifyUserID" />
                <ScalarProperty Name="ModifyTime" ColumnName="ModifyTime" />
              </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/2008/10/edmx">
    <Connection>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
      </DesignerInfoPropertySet>
    </Connection>
    <Options>
      <DesignerInfoPropertySet>
        <DesignerProperty Name="ValidateOnBuild" Value="true" />
        <DesignerProperty Name="EnablePluralization" Value="False" />
        <DesignerProperty Name="IncludeForeignKeysInModel" Value="True" />
        <DesignerProperty Name="CodeGenerationStrategy" Value="无" />
      </DesignerInfoPropertySet>
    </Options>
    <!-- Diagram content (shape and connector positions) -->
    <Diagrams>
      <Diagram Name="EMISLogContext">
        <EntityTypeShape EntityType="EMIS.Entities.Log.Log_Operate" Width="1.5" PointX="0.75" PointY="0.75" Height="2.6594042968749996" IsExpanded="true" />
        <EntityTypeShape EntityType="EMIS.Entities.Log.VW_Sys_User" Width="1.5" PointX="2.75" PointY="0.75" Height="2.6594042968749996" IsExpanded="true" />
      </Diagram>
    </Diagrams>
  </Designer>
</edmx:Edmx>