From bcb4a4c4c2ba29045ed4727fc693b339770703cf Mon Sep 17 00:00:00 2001
From: ulysseskao <ulysseskao@gmail.com>
Date: Fri, 29 Apr 2016 18:44:20 +0800
Subject: [PATCH] add new model

---
 CCSTrace.Tests/CCSTrace.Tests.csproj                   |  125 
 CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.cs           |   66 
 CCSTrace/TPower/DMMS/Model/CCS/TMP.cs                  |   76 
 ORModel/BASEDB/DataModel.BASEDB.hbml                   |  189 
 CCSTrace.Tests/Properties/PexAssemblyInfo.cs           |    0 
 CCSTrace/TPower/DMMS/Model/CCS/CODELIST.hbm.xml        |   19 
 ORModel/EOS/DataModel-EOS.EVENTFACILITY.hbm.xml        |   33 
 ORModel/CCS/DataModel-CCS.EVENTQUERY.hbm.xml           |   42 
 CCSTrace/CCS/GlobalVariable.cs                         |   93 
 ORModel/CCS/DataModel-CCS.CODELIST.cs                  |  107 
 ORModel/EOS/DataModel-EOS.EVENTRECORD.cs               |  243 
 CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.cs        |  136 
 CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.cs      |  182 
 ORModel/CCS/DataModel-CCS.NUMCONTRAST.hbm.xml          |   16 
 CCSTrace/Global.asax                                   |    1 
 CCSTrace/NLog.config                                   |   42 
 CCSTrace/TPower/DMMS/Model/EOS/CODELIST.cs             |  102 
 ORModel/CCS/DataModel-CCS.ADDRCONTRAST.cs              |  110 
 CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.hbm.xml     |   16 
 CCSTrace/NLog.xsd                                      | 2601 ++++++++++
 CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.hbm.xml |   43 
 CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.cs              |   76 
 ORModel/EOS/DataModel-EOS.EVENTRECORD.hbm.xml          |   66 
 ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.hbm.xml       |   30 
 ORModel/CCS/DataModel-CCS.Diagram1.view                | 1813 +++++++
 CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs    |  102 
 ORModel/CCS/DataModel-CCS.CODELIST.hbm.xml             |   19 
 ORModel/EOS/DataModel-EOS.Diagram1.view                | 1558 ++++++
 CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.cs             |  256 
 CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.hbm.xml        |   72 
 CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.hbm.xml         |   15 
 CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.hbm.xml     |   66 
 CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.hbm.xml    |   19 
 ORModel/CCS/DataModel-CCS.edps                         |   94 
 CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.hbm.xml   |   36 
 CCSTrace/CCS/Domain/Codelist.cs                        |   25 
 ORModel/CCS/DataModel-CCS.NUMCONTRAST.cs               |  100 
 ORModel/BASEDB/DataModel.BASEDB.SXFMR.cs               |  263 +
 CCSTrace/App_Data/DBConfig.xml                         |    4 
 CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.hbm.xml   |   33 
 ORModel/BASEDB/DataModel.BASEDB.METER.cs               |  113 
 CCSTrace.Tests/CcsMainTest.cs                          |    0 
 CCSTrace/TPower/DMMS/Model/EOS/EVENT.hbm.xml           |   21 
 ORModel/BASEDB/DataModel.BASEDB.MSTADDR.hbm.xml        |   27 
 ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.cs        |  187 
 CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.hbm.xml         |   18 
 ORModel/CCS/DataModel-CCS.SCGROUP.hbm.xml              |   15 
 CCSTrace.Tests/Service1Test.AcceptCaseTest.g.cs        |    0 
 ORModel/CCS/DataModel-CCS.ADDRCONTRAST.hbm.xml         |   19 
 CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.cs        |  122 
 ORModel/EOS/DataModel-EOS.edps                         |   94 
 CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.cs           |  156 
 ORModel/EOS/DataModel-EOS.EVENT.hbm.xml                |   21 
 ORModel/BASEDB/DataModel.BASEDB.Diagram1.view          | 1483 +++++
 ORModel/CCS/DataModel-CCS.EVENTRECORD.cs               |  203 
 ORModel/CCS/DataModel-CCS.ALARMIP.hbm.xml              |   18 
 ORModel/CCS/DataModel-CCS.EVENTRECORD.hbm.xml          |   54 
 ORModel/BASEDB/DataModel.BASEDB.SXFMR.hbm.xml          |   72 
 CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.cs              |   66 
 CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.cs          |  196 
 ORModel/CCS/DataModel-CCS.TMP.cs                       |   83 
 CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.hbm.xml     |   18 
 CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.hbm.xml  |   30 
 ORModel/CCS/DataModel-CCS.DEPTCONTRAST.hbm.xml         |   19 
 ORModel/CCS/DataModel-CCS.SCGROUPTIME.cs               |   83 
 CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.cs       |  116 
 CCSTrace/TPower/DMMS/Model/CCS/TMP.hbm.xml             |   18 
 ORModel/EOS/DataModel-EOS.CRTAPOLOGY.hbm.xml           |   15 
 ORModel/EOS/DataModel-EOS.CODELIST.hbm.xml             |   19 
 ORModel/BASEDB/DataModel.BASEDB.MSTADDR.cs             |  113 
 ORModel/CCS/DataModel-CCS.ALARMIP.cs                   |   83 
 CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.hbm.xml   |   25 
 CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.cs          |   95 
 ORModel/EOS/DataModel-EOS.EVENTRECORDEX.cs             |  127 
 ORModel/EOS/DataModel-EOS.CRTAPOLOGY.cs                |   73 
 CCSTrace.Tests/Service1Test.cs                         |    0 
 CCSTrace.Tests/App_Data/DBConfig.xml                   |    5 
 ORModel/CCS/DataModel-CCS.SCGROUPTIME.hbm.xml          |   18 
 ORModel/EOS/DataModel-EOS.hbml                         |  186 
 ORModel/CCS/DataModel-CCS.DEPTCONTRAST.cs              |  107 
 CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.hbm.xml      |   15 
 CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.hbm.xml    |   19 
 CCSTrace/TPower/DMMS/Model/EOS/CODELIST.hbm.xml        |   19 
 ORModel/EOS/DataModel-EOS.EVENT.cs                     |   93 
 ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.hbm.xml     |   36 
 ORModel/EOS/DataModel-EOS.EVENTFACILITY.cs             |  133 
 CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.cs           |  106 
 ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.hbm.xml   |   43 
 ORModel/BASEDB/DataModel.BASEDB.edps                   |   94 
 CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.hbm.xml      |   42 
 CCSTrace.Tests/Properties/AssemblyInfo.cs              |    0 
 CCSTrace/TPower/DMMS/Model/BaseDB/METER.hbm.xml        |   27 
 CCSTrace/TPower/DMMS/Model/BaseDB/METER.cs             |  106 
 ORModel/EOS/DataModel-EOS.EVENTRECORDEX.hbm.xml        |   25 
 CCSTrace/packages.config                               |    9 
 CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.hbm.xml     |   54 
 ORModel/CCS/DataModel-CCS.TMP.hbm.xml                  |   18 
 CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.cs          |  236 
 CCSTrace/Global.asax.cs                                |   51 
 CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.hbm.xml      |   27 
 ORModel/CCS/DataModel-CCS.SCGROUP.cs                   |   73 
 CCSTrace/TPower/DMMS/Model/EOS/EVENT.cs                |   86 
 ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.cs          |  143 
 CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.cs         |  102 
 CCSTrace/CCS/Domain/CCSCaseState.cs                    |   19 
 CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.cs         |  105 
 ORModel/EOS/DataModel-EOS.CODELIST.cs                  |  107 
 ORModel/CCS/DataModel-CCS.EVENTQUERY.cs                |  163 
 CCSTrace.Tests/CcsMainTest.ConstructorTest.g.cs        |    0 
 ORModel/BASEDB/DataModel.BASEDB.METER.hbm.xml          |   27 
 CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.cs          |   76 
 ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.cs            |  123 
 ORModel/CCS/DataModel-CCS.hbml                         |  205 
 CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.cs        |  126 
 114 files changed, 15,515 insertions(+), 0 deletions(-)

diff --git a/CCSTrace.Tests/App_Data/DBConfig.xml b/CCSTrace.Tests/App_Data/DBConfig.xml
new file mode 100644
index 0000000..e446f71
--- /dev/null
+++ b/CCSTrace.Tests/App_Data/DBConfig.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="big5" ?>
+  <CCS>
+    <DBSetting DataSource = "NNTPC" UserId = "basedb" Password = "BASEDB000" ConnectionCount = "3" ShowError = "false" />
+    <ThreadSetting maxThreadSize="5" minThreadSize="1" />
+  </CCS>
\ No newline at end of file
diff --git a/CCSTrace.Tests/CCSTrace.Tests.csproj b/CCSTrace.Tests/CCSTrace.Tests.csproj
new file mode 100644
index 0000000..8209a91
--- /dev/null
+++ b/CCSTrace.Tests/CCSTrace.Tests.csproj
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{6CD5DE3F-1581-4F40-9971-264802B47DE6}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>CCSTrace.Tests</RootNamespace>
+    <AssemblyName>CCSTrace.Tests</AssemblyName>
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+    <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
+    <IsCodedUITest>False</IsCodedUITest>
+    <TestProjectType>UnitTest</TestProjectType>
+    <CodeContractsEnableRuntimeChecking>True</CodeContractsEnableRuntimeChecking>
+    <CodeContractsRuntimeCheckingLevel>Full</CodeContractsRuntimeCheckingLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+    <PlatformTarget>x86</PlatformTarget>
+    <OutputPath>bin\x86\Debug\</OutputPath>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+    <PlatformTarget>x86</PlatformTarget>
+    <OutputPath>bin\x86\Release\</OutputPath>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="Microsoft.ExtendedReflection, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\..\..\..\Dev\Microsoft\VisualStudio-14.0\Common7\IDE\Extensions\Microsoft\Pex\Microsoft.ExtendedReflection.dll</HintPath>
+    </Reference>
+    <Reference Include="Microsoft.Pex.Framework">
+      <HintPath>..\..\..\..\..\Dev\Microsoft\VisualStudio-14.0\Common7\IDE\Extensions\Microsoft\Pex\Microsoft.Pex.Framework.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
+      <Private>True</Private>
+    </Reference>
+    <Reference Include="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <Private>True</Private>
+    </Reference>
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\CCSTrace\CCSTrace.csproj">
+      <Project>{E56EE563-6708-4448-85C4-9AE3C01E1B86}</Project>
+      <Name>CCSTrace</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="CcsMainTest.ConstructorTest.g.cs">
+      <DependentUpon>CcsMainTest.cs</DependentUpon>
+    </Compile>
+    <Compile Include="CcsMainTest.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Properties\PexAssemblyInfo.cs" />
+    <Compile Include="Service1Test.AcceptCaseTest.g.cs">
+      <DependentUpon>Service1Test.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Service1Test.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="App_Data\DBConfig.xml">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
+  <Choose>
+    <When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
+      <ItemGroup>
+        <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+      </ItemGroup>
+    </When>
+    <Otherwise>
+      <ItemGroup>
+        <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
+      </ItemGroup>
+    </Otherwise>
+  </Choose>
+  <Choose>
+    <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
+      <ItemGroup>
+        <Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+        <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+        <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+        <Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+      </ItemGroup>
+    </When>
+  </Choose>
+  <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file
diff --git a/CCSTrace.Tests/CcsMainTest.ConstructorTest.g.cs b/CCSTrace.Tests/CcsMainTest.ConstructorTest.g.cs
new file mode 100644
index 0000000..fcff8ce
--- /dev/null
+++ b/CCSTrace.Tests/CcsMainTest.ConstructorTest.g.cs
Binary files differ
diff --git a/CCSTrace.Tests/CcsMainTest.cs b/CCSTrace.Tests/CcsMainTest.cs
new file mode 100644
index 0000000..b5887cb
--- /dev/null
+++ b/CCSTrace.Tests/CcsMainTest.cs
Binary files differ
diff --git a/CCSTrace.Tests/Properties/AssemblyInfo.cs b/CCSTrace.Tests/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..22a8923
--- /dev/null
+++ b/CCSTrace.Tests/Properties/AssemblyInfo.cs
Binary files differ
diff --git a/CCSTrace.Tests/Properties/PexAssemblyInfo.cs b/CCSTrace.Tests/Properties/PexAssemblyInfo.cs
new file mode 100644
index 0000000..6f7a005
--- /dev/null
+++ b/CCSTrace.Tests/Properties/PexAssemblyInfo.cs
Binary files differ
diff --git a/CCSTrace.Tests/Service1Test.AcceptCaseTest.g.cs b/CCSTrace.Tests/Service1Test.AcceptCaseTest.g.cs
new file mode 100644
index 0000000..a0a2370
--- /dev/null
+++ b/CCSTrace.Tests/Service1Test.AcceptCaseTest.g.cs
Binary files differ
diff --git a/CCSTrace.Tests/Service1Test.cs b/CCSTrace.Tests/Service1Test.cs
new file mode 100644
index 0000000..438bfca
--- /dev/null
+++ b/CCSTrace.Tests/Service1Test.cs
Binary files differ
diff --git a/CCSTrace/App_Data/DBConfig.xml b/CCSTrace/App_Data/DBConfig.xml
new file mode 100644
index 0000000..c9641d1
--- /dev/null
+++ b/CCSTrace/App_Data/DBConfig.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="big5" ?>
+  <CCS>
+    <DBSetting DataSource = "nntpc" UserId = "basedb" Password = "BASEDB000" ConnectionCount = "3" ShowError = "false" />
+  </CCS>
\ No newline at end of file
diff --git a/CCSTrace/CCS/Domain/CCSCaseState.cs b/CCSTrace/CCS/Domain/CCSCaseState.cs
new file mode 100644
index 0000000..1f46eec
--- /dev/null
+++ b/CCSTrace/CCS/Domain/CCSCaseState.cs
@@ -0,0 +1,19 @@
+namespace CCSTrace.CCS.Domain
+{
+    // ReSharper disable once InconsistentNaming
+    public enum CCSCaseState
+    {
+        EventInitial = 1000,// Create new event
+        EventProcess = 1001,// Trace and process event in CCS WebService
+        WaitForDespatch = 1002, // create DesRec
+        EventDespatched = 1003,
+        WaitForSponsor = 1005, // create SponRec
+        WaitForRepair = 1006, // create RepairRec
+        EventFinsh = 1007, // with no RepairRecord
+        EventComplete = 1008, // with RepairRecord
+        EventOver = 1009, // with RepairRecord but not upload
+        EventReturn = 2001, // Return the EventRecord
+        AlarmFailure = 2002, // EventRecord AlarmFailure
+        EventTrasnfer = 2003 // EventRecord Transfer to Process
+    }
+}
\ No newline at end of file
diff --git a/CCSTrace/CCS/Domain/Codelist.cs b/CCSTrace/CCS/Domain/Codelist.cs
new file mode 100644
index 0000000..1552024
--- /dev/null
+++ b/CCSTrace/CCS/Domain/Codelist.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+
+namespace CCSTrace.CCS.Domain
+{
+    public class Codelist
+    {
+        public Codelist(int indexId, int keyId, string item, string content)
+        {
+            IndexId = indexId;
+            KeyId = keyId;
+            Item = item;
+            Content = content;
+        }
+
+        public int IndexId { get; }
+        public int KeyId { get; }
+
+        public string Item { get; }
+
+        public string Content { get; }
+    }
+}
\ No newline at end of file
diff --git a/CCSTrace/CCS/GlobalVariable.cs b/CCSTrace/CCS/GlobalVariable.cs
new file mode 100644
index 0000000..734de24
--- /dev/null
+++ b/CCSTrace/CCS/GlobalVariable.cs
@@ -0,0 +1,93 @@
+using System;
+using CCSTrace.CCS.Object;
+
+namespace CCSTrace.CCS
+{
+    public class GlobalVariable
+    {
+        public const int Dept = 31; /* 受理部門 */
+
+        public const int CcsEventBrief = 11; /* 事故原因(FOR CCS) */
+        public const int CcsDept = 12; /* 部門(FOR CCS) */
+
+        // 是否颱風案件
+        public const int IsDisaster = 1;
+        public static int NotDisaster = 0;
+
+        /* Event Type */
+        public static int NotImportCase = 0;
+        public static int IsImportCase = 1;
+
+        /* Level Type */
+        public static int NoLevel = 0;
+        public static int ALevel = 1;
+        public static int BLevel = 2;
+        public static int CLevel = 3;
+
+        /* Recall Type */
+        public static int NotReCall = 0;
+        public static int IsReCall = 1;
+
+        /* Trace_Finish */
+        public static int TraceStill = 0;
+        public static int TraceFinish = 1;
+
+        /* CaseType */
+        public const int OriginalCase = 0;
+        public const int ParentCase = 1;
+        public const int ChildCase = 2;
+
+        /* Equipment */
+        public const int Breaker = 108;
+        public const int Jumper = 109;
+        public const int Switch = 114;
+        public const int Sxfmr = 115;
+        public const int Hicustomer = 107;
+
+        /* Tracer Return Status */
+        public const int TraceFailure = 0;
+        public const int Success = 1;
+        public const int FailureByDb = 2;
+        public const int NoSxfmr = 3;
+        public const int CaseTypeChanged = 4;
+        public const int CaseTransfer = 5;
+        public const int FdrLocked = 6;
+        public const int TraceCounts3 = 7;
+
+        /* Error Message */
+        public const int SameCustomer = 5001; /* 重複來電 */
+        public const int NoMeter = 5002; /* 找不到電號 */
+        public const int Debt = 5003; /* 欠費停電 */
+        public const int NoSupplyElc = 5004; /* 未供電線段 */
+
+        /* Alerm */
+        public static int AlermPort { get; set; } = 3000;
+
+        /* ShowError */
+        public static bool ShowError { get; set; } = false;
+
+        //private static string m_OracleThinConn = "jdbc:oracle:thin:";
+        //private static string m_OracleThinUser = "";
+        //private static string m_OracleThinPass = "";
+        //private static string m_strThinConnRegPath = "SOFTWARE\\Origo\\OMS\\Login";
+        //private static string m_strThinConnRegName = "thin";
+        //private static string m_strThinConnRegUser = "DBUser";
+        //private static string m_strThinConnRegPassWord = "DBPassWord";
+
+        public static string CcsListPath = "c:\\OMS\\BIN\\CCS\\";
+
+        public static string ConnectionString { get; set; } = String.Empty;
+        public static string TraceConnectionString { get; set; } = String.Empty;
+
+        // Date Converter
+        //public static CCS.Function.TransferDate Convert = new CCS.Function.TransferDate();
+
+        public static EosCodelist EosCodelist { get; set; } = null;
+
+        public static CcsCodelist CcsCodelist { get; set; } = null;
+        public static int MinThreadSize { get; set; } = 1;
+        public static int MaxThreadSize { get; set; } = 5;
+        public static int MaxConnectionCount { get; set; } = 1;
+        public static int IdleTimeout { get; set; } = 10;
+    }
+}
\ No newline at end of file
diff --git a/CCSTrace/Global.asax b/CCSTrace/Global.asax
new file mode 100644
index 0000000..2374782
--- /dev/null
+++ b/CCSTrace/Global.asax
@@ -0,0 +1 @@
+<%@ Application Codebehind="Global.asax.cs" Inherits="CCSTrace.Global" Language="C#" %>
diff --git a/CCSTrace/Global.asax.cs b/CCSTrace/Global.asax.cs
new file mode 100644
index 0000000..eedd5fd
--- /dev/null
+++ b/CCSTrace/Global.asax.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.SessionState;
+using CCSTrace.CCS;
+
+namespace CCSTrace
+{
+    public class Global : System.Web.HttpApplication
+    {
+
+        protected void Application_Start(object sender, EventArgs e)
+        {
+            CcsMain appMain = CcsMain.Instance();
+            appMain.Startup();
+        }
+
+        protected void Session_Start(object sender, EventArgs e)
+        {
+
+        }
+
+        protected void Application_BeginRequest(object sender, EventArgs e)
+        {
+
+        }
+
+        protected void Application_AuthenticateRequest(object sender, EventArgs e)
+        {
+
+        }
+
+        protected void Application_Error(object sender, EventArgs e)
+        {
+
+        }
+
+        protected void Session_End(object sender, EventArgs e)
+        {
+
+        }
+
+        protected void Application_End(object sender, EventArgs e)
+        {
+            CcsMain appMain = CcsMain.Instance();
+            appMain.Shutdown();
+        }
+    }
+}
\ No newline at end of file
diff --git a/CCSTrace/NLog.config b/CCSTrace/NLog.config
new file mode 100644
index 0000000..a5fc24d
--- /dev/null
+++ b/CCSTrace/NLog.config
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+      xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
+      autoReload="true"
+      throwExceptions="false"
+      internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" >
+
+
+  <!-- optional, add some variabeles
+  https://github.com/nlog/NLog/wiki/Configuration-file#variables
+  -->
+  <variable name="myvar" value="myvalue"/>
+
+  <!-- 
+  See https://github.com/nlog/nlog/wiki/Configuration-file 
+  for information on customizing logging rules and outputs.
+   -->
+  <targets>
+
+    <!-- 
+    add your targets here 
+    See https://github.com/nlog/NLog/wiki/Targets for possible targets.
+    See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
+    -->
+
+    <!--
+    Write events to a file with the date in the filename. 
+    <target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
+            layout="${longdate} ${uppercase:${level}} ${message}" />
+    -->
+  </targets>
+
+  <rules>
+    <!-- add your logging rules here -->
+
+    <!--
+    Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace)  to "f"
+    <logger name="*" minlevel="Debug" writeTo="f" />
+    -->
+  </rules>
+</nlog>
\ No newline at end of file
diff --git a/CCSTrace/NLog.xsd b/CCSTrace/NLog.xsd
new file mode 100644
index 0000000..dc821bc
--- /dev/null
+++ b/CCSTrace/NLog.xsd
@@ -0,0 +1,2601 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema id="NLog" targetNamespace="http://www.nlog-project.org/schemas/NLog.xsd" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
+  <xs:element name="nlog" type="NLogConfiguration" />
+  <xs:complexType name="NLogConfiguration">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="extensions" type="NLogExtensions" />
+      <xs:element name="include" type="NLogInclude" />
+      <xs:element name="variable" type="NLogVariable" />
+      <xs:element name="targets" type="NLogTargets" />
+      <xs:element name="rules" type="NLogRules" />
+      <xs:element name="time" type="TimeSource" />
+    </xs:choice>
+    <xs:attribute name="autoReload" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Watch config file for changes and reload automatically.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="internalLogToConsole" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Print internal NLog messages to the console. Default value is: false</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="internalLogToConsoleError" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Print internal NLog messages to the console error output. Default value is: false</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="internalLogFile" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Write internal NLog messages to the specified file.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="internalLogLevel" type="NLogLevel">
+      <xs:annotation>
+        <xs:documentation>Log level threshold for internal log messages. Default value is: Info.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="globalThreshold" type="NLogLevel">
+      <xs:annotation>
+        <xs:documentation>Global log level threshold for application log messages. Messages below this level won't be logged..</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="throwExceptions" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Pass NLog internal exceptions to the application. Default value is: false.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="internalLogToTrace" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Write internal NLog messages to the the System.Diagnostics.Trace. Default value is: false</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLogTargets">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="default-wrapper" type="WrapperTargetBase" />
+      <xs:element name="default-target-parameters" type="Target" />
+      <xs:element name="target" type="Target" />
+      <xs:element name="wrapper-target" type="WrapperTargetBase" />
+      <xs:element name="compound-target" type="CompoundTargetBase" />
+    </xs:choice>
+    <xs:attribute name="async" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes).</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLogRules">
+    <xs:sequence minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="logger" type="NLogLoggerRule" />
+    </xs:sequence>
+  </xs:complexType>
+  <xs:complexType name="NLogExtensions">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="add" type="NLogExtensionsAdd" />
+    </xs:choice>
+  </xs:complexType>
+  <xs:complexType name="NLogExtensionsAdd">
+    <xs:attribute name="prefix" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Prefix for targets/layout renderers/filters/conditions loaded from this assembly.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="assemblyFile" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Load NLog extensions from the specified file (*.dll)</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="assembly" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Load NLog extensions from the specified assembly. Assembly name should be fully qualified.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLogLoggerRule">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="filters" type="NLogFilters" />
+    </xs:choice>
+    <xs:attribute name="name" use="optional">
+      <xs:annotation>
+        <xs:documentation>Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="levels" type="NLogLevelList">
+      <xs:annotation>
+        <xs:documentation>Comma separated list of levels that this rule matches.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="minlevel" type="NLogLevel">
+      <xs:annotation>
+        <xs:documentation>Minimum level that this rule matches.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="maxlevel" type="NLogLevel">
+      <xs:annotation>
+        <xs:documentation>Maximum level that this rule matches.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="level" type="NLogLevel">
+      <xs:annotation>
+        <xs:documentation>Level that this rule matches.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="writeTo" type="NLogTargetIDList">
+      <xs:annotation>
+        <xs:documentation>Comma separated list of target names.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="final" type="xs:boolean" default="false">
+      <xs:annotation>
+        <xs:documentation>Ignore further rules if this one matches.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="enabled" type="xs:boolean" default="true">
+      <xs:annotation>
+        <xs:documentation>Enable or disable logging rule. Disabled rules are ignored.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLogFilters">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="when" type="when" />
+      <xs:element name="whenContains" type="whenContains" />
+      <xs:element name="whenEqual" type="whenEqual" />
+      <xs:element name="whenNotContains" type="whenNotContains" />
+      <xs:element name="whenNotEqual" type="whenNotEqual" />
+    </xs:choice>
+  </xs:complexType>
+  <xs:simpleType name="NLogLevel">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Off" />
+      <xs:enumeration value="Trace" />
+      <xs:enumeration value="Debug" />
+      <xs:enumeration value="Info" />
+      <xs:enumeration value="Warn" />
+      <xs:enumeration value="Error" />
+      <xs:enumeration value="Fatal" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="LineEndingMode">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Default" />
+      <xs:enumeration value="CRLF" />
+      <xs:enumeration value="CR" />
+      <xs:enumeration value="LF" />
+      <xs:enumeration value="None" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLogLevelList">
+    <xs:restriction base="xs:string">
+      <xs:pattern value="(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="NLogInclude">
+    <xs:attribute name="file" type="SimpleLayoutAttribute" use="required">
+      <xs:annotation>
+        <xs:documentation>Name of the file to be included. The name is relative to the name of the current config file.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="ignoreErrors" type="xs:boolean" use="optional" default="false">
+      <xs:annotation>
+        <xs:documentation>Ignore any errors in the include file.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLogVariable">
+    <xs:attribute name="name" type="xs:string" use="required">
+      <xs:annotation>
+        <xs:documentation>Variable name.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="value" type="SimpleLayoutAttribute" use="required">
+      <xs:annotation>
+        <xs:documentation>Variable value.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:simpleType name="NLogTargetIDList">
+    <xs:restriction base="xs:string">
+      <xs:pattern value="(|([a-zA-Z][a-zA-Z0-9_\-]*))(,([a-zA-Z][a-zA-Z0-9_\-]*))*" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="Target" abstract="true"></xs:complexType>
+  <xs:complexType name="TargetRef">
+    <xs:attribute name="name" type="xs:string" use="required" />
+  </xs:complexType>
+  <xs:complexType name="WrapperTargetBase" abstract="true">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="target" type="Target" minOccurs="1" maxOccurs="1" />
+          <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
+          <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
+          <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+          <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+          <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+        </xs:choice>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="CompoundTargetBase" abstract="true">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="target" type="Target" minOccurs="1" maxOccurs="unbounded" />
+          <xs:element name="wrapper-target" type="WrapperTargetBase" minOccurs="1" maxOccurs="1" />
+          <xs:element name="compound-target" type="CompoundTargetBase" minOccurs="1" maxOccurs="1" />
+          <xs:element name="target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+          <xs:element name="wrapper-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+          <xs:element name="compound-target-ref" type="TargetRef" minOccurs="1" maxOccurs="1" />
+        </xs:choice>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Layout"></xs:complexType>
+  <xs:complexType name="Filter" abstract="true"></xs:complexType>
+  <xs:complexType name="TimeSource" abstract="true"></xs:complexType>
+  <xs:simpleType name="SimpleLayoutAttribute">
+    <xs:restriction base="xs:string">
+      <xs:pattern value=".*" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="Condition">
+    <xs:restriction base="xs:string">
+      <xs:minLength value="1" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="AspResponse">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="addComments" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="addComments" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to add &lt;!-- --&gt; comments around all written texts.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="AsyncWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="batchSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="overflowAction" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction" />
+          <xs:element name="queueLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="timeToSleepBetweenBatches" minOccurs="0" maxOccurs="1" type="xs:integer" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="batchSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Number of log events that should be processed in a batch by the lazy writer thread.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="overflowAction" type="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action to be taken when the lazy writer thread request queue count exceeds the set limit.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="queueLimit" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Limit on the number of requests in the lazy writer thread request queue.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="timeToSleepBetweenBatches" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Time in milliseconds to sleep between batches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.Wrappers.AsyncTargetWrapperOverflowAction">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Grow" />
+      <xs:enumeration value="Discard" />
+      <xs:enumeration value="Block" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="AutoFlushWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="BufferingWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="flushTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="slidingTimeout" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="bufferSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Number of log events to be buffered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="flushTimeout" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="slidingTimeout" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to use sliding timeout.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Chainsaw">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="onConnectionOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetConnectionsOverflowAction" />
+          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
+          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="maxConnections" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="maxQueueSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
+          <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Encoding to be used.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Instance of  that is used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxMessageSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum message size in bytes.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="newLine" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onConnectionOverflow" type="NLog.Targets.NetworkTargetConnectionsOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action that should be taken if the will be more connections than .</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="keepConnection" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="connectionCacheSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxConnections" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum current connections. 0 = no maximum.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="address" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Network address.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxQueueSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum queue size.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeSourceInfo" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ndcItemSeparator" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>NDC item separator.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeNdc" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include  stack contents.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeCallSite" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="appInfo" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>AppInfo field. By default it's the friendly name of the current AppDomain.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeNLogData" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include NLog-specific extensions to log4j schema.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeMdc" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include  dictionary contents.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.NetworkTargetConnectionsOverflowAction">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="AllowNewConnnection" />
+      <xs:enumeration value="DiscardMessage" />
+      <xs:enumeration value="Block" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLog.Targets.NetworkTargetOverflowAction">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Error" />
+      <xs:enumeration value="Split" />
+      <xs:enumeration value="Discard" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="NLog.Targets.NLogViewerParameterInfo">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+    </xs:choice>
+    <xs:attribute name="layout" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Viewer parameter name.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="ColoredConsole">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleRowHighlightingRule" />
+          <xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleWordHighlightingRule" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Text to be rendered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="useDefaultRowHighlightingRules" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to use default row highlighting rules.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>The encoding for writing messages to the .</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="errorStream" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.ConsoleOutputColor">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Black" />
+      <xs:enumeration value="DarkBlue" />
+      <xs:enumeration value="DarkGreen" />
+      <xs:enumeration value="DarkCyan" />
+      <xs:enumeration value="DarkRed" />
+      <xs:enumeration value="DarkMagenta" />
+      <xs:enumeration value="DarkYellow" />
+      <xs:enumeration value="Gray" />
+      <xs:enumeration value="DarkGray" />
+      <xs:enumeration value="Blue" />
+      <xs:enumeration value="Green" />
+      <xs:enumeration value="Cyan" />
+      <xs:enumeration value="Red" />
+      <xs:enumeration value="Magenta" />
+      <xs:enumeration value="Yellow" />
+      <xs:enumeration value="White" />
+      <xs:enumeration value="NoChange" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="NLog.Targets.ConsoleRowHighlightingRule">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+      <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+      <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+    </xs:choice>
+    <xs:attribute name="condition" type="Condition">
+      <xs:annotation>
+        <xs:documentation>Condition that must be met in order to set the specified foreground and background color.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
+      <xs:annotation>
+        <xs:documentation>Background color.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
+      <xs:annotation>
+        <xs:documentation>Foreground color.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLog.Targets.ConsoleWordHighlightingRule">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+      <xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
+      <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
+      <xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+      <xs:element name="compileRegex" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+      <xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+      <xs:element name="foregroundColor" minOccurs="0" maxOccurs="1" type="NLog.Targets.ConsoleOutputColor" />
+    </xs:choice>
+    <xs:attribute name="ignoreCase" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Indicates whether to ignore case when comparing texts.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="regex" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Regular expression to be matched. You must specify either text or regex.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="text" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Text to be matched. You must specify either text or regex.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="wholeWords" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Indicates whether to match whole words only.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="compileRegex" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Compile the ? This can improve the performance, but at the costs of more memory usage. If false, the Regex Cache is used.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="backgroundColor" type="NLog.Targets.ConsoleOutputColor">
+      <xs:annotation>
+        <xs:documentation>Background color.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="foregroundColor" type="NLog.Targets.ConsoleOutputColor">
+      <xs:annotation>
+        <xs:documentation>Foreground color.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="Console">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="error" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Text to be rendered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="error" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to send the log messages to the standard error instead of the standard output.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>The encoding for writing messages to the .</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Database">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="connectionStringName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="dbDatabase" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="dbHost" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="dbPassword" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="dbProvider" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="dbUserName" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="useTransactions" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="installConnectionString" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="install-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
+          <xs:element name="uninstall-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
+          <xs:element name="commandText" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="commandType" minOccurs="0" maxOccurs="1" type="System.Data.CommandType" />
+          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="connectionStringName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the connection string (as specified in &lt;connectionStrings&gt; configuration section.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="dbDatabase" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="dbHost" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="dbPassword" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="dbProvider" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the database provider.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="dbUserName" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="keepConnection" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to keep the database connection open between the log events.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="useTransactions" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Obsolete - value will be ignored! The logging code always runs outside of transaction. Gets or sets a value indicating whether to use database transactions. Some data providers require this.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="installConnectionString" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="commandText" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Text of the SQL command to be run on each log level.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="commandType" type="System.Data.CommandType">
+          <xs:annotation>
+            <xs:documentation>Type of the SQL command to be run on each log level.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="System.Data.CommandType">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Text" />
+      <xs:enumeration value="StoredProcedure" />
+      <xs:enumeration value="TableDirect" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="NLog.Targets.DatabaseCommandInfo">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="commandType" minOccurs="0" maxOccurs="1" type="System.Data.CommandType" />
+      <xs:element name="connectionString" minOccurs="0" maxOccurs="1" type="Layout" />
+      <xs:element name="ignoreFailures" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+      <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseParameterInfo" />
+      <xs:element name="text" minOccurs="0" maxOccurs="1" type="Layout" />
+    </xs:choice>
+    <xs:attribute name="commandType" type="System.Data.CommandType">
+      <xs:annotation>
+        <xs:documentation>Type of the command.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="connectionString" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Connection string to run the command against. If not provided, connection string from the target is used.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="ignoreFailures" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Indicates whether to ignore failures.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="text" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Command text.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="NLog.Targets.DatabaseParameterInfo">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+      <xs:element name="precision" minOccurs="0" maxOccurs="1" type="xs:byte" />
+      <xs:element name="scale" minOccurs="0" maxOccurs="1" type="xs:byte" />
+      <xs:element name="size" minOccurs="0" maxOccurs="1" type="xs:integer" />
+    </xs:choice>
+    <xs:attribute name="layout" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Database parameter name.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="precision" type="xs:byte">
+      <xs:annotation>
+        <xs:documentation>Database parameter precision.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="scale" type="xs:byte">
+      <xs:annotation>
+        <xs:documentation>Database parameter scale.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="size" type="xs:integer">
+      <xs:annotation>
+        <xs:documentation>Database parameter size.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="Debugger">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Text to be rendered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Debug">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="EventLog">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="category" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="eventId" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="log" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="machineName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="source" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.EventLogTargetOverflowAction" />
+          <xs:element name="entryType" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="maxMessageLength" minOccurs="0" maxOccurs="1" type="xs:integer" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="category" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout that renders event Category.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="eventId" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout that renders event ID.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="log" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the Event Log to write to. This can be System, Application or any user-defined name.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="machineName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the machine on which Event Log service is running.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="source" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Value to be used as the event Source.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onOverflow" type="NLog.Targets.EventLogTargetOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action to take if the message is larger than the  option.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="entryType" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Optional entrytype. When not set, or when not convertable to  then determined by </xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxMessageLength" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Message length limit to write to the Event Log.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.EventLogTargetOverflowAction">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Truncate" />
+      <xs:enumeration value="Split" />
+      <xs:enumeration value="Discard" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="FallbackGroup">
+    <xs:complexContent>
+      <xs:extension base="CompoundTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="returnToFirstOnSuccess" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="returnToFirstOnSuccess" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to return to the first target after any successful write.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="File">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
+          <xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
+          <xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
+          <xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
+          <xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="enableArchiveFileCompression" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="forceManaged" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="cleanupFileName" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="archiveDateFormat" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="archiveOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" />
+          <xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="maxLogFilenames" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Text to be rendered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>File encoding.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="lineEnding" type="LineEndingMode">
+          <xs:annotation>
+            <xs:documentation>Line ending mode.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
+          <xs:annotation>
+            <xs:documentation>Way file archives are numbered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="archiveFileName" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Name of the file to be used for an archive.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="archiveEvery" type="NLog.Targets.FileArchivePeriod">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to automatically archive log files every time the specified time passes.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="archiveAboveSize" type="xs:long">
+          <xs:annotation>
+            <xs:documentation>Size in bytes above which log files will be automatically archived. Warning: combining this with  isn't supported. We cannot create multiple archive files, if they should have the same name. Choose: </xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxArchiveFiles" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="enableArchiveFileCompression" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to compress archive files into the zip archive format.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="forceManaged" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="cleanupFileName" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="fileName" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Name of the file to write to.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="archiveDateFormat" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Value specifying the date format to use when archiving files.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="archiveOldFileOnStartup" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to archive old log file on startup.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="createDirs" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to create directories if they do not exist.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="enableFileDelete" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to enable log file(s) to be deleted.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="fileAttributes" type="NLog.Targets.Win32FileAttributes">
+          <xs:annotation>
+            <xs:documentation>File attributes (Windows only).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="concurrentWrites" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on the same host.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="concurrentWriteAttemptDelay" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxLogFilenames" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum number of log filenames that should be stored as existing.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="networkWrites" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="openFileCacheSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="openFileCacheTimeout" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="bufferSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Log file buffer size in bytes.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="autoFlush" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="concurrentWriteAttempts" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Number of times the write is appended on the file before NLog discards the log message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="keepFileOpen" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.ArchiveNumberingMode">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Sequence" />
+      <xs:enumeration value="Rolling" />
+      <xs:enumeration value="Date" />
+      <xs:enumeration value="DateAndSequence" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLog.Targets.FileArchivePeriod">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="None" />
+      <xs:enumeration value="Year" />
+      <xs:enumeration value="Month" />
+      <xs:enumeration value="Day" />
+      <xs:enumeration value="Hour" />
+      <xs:enumeration value="Minute" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLog.Targets.Win32FileAttributes">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="ReadOnly" />
+      <xs:enumeration value="Hidden" />
+      <xs:enumeration value="System" />
+      <xs:enumeration value="Archive" />
+      <xs:enumeration value="Device" />
+      <xs:enumeration value="Normal" />
+      <xs:enumeration value="Temporary" />
+      <xs:enumeration value="SparseFile" />
+      <xs:enumeration value="ReparsePoint" />
+      <xs:enumeration value="Compressed" />
+      <xs:enumeration value="NotContentIndexed" />
+      <xs:enumeration value="Encrypted" />
+      <xs:enumeration value="WriteThrough" />
+      <xs:enumeration value="NoBuffering" />
+      <xs:enumeration value="DeleteOnClose" />
+      <xs:enumeration value="PosixSemantics" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="FilteringWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="condition" type="Condition">
+          <xs:annotation>
+            <xs:documentation>Condition expression. Log events who meet this condition will be forwarded to the wrapped target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="ImpersonatingWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="domain" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="impersonationLevel" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityImpersonationLevel" />
+          <xs:element name="logOnProvider" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.LogOnProviderType" />
+          <xs:element name="logOnType" minOccurs="0" maxOccurs="1" type="NLog.Targets.Wrappers.SecurityLogOnType" />
+          <xs:element name="password" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="revertToSelf" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="userName" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="domain" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Windows domain name to change context to.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="impersonationLevel" type="NLog.Targets.Wrappers.SecurityImpersonationLevel">
+          <xs:annotation>
+            <xs:documentation>Required impersonation level.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="logOnProvider" type="NLog.Targets.Wrappers.LogOnProviderType">
+          <xs:annotation>
+            <xs:documentation>Type of the logon provider.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="logOnType" type="NLog.Targets.Wrappers.SecurityLogOnType">
+          <xs:annotation>
+            <xs:documentation>Logon Type.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="password" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>User account password.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="revertToSelf" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to revert to the credentials of the process instead of impersonating another user.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="userName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Username to change context to.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.Wrappers.SecurityImpersonationLevel">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Anonymous" />
+      <xs:enumeration value="Identification" />
+      <xs:enumeration value="Impersonation" />
+      <xs:enumeration value="Delegation" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLog.Targets.Wrappers.LogOnProviderType">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Default" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLog.Targets.Wrappers.SecurityLogOnType">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Interactive" />
+      <xs:enumeration value="Network" />
+      <xs:enumeration value="Batch" />
+      <xs:enumeration value="Service" />
+      <xs:enumeration value="NetworkClearText" />
+      <xs:enumeration value="NewCredentials" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="LogReceiverService">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="endpointAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="endpointConfigurationName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="useOneWayContract" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="clientId" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="includeEventProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
+          <xs:element name="useBinaryEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="endpointAddress" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Endpoint address.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="endpointConfigurationName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the endpoint configuration in WCF configuration file.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="useOneWayContract" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply)</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="clientId" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Client ID.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeEventProperties" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include per-event properties in the payload sent to the server.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="useBinaryEncoding" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to use binary message encoding.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="NLog.Targets.MethodCallParameter">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+      <xs:element name="type" minOccurs="0" maxOccurs="1" type="xs:string" />
+    </xs:choice>
+    <xs:attribute name="layout" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Layout that should be use to calculate the value for the parameter.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Name of the parameter.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="type" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Type of the parameter.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="Mail">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="html" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="addNewLines" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="cc" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="to" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="bcc" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="body" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="subject" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="from" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="replaceNewlineWithBrTagInHtml" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="priority" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="timeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="smtpServer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="smtpAuthentication" minOccurs="0" maxOccurs="1" type="NLog.Targets.SmtpAuthenticationMode" />
+          <xs:element name="smtpUserName" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="smtpPassword" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="enableSsl" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="smtpPort" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="useSystemNetMailSettings" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="pickupDirectoryLocation" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="deliveryMethod" minOccurs="0" maxOccurs="1" type="System.Net.Mail.SmtpDeliveryMethod" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Text to be rendered.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="html" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to send message as HTML instead of plain text.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Encoding to be used for sending e-mail.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="addNewLines" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to add new lines between log entries.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="cc" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="to" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="bcc" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="body" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Mail message body (repeated for each log message send in one mail).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="subject" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Mail subject.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="from" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Sender's email address (e.g. joe@domain.com).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="replaceNewlineWithBrTagInHtml" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether NewLine characters in the body should be replaced with  tags.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="priority" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Priority used for sending mails.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="timeout" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Indicates the SMTP client timeout.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="smtpServer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>SMTP Server to be used for sending.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="smtpAuthentication" type="NLog.Targets.SmtpAuthenticationMode">
+          <xs:annotation>
+            <xs:documentation>SMTP Authentication mode.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="smtpUserName" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="smtpPassword" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="enableSsl" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether SSL (secure sockets layer) should be used when communicating with SMTP server.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="smtpPort" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Port number that SMTP Server is listening on.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="useSystemNetMailSettings" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether the default Settings from System.Net.MailSettings should be used.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="pickupDirectoryLocation" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Folder where applications save mail messages to be processed by the local SMTP server.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="deliveryMethod" type="System.Net.Mail.SmtpDeliveryMethod">
+          <xs:annotation>
+            <xs:documentation>Specifies how outgoing email messages will be handled.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.SmtpAuthenticationMode">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="None" />
+      <xs:enumeration value="Basic" />
+      <xs:enumeration value="Ntlm" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="System.Net.Mail.SmtpDeliveryMethod">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Network" />
+      <xs:enumeration value="SpecifiedPickupDirectory" />
+      <xs:enumeration value="PickupDirectoryFromIis" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="Memory">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="MSMQ">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="useXmlEncoding" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="checkIfQueueExists" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="createQueueIfNotExists" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="label" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="queue" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="recoverable" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Encoding to be used when writing text to the queue.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="useXmlEncoding" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to use the XML format when serializing message. This will also disable creating queues.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="checkIfQueueExists" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to check if a queue exists before writing to it.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="createQueueIfNotExists" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to create the queue if it doesn't exists.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="label" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Label to associate with each message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="queue" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Name of the queue to write to.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="recoverable" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to use recoverable messages (with guaranteed delivery).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="MethodCall">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="className" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="className" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Class name.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="methodName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Method name. The method must be public and static. Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx e.g.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Network">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="onConnectionOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetConnectionsOverflowAction" />
+          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
+          <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="maxConnections" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="maxQueueSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Encoding to be used.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxMessageSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum message size in bytes.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="newLine" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onConnectionOverflow" type="NLog.Targets.NetworkTargetConnectionsOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action that should be taken if the will be more connections than .</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="address" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Network address.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="connectionCacheSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="keepConnection" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxConnections" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum current connections. 0 = no maximum.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxQueueSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum queue size.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="NLogViewer">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="maxMessageSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="newLine" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="onConnectionOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetConnectionsOverflowAction" />
+          <xs:element name="onOverflow" minOccurs="0" maxOccurs="1" type="NLog.Targets.NetworkTargetOverflowAction" />
+          <xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="connectionCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="maxConnections" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="address" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="maxQueueSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="includeSourceInfo" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="ndcItemSeparator" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.NLogViewerParameterInfo" />
+          <xs:element name="includeNdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="includeCallSite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="appInfo" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="includeNLogData" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="includeMdc" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Encoding to be used.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Instance of  that is used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxMessageSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum message size in bytes.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="newLine" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to append newline at the end of log message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onConnectionOverflow" type="NLog.Targets.NetworkTargetConnectionsOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action that should be taken if the will be more connections than .</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="onOverflow" type="NLog.Targets.NetworkTargetOverflowAction">
+          <xs:annotation>
+            <xs:documentation>Action that should be taken if the message is larger than maxMessageSize.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="keepConnection" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to keep connection open whenever possible.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="connectionCacheSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Size of the connection cache (number of connections which are kept alive).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxConnections" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum current connections. 0 = no maximum.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="address" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Network address.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="maxQueueSize" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Maximum queue size.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeSourceInfo" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include source info (file name and line number) in the information sent over the network.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ndcItemSeparator" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>NDC item separator.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeNdc" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include  stack contents.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeCallSite" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include call site (class and method name) in the information sent over the network.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="appInfo" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>AppInfo field. By default it's the friendly name of the current AppDomain.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeNLogData" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include NLog-specific extensions to log4j schema.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeMdc" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to include  dictionary contents.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Null">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="formatMessage" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="formatMessage" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to perform layout calculation.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="OutputDebugString">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="PerfCounter">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="autoCreate" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="categoryName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="counterHelp" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="counterName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="counterType" minOccurs="0" maxOccurs="1" type="System.Diagnostics.PerformanceCounterType" />
+          <xs:element name="incrementValue" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="instanceName" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="autoCreate" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether performance counter should be automatically created.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="categoryName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the performance counter category.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="counterHelp" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Counter help text.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="counterName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the performance counter.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="counterType" type="System.Diagnostics.PerformanceCounterType">
+          <xs:annotation>
+            <xs:documentation>Performance counter type.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="incrementValue" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>The value by which to increment the counter.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="instanceName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Performance counter instance name.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="System.Diagnostics.PerformanceCounterType">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="NumberOfItems32" />
+      <xs:enumeration value="NumberOfItems64" />
+      <xs:enumeration value="NumberOfItemsHEX32" />
+      <xs:enumeration value="NumberOfItemsHEX64" />
+      <xs:enumeration value="RateOfCountsPerSecond32" />
+      <xs:enumeration value="RateOfCountsPerSecond64" />
+      <xs:enumeration value="CountPerTimeInterval32" />
+      <xs:enumeration value="CountPerTimeInterval64" />
+      <xs:enumeration value="RawFraction" />
+      <xs:enumeration value="RawBase" />
+      <xs:enumeration value="AverageTimer32" />
+      <xs:enumeration value="AverageBase" />
+      <xs:enumeration value="AverageCount64" />
+      <xs:enumeration value="SampleFraction" />
+      <xs:enumeration value="SampleCounter" />
+      <xs:enumeration value="SampleBase" />
+      <xs:enumeration value="CounterTimer" />
+      <xs:enumeration value="CounterTimerInverse" />
+      <xs:enumeration value="Timer100Ns" />
+      <xs:enumeration value="Timer100NsInverse" />
+      <xs:enumeration value="ElapsedTime" />
+      <xs:enumeration value="CounterMultiTimer" />
+      <xs:enumeration value="CounterMultiTimerInverse" />
+      <xs:enumeration value="CounterMultiTimer100Ns" />
+      <xs:enumeration value="CounterMultiTimer100NsInverse" />
+      <xs:enumeration value="CounterMultiBase" />
+      <xs:enumeration value="CounterDelta32" />
+      <xs:enumeration value="CounterDelta64" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="PostFilteringWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="defaultFilter" minOccurs="0" maxOccurs="1" type="Condition" />
+          <xs:element name="when" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.Wrappers.FilteringRule" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="defaultFilter" type="Condition">
+          <xs:annotation>
+            <xs:documentation>Default filter to be applied when no specific rule matches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="NLog.Targets.Wrappers.FilteringRule">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="exists" minOccurs="0" maxOccurs="1" type="Condition" />
+      <xs:element name="filter" minOccurs="0" maxOccurs="1" type="Condition" />
+    </xs:choice>
+    <xs:attribute name="exists" type="Condition">
+      <xs:annotation>
+        <xs:documentation>Condition to be tested.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="filter" type="Condition">
+      <xs:annotation>
+        <xs:documentation>Resulting filter to be applied when the condition matches.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="RandomizeGroup">
+    <xs:complexContent>
+      <xs:extension base="CompoundTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="RepeatingWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="repeatCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="repeatCount" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Number of times to repeat each log message.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="RetryingWrapper">
+    <xs:complexContent>
+      <xs:extension base="WrapperTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="retryCount" minOccurs="0" maxOccurs="1" type="xs:integer" />
+          <xs:element name="retryDelayMilliseconds" minOccurs="0" maxOccurs="1" type="xs:integer" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="retryCount" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Number of retries that should be attempted on the wrapped target in case of a failure.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="retryDelayMilliseconds" type="xs:integer">
+          <xs:annotation>
+            <xs:documentation>Time to wait between retries in milliseconds.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="RoundRobinGroup">
+    <xs:complexContent>
+      <xs:extension base="CompoundTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="SplitGroup">
+    <xs:complexContent>
+      <xs:extension base="CompoundTargetBase">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Trace">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout used to format log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="WebService">
+    <xs:complexContent>
+      <xs:extension base="Target">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="includeBOM" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
+          <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="namespace" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="protocol" minOccurs="0" maxOccurs="1" type="NLog.Targets.WebServiceProtocol" />
+          <xs:element name="url" minOccurs="0" maxOccurs="1" type="xs:anyURI" />
+        </xs:choice>
+        <xs:attribute name="name" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Name of the target.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="includeBOM" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Should we include the BOM (Byte-order-mark) for UTF? Influences the  property. This will only work for UTF-8.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="encoding" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Encoding.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="methodName" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Web service method name. Only used with Soap.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="namespace" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Web service namespace. Only used with Soap.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="protocol" type="NLog.Targets.WebServiceProtocol">
+          <xs:annotation>
+            <xs:documentation>Protocol to be used when calling web service.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="url" type="xs:anyURI">
+          <xs:annotation>
+            <xs:documentation>Web service URL.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Targets.WebServiceProtocol">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Soap11" />
+      <xs:enumeration value="Soap12" />
+      <xs:enumeration value="HttpPost" />
+      <xs:enumeration value="HttpGet" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="CsvLayout">
+    <xs:complexContent>
+      <xs:extension base="Layout">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="column" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.CsvColumn" />
+          <xs:element name="customColumnDelimiter" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="delimiter" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvColumnDelimiterMode" />
+          <xs:element name="quoteChar" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="quoting" minOccurs="0" maxOccurs="1" type="NLog.Layouts.CsvQuotingMode" />
+          <xs:element name="withHeader" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer layout.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header layout.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Body layout (can be repeated multiple times).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="customColumnDelimiter" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom').</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="delimiter" type="NLog.Layouts.CsvColumnDelimiterMode">
+          <xs:annotation>
+            <xs:documentation>Column delimiter.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="quoteChar" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Quote Character.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="quoting" type="NLog.Layouts.CsvQuotingMode">
+          <xs:annotation>
+            <xs:documentation>Quoting mode.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="withHeader" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether CVS should include header.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="NLog.Layouts.CsvColumnDelimiterMode">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Auto" />
+      <xs:enumeration value="Comma" />
+      <xs:enumeration value="Semicolon" />
+      <xs:enumeration value="Tab" />
+      <xs:enumeration value="Pipe" />
+      <xs:enumeration value="Space" />
+      <xs:enumeration value="Custom" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="NLog.Layouts.CsvQuotingMode">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="All" />
+      <xs:enumeration value="Nothing" />
+      <xs:enumeration value="Auto" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="NLog.Layouts.CsvColumn">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+    </xs:choice>
+    <xs:attribute name="layout" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Layout of the column.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Name of the column.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="JsonLayout">
+    <xs:complexContent>
+      <xs:extension base="Layout">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="attribute" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.JsonAttribute" />
+          <xs:element name="suppressSpaces" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+        </xs:choice>
+        <xs:attribute name="suppressSpaces" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Option to suppress the extra spaces in the output json</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="NLog.Layouts.JsonAttribute">
+    <xs:choice minOccurs="0" maxOccurs="unbounded">
+      <xs:element name="encode" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+      <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+      <xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
+    </xs:choice>
+    <xs:attribute name="encode" type="xs:boolean">
+      <xs:annotation>
+        <xs:documentation>Determines wether or not this attribute will be Json encoded.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="layout" type="SimpleLayoutAttribute">
+      <xs:annotation>
+        <xs:documentation>Layout that will be rendered as the attribute's value.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name" type="xs:string">
+      <xs:annotation>
+        <xs:documentation>Name of the attribute.</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:complexType name="LayoutWithHeaderAndFooter">
+    <xs:complexContent>
+      <xs:extension base="Layout">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="footer" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Footer layout.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="header" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Header layout.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Body layout (can be repeated multiple times).</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="Log4JXmlEventLayout">
+    <xs:complexContent>
+      <xs:extension base="Layout">
+        <xs:choice minOccurs="0" maxOccurs="unbounded" />
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="SimpleLayout">
+    <xs:complexContent>
+      <xs:extension base="Layout">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="text" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Layout text.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="when">
+    <xs:complexContent>
+      <xs:extension base="Filter">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+          <xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
+        </xs:choice>
+        <xs:attribute name="action" type="FilterResult">
+          <xs:annotation>
+            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="condition" type="Condition">
+          <xs:annotation>
+            <xs:documentation>Condition expression.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:simpleType name="FilterResult">
+    <xs:restriction base="xs:string">
+      <xs:enumeration value="Neutral" />
+      <xs:enumeration value="Log" />
+      <xs:enumeration value="Ignore" />
+      <xs:enumeration value="LogFinal" />
+      <xs:enumeration value="IgnoreFinal" />
+    </xs:restriction>
+  </xs:simpleType>
+  <xs:complexType name="whenContains">
+    <xs:complexContent>
+      <xs:extension base="Filter">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="action" type="FilterResult">
+          <xs:annotation>
+            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ignoreCase" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="substring" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Substring to be matched.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="whenEqual">
+    <xs:complexContent>
+      <xs:extension base="Filter">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+          <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="action" type="FilterResult">
+          <xs:annotation>
+            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="compareTo" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>String to compare the layout to.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ignoreCase" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="whenNotContains">
+    <xs:complexContent>
+      <xs:extension base="Filter">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+          <xs:element name="substring" minOccurs="0" maxOccurs="1" type="xs:string" />
+        </xs:choice>
+        <xs:attribute name="action" type="FilterResult">
+          <xs:annotation>
+            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ignoreCase" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="substring" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>Substring to be matched.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="whenNotEqual">
+    <xs:complexContent>
+      <xs:extension base="Filter">
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element name="action" minOccurs="0" maxOccurs="1" type="FilterResult" />
+          <xs:element name="compareTo" minOccurs="0" maxOccurs="1" type="xs:string" />
+          <xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
+          <xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
+        </xs:choice>
+        <xs:attribute name="action" type="FilterResult">
+          <xs:annotation>
+            <xs:documentation>Action to be taken when filter matches.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="compareTo" type="xs:string">
+          <xs:annotation>
+            <xs:documentation>String to compare the layout to.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ignoreCase" type="xs:boolean">
+          <xs:annotation>
+            <xs:documentation>Indicates whether to ignore case when comparing strings.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="layout" type="SimpleLayoutAttribute">
+          <xs:annotation>
+            <xs:documentation>Layout to be used to filter log messages.</xs:documentation>
+          </xs:annotation>
+        </xs:attribute>
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="AccurateLocal">
+    <xs:complexContent>
+      <xs:extension base="TimeSource">
+        <xs:choice minOccurs="0" maxOccurs="unbounded" />
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="AccurateUTC">
+    <xs:complexContent>
+      <xs:extension base="TimeSource">
+        <xs:choice minOccurs="0" maxOccurs="unbounded" />
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="FastLocal">
+    <xs:complexContent>
+      <xs:extension base="TimeSource">
+        <xs:choice minOccurs="0" maxOccurs="unbounded" />
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+  <xs:complexType name="FastUTC">
+    <xs:complexContent>
+      <xs:extension base="TimeSource">
+        <xs:choice minOccurs="0" maxOccurs="unbounded" />
+      </xs:extension>
+    </xs:complexContent>
+  </xs:complexType>
+</xs:schema>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.cs b/CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.cs
new file mode 100644
index 0000000..e705de5
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.cs
@@ -0,0 +1,182 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.BaseDB
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CONNECTIVITY in the schema.
+    /// </summary>
+    public partial class CONNECTIVITY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          CONNECTIVITY toCompare = obj as CONNECTIVITY;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.FSC, toCompare.FSC))
+            return false;
+          if (!Object.Equals(this.UFID, toCompare.UFID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + FSC.GetHashCode();
+          hashCode = (hashCode * 7) + UFID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CONNECTIVITY constructor in the schema.
+        /// </summary>
+        public CONNECTIVITY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual int FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for N1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> N1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for N2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> N2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FDR1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FDR2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DIR in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> DIR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OHUG in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OHUG
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OSTATUS in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OSTATUS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for X in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> X
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for Y in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> Y
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.hbm.xml b/CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.hbm.xml
new file mode 100644
index 0000000..00b4be2
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/CONNECTIVITY.hbm.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.BaseDB" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CONNECTIVITY" table="CONNECTIVITY" schema="BASEDB">
+    <composite-id>
+      <key-property name="FSC" type="Int32">
+        <column name="FSC" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+      </key-property>
+      <key-property name="UFID" type="Int64">
+        <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+    </composite-id>
+    <property name="N1" type="Int64">
+      <column name="N1" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="N2" type="Int64">
+      <column name="N2" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="FDR1" type="Int32">
+      <column name="FDR1" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="FDR2" type="Int32">
+      <column name="FDR2" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="DIR" type="Int32">
+      <column name="DIR" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="OHUG" type="Int32">
+      <column name="OHUG" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="OSTATUS" type="Int32">
+      <column name="OSTATUS" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE" type="Int32">
+      <column name="PHASE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="X" type="Double">
+      <column name="X" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="Y" type="Double">
+      <column name="Y" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.cs b/CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.cs
new file mode 100644
index 0000000..72ed6b9
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.cs
@@ -0,0 +1,136 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.BaseDB
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.HICUSTOMER in the schema.
+    /// </summary>
+    public partial class HICUSTOMER {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for HICUSTOMER constructor in the schema.
+        /// </summary>
+        public HICUSTOMER()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERFSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OWNERFSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERUFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> OWNERUFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERTPCLID in the schema.
+        /// </summary>
+        public virtual string OWNERTPCLID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for NAME1 in the schema.
+        /// </summary>
+        public virtual string NAME1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUP1 in the schema.
+        /// </summary>
+        public virtual string GROUP1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for HICUSCAPACITY in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> HICUSCAPACITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METRNUMB in the schema.
+        /// </summary>
+        public virtual string METRNUMB
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for VLEVEL in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> VLEVEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CABTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> CABTYPE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.hbm.xml b/CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.hbm.xml
new file mode 100644
index 0000000..1d2c62e
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/HICUSTOMER.hbm.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.BaseDB" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="HICUSTOMER" table="HICUSTOMER" schema="BASEDB">
+    <id name="UFID" type="Int64">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="OWNERFSC" type="Int32">
+      <column name="OWNERFSC" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="OWNERUFID" type="Int64">
+      <column name="OWNERUFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="OWNERTPCLID" type="String">
+      <column name="OWNERTPCLID" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="NAME1" type="String">
+      <column name="NAME1" not-null="false" length="40" sql-type="VARCHAR2(40 CHAR)" />
+    </property>
+    <property name="GROUP1" type="String">
+      <column name="GROUP1" not-null="false" length="3" sql-type="VARCHAR2(3 CHAR)" />
+    </property>
+    <property name="HICUSCAPACITY" type="Double">
+      <column name="HICUS_CAPACITY" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="METRNUMB" type="String">
+      <column name="METR_NUMB" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="VLEVEL" type="Int32">
+      <column name="VLEVEL" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="CABTYPE" type="Int32">
+      <column name="CABTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/METER.cs b/CCSTrace/TPower/DMMS/Model/BaseDB/METER.cs
new file mode 100644
index 0000000..206aa8d
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/METER.cs
@@ -0,0 +1,106 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.BaseDB
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.METER in the schema.
+    /// </summary>
+    public partial class METER {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for METER constructor in the schema.
+        /// </summary>
+        public METER()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METRNUMB in the schema.
+        /// </summary>
+        public virtual string METRNUMB
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for BILLCYCL in the schema.
+        /// </summary>
+        public virtual string BILLCYCL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TRANCORD in the schema.
+        /// </summary>
+        public virtual string TRANCORD
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTTYPE in the schema.
+        /// </summary>
+        public virtual string CUSTTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TELENUMB in the schema.
+        /// </summary>
+        public virtual string TELENUMB
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for VAIDDATE in the schema.
+        /// </summary>
+        public virtual string VAIDDATE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ENTRDATE in the schema.
+        /// </summary>
+        public virtual string ENTRDATE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/METER.hbm.xml b/CCSTrace/TPower/DMMS/Model/BaseDB/METER.hbm.xml
new file mode 100644
index 0000000..f7e3a93
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/METER.hbm.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.BaseDB" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="METER" table="METER" schema="BASEDB">
+    <id name="METRNUMB" type="String">
+      <column name="METR_NUMB" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" />
+      <generator class="assigned" />
+    </id>
+    <property name="BILLCYCL" type="String">
+      <column name="BILL_CYCL" not-null="false" length="4" sql-type="VARCHAR2(4 CHAR)" />
+    </property>
+    <property name="TRANCORD" type="String">
+      <column name="TRAN_CORD" not-null="false" length="34" sql-type="VARCHAR2(34 CHAR)" />
+    </property>
+    <property name="CUSTTYPE" type="String">
+      <column name="CUST_TYPE" not-null="false" length="2" sql-type="VARCHAR2(2 CHAR)" />
+    </property>
+    <property name="TELENUMB" type="String">
+      <column name="TELE_NUMB" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="VAIDDATE" type="String">
+      <column name="VAID_DATE" not-null="false" length="7" sql-type="VARCHAR2(7 CHAR)" />
+    </property>
+    <property name="ENTRDATE" type="String">
+      <column name="ENTR_DATE" not-null="false" length="7" sql-type="VARCHAR2(7 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.cs b/CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.cs
new file mode 100644
index 0000000..68e0934
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.cs
@@ -0,0 +1,106 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.BaseDB
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.MSTADDR in the schema.
+    /// </summary>
+    public partial class MSTADDR {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for MSTADDR constructor in the schema.
+        /// </summary>
+        public MSTADDR()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MCYCLE in the schema.
+        /// </summary>
+        public virtual string MCYCLE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MCUSTNO in the schema.
+        /// </summary>
+        public virtual string MCUSTNO
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MNAME in the schema.
+        /// </summary>
+        public virtual string MNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MADDR in the schema.
+        /// </summary>
+        public virtual string MADDR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MAZIP in the schema.
+        /// </summary>
+        public virtual string MAZIP
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MMARK in the schema.
+        /// </summary>
+        public virtual string MMARK
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MNAMEE in the schema.
+        /// </summary>
+        public virtual string MNAMEE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.hbm.xml b/CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.hbm.xml
new file mode 100644
index 0000000..25acc18
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/MSTADDR.hbm.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.BaseDB" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="MSTADDR" table="MSTADDR" schema="BASEDB">
+    <id name="MCUSTNO" type="String">
+      <column name="M_CUST_NO" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+      <generator class="assigned" />
+    </id>
+    <property name="MCYCLE" type="String">
+      <column name="M_CYCLE" not-null="false" length="2" sql-type="VARCHAR2(2 CHAR)" />
+    </property>
+    <property name="MNAME" type="String">
+      <column name="M_NAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="MADDR" type="String">
+      <column name="M_ADDR" not-null="false" length="100" sql-type="VARCHAR2(100 CHAR)" />
+    </property>
+    <property name="MAZIP" type="String">
+      <column name="M_AZIP" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+    <property name="MMARK" type="String">
+      <column name="M_MARK" not-null="false" length="1" sql-type="VARCHAR2(1 CHAR)" />
+    </property>
+    <property name="MNAMEE" type="String">
+      <column name="M_NAME_E" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.cs b/CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.cs
new file mode 100644
index 0000000..af3d9a9
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.cs
@@ -0,0 +1,256 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.BaseDB
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.SXFMR in the schema.
+    /// </summary>
+    public partial class SXFMR {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for SXFMR constructor in the schema.
+        /// </summary>
+        public SXFMR()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> SXFMRTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERFSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OWNERFSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERUFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> OWNERUFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERTPCLID in the schema.
+        /// </summary>
+        public virtual string OWNERTPCLID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUP1 in the schema.
+        /// </summary>
+        public virtual string GROUP1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRCAPACITY1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> SXFMRCAPACITY1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRCAPACITY2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> SXFMRCAPACITY2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRCAPACITY3 in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> SXFMRCAPACITY3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SUPPLYTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> SUPPLYTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for LIGHTTYPE1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> LIGHTTYPE1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for LIGHTTYPE2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> LIGHTTYPE2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for LIGHTTYPE3 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> LIGHTTYPE3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE3 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCNO1 in the schema.
+        /// </summary>
+        public virtual string TPCNO1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCNO2 in the schema.
+        /// </summary>
+        public virtual string TPCNO2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCNO3 in the schema.
+        /// </summary>
+        public virtual string TPCNO3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TCOUNT in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> TCOUNT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for VLEVEL in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> VLEVEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CABTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> CABTYPE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.hbm.xml b/CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.hbm.xml
new file mode 100644
index 0000000..8fa353b
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/BaseDB/SXFMR.hbm.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.BaseDB" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="SXFMR" table="SXFMR" schema="BASEDB">
+    <id name="UFID" type="Int64">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="SXFMRTYPE" type="Int32">
+      <column name="SXFMR_TYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="OWNERFSC" type="Int32">
+      <column name="OWNERFSC" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="OWNERUFID" type="Int64">
+      <column name="OWNERUFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="OWNERTPCLID" type="String">
+      <column name="OWNERTPCLID" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="GROUP1" type="String">
+      <column name="GROUP1" not-null="false" length="3" sql-type="VARCHAR2(3 CHAR)" />
+    </property>
+    <property name="SXFMRCAPACITY1" type="Double">
+      <column name="SXFMR_CAPACITY1" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="SXFMRCAPACITY2" type="Double">
+      <column name="SXFMR_CAPACITY2" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="SXFMRCAPACITY3" type="Double">
+      <column name="SXFMR_CAPACITY3" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="SUPPLYTYPE" type="Int32">
+      <column name="SUPPLYTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="LIGHTTYPE1" type="Int32">
+      <column name="LIGHTTYPE1" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="LIGHTTYPE2" type="Int32">
+      <column name="LIGHTTYPE2" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="LIGHTTYPE3" type="Int32">
+      <column name="LIGHTTYPE3" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE1" type="Int32">
+      <column name="PHASE1" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE2" type="Int32">
+      <column name="PHASE2" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE3" type="Int32">
+      <column name="PHASE3" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="TPCNO1" type="String">
+      <column name="TPCNO1" not-null="false" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="TPCNO2" type="String">
+      <column name="TPCNO2" not-null="false" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="TPCNO3" type="String">
+      <column name="TPCNO3" not-null="false" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="TCOUNT" type="Int64">
+      <column name="TCOUNT" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="VLEVEL" type="Int32">
+      <column name="VLEVEL" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="CABTYPE" type="Int32">
+      <column name="CABTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.cs b/CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.cs
new file mode 100644
index 0000000..95a2824
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.cs
@@ -0,0 +1,105 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.ADDRCONTRAST in the schema.
+    /// </summary>
+    public partial class ADDRCONTRAST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          ADDRCONTRAST toCompare = obj as ADDRCONTRAST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.DEPTID, toCompare.DEPTID))
+            return false;
+          if (!Object.Equals(this.CITY, toCompare.CITY))
+            return false;
+          if (!Object.Equals(this.ROAD, toCompare.ROAD))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + DEPTID.GetHashCode();
+          hashCode = (hashCode * 7) + CITY.GetHashCode();
+          hashCode = (hashCode * 7) + ROAD.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for ADDRCONTRAST constructor in the schema.
+        /// </summary>
+        public ADDRCONTRAST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPTID in the schema.
+        /// </summary>
+        public virtual int DEPTID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CITY in the schema.
+        /// </summary>
+        public virtual string CITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TOWN in the schema.
+        /// </summary>
+        public virtual string TOWN
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ROAD in the schema.
+        /// </summary>
+        public virtual string ROAD
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.hbm.xml
new file mode 100644
index 0000000..b516487
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/ADDRCONTRAST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="ADDRCONTRAST" table="ADDR_CONTRAST" schema="CCS">
+    <composite-id>
+      <key-property name="DEPTID" type="Int32">
+        <column name="DEPTID" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+      </key-property>
+      <key-property name="CITY" type="String">
+        <column name="CITY" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+      </key-property>
+      <key-property name="ROAD" type="String">
+        <column name="ROAD" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+      </key-property>
+    </composite-id>
+    <property name="TOWN" type="String">
+      <column name="TOWN" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.cs b/CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.cs
new file mode 100644
index 0000000..d9d8f52
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.cs
@@ -0,0 +1,76 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.ALARMIP in the schema.
+    /// </summary>
+    public partial class ALARMIP {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for ALARMIP constructor in the schema.
+        /// </summary>
+        public ALARMIP()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPTID in the schema.
+        /// </summary>
+        public virtual int DEPTID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IP1 in the schema.
+        /// </summary>
+        public virtual string IP1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IP2 in the schema.
+        /// </summary>
+        public virtual string IP2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IPPATROL in the schema.
+        /// </summary>
+        public virtual string IPPATROL
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.hbm.xml
new file mode 100644
index 0000000..5d48b02
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/ALARMIP.hbm.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="ALARMIP" table="ALARM_IP" schema="CCS">
+    <id name="DEPTID" type="Int32">
+      <column name="DEPTID" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" unique="true" />
+      <generator class="assigned" />
+    </id>
+    <property name="IP1" type="String">
+      <column name="IP1" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="IP2" type="String">
+      <column name="IP2" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="IPPATROL" type="String">
+      <column name="IP_PATROL" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs b/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs
new file mode 100644
index 0000000..0eac04f
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.CODELIST.cs
@@ -0,0 +1,102 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.CODELIST in the schema.
+    /// </summary>
+    public partial class CODELIST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          CODELIST toCompare = obj as CODELIST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.INDEXID, toCompare.INDEXID))
+            return false;
+          if (!Object.Equals(this.KEYID, toCompare.KEYID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + INDEXID.GetHashCode();
+          hashCode = (hashCode * 7) + KEYID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CODELIST constructor in the schema.
+        /// </summary>
+        public CODELIST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for INDEXID in the schema.
+        /// </summary>
+        public virtual int INDEXID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for KEYID in the schema.
+        /// </summary>
+        public virtual int KEYID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ITEM in the schema.
+        /// </summary>
+        public virtual string ITEM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CONTENT in the schema.
+        /// </summary>
+        public virtual string CONTENT
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.hbm.xml
new file mode 100644
index 0000000..dbc48b5
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/CODELIST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CODELIST" table="CODELIST" schema="CCS">
+    <composite-id>
+      <key-property name="INDEXID" type="Int32">
+        <column name="INDEXID" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" unique-key="KEY1" />
+      </key-property>
+      <key-property name="KEYID" type="Int32">
+        <column name="KEYID" not-null="false" precision="4" scale="0" sql-type="NUMBER(4)" />
+      </key-property>
+    </composite-id>
+    <property name="ITEM" type="String">
+      <column name="ITEM" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="CONTENT" type="String">
+      <column name="CONTENT" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" unique-key="KEY1" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.cs b/CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.cs
new file mode 100644
index 0000000..d076011
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.cs
@@ -0,0 +1,102 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.DEPTCONTRAST in the schema.
+    /// </summary>
+    public partial class DEPTCONTRAST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          DEPTCONTRAST toCompare = obj as DEPTCONTRAST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.SCCODE, toCompare.SCCODE))
+            return false;
+          if (!Object.Equals(this.DEPTCODE, toCompare.DEPTCODE))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + SCCODE.GetHashCode();
+          hashCode = (hashCode * 7) + DEPTCODE.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for DEPTCONTRAST constructor in the schema.
+        /// </summary>
+        public DEPTCONTRAST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SCCODE in the schema.
+        /// </summary>
+        public virtual string SCCODE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPTCODE in the schema.
+        /// </summary>
+        public virtual string DEPTCODE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MAXMETER in the schema.
+        /// </summary>
+        public virtual string MAXMETER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MINMETER in the schema.
+        /// </summary>
+        public virtual string MINMETER
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.hbm.xml
new file mode 100644
index 0000000..a58ae08
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/DEPTCONTRAST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="DEPTCONTRAST" table="DEPT_CONTRAST" schema="CCS">
+    <composite-id>
+      <key-property name="SCCODE" type="String">
+        <column name="SC_CODE" not-null="true" length="5" sql-type="VARCHAR2(5 CHAR)" />
+      </key-property>
+      <key-property name="DEPTCODE" type="String">
+        <column name="DEPT_CODE" not-null="true" length="5" sql-type="VARCHAR2(5 CHAR)" />
+      </key-property>
+    </composite-id>
+    <property name="MAXMETER" type="String">
+      <column name="MAX_METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="MINMETER" type="String">
+      <column name="MIN_METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.cs b/CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.cs
new file mode 100644
index 0000000..62d6932
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.cs
@@ -0,0 +1,156 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.EVENTQUERY in the schema.
+    /// </summary>
+    public partial class EVENTQUERY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTQUERY constructor in the schema.
+        /// </summary>
+        public EVENTQUERY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METER in the schema.
+        /// </summary>
+        public virtual string METER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASESTATUS in the schema.
+        /// </summary>
+        public virtual int CASESTATUS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CHANGETIME in the schema.
+        /// </summary>
+        public virtual System.DateTime CHANGETIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for HANDLINGSUMMARY in the schema.
+        /// </summary>
+        public virtual string HANDLINGSUMMARY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ASSUMEDTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> ASSUMEDTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ASSUMEDTIMENTH in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> ASSUMEDTIMENTH
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DELAYTIMES in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> DELAYTIMES
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for REASON in the schema.
+        /// </summary>
+        public virtual string REASON
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTLOCATION in the schema.
+        /// </summary>
+        public virtual string EVENTLOCATION
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ERRORCAUSE in the schema.
+        /// </summary>
+        public virtual string ERRORCAUSE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for INPUTTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> INPUTTIME
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.hbm.xml
new file mode 100644
index 0000000..cb75434
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/EVENTQUERY.hbm.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTQUERY" table="EVENTQUERY" schema="CCS">
+    <id name="CCSID" type="String">
+      <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" unique="true" />
+      <generator class="assigned" />
+    </id>
+    <property name="METER" type="String">
+      <column name="METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CASESTATUS" type="Int32">
+      <column name="CASESTATUS" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="CHANGETIME" type="DateTime">
+      <column name="CHANGETIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="HANDLINGSUMMARY" type="String">
+      <column name="HANDLINGSUMMARY" not-null="false" length="600" sql-type="VARCHAR2(600 CHAR)" />
+    </property>
+    <property name="ASSUMEDTIME" type="DateTime">
+      <column name="ASSUMEDTIME" not-null="false" sql-type="DATE" />
+    </property>
+    <property name="ASSUMEDTIMENTH" type="DateTime">
+      <column name="ASSUMEDTIME_NTH" not-null="false" sql-type="DATE" />
+    </property>
+    <property name="DELAYTIMES" type="Boolean">
+      <column name="DELAYTIMES" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="REASON" type="String">
+      <column name="REASON" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="EVENTLOCATION" type="String">
+      <column name="EVENTLOCATION" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="ERRORCAUSE" type="String">
+      <column name="ERRORCAUSE" not-null="false" length="800" sql-type="VARCHAR2(800 CHAR)" />
+    </property>
+    <property name="INPUTTIME" type="DateTime">
+      <column name="INPUTTIME" not-null="false" sql-type="DATE" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.cs b/CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.cs
new file mode 100644
index 0000000..efb18d8
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.cs
@@ -0,0 +1,196 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.EVENTRECORD in the schema.
+    /// </summary>
+    public partial class EVENTRECORD {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTRECORD constructor in the schema.
+        /// </summary>
+        public EVENTRECORD()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METER in the schema.
+        /// </summary>
+        public virtual string METER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERNAME in the schema.
+        /// </summary>
+        public virtual string CUSTOMERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTEL in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDRCITY in the schema.
+        /// </summary>
+        public virtual string ADDRCITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDRTOWN in the schema.
+        /// </summary>
+        public virtual string ADDRTOWN
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDRROAD in the schema.
+        /// </summary>
+        public virtual string ADDRROAD
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDROTHER in the schema.
+        /// </summary>
+        public virtual string ADDROTHER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLNAME in the schema.
+        /// </summary>
+        public virtual string RECALLNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLTEL in the schema.
+        /// </summary>
+        public virtual string RECALLTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTBRIEF in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> EVENTBRIEF
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTTIME in the schema.
+        /// </summary>
+        public virtual System.DateTime ACCEPTTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IMPORTCASE in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> IMPORTCASE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPT in the schema.
+        /// </summary>
+        public virtual string DEPT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PARTHICUSTOMER in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PARTHICUSTOMER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for NOTE in the schema.
+        /// </summary>
+        public virtual string NOTE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.hbm.xml
new file mode 100644
index 0000000..cbef1df
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/EVENTRECORD.hbm.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTRECORD" table="EVENTRECORD" schema="CCS">
+    <id name="CCSID" type="String">
+      <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" unique="true" />
+      <generator class="assigned" />
+    </id>
+    <property name="METER" type="String">
+      <column name="METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CUSTOMERNAME" type="String">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="CUSTOMERTEL" type="String">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="ADDRCITY" type="String">
+      <column name="ADDR_CITY" not-null="true" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="ADDRTOWN" type="String">
+      <column name="ADDR_TOWN" not-null="false" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="ADDRROAD" type="String">
+      <column name="ADDR_ROAD" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="ADDROTHER" type="String">
+      <column name="ADDR_OTHER" not-null="false" length="66" sql-type="VARCHAR2(66 CHAR)" />
+    </property>
+    <property name="RECALLNAME" type="String">
+      <column name="RECALLNAME" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="RECALLTEL" type="String">
+      <column name="RECALLTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="EVENTBRIEF" type="Int32">
+      <column name="EVENTBRIEF" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime">
+      <column name="ACCEPTTIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="IMPORTCASE" type="Boolean">
+      <column name="IMPORTCASE" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="DEPT" type="String">
+      <column name="DEPT" not-null="true" length="2" sql-type="VARCHAR2(2 CHAR)" />
+    </property>
+    <property name="PARTHICUSTOMER" type="Int32">
+      <column name="PARTHICUSTOMER" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="NOTE" type="String">
+      <column name="NOTE" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.cs b/CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.cs
new file mode 100644
index 0000000..d2f3685
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.cs
@@ -0,0 +1,95 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.NUMCONTRAST in the schema.
+    /// </summary>
+    public partial class NUMCONTRAST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          NUMCONTRAST toCompare = obj as NUMCONTRAST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.CCSID, toCompare.CCSID))
+            return false;
+          if (!Object.Equals(this.ACCEPTNUM, toCompare.ACCEPTNUM))
+            return false;
+          if (!Object.Equals(this.CASEID, toCompare.CASEID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + CCSID.GetHashCode();
+          hashCode = (hashCode * 7) + ACCEPTNUM.GetHashCode();
+          hashCode = (hashCode * 7) + CASEID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for NUMCONTRAST constructor in the schema.
+        /// </summary>
+        public NUMCONTRAST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTNUM in the schema.
+        /// </summary>
+        public virtual string ACCEPTNUM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.hbm.xml
new file mode 100644
index 0000000..b59cb10
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/NUMCONTRAST.hbm.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="NUMCONTRAST" table="NUM_CONTRAST" schema="CCS">
+    <composite-id>
+      <key-property name="CCSID" type="String">
+        <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" unique="true" />
+      </key-property>
+      <key-property name="ACCEPTNUM" type="String">
+        <column name="ACCEPTNUM" not-null="true" length="10" sql-type="VARCHAR2(10 CHAR)" />
+      </key-property>
+      <key-property name="CASEID" type="Int64">
+        <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+    </composite-id>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.cs b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.cs
new file mode 100644
index 0000000..19ec0a3
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.cs
@@ -0,0 +1,66 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.SCGROUP in the schema.
+    /// </summary>
+    public partial class SCGROUP {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for SCGROUP constructor in the schema.
+        /// </summary>
+        public SCGROUP()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUPID in the schema.
+        /// </summary>
+        public virtual decimal GROUPID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SCCODE in the schema.
+        /// </summary>
+        public virtual string SCCODE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SSCCODE in the schema.
+        /// </summary>
+        public virtual string SSCCODE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.hbm.xml
new file mode 100644
index 0000000..7931352
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUP.hbm.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="SCGROUP" table="SCGROUP" schema="CCS">
+    <id name="GROUPID" type="Decimal">
+      <column name="GROUPID" not-null="true" sql-type="NUMBER" />
+      <generator class="assigned" />
+    </id>
+    <property name="SCCODE" type="String">
+      <column name="SC_CODE" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+    <property name="SSCCODE" type="String">
+      <column name="SSC_CODE" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.cs b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.cs
new file mode 100644
index 0000000..f7c4a7b
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.cs
@@ -0,0 +1,76 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.SCGROUPTIME in the schema.
+    /// </summary>
+    public partial class SCGROUPTIME {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for SCGROUPTIME constructor in the schema.
+        /// </summary>
+        public SCGROUPTIME()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUPID in the schema.
+        /// </summary>
+        public virtual decimal GROUPID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for WEEK in the schema.
+        /// </summary>
+        public virtual System.Nullable<decimal> WEEK
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for BEGINTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<decimal> BEGINTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ENDTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<decimal> ENDTIME
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.hbm.xml
new file mode 100644
index 0000000..29c8c88
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/SCGROUPTIME.hbm.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="SCGROUPTIME" table="SCGROUPTIME" schema="CCS">
+    <id name="GROUPID" type="Decimal">
+      <column name="GROUPID" not-null="true" sql-type="NUMBER" unique-key="KEY1" />
+      <generator class="assigned" />
+    </id>
+    <property name="WEEK" type="Decimal">
+      <column name="WEEK" not-null="false" sql-type="NUMBER" unique-key="KEY1" />
+    </property>
+    <property name="BEGINTIME" type="Decimal">
+      <column name="BEGINTIME" not-null="false" sql-type="NUMBER" />
+    </property>
+    <property name="ENDTIME" type="Decimal">
+      <column name="ENDTIME" not-null="false" sql-type="NUMBER" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/TMP.cs b/CCSTrace/TPower/DMMS/Model/CCS/TMP.cs
new file mode 100644
index 0000000..9fa92b4
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/TMP.cs
@@ -0,0 +1,76 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.TMP in the schema.
+    /// </summary>
+    public partial class TMP {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for TMP constructor in the schema.
+        /// </summary>
+        public TMP()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for USERNAME in the schema.
+        /// </summary>
+        public virtual string USERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> ACCEPTTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACTION in the schema.
+        /// </summary>
+        public virtual string ACTION
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/CCS/TMP.hbm.xml b/CCSTrace/TPower/DMMS/Model/CCS/TMP.hbm.xml
new file mode 100644
index 0000000..9f0dc99
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/CCS/TMP.hbm.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TMP" table="TMP" schema="CCS">
+    <id name="CCSID" type="String">
+      <column name="CCSID" not-null="false" length="10" sql-type="VARCHAR2(10 CHAR)" />
+      <generator class="assigned" />
+    </id>
+    <property name="USERNAME" type="String">
+      <column name="USERNAME" not-null="false" length="100" sql-type="VARCHAR2(100 CHAR)" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime">
+      <column name="ACCEPTTIME" not-null="false" sql-type="DATE" />
+    </property>
+    <property name="ACTION" type="String">
+      <column name="ACTION" not-null="false" length="100" sql-type="VARCHAR2(100 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/CODELIST.cs b/CCSTrace/TPower/DMMS/Model/EOS/CODELIST.cs
new file mode 100644
index 0000000..f49f45a
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/CODELIST.cs
@@ -0,0 +1,102 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.CODELIST in the schema.
+    /// </summary>
+    public partial class CODELIST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          CODELIST toCompare = obj as CODELIST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.INDEXID, toCompare.INDEXID))
+            return false;
+          if (!Object.Equals(this.KEYID, toCompare.KEYID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + INDEXID.GetHashCode();
+          hashCode = (hashCode * 7) + KEYID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CODELIST constructor in the schema.
+        /// </summary>
+        public CODELIST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for INDEXID in the schema.
+        /// </summary>
+        public virtual int INDEXID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for KEYID in the schema.
+        /// </summary>
+        public virtual int KEYID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ITEM in the schema.
+        /// </summary>
+        public virtual string ITEM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CONTENT in the schema.
+        /// </summary>
+        public virtual string CONTENT
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/CODELIST.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/CODELIST.hbm.xml
new file mode 100644
index 0000000..ab2a708
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/CODELIST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CODELIST" table="CODELIST" schema="EOS">
+    <composite-id>
+      <key-property name="INDEXID" type="Int32">
+        <column name="INDEXID" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+      </key-property>
+      <key-property name="KEYID" type="Int32">
+        <column name="KEYID" not-null="true" precision="4" scale="0" sql-type="NUMBER(4)" />
+      </key-property>
+    </composite-id>
+    <property name="ITEM" type="String">
+      <column name="ITEM" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="CONTENT" type="String">
+      <column name="CONTENT" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.cs b/CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.cs
new file mode 100644
index 0000000..5d447cf
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.cs
@@ -0,0 +1,66 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.CRTAPOLOGY in the schema.
+    /// </summary>
+    public partial class CRTAPOLOGY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CRTAPOLOGY constructor in the schema.
+        /// </summary>
+        public CRTAPOLOGY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTSTATE in the schema.
+        /// </summary>
+        public virtual int EVENTSTATE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RELAYACTION in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> RELAYACTION
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.hbm.xml
new file mode 100644
index 0000000..b6a140f
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/CRTAPOLOGY.hbm.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CRTAPOLOGY" table="CRTAPOLOGY" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="EVENTSTATE" type="Int32">
+      <column name="EVENTSTATE" not-null="true" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="RELAYACTION" type="Int32">
+      <column name="RELAYACTION" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENT.cs b/CCSTrace/TPower/DMMS/Model/EOS/EVENT.cs
new file mode 100644
index 0000000..cc30d58
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENT.cs
@@ -0,0 +1,86 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENT in the schema.
+    /// </summary>
+    public partial class EVENT {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENT constructor in the schema.
+        /// </summary>
+        public EVENT()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASESTATUS in the schema.
+        /// </summary>
+        public virtual int CASESTATUS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for COUNT in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> COUNT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASETYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> CASETYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MERGECASECOUNT in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> MERGECASECOUNT
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENT.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/EVENT.hbm.xml
new file mode 100644
index 0000000..862a08e
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENT.hbm.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENT" table="EVENTS" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="CASESTATUS" type="Int32">
+      <column name="CASESTATUS" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="COUNT" type="Int32">
+      <column name="COUNT" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="CASETYPE" type="Int32">
+      <column name="CASETYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="MERGECASECOUNT" type="Int32">
+      <column name="MERGECASECOUNT" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.cs b/CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.cs
new file mode 100644
index 0000000..3d2961c
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.cs
@@ -0,0 +1,126 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENTFACILITY in the schema.
+    /// </summary>
+    public partial class EVENTFACILITY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTFACILITY constructor in the schema.
+        /// </summary>
+        public EVENTFACILITY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual int FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR1 in the schema.
+        /// </summary>
+        public virtual string FDR1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR2 in the schema.
+        /// </summary>
+        public virtual string FDR2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for AFFECTCUSTMS in the schema.
+        /// </summary>
+        public virtual string AFFECTCUSTMS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CAPACITY in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> CAPACITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OPENTIME in the schema.
+        /// </summary>
+        public virtual System.DateTime OPENTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CLOSETIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> CLOSETIME
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.hbm.xml
new file mode 100644
index 0000000..cd94ce1
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENTFACILITY.hbm.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTFACILITY" table="EVENTFACILITY" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="FSC" type="Int32">
+      <column name="FSC" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="UFID" type="Int64">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="FDR1" type="String">
+      <column name="FDR1" not-null="true" length="4" sql-type="VARCHAR2(4 CHAR)" />
+    </property>
+    <property name="FDR2" type="String">
+      <column name="FDR2" not-null="false" length="4" sql-type="VARCHAR2(4 CHAR)" />
+    </property>
+    <property name="AFFECTCUSTMS" type="String">
+      <column name="AFFECTCUSTMS" not-null="true" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="CAPACITY" type="Int64">
+      <column name="CAPACITY" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="OPENTIME" type="DateTime">
+      <column name="OPENTIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="CLOSETIME" type="DateTime">
+      <column name="CLOSETIME" not-null="false" sql-type="DATE" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.cs b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.cs
new file mode 100644
index 0000000..b00bdcb
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.cs
@@ -0,0 +1,236 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENTRECORD in the schema.
+    /// </summary>
+    public partial class EVENTRECORD {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTRECORD constructor in the schema.
+        /// </summary>
+        public EVENTRECORD()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERNAME in the schema.
+        /// </summary>
+        public virtual string CUSTOMERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERMETER in the schema.
+        /// </summary>
+        public virtual string CUSTOMERMETER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTEL in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERADDR in the schema.
+        /// </summary>
+        public virtual string CUSTOMERADDR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTBRIEF in the schema.
+        /// </summary>
+        public virtual string EVENTBRIEF
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPT in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> DEPT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECORDER in the schema.
+        /// </summary>
+        public virtual string RECORDER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTNUM in the schema.
+        /// </summary>
+        public virtual string ACCEPTNUM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTTIME in the schema.
+        /// </summary>
+        public virtual System.DateTime ACCEPTTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDRID in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FDRID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TRACEFINISH in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> TRACEFINISH
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IMPORTCASE in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> IMPORTCASE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for NOTE in the schema.
+        /// </summary>
+        public virtual string NOTE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ISRECALL in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> ISRECALL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLTEL in the schema.
+        /// </summary>
+        public virtual string RECALLTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLNAME in the schema.
+        /// </summary>
+        public virtual string RECALLNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASELEVEL in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> CASELEVEL
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.hbm.xml
new file mode 100644
index 0000000..f287624
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORD.hbm.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTRECORD" table="EVENTRECORD" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="CUSTOMERNAME" type="String">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="CUSTOMERMETER" type="String">
+      <column name="CUSTOMERMETER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CUSTOMERTEL" type="String">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="CUSTOMERADDR" type="String">
+      <column name="CUSTOMERADDR" not-null="true" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="EVENTBRIEF" type="String">
+      <column name="EVENTBRIEF" not-null="true" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="DEPT" type="Int32">
+      <column name="DEPT" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="RECORDER" type="String">
+      <column name="RECORDER" not-null="false" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="ACCEPTNUM" type="String">
+      <column name="ACCEPTNUM" not-null="true" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime">
+      <column name="ACCEPTTIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="FSC" type="Int32">
+      <column name="FSC" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="UFID" type="Int64">
+      <column name="UFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="FDRID" type="Int32">
+      <column name="FDRID" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="TRACEFINISH" type="Int32">
+      <column name="TRACE_FINISH" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="IMPORTCASE" type="Boolean">
+      <column name="IMPORTCASE" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="NOTE" type="String">
+      <column name="NOTE" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="ISRECALL" type="Boolean">
+      <column name="ISRECALL" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="RECALLTEL" type="String">
+      <column name="RECALLTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="RECALLNAME" type="String">
+      <column name="RECALLNAME" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="CASELEVEL" type="Boolean">
+      <column name="CASELEVEL" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.cs b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.cs
new file mode 100644
index 0000000..31c735d
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.cs
@@ -0,0 +1,122 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENTRECORDEX in the schema.
+    /// </summary>
+    public partial class EVENTRECORDEX {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          EVENTRECORDEX toCompare = obj as EVENTRECORDEX;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.CASEID, toCompare.CASEID))
+            return false;
+          if (!Object.Equals(this.DSUFID, toCompare.DSUFID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + CASEID.GetHashCode();
+          hashCode = (hashCode * 7) + DSUFID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTRECORDEX constructor in the schema.
+        /// </summary>
+        public EVENTRECORDEX()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DSUFID in the schema.
+        /// </summary>
+        public virtual long DSUFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCLID in the schema.
+        /// </summary>
+        public virtual string TPCLID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR in the schema.
+        /// </summary>
+        public virtual string FDR
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.hbm.xml
new file mode 100644
index 0000000..88bd4d8
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/EVENTRECORDEX.hbm.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTRECORDEX" table="EVENTRECORD_EX" schema="EOS">
+    <composite-id>
+      <key-property name="CASEID" type="Int64">
+        <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+      <key-property name="DSUFID" type="Int64">
+        <column name="DSUFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+    </composite-id>
+    <property name="FSC" type="Int32">
+      <column name="FSC" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="UFID" type="Int64">
+      <column name="UFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="TPCLID" type="String">
+      <column name="TPCLID" not-null="false" length="12" sql-type="VARCHAR2(12 CHAR)" />
+    </property>
+    <property name="FDR" type="String">
+      <column name="FDR" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.cs b/CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.cs
new file mode 100644
index 0000000..ab53581
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.cs
@@ -0,0 +1,116 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+namespace CCSTrace.TPower.DMMS.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.TMPAFFECTCUSTM in the schema.
+    /// </summary>
+    public partial class TMPAFFECTCUSTM {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for TMPAFFECTCUSTM constructor in the schema.
+        /// </summary>
+        public TMPAFFECTCUSTM()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERNAME in the schema.
+        /// </summary>
+        public virtual string CUSTOMERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTEL in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERMETER in the schema.
+        /// </summary>
+        public virtual string CUSTOMERMETER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERADDR in the schema.
+        /// </summary>
+        public virtual string CUSTOMERADDR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCLIDGROUPID in the schema.
+        /// </summary>
+        public virtual string TPCLIDGROUPID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTYPE in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERKIND in the schema.
+        /// </summary>
+        public virtual string CUSTOMERKIND
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.hbm.xml b/CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.hbm.xml
new file mode 100644
index 0000000..81cb245
--- /dev/null
+++ b/CCSTrace/TPower/DMMS/Model/EOS/TMPAFFECTCUSTM.hbm.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="CCSTrace.TPower.DMMS.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TMPAFFECTCUSTM" table="TMPAFFECTCUSTMS" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="CUSTOMERNAME" type="String">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="CUSTOMERTEL" type="String">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="CUSTOMERMETER" type="String">
+      <column name="CUSTOMERMETER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CUSTOMERADDR" type="String">
+      <column name="CUSTOMERADDR" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="TPCLIDGROUPID" type="String">
+      <column name="TPCLIDGROUPID" not-null="false" length="17" sql-type="VARCHAR2(17 CHAR)" />
+    </property>
+    <property name="CUSTOMERTYPE" type="String">
+      <column name="CUSTOMERTYPE" not-null="false" length="1" sql-type="VARCHAR2(1 CHAR)" />
+    </property>
+    <property name="CUSTOMERKIND" type="String">
+      <column name="CUSTOMERKIND" not-null="false" length="1" sql-type="VARCHAR2(1 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/CCSTrace/packages.config b/CCSTrace/packages.config
new file mode 100644
index 0000000..d1865f2
--- /dev/null
+++ b/CCSTrace/packages.config
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+  <package id="Iesi.Collections" version="3.2.0.4000" targetFramework="net35" />
+  <package id="NHibernate" version="3.4.1.4000" targetFramework="net35" />
+  <package id="NLog" version="4.3.3" targetFramework="net35" />
+  <package id="NLog.Config" version="4.3.3" targetFramework="net35" />
+  <package id="NLog.Schema" version="4.3.0" targetFramework="net35" />
+  <package id="SmartThreadPool.dll" version="2.2.3" targetFramework="net35" />
+</packages>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.cs b/ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.cs
new file mode 100644
index 0000000..2a219c2
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.cs
@@ -0,0 +1,187 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CONNECTIVITY in the schema.
+    /// </summary>
+    public partial class CONNECTIVITY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          CONNECTIVITY toCompare = obj as CONNECTIVITY;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.FSC, toCompare.FSC))
+            return false;
+          if (!Object.Equals(this.UFID, toCompare.UFID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + FSC.GetHashCode();
+          hashCode = (hashCode * 7) + UFID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CONNECTIVITY constructor in the schema.
+        /// </summary>
+        public CONNECTIVITY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual int FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for N1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> N1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for N2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> N2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FDR1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FDR2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DIR in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> DIR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OHUG in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OHUG
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OSTATUS in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OSTATUS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for X in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> X
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for Y in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> Y
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.hbm.xml b/ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.hbm.xml
new file mode 100644
index 0000000..5068bf6
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.CONNECTIVITY.hbm.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="BASEDBModel" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TaiPower.Dmm.Model.CONNECTIVITY" table="CONNECTIVITY" schema="BASEDB">
+    <composite-id>
+      <key-property name="FSC" type="Int32">
+        <column name="FSC" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+      </key-property>
+      <key-property name="UFID" type="Int64">
+        <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+    </composite-id>
+    <property name="N1" type="Int64">
+      <column name="N1" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="N2" type="Int64">
+      <column name="N2" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="FDR1" type="Int32">
+      <column name="FDR1" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="FDR2" type="Int32">
+      <column name="FDR2" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="DIR" type="Int32">
+      <column name="DIR" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="OHUG" type="Int32">
+      <column name="OHUG" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="OSTATUS" type="Int32">
+      <column name="OSTATUS" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE" type="Int32">
+      <column name="PHASE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="X" type="Double">
+      <column name="X" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="Y" type="Double">
+      <column name="Y" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.Diagram1.view b/ORModel/BASEDB/DataModel.BASEDB.Diagram1.view
new file mode 100644
index 0000000..0691f24
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.Diagram1.view
@@ -0,0 +1,1483 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntityDeveloperDiagram>
+  <Diagram Version="1.20.0.97">
+    <DiagramModel>
+      <Model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ContextVwModel">
+        <CustomProperties>
+          <OID>0</OID>
+          <BackgroundColor>Window</BackgroundColor>
+        </CustomProperties>
+        <Children>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>1</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>2</OID>
+                  <Parent>1</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>3</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c13a4bf0-9754-443b-bf6b-4b2eafec4605</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>4</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>d1176a72-3e0e-49bf-a320-afb1218adf5f</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>5</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>dcb4d341-860a-4edb-b760-dc7a2d62f5d7</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>6</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e72365cc-633d-4121-84c1-d973696c8c9f</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>7</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5ca55fe0-721b-4df4-b845-0252ff3076df</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>8</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5d3dc55b-e548-4f61-93ba-2ab6dd1920eb</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>9</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ceb66227-1ae9-4917-a80a-45abf1feb50c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>10</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>0e94923d-78c5-49a1-86db-5d9060cbdc8d</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>11</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>93f7584e-7205-4025-9f70-7895bcf11e70</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>12</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>162.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3f175b85-37d1-4ee2-b6a8-49bf486b67d8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>13</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>180.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>20fab364-3b62-470c-94e1-0d4c65b23c5b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>14</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>198.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e8458aa3-2b72-4c5b-aa20-29dee2debdbe</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>217 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>217 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>15</OID>
+                  <Parent>1</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>216 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>192 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>284 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>284 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>284 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>e6c586ea-eb11-407f-b15e-aa64ad19b54d</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>16</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>17</OID>
+                  <Parent>16</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>18</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>9134d2df-1b16-4dc7-86a3-3e734582c7bd</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>19</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>37777a5f-518d-4978-9d4a-ae01ef0c63c7</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>20</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>a57676ae-6d5a-4be7-98f3-d07d0f723d0c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>21</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3b46295a-e24c-4ac8-bfaf-627f9de9af65</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>22</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>db76aa5e-6905-436b-84ba-b5c08bf37b86</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>23</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>4f50933e-90bf-4dc7-bc87-2c2a83a7e98e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>24</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>9808b669-f3b3-47a7-af4b-a8a5239b5ca5</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>25</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>addafce8-f232-412f-a4d4-7320cc5eee80</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>26</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3937324a-a95b-4c4d-b265-6eb050372110</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>27</OID>
+                      <Parent>17</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>162.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ff577b19-c477-4333-af52-91835c71e5a9</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>181 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>181 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>28</OID>
+                  <Parent>16</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>180 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>384 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>248 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>248 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>248 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>b0548db6-7d45-4597-a087-de40464eaae0</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>29</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>30</OID>
+                  <Parent>29</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>31</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>d0f0421e-ced2-4510-a37b-a03ce4b70d86</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>32</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ef302618-79cc-4417-a771-3accb154d097</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>33</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>4312b176-165c-4c34-a4dc-37a9c7d8c012</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>34</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>7049028d-3fab-4a84-9a20-f9bfaca38c53</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>35</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>b83bf9f6-c3e8-4267-b80e-243f9769e15c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>36</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>d0db28df-baa6-4b59-b50c-9dc8074c8ceb</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>37</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>44d29ebf-eaaa-4503-b64d-c0f4273e7ec6</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>127 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>127 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>38</OID>
+                  <Parent>29</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>126 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>576 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>194 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>194 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>194 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>9b84a7b1-5547-4536-935c-9b5214d82627</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>39</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>40</OID>
+                  <Parent>39</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>41</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5799a75e-6af5-4b80-b4d2-fc2555dac842</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>42</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>f0b85964-2603-41db-a819-1f1ebb16ef60</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>43</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c9cd988a-4a8d-4791-ad08-0e4eea356917</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>44</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ac203d87-d2d5-4ca9-bfd8-23da2478eda6</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>45</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e64909fc-bf44-452e-9e6f-f4882cff88c5</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>46</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3f6ab9c5-595c-44c5-8bed-796158ac6573</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>47</OID>
+                      <Parent>40</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5720b6b5-4df1-4c0d-94f3-48bcd3b53547</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>127 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>127 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>48</OID>
+                  <Parent>39</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>126 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>760 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>194 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>194 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>194 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>4eefd017-d084-493a-8431-c3a91905c313</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>49</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>50</OID>
+                  <Parent>49</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>51</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5ba98ad5-bf72-467e-bad2-82114b0380c9</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>52</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>93a81047-f223-49f5-90a1-96a9d47ba974</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>53</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>15e9970f-0623-4bf2-a16b-94a43fce60d0</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>54</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5cad0334-d4ea-4ad0-a17b-43de5582dce8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>55</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>26d2dadf-997f-41ae-9ec8-bd9d8ac24c51</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>56</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>72bc4347-c6d1-449e-bc06-bde0e595145b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>57</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>de46472e-a550-4b16-8f46-ec32a99ccbf8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>58</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>6c2fca7e-3177-481e-8770-ab83358f04f3</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>59</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2451da16-f4ee-4312-b2a4-03fffa21b7cb</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>60</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>162.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>f4fcbeab-7880-40fd-86e9-26b619b45c87</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>61</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>180.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>b2e9e09d-724b-46bc-bb66-8dff6f569bd9</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>62</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>198.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>6ec7cfe8-1dd8-4b60-ae82-6cf263ea4c9d</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>63</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>216.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>f9d79f4d-c2dd-40bd-9e51-cc34a9e72db3</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>64</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>234.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8c882421-1f95-480a-a425-d9c7b2756980</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>65</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>252.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>01969d3b-7687-4b4e-a9c5-012ae1d66401</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>66</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>270.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>91f325e7-ecef-4392-b2a5-cdff9b8b0b3e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>67</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>288.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>9f7108c0-ce52-4571-a408-0176785840b5</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>68</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>306.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>556a7360-729a-49a0-8f7c-c7849c23bdc7</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>69</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>324.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>dcce3277-c2b6-4b73-8b14-868661286c88</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>70</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>342.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>0b71f011-0811-4428-b6d7-23c02a274bca</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>71</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>360.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>87873e4d-d47c-4924-be92-7b1bde4c5b7d</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>72</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>378.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>b0e05211-0274-4fda-98be-5894d51cb43e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>397 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>397 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>73</OID>
+                  <Parent>49</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>396 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Size>
+              <Width>150 px</Width>
+              <Height>464 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>464 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>464 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>0708d8c2-2325-4106-8673-c5f82924130d</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+        </Children>
+        <GridSize>8 px</GridSize>
+        <ViewPort>
+          <ScaleMode>Free</ScaleMode>
+          <Scale>1</Scale>
+          <Location>
+            <X>-128 px</X>
+            <Y>-161 px</Y>
+          </Location>
+        </ViewPort>
+        <Oid xsi:type="SchemaModelOID">
+          <Path>8e63e51f-a14d-4100-a1ad-eaad021dffeb</Path>
+          <TypeName>EntityDeveloper.NHibernate.HibernateContextModel</TypeName>
+        </Oid>
+      </Model>
+    </DiagramModel>
+  </Diagram>
+  <DiagramOptions Version="v2.0">
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="PageOptions">
+      <TopLeftMargins>
+        <Width>39.3700787401575 in/100</Width>
+        <Height>39.3700787401575 in/100</Height>
+      </TopLeftMargins>
+      <BottomRightMargins>
+        <Width>39.3700787401575 in/100</Width>
+        <Height>39.3700787401575 in/100</Height>
+      </BottomRightMargins>
+      <PaperSize>
+        <Width>827 in/100</Width>
+        <Height>1169 in/100</Height>
+      </PaperSize>
+    </Options>
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="PrintOptions" />
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ViewOptions">
+      <ShadowOffset>
+        <X>4 px</X>
+        <Y>4 px</Y>
+      </ShadowOffset>
+      <CustomProperties />
+    </Options>
+    <EdDiagramOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+      <CustomProperties />
+    </EdDiagramOptions>
+  </DiagramOptions>
+</EntityDeveloperDiagram>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.cs b/ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.cs
new file mode 100644
index 0000000..9d99e25
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.HICUSTOMER in the schema.
+    /// </summary>
+    public partial class HICUSTOMER {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for HICUSTOMER constructor in the schema.
+        /// </summary>
+        public HICUSTOMER()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERFSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OWNERFSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERUFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> OWNERUFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERTPCLID in the schema.
+        /// </summary>
+        public virtual string OWNERTPCLID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for NAME1 in the schema.
+        /// </summary>
+        public virtual string NAME1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUP1 in the schema.
+        /// </summary>
+        public virtual string GROUP1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for HICUSCAPACITY in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> HICUSCAPACITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METRNUMB in the schema.
+        /// </summary>
+        public virtual string METRNUMB
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for VLEVEL in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> VLEVEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CABTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> CABTYPE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.hbm.xml b/ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.hbm.xml
new file mode 100644
index 0000000..b7a84a1
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.HICUSTOMER.hbm.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="BASEDBModel" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TaiPower.Dmm.Model.HICUSTOMER" table="HICUSTOMER" schema="BASEDB">
+    <id name="UFID" type="Int64">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="OWNERFSC" type="Int32">
+      <column name="OWNERFSC" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="OWNERUFID" type="Int64">
+      <column name="OWNERUFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="OWNERTPCLID" type="String">
+      <column name="OWNERTPCLID" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="NAME1" type="String">
+      <column name="NAME1" not-null="false" length="40" sql-type="VARCHAR2(40 CHAR)" />
+    </property>
+    <property name="GROUP1" type="String">
+      <column name="GROUP1" not-null="false" length="3" sql-type="VARCHAR2(3 CHAR)" />
+    </property>
+    <property name="HICUSCAPACITY" type="Double">
+      <column name="HICUS_CAPACITY" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="METRNUMB" type="String">
+      <column name="METR_NUMB" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="VLEVEL" type="Int32">
+      <column name="VLEVEL" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="CABTYPE" type="Int32">
+      <column name="CABTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.METER.cs b/ORModel/BASEDB/DataModel.BASEDB.METER.cs
new file mode 100644
index 0000000..8a33f16
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.METER.cs
@@ -0,0 +1,113 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.METER in the schema.
+    /// </summary>
+    public partial class METER {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for METER constructor in the schema.
+        /// </summary>
+        public METER()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METRNUMB in the schema.
+        /// </summary>
+        public virtual string METRNUMB
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for BILLCYCL in the schema.
+        /// </summary>
+        public virtual string BILLCYCL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TRANCORD in the schema.
+        /// </summary>
+        public virtual string TRANCORD
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTTYPE in the schema.
+        /// </summary>
+        public virtual string CUSTTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TELENUMB in the schema.
+        /// </summary>
+        public virtual string TELENUMB
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for VAIDDATE in the schema.
+        /// </summary>
+        public virtual string VAIDDATE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ENTRDATE in the schema.
+        /// </summary>
+        public virtual string ENTRDATE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/BASEDB/DataModel.BASEDB.METER.hbm.xml b/ORModel/BASEDB/DataModel.BASEDB.METER.hbm.xml
new file mode 100644
index 0000000..f60e860
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.METER.hbm.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="BASEDBModel" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TaiPower.Dmm.Model.METER" table="METER" schema="BASEDB">
+    <id name="METRNUMB" type="String">
+      <column name="METR_NUMB" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" />
+      <generator class="assigned" />
+    </id>
+    <property name="BILLCYCL" type="String">
+      <column name="BILL_CYCL" not-null="false" length="4" sql-type="VARCHAR2(4 CHAR)" />
+    </property>
+    <property name="TRANCORD" type="String">
+      <column name="TRAN_CORD" not-null="false" length="34" sql-type="VARCHAR2(34 CHAR)" />
+    </property>
+    <property name="CUSTTYPE" type="String">
+      <column name="CUST_TYPE" not-null="false" length="2" sql-type="VARCHAR2(2 CHAR)" />
+    </property>
+    <property name="TELENUMB" type="String">
+      <column name="TELE_NUMB" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="VAIDDATE" type="String">
+      <column name="VAID_DATE" not-null="false" length="7" sql-type="VARCHAR2(7 CHAR)" />
+    </property>
+    <property name="ENTRDATE" type="String">
+      <column name="ENTR_DATE" not-null="false" length="7" sql-type="VARCHAR2(7 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.MSTADDR.cs b/ORModel/BASEDB/DataModel.BASEDB.MSTADDR.cs
new file mode 100644
index 0000000..30fa440
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.MSTADDR.cs
@@ -0,0 +1,113 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.MSTADDR in the schema.
+    /// </summary>
+    public partial class MSTADDR {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for MSTADDR constructor in the schema.
+        /// </summary>
+        public MSTADDR()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MCYCLE in the schema.
+        /// </summary>
+        public virtual string MCYCLE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MCUSTNO in the schema.
+        /// </summary>
+        public virtual string MCUSTNO
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MNAME in the schema.
+        /// </summary>
+        public virtual string MNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MADDR in the schema.
+        /// </summary>
+        public virtual string MADDR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MAZIP in the schema.
+        /// </summary>
+        public virtual string MAZIP
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MMARK in the schema.
+        /// </summary>
+        public virtual string MMARK
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MNAMEE in the schema.
+        /// </summary>
+        public virtual string MNAMEE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/BASEDB/DataModel.BASEDB.MSTADDR.hbm.xml b/ORModel/BASEDB/DataModel.BASEDB.MSTADDR.hbm.xml
new file mode 100644
index 0000000..ae53eaa
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.MSTADDR.hbm.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="BASEDBModel" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TaiPower.Dmm.Model.MSTADDR" table="MSTADDR" schema="BASEDB">
+    <id name="MCUSTNO" type="String">
+      <column name="M_CUST_NO" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+      <generator class="assigned" />
+    </id>
+    <property name="MCYCLE" type="String">
+      <column name="M_CYCLE" not-null="false" length="2" sql-type="VARCHAR2(2 CHAR)" />
+    </property>
+    <property name="MNAME" type="String">
+      <column name="M_NAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="MADDR" type="String">
+      <column name="M_ADDR" not-null="false" length="100" sql-type="VARCHAR2(100 CHAR)" />
+    </property>
+    <property name="MAZIP" type="String">
+      <column name="M_AZIP" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+    <property name="MMARK" type="String">
+      <column name="M_MARK" not-null="false" length="1" sql-type="VARCHAR2(1 CHAR)" />
+    </property>
+    <property name="MNAMEE" type="String">
+      <column name="M_NAME_E" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.SXFMR.cs b/ORModel/BASEDB/DataModel.BASEDB.SXFMR.cs
new file mode 100644
index 0000000..74fb7f4
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.SXFMR.cs
@@ -0,0 +1,263 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:28:50
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.SXFMR in the schema.
+    /// </summary>
+    public partial class SXFMR {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for SXFMR constructor in the schema.
+        /// </summary>
+        public SXFMR()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> SXFMRTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERFSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> OWNERFSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERUFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> OWNERUFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OWNERTPCLID in the schema.
+        /// </summary>
+        public virtual string OWNERTPCLID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUP1 in the schema.
+        /// </summary>
+        public virtual string GROUP1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRCAPACITY1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> SXFMRCAPACITY1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRCAPACITY2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> SXFMRCAPACITY2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SXFMRCAPACITY3 in the schema.
+        /// </summary>
+        public virtual System.Nullable<double> SXFMRCAPACITY3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SUPPLYTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> SUPPLYTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for LIGHTTYPE1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> LIGHTTYPE1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for LIGHTTYPE2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> LIGHTTYPE2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for LIGHTTYPE3 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> LIGHTTYPE3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE1 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE2 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PHASE3 in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PHASE3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCNO1 in the schema.
+        /// </summary>
+        public virtual string TPCNO1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCNO2 in the schema.
+        /// </summary>
+        public virtual string TPCNO2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCNO3 in the schema.
+        /// </summary>
+        public virtual string TPCNO3
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TCOUNT in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> TCOUNT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for VLEVEL in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> VLEVEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CABTYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> CABTYPE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/BASEDB/DataModel.BASEDB.SXFMR.hbm.xml b/ORModel/BASEDB/DataModel.BASEDB.SXFMR.hbm.xml
new file mode 100644
index 0000000..ef41942
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.SXFMR.hbm.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="BASEDBModel" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TaiPower.Dmm.Model.SXFMR" table="SXFMR" schema="BASEDB">
+    <id name="UFID" type="Int64">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="SXFMRTYPE" type="Int32">
+      <column name="SXFMR_TYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="OWNERFSC" type="Int32">
+      <column name="OWNERFSC" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="OWNERUFID" type="Int64">
+      <column name="OWNERUFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="OWNERTPCLID" type="String">
+      <column name="OWNERTPCLID" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="GROUP1" type="String">
+      <column name="GROUP1" not-null="false" length="3" sql-type="VARCHAR2(3 CHAR)" />
+    </property>
+    <property name="SXFMRCAPACITY1" type="Double">
+      <column name="SXFMR_CAPACITY1" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="SXFMRCAPACITY2" type="Double">
+      <column name="SXFMR_CAPACITY2" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="SXFMRCAPACITY3" type="Double">
+      <column name="SXFMR_CAPACITY3" not-null="false" precision="10" scale="3" sql-type="NUMBER(10,3)" />
+    </property>
+    <property name="SUPPLYTYPE" type="Int32">
+      <column name="SUPPLYTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="LIGHTTYPE1" type="Int32">
+      <column name="LIGHTTYPE1" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="LIGHTTYPE2" type="Int32">
+      <column name="LIGHTTYPE2" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="LIGHTTYPE3" type="Int32">
+      <column name="LIGHTTYPE3" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE1" type="Int32">
+      <column name="PHASE1" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE2" type="Int32">
+      <column name="PHASE2" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="PHASE3" type="Int32">
+      <column name="PHASE3" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="TPCNO1" type="String">
+      <column name="TPCNO1" not-null="false" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="TPCNO2" type="String">
+      <column name="TPCNO2" not-null="false" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="TPCNO3" type="String">
+      <column name="TPCNO3" not-null="false" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="TCOUNT" type="Int64">
+      <column name="TCOUNT" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="VLEVEL" type="Int32">
+      <column name="VLEVEL" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="CABTYPE" type="Int32">
+      <column name="CABTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.edps b/ORModel/BASEDB/DataModel.BASEDB.edps
new file mode 100644
index 0000000..385564f
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.edps
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntityDeveloper Version="5.8.841.0">
+  <ModelSettings xmlns:ed="http://devart.com/schemas/EntityDeveloper/1.0" ConnectionStringInAppConfig="False" DetectTPTInheritance="True">
+    <Connection ConnectionString="USER ID=basedb;PASSWORD=basedb000;DATA SOURCE=TCTPC;PERSIST SECURITY INFO=True" Provider="Oracle.ManagedDataAccess.Client" />
+    <Generation />
+    <generator class="assigned" />
+    <DatabaseFirstNamingRules>
+      <EntitySet PluralizationName="Pluralize" />
+      <Class UseSchemaAsPrefix="False" PluralizeCollectionNavigationPropertyName="True" RemoveUnderscores="True" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Singularize" />
+      <Property RemoveUnderscores="True" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Unchanged" />
+    </DatabaseFirstNamingRules>
+    <ModelFirst StorageSynchronizationEnabled="False" TargetSchema="BASEDB" TargetProviderName="Oracle.ManagedDataAccess.Client">
+      <TargetServer Server="Oracle" ServerVersion="10gR2" />
+      <ModelFirstNamingRules>
+        <Table RemoveUnderscores="False" RemoveInvalidCharacters="True" CodeCase="Unchanged" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Pluralize" />
+        <Column RemoveUnderscores="False" RemoveInvalidCharacters="True" CodeCase="Unchanged" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Unchanged" />
+      </ModelFirstNamingRules>
+    </ModelFirst>
+    <Diagrams>
+      <Diagram Name="Diagram1" DefaultDiagram="True" />
+    </Diagrams>
+    <Templates>
+      <Template Name="NHibernate" Description="Use this template to generate classes and xml mappings for an NHibernate model." Enabled="True" PredefinedTemplateName="NHibernate C#">
+        <ed:Property Name="ValidationFramework" Type="EntityDeveloper.TemplateEngine.ValidationFramework, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <ValidationFramework>None</ValidationFramework>
+        </ed:Property>
+        <ed:Property Name="ValidationErrorMessages" Type="EntityDeveloper.TemplateEngine.ValidationErrorMessages, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <ValidationErrorMessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
+        </ed:Property>
+        <ed:Property Name="FilePerClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="ModelNameAsFilesPrefix" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="HeaderTimestampVersionControlTag" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <string d6p1:nil="true" xmlns:d6p1="http://www.w3.org/2001/XMLSchema-instance" />
+        </ed:Property>
+        <ed:Property Name="EntitiesOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <Project />
+            <ProjectFolder />
+            <DestinationFolder />
+          </OutputInfo>
+        </ed:Property>
+        <ed:Property Name="NHibernateV3Compatible" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="PropertyChangeNotifiers" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="PropertyChangePartialMethods" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementValidatable" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementEquals" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementCloneable" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GeneratePartialClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateDataContracts" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateDummyComments" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateSerializableAttributes" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="XmlMappingOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <Project />
+            <ProjectFolder />
+            <DestinationFolder />
+          </OutputInfo>
+        </ed:Property>
+        <ed:Property Name="XmlMappingAction" Type="EntityDeveloper.MetadataArtifactProcessing, EntityDeveloper.Orm.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <MetadataArtifactProcessing>CopyToOutputDirectory</MetadataArtifactProcessing>
+        </ed:Property>
+        <ed:Property Name="XmlMappingFilePerClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+      </Template>
+    </Templates>
+    <AttributeAssemblies />
+    <Configuration SeparateConfigFile="False" />
+  </ModelSettings>
+</EntityDeveloper>
\ No newline at end of file
diff --git a/ORModel/BASEDB/DataModel.BASEDB.hbml b/ORModel/BASEDB/DataModel.BASEDB.hbml
new file mode 100644
index 0000000..7f3f5fd
--- /dev/null
+++ b/ORModel/BASEDB/DataModel.BASEDB.hbml
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping p1:Guid="8e63e51f-a14d-4100-a1ad-eaad021dffeb" xmlns:p1="http://devart.com/schemas/EntityDeveloper/1.0" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TaiPower.Dmm.Model.CONNECTIVITY" table="CONNECTIVITY" schema="BASEDB" p1:Guid="e6c586ea-eb11-407f-b15e-aa64ad19b54d">
+    <composite-id>
+      <key-property name="FSC" type="Int32" p1:ValidateRequired="true" p1:Guid="c13a4bf0-9754-443b-bf6b-4b2eafec4605">
+        <column name="FSC" not-null="true" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+      <key-property name="UFID" type="Int64" p1:ValidateRequired="true" p1:Guid="d1176a72-3e0e-49bf-a320-afb1218adf5f">
+        <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+    <property name="N1" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="dcb4d341-860a-4edb-b760-dc7a2d62f5d7">
+      <column name="N1" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="N2" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="e72365cc-633d-4121-84c1-d973696c8c9f">
+      <column name="N2" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="FDR1" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="5ca55fe0-721b-4df4-b845-0252ff3076df">
+      <column name="FDR1" not-null="false" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="FDR2" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="5d3dc55b-e548-4f61-93ba-2ab6dd1920eb">
+      <column name="FDR2" not-null="false" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="DIR" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="ceb66227-1ae9-4917-a80a-45abf1feb50c">
+      <column name="DIR" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OHUG" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="0e94923d-78c5-49a1-86db-5d9060cbdc8d">
+      <column name="OHUG" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OSTATUS" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="93f7584e-7205-4025-9f70-7895bcf11e70">
+      <column name="OSTATUS" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="PHASE" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="3f175b85-37d1-4ee2-b6a8-49bf486b67d8">
+      <column name="PHASE" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="X" type="Double" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="20fab364-3b62-470c-94e1-0d4c65b23c5b">
+      <column name="X" not-null="false" precision="10" scale="3" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="Y" type="Double" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="e8458aa3-2b72-4c5b-aa20-29dee2debdbe">
+      <column name="Y" not-null="false" precision="10" scale="3" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="TaiPower.Dmm.Model.HICUSTOMER" table="HICUSTOMER" schema="BASEDB" p1:Guid="b0548db6-7d45-4597-a087-de40464eaae0">
+    <id name="UFID" type="Int64" p1:ValidateRequired="true" p1:Guid="9134d2df-1b16-4dc7-86a3-3e734582c7bd">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="OWNERFSC" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="37777a5f-518d-4978-9d4a-ae01ef0c63c7">
+      <column name="OWNERFSC" not-null="false" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OWNERUFID" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="a57676ae-6d5a-4be7-98f3-d07d0f723d0c">
+      <column name="OWNERUFID" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OWNERTPCLID" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="3b46295a-e24c-4ac8-bfaf-627f9de9af65">
+      <column name="OWNERTPCLID" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="NAME1" type="String" p1:nullable="true" p1:ValidateMaxLength="40" p1:ValidateRequired="false" p1:Guid="db76aa5e-6905-436b-84ba-b5c08bf37b86">
+      <column name="NAME1" not-null="false" length="40" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="GROUP1" type="String" p1:nullable="true" p1:ValidateMaxLength="3" p1:ValidateRequired="false" p1:Guid="4f50933e-90bf-4dc7-bc87-2c2a83a7e98e">
+      <column name="GROUP1" not-null="false" length="3" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="HICUSCAPACITY" type="Double" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="9808b669-f3b3-47a7-af4b-a8a5239b5ca5">
+      <column name="HICUS_CAPACITY" not-null="false" precision="10" scale="3" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="METRNUMB" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="addafce8-f232-412f-a4d4-7320cc5eee80">
+      <column name="METR_NUMB" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="VLEVEL" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="3937324a-a95b-4c4d-b265-6eb050372110">
+      <column name="VLEVEL" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="CABTYPE" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="ff577b19-c477-4333-af52-91835c71e5a9">
+      <column name="CABTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="TaiPower.Dmm.Model.METER" table="METER" schema="BASEDB" p1:Guid="9b84a7b1-5547-4536-935c-9b5214d82627">
+    <id name="METRNUMB" type="String" p1:ValidateMaxLength="11" p1:ValidateRequired="true" p1:Guid="d0f0421e-ced2-4510-a37b-a03ce4b70d86">
+      <column name="METR_NUMB" not-null="true" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </id>
+    <property name="BILLCYCL" type="String" p1:nullable="true" p1:ValidateMaxLength="4" p1:ValidateRequired="false" p1:Guid="ef302618-79cc-4417-a771-3accb154d097">
+      <column name="BILL_CYCL" not-null="false" length="4" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="TRANCORD" type="String" p1:nullable="true" p1:ValidateMaxLength="34" p1:ValidateRequired="false" p1:Guid="4312b176-165c-4c34-a4dc-37a9c7d8c012">
+      <column name="TRAN_CORD" not-null="false" length="34" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTTYPE" type="String" p1:nullable="true" p1:ValidateMaxLength="2" p1:ValidateRequired="false" p1:Guid="7049028d-3fab-4a84-9a20-f9bfaca38c53">
+      <column name="CUST_TYPE" not-null="false" length="2" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="TELENUMB" type="String" p1:nullable="true" p1:ValidateMaxLength="24" p1:ValidateRequired="false" p1:Guid="b83bf9f6-c3e8-4267-b80e-243f9769e15c">
+      <column name="TELE_NUMB" not-null="false" length="24" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="VAIDDATE" type="String" p1:nullable="true" p1:ValidateMaxLength="7" p1:ValidateRequired="false" p1:Guid="d0db28df-baa6-4b59-b50c-9dc8074c8ceb">
+      <column name="VAID_DATE" not-null="false" length="7" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ENTRDATE" type="String" p1:nullable="true" p1:ValidateMaxLength="7" p1:ValidateRequired="false" p1:Guid="44d29ebf-eaaa-4503-b64d-c0f4273e7ec6">
+      <column name="ENTR_DATE" not-null="false" length="7" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="TaiPower.Dmm.Model.MSTADDR" table="MSTADDR" schema="BASEDB" p1:Guid="4eefd017-d084-493a-8431-c3a91905c313">
+    <id name="MCUSTNO" type="String" p1:ValidateMaxLength="11" p1:ValidateRequired="true" p1:Guid="f0b85964-2603-41db-a819-1f1ebb16ef60">
+      <column name="M_CUST_NO" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </id>
+    <property name="MCYCLE" type="String" p1:nullable="true" p1:ValidateMaxLength="2" p1:ValidateRequired="false" p1:Guid="5799a75e-6af5-4b80-b4d2-fc2555dac842">
+      <column name="M_CYCLE" not-null="false" length="2" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="MNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="50" p1:ValidateRequired="false" p1:Guid="c9cd988a-4a8d-4791-ad08-0e4eea356917">
+      <column name="M_NAME" not-null="false" length="50" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="MADDR" type="String" p1:nullable="true" p1:ValidateMaxLength="100" p1:ValidateRequired="false" p1:Guid="ac203d87-d2d5-4ca9-bfd8-23da2478eda6">
+      <column name="M_ADDR" not-null="false" length="100" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="MAZIP" type="String" p1:nullable="true" p1:ValidateMaxLength="5" p1:ValidateRequired="false" p1:Guid="e64909fc-bf44-452e-9e6f-f4882cff88c5">
+      <column name="M_AZIP" not-null="false" length="5" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="MMARK" type="String" p1:nullable="true" p1:ValidateMaxLength="1" p1:ValidateRequired="false" p1:Guid="3f6ab9c5-595c-44c5-8bed-796158ac6573">
+      <column name="M_MARK" not-null="false" length="1" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="MNAMEE" type="String" p1:nullable="true" p1:ValidateMaxLength="50" p1:ValidateRequired="false" p1:Guid="5720b6b5-4df1-4c0d-94f3-48bcd3b53547">
+      <column name="M_NAME_E" not-null="false" length="50" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="TaiPower.Dmm.Model.SXFMR" table="SXFMR" schema="BASEDB" p1:Guid="0708d8c2-2325-4106-8673-c5f82924130d">
+    <id name="UFID" type="Int64" p1:ValidateRequired="true" p1:Guid="5ba98ad5-bf72-467e-bad2-82114b0380c9">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="SXFMRTYPE" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="93a81047-f223-49f5-90a1-96a9d47ba974">
+      <column name="SXFMR_TYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OWNERFSC" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="15e9970f-0623-4bf2-a16b-94a43fce60d0">
+      <column name="OWNERFSC" not-null="false" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OWNERUFID" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="5cad0334-d4ea-4ad0-a17b-43de5582dce8">
+      <column name="OWNERUFID" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OWNERTPCLID" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="26d2dadf-997f-41ae-9ec8-bd9d8ac24c51">
+      <column name="OWNERTPCLID" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="GROUP1" type="String" p1:nullable="true" p1:ValidateMaxLength="3" p1:ValidateRequired="false" p1:Guid="72bc4347-c6d1-449e-bc06-bde0e595145b">
+      <column name="GROUP1" not-null="false" length="3" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="SXFMRCAPACITY1" type="Double" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="de46472e-a550-4b16-8f46-ec32a99ccbf8">
+      <column name="SXFMR_CAPACITY1" not-null="false" precision="10" scale="3" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="SXFMRCAPACITY2" type="Double" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="6c2fca7e-3177-481e-8770-ab83358f04f3">
+      <column name="SXFMR_CAPACITY2" not-null="false" precision="10" scale="3" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="SXFMRCAPACITY3" type="Double" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="2451da16-f4ee-4312-b2a4-03fffa21b7cb">
+      <column name="SXFMR_CAPACITY3" not-null="false" precision="10" scale="3" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="SUPPLYTYPE" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="f4fcbeab-7880-40fd-86e9-26b619b45c87">
+      <column name="SUPPLYTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="LIGHTTYPE1" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="b2e9e09d-724b-46bc-bb66-8dff6f569bd9">
+      <column name="LIGHTTYPE1" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="LIGHTTYPE2" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="6ec7cfe8-1dd8-4b60-ae82-6cf263ea4c9d">
+      <column name="LIGHTTYPE2" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="LIGHTTYPE3" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="f9d79f4d-c2dd-40bd-9e51-cc34a9e72db3">
+      <column name="LIGHTTYPE3" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="PHASE1" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="8c882421-1f95-480a-a425-d9c7b2756980">
+      <column name="PHASE1" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="PHASE2" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="01969d3b-7687-4b4e-a9c5-012ae1d66401">
+      <column name="PHASE2" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="PHASE3" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="91f325e7-ecef-4392-b2a5-cdff9b8b0b3e">
+      <column name="PHASE3" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="TPCNO1" type="String" p1:nullable="true" p1:ValidateMaxLength="6" p1:ValidateRequired="false" p1:Guid="9f7108c0-ce52-4571-a408-0176785840b5">
+      <column name="TPCNO1" not-null="false" length="6" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="TPCNO2" type="String" p1:nullable="true" p1:ValidateMaxLength="6" p1:ValidateRequired="false" p1:Guid="556a7360-729a-49a0-8f7c-c7849c23bdc7">
+      <column name="TPCNO2" not-null="false" length="6" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="TPCNO3" type="String" p1:nullable="true" p1:ValidateMaxLength="6" p1:ValidateRequired="false" p1:Guid="dcce3277-c2b6-4b73-8b14-868661286c88">
+      <column name="TPCNO3" not-null="false" length="6" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="TCOUNT" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="0b71f011-0811-4428-b6d7-23c02a274bca">
+      <column name="TCOUNT" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="VLEVEL" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="87873e4d-d47c-4924-be92-7b1bde4c5b7d">
+      <column name="VLEVEL" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="CABTYPE" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="b0e05211-0274-4fda-98be-5894d51cb43e">
+      <column name="CABTYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.ADDRCONTRAST.cs b/ORModel/CCS/DataModel-CCS.ADDRCONTRAST.cs
new file mode 100644
index 0000000..844b1f1
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.ADDRCONTRAST.cs
@@ -0,0 +1,110 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.ADDRCONTRAST in the schema.
+    /// </summary>
+    public partial class ADDRCONTRAST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          ADDRCONTRAST toCompare = obj as ADDRCONTRAST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.DEPTID, toCompare.DEPTID))
+            return false;
+          if (!Object.Equals(this.CITY, toCompare.CITY))
+            return false;
+          if (!Object.Equals(this.ROAD, toCompare.ROAD))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + DEPTID.GetHashCode();
+          hashCode = (hashCode * 7) + CITY.GetHashCode();
+          hashCode = (hashCode * 7) + ROAD.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for ADDRCONTRAST constructor in the schema.
+        /// </summary>
+        public ADDRCONTRAST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPTID in the schema.
+        /// </summary>
+        public virtual int DEPTID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CITY in the schema.
+        /// </summary>
+        public virtual string CITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TOWN in the schema.
+        /// </summary>
+        public virtual string TOWN
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ROAD in the schema.
+        /// </summary>
+        public virtual string ROAD
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.ADDRCONTRAST.hbm.xml b/ORModel/CCS/DataModel-CCS.ADDRCONTRAST.hbm.xml
new file mode 100644
index 0000000..424bf43
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.ADDRCONTRAST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="ADDRCONTRAST" table="ADDR_CONTRAST" schema="CCS">
+    <composite-id>
+      <key-property name="DEPTID" type="Int32">
+        <column name="DEPTID" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+      </key-property>
+      <key-property name="CITY" type="String">
+        <column name="CITY" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+      </key-property>
+      <key-property name="ROAD" type="String">
+        <column name="ROAD" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+      </key-property>
+    </composite-id>
+    <property name="TOWN" type="String">
+      <column name="TOWN" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.ALARMIP.cs b/ORModel/CCS/DataModel-CCS.ALARMIP.cs
new file mode 100644
index 0000000..8e6ef3c
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.ALARMIP.cs
@@ -0,0 +1,83 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.ALARMIP in the schema.
+    /// </summary>
+    public partial class ALARMIP {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for ALARMIP constructor in the schema.
+        /// </summary>
+        public ALARMIP()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPTID in the schema.
+        /// </summary>
+        public virtual int DEPTID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IP1 in the schema.
+        /// </summary>
+        public virtual string IP1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IP2 in the schema.
+        /// </summary>
+        public virtual string IP2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IPPATROL in the schema.
+        /// </summary>
+        public virtual string IPPATROL
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.ALARMIP.hbm.xml b/ORModel/CCS/DataModel-CCS.ALARMIP.hbm.xml
new file mode 100644
index 0000000..77b887e
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.ALARMIP.hbm.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="ALARMIP" table="ALARM_IP" schema="CCS">
+    <id name="DEPTID" type="Int32">
+      <column name="DEPTID" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" unique="true" />
+      <generator class="assigned" />
+    </id>
+    <property name="IP1" type="String">
+      <column name="IP1" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="IP2" type="String">
+      <column name="IP2" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="IPPATROL" type="String">
+      <column name="IP_PATROL" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.CODELIST.cs b/ORModel/CCS/DataModel-CCS.CODELIST.cs
new file mode 100644
index 0000000..8a8b384
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.CODELIST.cs
@@ -0,0 +1,107 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.CODELIST in the schema.
+    /// </summary>
+    public partial class CODELIST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          CODELIST toCompare = obj as CODELIST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.INDEXID, toCompare.INDEXID))
+            return false;
+          if (!Object.Equals(this.KEYID, toCompare.KEYID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + INDEXID.GetHashCode();
+          hashCode = (hashCode * 7) + KEYID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CODELIST constructor in the schema.
+        /// </summary>
+        public CODELIST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for INDEXID in the schema.
+        /// </summary>
+        public virtual int INDEXID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for KEYID in the schema.
+        /// </summary>
+        public virtual int KEYID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ITEM in the schema.
+        /// </summary>
+        public virtual string ITEM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CONTENT in the schema.
+        /// </summary>
+        public virtual string CONTENT
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.CODELIST.hbm.xml b/ORModel/CCS/DataModel-CCS.CODELIST.hbm.xml
new file mode 100644
index 0000000..97c8688
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.CODELIST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CODELIST" table="CODELIST" schema="CCS">
+    <composite-id>
+      <key-property name="INDEXID" type="Int32">
+        <column name="INDEXID" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" unique-key="KEY1" />
+      </key-property>
+      <key-property name="KEYID" type="Int32">
+        <column name="KEYID" not-null="false" precision="4" scale="0" sql-type="NUMBER(4)" />
+      </key-property>
+    </composite-id>
+    <property name="ITEM" type="String">
+      <column name="ITEM" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="CONTENT" type="String">
+      <column name="CONTENT" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" unique-key="KEY1" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.DEPTCONTRAST.cs b/ORModel/CCS/DataModel-CCS.DEPTCONTRAST.cs
new file mode 100644
index 0000000..2020e26
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.DEPTCONTRAST.cs
@@ -0,0 +1,107 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.DEPTCONTRAST in the schema.
+    /// </summary>
+    public partial class DEPTCONTRAST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          DEPTCONTRAST toCompare = obj as DEPTCONTRAST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.SCCODE, toCompare.SCCODE))
+            return false;
+          if (!Object.Equals(this.DEPTCODE, toCompare.DEPTCODE))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + SCCODE.GetHashCode();
+          hashCode = (hashCode * 7) + DEPTCODE.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for DEPTCONTRAST constructor in the schema.
+        /// </summary>
+        public DEPTCONTRAST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SCCODE in the schema.
+        /// </summary>
+        public virtual string SCCODE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPTCODE in the schema.
+        /// </summary>
+        public virtual string DEPTCODE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MAXMETER in the schema.
+        /// </summary>
+        public virtual string MAXMETER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MINMETER in the schema.
+        /// </summary>
+        public virtual string MINMETER
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.DEPTCONTRAST.hbm.xml b/ORModel/CCS/DataModel-CCS.DEPTCONTRAST.hbm.xml
new file mode 100644
index 0000000..af549be
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.DEPTCONTRAST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="DEPTCONTRAST" table="DEPT_CONTRAST" schema="CCS">
+    <composite-id>
+      <key-property name="SCCODE" type="String">
+        <column name="SC_CODE" not-null="true" length="5" sql-type="VARCHAR2(5 CHAR)" />
+      </key-property>
+      <key-property name="DEPTCODE" type="String">
+        <column name="DEPT_CODE" not-null="true" length="5" sql-type="VARCHAR2(5 CHAR)" />
+      </key-property>
+    </composite-id>
+    <property name="MAXMETER" type="String">
+      <column name="MAX_METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="MINMETER" type="String">
+      <column name="MIN_METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.Diagram1.view b/ORModel/CCS/DataModel-CCS.Diagram1.view
new file mode 100644
index 0000000..fabcc13
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.Diagram1.view
@@ -0,0 +1,1813 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntityDeveloperDiagram>
+  <Diagram Version="1.20.0.97">
+    <DiagramModel>
+      <Model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ContextVwModel">
+        <CustomProperties>
+          <OID>0</OID>
+          <BackgroundColor>Window</BackgroundColor>
+        </CustomProperties>
+        <Children>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>1</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>2</OID>
+                  <Parent>1</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>3</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>1553195b-60a7-48ba-8e67-72fadc4ae217</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>4</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>cf33f99e-f0d6-4010-9446-a985ae22f867</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>5</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>569edd0b-ee9d-4bb0-b84e-1337e3422237</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>6</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c59cb7c8-7267-4d86-a06a-ca60ea9a7ec9</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>7</OID>
+                  <Parent>1</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>760 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>3ae9e7ab-6cb5-48a6-835a-32410ab2fb11</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>8</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>9</OID>
+                  <Parent>8</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>10</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>78d6e8b9-24e4-476b-9545-c0122f1a9897</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>11</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c009f732-106f-4e8c-8e24-1336f0f8336b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>12</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8bedbe5d-0ac5-452b-a7e4-0d63db15c280</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>13</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>254c7035-fac1-46d0-8595-314d795bb598</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>14</OID>
+                  <Parent>8</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>0 px</X>
+              <Y>400 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>dd759833-ca23-4ce9-acdf-377534db1c18</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>15</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>16</OID>
+                  <Parent>15</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>17</OID>
+                      <Parent>16</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>63eae86e-bf8e-4fef-8311-d440dd0d0394</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>18</OID>
+                      <Parent>16</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2138968e-d8ae-4583-8a75-3fe0696224ea</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>19</OID>
+                      <Parent>16</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2ff060bf-8f60-4d9b-a1d3-94599308b242</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>20</OID>
+                      <Parent>16</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8270869f-608d-4854-af7c-123f0298cf99</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>21</OID>
+                  <Parent>15</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>192 px</X>
+              <Y>400 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>f917c34b-3546-4a02-b157-face97ab7b8e</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>22</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>23</OID>
+                  <Parent>22</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>24</OID>
+                      <Parent>23</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ded87e20-b670-43d1-bde2-98450d136b27</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>25</OID>
+                      <Parent>23</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3f2555cc-b8e4-4dcb-b5b2-b6da8b2f450c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>26</OID>
+                      <Parent>23</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8b019785-9d42-4806-af22-c5692e481f90</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>27</OID>
+                      <Parent>23</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>60eba512-7d0e-44e7-8aed-b0e2c061dbf3</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>28</OID>
+                  <Parent>22</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>384 px</X>
+              <Y>400 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>901477dc-42d0-4cce-921b-e16c7d5d4bf7</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>29</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>30</OID>
+                  <Parent>29</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>31</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>95ce058b-0693-40f7-ad83-8dac904e07e8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>32</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>9f9ef924-57c3-43fc-911f-93bf401717b4</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>33</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>23d91413-307d-486f-ad4e-fa11eea9f771</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>34</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3096e5c3-dbc7-4527-944f-d47dbd9a9626</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>35</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>9d270db0-ef7c-4072-81b6-fdb021d6c297</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>36</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>564f42b9-9315-4ca0-bbb6-0f4c14e2e6ee</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>37</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>b96b2a8b-a23d-45d9-9b09-8710849ca424</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>38</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>18e22d1e-02a4-442c-aacb-03aea7cb4793</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>39</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>dd069840-7e36-47e9-95b9-11270603b8fc</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>40</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>162.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>1f67beaf-1f05-4373-b7fc-242089696332</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>41</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>180.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>6311d799-befc-4ebc-9474-6fd984c5eca0</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>42</OID>
+                      <Parent>30</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>198.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>928f4102-77d2-486c-bd73-d85b109cf6e4</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>217 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>217 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>43</OID>
+                  <Parent>29</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>216 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>192 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>284 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>284 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>284 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>b4e10259-e54e-4534-8fcc-b0f77b76c76f</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>44</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>45</OID>
+                  <Parent>44</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>46</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>83ef2250-a63b-48a9-8737-ca434a1fc26a</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>47</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ad687bcd-bae6-4746-b907-812f4b3a7089</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>48</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>bab7c163-2aa8-479b-87dd-fdf29b8b81d7</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>49</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>f9b18d05-9764-4300-a48d-72866739d6bc</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>50</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>03480822-2f3d-49a2-9347-37854e77a821</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>51</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>70c0b450-5da3-4769-9425-7c439f5b34a8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>52</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c97a9eb0-928d-470b-a9da-8b265830163e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>53</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>f28ae4ec-65f8-46ea-8a85-a3d73bca17a8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>54</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2d8c3f99-fc7e-4381-be8a-fedbf6c29f05</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>55</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>162.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e5b3f0b6-bd74-4194-a28e-c06a5acd8d75</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>56</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>180.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>7d6fd376-b83e-45b2-a469-9c9f8d5ee15c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>57</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>198.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>1cb5ab30-64a6-4f0d-afea-8bb064de08cc</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>58</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>216.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>136c559c-0c94-4a8a-9fee-1a80171ef06b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>59</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>234.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>424a1dd4-acd4-4973-88e6-490371d36089</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>60</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>252.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>1be3f5b6-0b8e-4479-b0b7-26ca660029c6</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>61</OID>
+                      <Parent>45</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>270.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3a0fac23-d2fd-4210-98fd-ebf78e73350b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>289 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>289 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>62</OID>
+                  <Parent>44</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>288 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Size>
+              <Width>150 px</Width>
+              <Height>356 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>356 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>356 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>3624b3da-ecaf-494e-a7e1-93c62b2f44d4</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>63</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>64</OID>
+                  <Parent>63</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>65</OID>
+                      <Parent>64</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>aad384dd-523c-46ea-9ce6-ef9f70211c17</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>66</OID>
+                      <Parent>64</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>13fd3577-630e-497f-890a-aef358e22d48</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>67</OID>
+                      <Parent>64</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5c6851f5-9274-4939-84fb-56a5c0348920</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>55 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>55 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>68</OID>
+                  <Parent>63</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>54 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>760 px</X>
+              <Y>400 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>122 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>122 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>122 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>0a0a9bb4-f3ff-4e45-a082-f6b813522c2e</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>69</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>70</OID>
+                  <Parent>69</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>71</OID>
+                      <Parent>70</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>4e69791b-6720-4f0c-9c33-bb9f2dd126c5</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>72</OID>
+                      <Parent>70</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8e591627-84f6-412a-a59e-2dc7c5eab264</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>73</OID>
+                      <Parent>70</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>219cdec1-1985-4831-8470-2a243615150d</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>55 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>55 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>74</OID>
+                  <Parent>69</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>54 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>576 px</X>
+              <Y>400 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>122 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>122 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>122 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>44b90e65-430c-47de-a4a2-3da5bdfb07a6</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>75</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>76</OID>
+                  <Parent>75</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>77</OID>
+                      <Parent>76</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>85cfb814-4ec8-4209-bfe1-7eeb2945fcc8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>78</OID>
+                      <Parent>76</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2d374a4d-c438-416a-988c-b15ad53f6ae2</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>79</OID>
+                      <Parent>76</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>d5b5aa69-4d71-4c80-b1a3-f4454f389ef2</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>80</OID>
+                      <Parent>76</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e9ccfb93-1bb3-48c2-a635-40c407c83845</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>81</OID>
+                  <Parent>75</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>576 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>584e6fb7-e44d-40b6-b521-20bffabaa868</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>82</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>83</OID>
+                  <Parent>82</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>84</OID>
+                      <Parent>83</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>d46740de-4137-44e6-b174-a35a3dbfc365</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>85</OID>
+                      <Parent>83</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e30ce78f-9d20-4513-9948-3f908652ddd2</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>86</OID>
+                      <Parent>83</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>97068ccd-ae40-470e-bf11-534bd7862f15</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>87</OID>
+                      <Parent>83</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>965b5bbc-576c-44c6-bf68-04b842b49601</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>88</OID>
+                  <Parent>82</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>384 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>84138ca0-4dd3-4130-9480-7c52e0fc4105</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+        </Children>
+        <GridSize>8 px</GridSize>
+        <ViewPort>
+          <ScaleMode>Free</ScaleMode>
+          <Scale>1</Scale>
+          <Location>
+            <X>-113 px</X>
+            <Y>-59 px</Y>
+          </Location>
+        </ViewPort>
+        <Oid xsi:type="SchemaModelOID">
+          <Path>55e82743-0000-46a7-98fe-5b741c2ff0f7</Path>
+          <TypeName>EntityDeveloper.NHibernate.HibernateContextModel</TypeName>
+        </Oid>
+      </Model>
+    </DiagramModel>
+  </Diagram>
+  <DiagramOptions Version="v2.0">
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="PageOptions">
+      <TopLeftMargins>
+        <Width>39.3700787401575 in/100</Width>
+        <Height>39.3700787401575 in/100</Height>
+      </TopLeftMargins>
+      <BottomRightMargins>
+        <Width>39.3700787401575 in/100</Width>
+        <Height>39.3700787401575 in/100</Height>
+      </BottomRightMargins>
+      <PaperSize>
+        <Width>827 in/100</Width>
+        <Height>1169 in/100</Height>
+      </PaperSize>
+    </Options>
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="PrintOptions" />
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ViewOptions">
+      <ShadowOffset>
+        <X>4 px</X>
+        <Y>4 px</Y>
+      </ShadowOffset>
+      <CustomProperties />
+    </Options>
+    <EdDiagramOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+      <CustomProperties />
+    </EdDiagramOptions>
+  </DiagramOptions>
+</EntityDeveloperDiagram>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.EVENTQUERY.cs b/ORModel/CCS/DataModel-CCS.EVENTQUERY.cs
new file mode 100644
index 0000000..5b6c15b
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.EVENTQUERY.cs
@@ -0,0 +1,163 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.EVENTQUERY in the schema.
+    /// </summary>
+    public partial class EVENTQUERY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTQUERY constructor in the schema.
+        /// </summary>
+        public EVENTQUERY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METER in the schema.
+        /// </summary>
+        public virtual string METER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASESTATUS in the schema.
+        /// </summary>
+        public virtual int CASESTATUS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CHANGETIME in the schema.
+        /// </summary>
+        public virtual System.DateTime CHANGETIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for HANDLINGSUMMARY in the schema.
+        /// </summary>
+        public virtual string HANDLINGSUMMARY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ASSUMEDTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> ASSUMEDTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ASSUMEDTIMENTH in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> ASSUMEDTIMENTH
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DELAYTIMES in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> DELAYTIMES
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for REASON in the schema.
+        /// </summary>
+        public virtual string REASON
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTLOCATION in the schema.
+        /// </summary>
+        public virtual string EVENTLOCATION
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ERRORCAUSE in the schema.
+        /// </summary>
+        public virtual string ERRORCAUSE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for INPUTTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> INPUTTIME
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.EVENTQUERY.hbm.xml b/ORModel/CCS/DataModel-CCS.EVENTQUERY.hbm.xml
new file mode 100644
index 0000000..5ff4e48
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.EVENTQUERY.hbm.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTQUERY" table="EVENTQUERY" schema="CCS">
+    <id name="CCSID" type="String">
+      <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" unique="true" />
+      <generator class="assigned" />
+    </id>
+    <property name="METER" type="String">
+      <column name="METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CASESTATUS" type="Int32">
+      <column name="CASESTATUS" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="CHANGETIME" type="DateTime">
+      <column name="CHANGETIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="HANDLINGSUMMARY" type="String">
+      <column name="HANDLINGSUMMARY" not-null="false" length="600" sql-type="VARCHAR2(600 CHAR)" />
+    </property>
+    <property name="ASSUMEDTIME" type="DateTime">
+      <column name="ASSUMEDTIME" not-null="false" sql-type="DATE" />
+    </property>
+    <property name="ASSUMEDTIMENTH" type="DateTime">
+      <column name="ASSUMEDTIME_NTH" not-null="false" sql-type="DATE" />
+    </property>
+    <property name="DELAYTIMES" type="Boolean">
+      <column name="DELAYTIMES" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="REASON" type="String">
+      <column name="REASON" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="EVENTLOCATION" type="String">
+      <column name="EVENTLOCATION" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="ERRORCAUSE" type="String">
+      <column name="ERRORCAUSE" not-null="false" length="800" sql-type="VARCHAR2(800 CHAR)" />
+    </property>
+    <property name="INPUTTIME" type="DateTime">
+      <column name="INPUTTIME" not-null="false" sql-type="DATE" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.EVENTRECORD.cs b/ORModel/CCS/DataModel-CCS.EVENTRECORD.cs
new file mode 100644
index 0000000..a129878
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.EVENTRECORD.cs
@@ -0,0 +1,203 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.EVENTRECORD in the schema.
+    /// </summary>
+    public partial class EVENTRECORD {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTRECORD constructor in the schema.
+        /// </summary>
+        public EVENTRECORD()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for METER in the schema.
+        /// </summary>
+        public virtual string METER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERNAME in the schema.
+        /// </summary>
+        public virtual string CUSTOMERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTEL in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDRCITY in the schema.
+        /// </summary>
+        public virtual string ADDRCITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDRTOWN in the schema.
+        /// </summary>
+        public virtual string ADDRTOWN
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDRROAD in the schema.
+        /// </summary>
+        public virtual string ADDRROAD
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ADDROTHER in the schema.
+        /// </summary>
+        public virtual string ADDROTHER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLNAME in the schema.
+        /// </summary>
+        public virtual string RECALLNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLTEL in the schema.
+        /// </summary>
+        public virtual string RECALLTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTBRIEF in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> EVENTBRIEF
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTTIME in the schema.
+        /// </summary>
+        public virtual System.DateTime ACCEPTTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IMPORTCASE in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> IMPORTCASE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPT in the schema.
+        /// </summary>
+        public virtual string DEPT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for PARTHICUSTOMER in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> PARTHICUSTOMER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for NOTE in the schema.
+        /// </summary>
+        public virtual string NOTE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.EVENTRECORD.hbm.xml b/ORModel/CCS/DataModel-CCS.EVENTRECORD.hbm.xml
new file mode 100644
index 0000000..5187f1f
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.EVENTRECORD.hbm.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTRECORD" table="EVENTRECORD" schema="CCS">
+    <id name="CCSID" type="String">
+      <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" unique="true" />
+      <generator class="assigned" />
+    </id>
+    <property name="METER" type="String">
+      <column name="METER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CUSTOMERNAME" type="String">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="CUSTOMERTEL" type="String">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="ADDRCITY" type="String">
+      <column name="ADDR_CITY" not-null="true" length="6" sql-type="VARCHAR2(6 CHAR)" />
+    </property>
+    <property name="ADDRTOWN" type="String">
+      <column name="ADDR_TOWN" not-null="false" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="ADDRROAD" type="String">
+      <column name="ADDR_ROAD" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="ADDROTHER" type="String">
+      <column name="ADDR_OTHER" not-null="false" length="66" sql-type="VARCHAR2(66 CHAR)" />
+    </property>
+    <property name="RECALLNAME" type="String">
+      <column name="RECALLNAME" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="RECALLTEL" type="String">
+      <column name="RECALLTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="EVENTBRIEF" type="Int32">
+      <column name="EVENTBRIEF" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime">
+      <column name="ACCEPTTIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="IMPORTCASE" type="Boolean">
+      <column name="IMPORTCASE" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="DEPT" type="String">
+      <column name="DEPT" not-null="true" length="2" sql-type="VARCHAR2(2 CHAR)" />
+    </property>
+    <property name="PARTHICUSTOMER" type="Int32">
+      <column name="PARTHICUSTOMER" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="NOTE" type="String">
+      <column name="NOTE" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.NUMCONTRAST.cs b/ORModel/CCS/DataModel-CCS.NUMCONTRAST.cs
new file mode 100644
index 0000000..e9d68a4
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.NUMCONTRAST.cs
@@ -0,0 +1,100 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.NUMCONTRAST in the schema.
+    /// </summary>
+    public partial class NUMCONTRAST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          NUMCONTRAST toCompare = obj as NUMCONTRAST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.CCSID, toCompare.CCSID))
+            return false;
+          if (!Object.Equals(this.ACCEPTNUM, toCompare.ACCEPTNUM))
+            return false;
+          if (!Object.Equals(this.CASEID, toCompare.CASEID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + CCSID.GetHashCode();
+          hashCode = (hashCode * 7) + ACCEPTNUM.GetHashCode();
+          hashCode = (hashCode * 7) + CASEID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for NUMCONTRAST constructor in the schema.
+        /// </summary>
+        public NUMCONTRAST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTNUM in the schema.
+        /// </summary>
+        public virtual string ACCEPTNUM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.NUMCONTRAST.hbm.xml b/ORModel/CCS/DataModel-CCS.NUMCONTRAST.hbm.xml
new file mode 100644
index 0000000..1c31fe1
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.NUMCONTRAST.hbm.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="NUMCONTRAST" table="NUM_CONTRAST" schema="CCS">
+    <composite-id>
+      <key-property name="CCSID" type="String">
+        <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2(11 CHAR)" unique="true" />
+      </key-property>
+      <key-property name="ACCEPTNUM" type="String">
+        <column name="ACCEPTNUM" not-null="true" length="10" sql-type="VARCHAR2(10 CHAR)" />
+      </key-property>
+      <key-property name="CASEID" type="Int64">
+        <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+    </composite-id>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.SCGROUP.cs b/ORModel/CCS/DataModel-CCS.SCGROUP.cs
new file mode 100644
index 0000000..69bea77
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.SCGROUP.cs
@@ -0,0 +1,73 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.SCGROUP in the schema.
+    /// </summary>
+    public partial class SCGROUP {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for SCGROUP constructor in the schema.
+        /// </summary>
+        public SCGROUP()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUPID in the schema.
+        /// </summary>
+        public virtual decimal GROUPID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SCCODE in the schema.
+        /// </summary>
+        public virtual string SCCODE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for SSCCODE in the schema.
+        /// </summary>
+        public virtual string SSCCODE
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.SCGROUP.hbm.xml b/ORModel/CCS/DataModel-CCS.SCGROUP.hbm.xml
new file mode 100644
index 0000000..062fb60
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.SCGROUP.hbm.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="SCGROUP" table="SCGROUP" schema="CCS">
+    <id name="GROUPID" type="Decimal">
+      <column name="GROUPID" not-null="true" sql-type="NUMBER" />
+      <generator class="assigned" />
+    </id>
+    <property name="SCCODE" type="String">
+      <column name="SC_CODE" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+    <property name="SSCCODE" type="String">
+      <column name="SSC_CODE" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.SCGROUPTIME.cs b/ORModel/CCS/DataModel-CCS.SCGROUPTIME.cs
new file mode 100644
index 0000000..54e8a53
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.SCGROUPTIME.cs
@@ -0,0 +1,83 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.SCGROUPTIME in the schema.
+    /// </summary>
+    public partial class SCGROUPTIME {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for SCGROUPTIME constructor in the schema.
+        /// </summary>
+        public SCGROUPTIME()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for GROUPID in the schema.
+        /// </summary>
+        public virtual decimal GROUPID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for WEEK in the schema.
+        /// </summary>
+        public virtual System.Nullable<decimal> WEEK
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for BEGINTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<decimal> BEGINTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ENDTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<decimal> ENDTIME
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.SCGROUPTIME.hbm.xml b/ORModel/CCS/DataModel-CCS.SCGROUPTIME.hbm.xml
new file mode 100644
index 0000000..5b5f6cd
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.SCGROUPTIME.hbm.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="SCGROUPTIME" table="SCGROUPTIME" schema="CCS">
+    <id name="GROUPID" type="Decimal">
+      <column name="GROUPID" not-null="true" sql-type="NUMBER" unique-key="KEY1" />
+      <generator class="assigned" />
+    </id>
+    <property name="WEEK" type="Decimal">
+      <column name="WEEK" not-null="false" sql-type="NUMBER" unique-key="KEY1" />
+    </property>
+    <property name="BEGINTIME" type="Decimal">
+      <column name="BEGINTIME" not-null="false" sql-type="NUMBER" />
+    </property>
+    <property name="ENDTIME" type="Decimal">
+      <column name="ENDTIME" not-null="false" sql-type="NUMBER" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.TMP.cs b/ORModel/CCS/DataModel-CCS.TMP.cs
new file mode 100644
index 0000000..1feb66a
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.TMP.cs
@@ -0,0 +1,83 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:34:25
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.CCS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.CCS.TMP in the schema.
+    /// </summary>
+    public partial class TMP {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for TMP constructor in the schema.
+        /// </summary>
+        public TMP()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for USERNAME in the schema.
+        /// </summary>
+        public virtual string USERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTTIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> ACCEPTTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACTION in the schema.
+        /// </summary>
+        public virtual string ACTION
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CCSID in the schema.
+        /// </summary>
+        public virtual string CCSID
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/CCS/DataModel-CCS.TMP.hbm.xml b/ORModel/CCS/DataModel-CCS.TMP.hbm.xml
new file mode 100644
index 0000000..8cfc3cb
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.TMP.hbm.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TMP" table="TMP" schema="CCS">
+    <id name="CCSID" type="String">
+      <column name="CCSID" not-null="false" length="10" sql-type="VARCHAR2(10 CHAR)" />
+      <generator class="assigned" />
+    </id>
+    <property name="USERNAME" type="String">
+      <column name="USERNAME" not-null="false" length="100" sql-type="VARCHAR2(100 CHAR)" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime">
+      <column name="ACCEPTTIME" not-null="false" sql-type="DATE" />
+    </property>
+    <property name="ACTION" type="String">
+      <column name="ACTION" not-null="false" length="100" sql-type="VARCHAR2(100 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.edps b/ORModel/CCS/DataModel-CCS.edps
new file mode 100644
index 0000000..c97271b
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.edps
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntityDeveloper Version="5.8.841.0">
+  <ModelSettings xmlns:ed="http://devart.com/schemas/EntityDeveloper/1.0" ConnectionStringInAppConfig="False" DetectTPTInheritance="True">
+    <Connection ConnectionString="USER ID=BASEDB;PASSWORD=basedb000;DATA SOURCE=TCTPC;PERSIST SECURITY INFO=True" Provider="Oracle.ManagedDataAccess.Client" />
+    <Generation />
+    <generator class="assigned" />
+    <DatabaseFirstNamingRules>
+      <EntitySet PluralizationName="Pluralize" />
+      <Class UseSchemaAsPrefix="False" PluralizeCollectionNavigationPropertyName="True" RemoveUnderscores="True" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Singularize" />
+      <Property RemoveUnderscores="True" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Unchanged" />
+    </DatabaseFirstNamingRules>
+    <ModelFirst StorageSynchronizationEnabled="False" TargetSchema="BASEDB" TargetProviderName="Oracle.ManagedDataAccess.Client">
+      <TargetServer Server="Oracle" ServerVersion="10gR2" />
+      <ModelFirstNamingRules>
+        <Table RemoveUnderscores="False" RemoveInvalidCharacters="True" CodeCase="Unchanged" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Pluralize" />
+        <Column RemoveUnderscores="False" RemoveInvalidCharacters="True" CodeCase="Unchanged" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Unchanged" />
+      </ModelFirstNamingRules>
+    </ModelFirst>
+    <Diagrams>
+      <Diagram Name="Diagram1" DefaultDiagram="True" />
+    </Diagrams>
+    <Templates>
+      <Template Name="NHibernate" Description="Use this template to generate classes and xml mappings for an NHibernate model." Enabled="True" PredefinedTemplateName="NHibernate C#">
+        <ed:Property Name="ValidationFramework" Type="EntityDeveloper.TemplateEngine.ValidationFramework, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <ValidationFramework>None</ValidationFramework>
+        </ed:Property>
+        <ed:Property Name="ValidationErrorMessages" Type="EntityDeveloper.TemplateEngine.ValidationErrorMessages, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <ValidationErrorMessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
+        </ed:Property>
+        <ed:Property Name="FilePerClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="ModelNameAsFilesPrefix" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="HeaderTimestampVersionControlTag" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <string d6p1:nil="true" xmlns:d6p1="http://www.w3.org/2001/XMLSchema-instance" />
+        </ed:Property>
+        <ed:Property Name="EntitiesOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <Project />
+            <ProjectFolder />
+            <DestinationFolder />
+          </OutputInfo>
+        </ed:Property>
+        <ed:Property Name="NHibernateV3Compatible" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="PropertyChangeNotifiers" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="PropertyChangePartialMethods" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementValidatable" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementEquals" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementCloneable" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GeneratePartialClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateDataContracts" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateDummyComments" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateSerializableAttributes" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="XmlMappingOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <Project />
+            <ProjectFolder />
+            <DestinationFolder />
+          </OutputInfo>
+        </ed:Property>
+        <ed:Property Name="XmlMappingAction" Type="EntityDeveloper.MetadataArtifactProcessing, EntityDeveloper.Orm.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <MetadataArtifactProcessing>CopyToOutputDirectory</MetadataArtifactProcessing>
+        </ed:Property>
+        <ed:Property Name="XmlMappingFilePerClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+      </Template>
+    </Templates>
+    <AttributeAssemblies />
+    <Configuration SeparateConfigFile="False" />
+  </ModelSettings>
+</EntityDeveloper>
\ No newline at end of file
diff --git a/ORModel/CCS/DataModel-CCS.hbml b/ORModel/CCS/DataModel-CCS.hbml
new file mode 100644
index 0000000..7dcfad7
--- /dev/null
+++ b/ORModel/CCS/DataModel-CCS.hbml
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.CCS" p1:name="BASEDBModel" p1:Guid="55e82743-0000-46a7-98fe-5b741c2ff0f7" xmlns:p1="http://devart.com/schemas/EntityDeveloper/1.0" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="ADDRCONTRAST" table="ADDR_CONTRAST" schema="CCS" p1:Guid="3ae9e7ab-6cb5-48a6-835a-32410ab2fb11">
+    <composite-id>
+      <key-property name="DEPTID" type="Int32" p1:ValidateRequired="true" p1:Guid="1553195b-60a7-48ba-8e67-72fadc4ae217">
+        <column name="DEPTID" not-null="true" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+      <key-property name="CITY" type="String" p1:ValidateMaxLength="20" p1:ValidateRequired="true" p1:Guid="cf33f99e-f0d6-4010-9446-a985ae22f867">
+        <column name="CITY" not-null="true" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+      </key-property>
+      <key-property name="ROAD" type="String" p1:ValidateMaxLength="20" p1:ValidateRequired="true" p1:Guid="c59cb7c8-7267-4d86-a06a-ca60ea9a7ec9">
+        <column name="ROAD" not-null="true" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+    <property name="TOWN" type="String" p1:nullable="true" p1:ValidateMaxLength="20" p1:ValidateRequired="false" p1:Guid="569edd0b-ee9d-4bb0-b84e-1337e3422237">
+      <column name="TOWN" not-null="false" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="ALARMIP" table="ALARM_IP" schema="CCS" p1:Guid="dd759833-ca23-4ce9-acdf-377534db1c18">
+    <id name="DEPTID" type="Int32" p1:ValidateRequired="true" p1:Guid="78d6e8b9-24e4-476b-9545-c0122f1a9897">
+      <column name="DEPTID" not-null="true" precision="5" scale="0" sql-type="NUMBER" unique="true" p1:unicode="false" />
+    </id>
+    <property name="IP1" type="String" p1:ValidateMaxLength="20" p1:ValidateRequired="true" p1:Guid="c009f732-106f-4e8c-8e24-1336f0f8336b">
+      <column name="IP1" not-null="true" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="IP2" type="String" p1:nullable="true" p1:ValidateMaxLength="20" p1:ValidateRequired="false" p1:Guid="8bedbe5d-0ac5-452b-a7e4-0d63db15c280">
+      <column name="IP2" not-null="false" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="IPPATROL" type="String" p1:ValidateMaxLength="20" p1:ValidateRequired="true" p1:Guid="254c7035-fac1-46d0-8595-314d795bb598">
+      <column name="IP_PATROL" not-null="true" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="CODELIST" table="CODELIST" schema="CCS" p1:Guid="f917c34b-3546-4a02-b157-face97ab7b8e">
+    <composite-id>
+      <key-property name="INDEXID" type="Int32" p1:ValidateRequired="true" p1:Guid="63eae86e-bf8e-4fef-8311-d440dd0d0394">
+        <column name="INDEXID" not-null="false" precision="5" scale="0" sql-type="NUMBER" unique-key="KEY1" p1:unicode="false" />
+      </key-property>
+      <key-property name="KEYID" type="Int32" p1:ValidateRequired="true" p1:Guid="2138968e-d8ae-4583-8a75-3fe0696224ea">
+        <column name="KEYID" not-null="false" precision="4" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+    <property name="ITEM" type="String" p1:nullable="true" p1:ValidateMaxLength="20" p1:ValidateRequired="false" p1:Guid="2ff060bf-8f60-4d9b-a1d3-94599308b242">
+      <column name="ITEM" not-null="false" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CONTENT" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="8270869f-608d-4854-af7c-123f0298cf99">
+      <column name="CONTENT" not-null="false" length="255" sql-type="VARCHAR2" unique-key="KEY1" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="DEPTCONTRAST" table="DEPT_CONTRAST" schema="CCS" p1:Guid="901477dc-42d0-4cce-921b-e16c7d5d4bf7">
+    <composite-id>
+      <key-property name="SCCODE" type="String" p1:ValidateMaxLength="5" p1:ValidateRequired="true" p1:Guid="ded87e20-b670-43d1-bde2-98450d136b27">
+        <column name="SC_CODE" not-null="true" length="5" sql-type="VARCHAR2" p1:unicode="false" />
+      </key-property>
+      <key-property name="DEPTCODE" type="String" p1:ValidateMaxLength="5" p1:ValidateRequired="true" p1:Guid="3f2555cc-b8e4-4dcb-b5b2-b6da8b2f450c">
+        <column name="DEPT_CODE" not-null="true" length="5" sql-type="VARCHAR2" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+    <property name="MAXMETER" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="8b019785-9d42-4806-af22-c5692e481f90">
+      <column name="MAX_METER" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="MINMETER" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="60eba512-7d0e-44e7-8aed-b0e2c061dbf3">
+      <column name="MIN_METER" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="EVENTQUERY" table="EVENTQUERY" schema="CCS" p1:Guid="b4e10259-e54e-4534-8fcc-b0f77b76c76f">
+    <id name="CCSID" type="String" p1:ValidateMaxLength="11" p1:ValidateRequired="true" p1:Guid="95ce058b-0693-40f7-ad83-8dac904e07e8">
+      <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2" unique="true" p1:unicode="false" />
+    </id>
+    <property name="METER" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="9f9ef924-57c3-43fc-911f-93bf401717b4">
+      <column name="METER" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CASESTATUS" type="Int32" p1:ValidateRequired="true" p1:Guid="23d91413-307d-486f-ad4e-fa11eea9f771">
+      <column name="CASESTATUS" not-null="true" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="CHANGETIME" type="DateTime" p1:ValidateRequired="true" p1:Guid="3096e5c3-dbc7-4527-944f-d47dbd9a9626">
+      <column name="CHANGETIME" not-null="true" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="HANDLINGSUMMARY" type="String" p1:nullable="true" p1:ValidateMaxLength="600" p1:ValidateRequired="false" p1:Guid="9d270db0-ef7c-4072-81b6-fdb021d6c297">
+      <column name="HANDLINGSUMMARY" not-null="false" length="600" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ASSUMEDTIME" type="DateTime" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="564f42b9-9315-4ca0-bbb6-0f4c14e2e6ee">
+      <column name="ASSUMEDTIME" not-null="false" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="ASSUMEDTIMENTH" type="DateTime" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="b96b2a8b-a23d-45d9-9b09-8710849ca424">
+      <column name="ASSUMEDTIME_NTH" not-null="false" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="DELAYTIMES" type="Boolean" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="18e22d1e-02a4-442c-aacb-03aea7cb4793">
+      <column name="DELAYTIMES" not-null="false" precision="1" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="REASON" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="dd069840-7e36-47e9-95b9-11270603b8fc">
+      <column name="REASON" not-null="false" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="EVENTLOCATION" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="1f67beaf-1f05-4373-b7fc-242089696332">
+      <column name="EVENTLOCATION" not-null="false" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ERRORCAUSE" type="String" p1:nullable="true" p1:ValidateMaxLength="800" p1:ValidateRequired="false" p1:Guid="6311d799-befc-4ebc-9474-6fd984c5eca0">
+      <column name="ERRORCAUSE" not-null="false" length="800" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="INPUTTIME" type="DateTime" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="928f4102-77d2-486c-bd73-d85b109cf6e4">
+      <column name="INPUTTIME" not-null="false" sql-type="DATE" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="EVENTRECORD" table="EVENTRECORD" schema="CCS" p1:Guid="3624b3da-ecaf-494e-a7e1-93c62b2f44d4">
+    <id name="CCSID" type="String" p1:ValidateMaxLength="11" p1:ValidateRequired="true" p1:Guid="1cb5ab30-64a6-4f0d-afea-8bb064de08cc">
+      <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2" unique="true" p1:unicode="false" />
+    </id>
+    <property name="METER" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="83ef2250-a63b-48a9-8737-ca434a1fc26a">
+      <column name="METER" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="50" p1:ValidateRequired="false" p1:Guid="ad687bcd-bae6-4746-b907-812f4b3a7089">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERTEL" type="String" p1:nullable="true" p1:ValidateMaxLength="24" p1:ValidateRequired="false" p1:Guid="bab7c163-2aa8-479b-87dd-fdf29b8b81d7">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ADDRCITY" type="String" p1:ValidateMaxLength="6" p1:ValidateRequired="true" p1:Guid="f9b18d05-9764-4300-a48d-72866739d6bc">
+      <column name="ADDR_CITY" not-null="true" length="6" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ADDRTOWN" type="String" p1:nullable="true" p1:ValidateMaxLength="10" p1:ValidateRequired="false" p1:Guid="03480822-2f3d-49a2-9347-37854e77a821">
+      <column name="ADDR_TOWN" not-null="false" length="10" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ADDRROAD" type="String" p1:ValidateMaxLength="20" p1:ValidateRequired="true" p1:Guid="70c0b450-5da3-4769-9425-7c439f5b34a8">
+      <column name="ADDR_ROAD" not-null="true" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ADDROTHER" type="String" p1:nullable="true" p1:ValidateMaxLength="66" p1:ValidateRequired="false" p1:Guid="c97a9eb0-928d-470b-a9da-8b265830163e">
+      <column name="ADDR_OTHER" not-null="false" length="66" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="RECALLNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="20" p1:ValidateRequired="false" p1:Guid="f28ae4ec-65f8-46ea-8a85-a3d73bca17a8">
+      <column name="RECALLNAME" not-null="false" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="RECALLTEL" type="String" p1:nullable="true" p1:ValidateMaxLength="24" p1:ValidateRequired="false" p1:Guid="2d8c3f99-fc7e-4381-be8a-fedbf6c29f05">
+      <column name="RECALLTEL" not-null="false" length="24" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="EVENTBRIEF" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="e5b3f0b6-bd74-4194-a28e-c06a5acd8d75">
+      <column name="EVENTBRIEF" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime" p1:ValidateRequired="true" p1:Guid="7d6fd376-b83e-45b2-a469-9c9f8d5ee15c">
+      <column name="ACCEPTTIME" not-null="true" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="IMPORTCASE" type="Boolean" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="136c559c-0c94-4a8a-9fee-1a80171ef06b">
+      <column name="IMPORTCASE" not-null="false" precision="1" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="DEPT" type="String" p1:ValidateMaxLength="2" p1:ValidateRequired="true" p1:Guid="424a1dd4-acd4-4973-88e6-490371d36089">
+      <column name="DEPT" not-null="true" length="2" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="PARTHICUSTOMER" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="1be3f5b6-0b8e-4479-b0b7-26ca660029c6">
+      <column name="PARTHICUSTOMER" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="NOTE" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="3a0fac23-d2fd-4210-98fd-ebf78e73350b">
+      <column name="NOTE" not-null="false" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="NUMCONTRAST" table="NUM_CONTRAST" schema="CCS" p1:Guid="0a0a9bb4-f3ff-4e45-a082-f6b813522c2e">
+    <composite-id>
+      <key-property name="CCSID" type="String" p1:ValidateMaxLength="11" p1:ValidateRequired="true" p1:Guid="aad384dd-523c-46ea-9ce6-ef9f70211c17">
+        <column name="CCSID" not-null="true" length="11" sql-type="VARCHAR2" unique="true" p1:unicode="false" />
+      </key-property>
+      <key-property name="ACCEPTNUM" type="String" p1:ValidateMaxLength="10" p1:ValidateRequired="true" p1:Guid="13fd3577-630e-497f-890a-aef358e22d48">
+        <column name="ACCEPTNUM" not-null="true" length="10" sql-type="VARCHAR2" p1:unicode="false" />
+      </key-property>
+      <key-property name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="5c6851f5-9274-4939-84fb-56a5c0348920">
+        <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+  </class>
+  <class name="SCGROUP" table="SCGROUP" schema="CCS" p1:Guid="44b90e65-430c-47de-a4a2-3da5bdfb07a6">
+    <id name="GROUPID" type="Decimal" p1:ValidateRequired="true" p1:Guid="4e69791b-6720-4f0c-9c33-bb9f2dd126c5">
+      <column name="GROUPID" not-null="true" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="SCCODE" type="String" p1:nullable="true" p1:ValidateMaxLength="5" p1:ValidateRequired="false" p1:Guid="8e591627-84f6-412a-a59e-2dc7c5eab264">
+      <column name="SC_CODE" not-null="false" length="5" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="SSCCODE" type="String" p1:nullable="true" p1:ValidateMaxLength="5" p1:ValidateRequired="false" p1:Guid="219cdec1-1985-4831-8470-2a243615150d">
+      <column name="SSC_CODE" not-null="false" length="5" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="SCGROUPTIME" table="SCGROUPTIME" schema="CCS" p1:Guid="584e6fb7-e44d-40b6-b521-20bffabaa868">
+    <id name="GROUPID" type="Decimal" p1:ValidateRequired="true" p1:Guid="85cfb814-4ec8-4209-bfe1-7eeb2945fcc8">
+      <column name="GROUPID" not-null="true" sql-type="NUMBER" unique-key="KEY1" p1:unicode="false" />
+    </id>
+    <property name="WEEK" type="Decimal" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="2d374a4d-c438-416a-988c-b15ad53f6ae2">
+      <column name="WEEK" not-null="false" sql-type="NUMBER" unique-key="KEY1" p1:unicode="false" />
+    </property>
+    <property name="BEGINTIME" type="Decimal" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="d5b5aa69-4d71-4c80-b1a3-f4454f389ef2">
+      <column name="BEGINTIME" not-null="false" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="ENDTIME" type="Decimal" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="e9ccfb93-1bb3-48c2-a635-40c407c83845">
+      <column name="ENDTIME" not-null="false" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="TMP" table="TMP" schema="CCS" p1:Guid="84138ca0-4dd3-4130-9480-7c52e0fc4105">
+    <id name="CCSID" type="String" p1:ValidateMaxLength="10" p1:ValidateRequired="true" p1:Guid="965b5bbc-576c-44c6-bf68-04b842b49601">
+      <column name="CCSID" not-null="false" length="10" sql-type="VARCHAR2" p1:unicode="false" />
+    </id>
+    <property name="USERNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="100" p1:ValidateRequired="false" p1:Guid="d46740de-4137-44e6-b174-a35a3dbfc365">
+      <column name="USERNAME" not-null="false" length="100" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="e30ce78f-9d20-4513-9948-3f908652ddd2">
+      <column name="ACCEPTTIME" not-null="false" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="ACTION" type="String" p1:nullable="true" p1:ValidateMaxLength="100" p1:ValidateRequired="false" p1:Guid="97068ccd-ae40-470e-bf11-534bd7862f15">
+      <column name="ACTION" not-null="false" length="100" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.CODELIST.cs b/ORModel/EOS/DataModel-EOS.CODELIST.cs
new file mode 100644
index 0000000..63a0760
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.CODELIST.cs
@@ -0,0 +1,107 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.CODELIST in the schema.
+    /// </summary>
+    public partial class CODELIST {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          CODELIST toCompare = obj as CODELIST;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.INDEXID, toCompare.INDEXID))
+            return false;
+          if (!Object.Equals(this.KEYID, toCompare.KEYID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + INDEXID.GetHashCode();
+          hashCode = (hashCode * 7) + KEYID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CODELIST constructor in the schema.
+        /// </summary>
+        public CODELIST()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for INDEXID in the schema.
+        /// </summary>
+        public virtual int INDEXID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for KEYID in the schema.
+        /// </summary>
+        public virtual int KEYID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ITEM in the schema.
+        /// </summary>
+        public virtual string ITEM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CONTENT in the schema.
+        /// </summary>
+        public virtual string CONTENT
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.CODELIST.hbm.xml b/ORModel/EOS/DataModel-EOS.CODELIST.hbm.xml
new file mode 100644
index 0000000..40be4be
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.CODELIST.hbm.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CODELIST" table="CODELIST" schema="EOS">
+    <composite-id>
+      <key-property name="INDEXID" type="Int32">
+        <column name="INDEXID" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+      </key-property>
+      <key-property name="KEYID" type="Int32">
+        <column name="KEYID" not-null="true" precision="4" scale="0" sql-type="NUMBER(4)" />
+      </key-property>
+    </composite-id>
+    <property name="ITEM" type="String">
+      <column name="ITEM" not-null="true" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="CONTENT" type="String">
+      <column name="CONTENT" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.CRTAPOLOGY.cs b/ORModel/EOS/DataModel-EOS.CRTAPOLOGY.cs
new file mode 100644
index 0000000..bcc5f35
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.CRTAPOLOGY.cs
@@ -0,0 +1,73 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.CRTAPOLOGY in the schema.
+    /// </summary>
+    public partial class CRTAPOLOGY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for CRTAPOLOGY constructor in the schema.
+        /// </summary>
+        public CRTAPOLOGY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTSTATE in the schema.
+        /// </summary>
+        public virtual int EVENTSTATE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RELAYACTION in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> RELAYACTION
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.CRTAPOLOGY.hbm.xml b/ORModel/EOS/DataModel-EOS.CRTAPOLOGY.hbm.xml
new file mode 100644
index 0000000..ecc593d
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.CRTAPOLOGY.hbm.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CRTAPOLOGY" table="CRTAPOLOGY" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="EVENTSTATE" type="Int32">
+      <column name="EVENTSTATE" not-null="true" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="RELAYACTION" type="Int32">
+      <column name="RELAYACTION" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.Diagram1.view b/ORModel/EOS/DataModel-EOS.Diagram1.view
new file mode 100644
index 0000000..fbad2e7
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.Diagram1.view
@@ -0,0 +1,1558 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntityDeveloperDiagram>
+  <Diagram Version="1.20.0.97">
+    <DiagramModel>
+      <Model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ContextVwModel">
+        <CustomProperties>
+          <OID>0</OID>
+          <BackgroundColor>Window</BackgroundColor>
+        </CustomProperties>
+        <Children>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>1</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>2</OID>
+                  <Parent>1</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>3</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>4a2216f9-e085-48e8-8d88-2d67e0a532a1</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>4</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>a2e9c912-f94d-40f5-afab-03819d288019</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>5</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>7c441a26-28db-4298-ab33-e8858988204d</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>6</OID>
+                      <Parent>2</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2f811ecd-d143-4792-bc53-b99fc1975537</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>73 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>73 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>7</OID>
+                  <Parent>1</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>72 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>0 px</X>
+              <Y>472 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>140 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>140 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>140 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>10f505fe-857f-43cf-b7fc-e355fb1a8f2f</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>8</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>9</OID>
+                  <Parent>8</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>10</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>db4cc35d-81a0-42dd-9733-bad91e7b4bfa</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>11</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>b57ef969-75f2-4701-a0f7-e9d39328b2df</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>12</OID>
+                      <Parent>9</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2d3a0fa2-f6f3-4736-aae5-da2f4d704421</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>55 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>55 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>13</OID>
+                  <Parent>8</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>54 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>192 px</X>
+              <Y>472 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>122 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>122 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>122 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>a72e922c-2054-49ce-968d-33dc231c7361</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>14</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>15</OID>
+                  <Parent>14</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>16</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>506db6f9-d343-4e29-8bcb-a156164677eb</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>17</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>bd03951a-e5ee-4ea1-8bef-11b59f60e74b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>18</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>68cdcc60-4dcb-4ee9-aec6-e4152c1bc411</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>19</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>cae68dfe-b9ff-4b77-991e-72945a95e97f</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>20</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>7e2fa5e0-112a-4dd8-b7cc-95fc3b17943a</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>21</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>3c48f0ab-5fad-430a-b1dc-82f26edde33e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>22</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>96ddd015-63eb-4987-9d8c-b5a2492af420</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>23</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>50e1fd72-003d-4e04-b225-39b272c73cc5</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>24</OID>
+                      <Parent>15</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>85255ccd-cf1f-4ed0-95a5-a3f07894943c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>163 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>163 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>25</OID>
+                  <Parent>14</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>162 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>192 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>230 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>230 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>230 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>0f393b0a-1e67-4bdf-93b3-e056cb3d1954</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>26</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>27</OID>
+                  <Parent>26</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>28</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8b580b4e-5f29-4528-bc3e-0d45e5825458</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>29</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>96ad1e0f-11e7-426f-b24c-e9c5659f5e41</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>30</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>8a74d2cc-9388-48ea-8221-413de337afdd</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>31</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>633e1937-5ade-42f0-ae3a-3f711b7a0cb5</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>32</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ac281153-f797-48a5-a731-fcb94caf4321</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>33</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>38ccbd2b-9195-4a59-8325-27c143515f67</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>34</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>45549848-fd8c-4426-af10-6800bc3c4d76</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>35</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>73c5c143-07de-4efb-8eaf-3e097dc649dc</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>36</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>144.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>43210d64-0608-4af8-8a93-de7f933b5efe</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>37</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>162.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>dc837db5-1930-4e04-a700-cfc8c2f66f12</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>38</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>180.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>0c705904-ad06-47e6-81c1-1497d4977cb0</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>39</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>198.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>fa834c91-b4be-46f9-b444-34e76db51429</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>40</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>216.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>ed698d30-333c-4047-b37b-854120c4aebb</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>41</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>234.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>2f2a35aa-d245-4b9c-aa44-24c9edd1eb5e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>42</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>252.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>62c93b79-c5cf-4bdc-b5ee-5c64dcb83f07</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>43</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>270.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>a4ee8192-c3dc-4c82-957a-cb2063c6b7cf</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>44</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>288.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>e384fa68-2afc-479a-a5bd-4b4d7803445a</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>45</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>306.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>69971afb-079a-479d-beab-a5185455829b</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>46</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>324.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>240c7893-5ada-47ed-849b-ad8972093c64</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>47</OID>
+                      <Parent>27</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>342.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>acffabae-ef9f-44e2-b4e9-5b234ebaa7ee</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>361 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>361 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>48</OID>
+                  <Parent>26</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>360 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Size>
+              <Width>150 px</Width>
+              <Height>428 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>428 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>428 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>8c2b1de7-7af8-44b9-abb9-2596c3b02bd0</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>49</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>50</OID>
+                  <Parent>49</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>51</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>af333d66-8a66-4f25-b394-1ded37284bda</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>52</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>64553f10-4cce-46aa-a592-e54cac9612cb</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>53</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>57131f86-12a6-46b0-a9c7-98b2e936f9f9</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>54</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>88151504-56cf-441b-bcef-6dcff2a43ef2</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>55</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>15e3f6e6-1a74-4cb8-a61b-f5f3a700ebae</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>56</OID>
+                      <Parent>50</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>0147aa75-f8df-4ac7-83a7-6c0d60bbd495</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>109 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>109 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>57</OID>
+                  <Parent>49</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>108 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>576 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>176 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>176 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>176 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>c46acf5a-7fa6-4577-9daa-e41567a8e026</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>58</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>59</OID>
+                  <Parent>58</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>60</OID>
+                      <Parent>59</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>5c6338b9-ed63-479b-aa6c-55e38029486e</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>61</OID>
+                      <Parent>59</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>b9f319d8-2df2-4a02-b962-de58856823f8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>62</OID>
+                      <Parent>59</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>58a90b2d-da9e-4f28-b896-aee5b8eabfc6</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>63</OID>
+                      <Parent>59</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>383d4845-1fad-4976-a7d7-2f09823cd1fe</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>64</OID>
+                      <Parent>59</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>700a90a9-95fa-4dae-80ca-a70d47192938</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>91 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>91 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>65</OID>
+                  <Parent>58</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>90 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>760 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>158 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>158 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>158 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>8645232b-b525-4ac4-b484-9fc757c111d5</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+          <Model xsi:type="ClassVwModel">
+            <CustomProperties>
+              <OID>66</OID>
+              <Parent>0</Parent>
+            </CustomProperties>
+            <Children>
+              <Model xsi:type="PropertiesVwModel">
+                <CustomProperties>
+                  <OID>67</OID>
+                  <Parent>66</Parent>
+                </CustomProperties>
+                <Children>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>68</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>0.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c02aeab5-fe0f-4eba-ac8f-9173c16567b0</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>69</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>18.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>d5e85820-8008-490b-a852-02094e3ef254</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>70</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>36.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>28d5d3da-bf2b-40f0-8f93-1e8a6a510d76</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>71</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>54.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>c7d1ff5f-bc28-46e6-ac52-de113666b295</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>72</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>72.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>bb16d740-266c-4805-8cd1-2aaec2d01b8c</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>73</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>90.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>495526f1-9bc3-4f62-b4e5-af4ad75d0bc8</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>74</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>108.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>42a88bbc-454b-47bf-8940-a9d1b6821dd6</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                  <Model xsi:type="PropertyVwModel">
+                    <CustomProperties>
+                      <OID>75</OID>
+                      <Parent>67</Parent>
+                    </CustomProperties>
+                    <Children />
+                    <Location>
+                      <X>0.5 px</X>
+                      <Y>126.5 px</Y>
+                    </Location>
+                    <Size>
+                      <Width>144 px</Width>
+                      <Height>18 px</Height>
+                    </Size>
+                    <Oid xsi:type="SchemaModelOID">
+                      <Path>db7e87a1-3646-46e0-9b92-e52949e75612</Path>
+                      <TypeName>EntityDeveloper.NHibernate.HibernateProperty</TypeName>
+                    </Oid>
+                  </Model>
+                </Children>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>145 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>145 px</Height>
+                </MaxSize>
+              </Model>
+              <Model xsi:type="RelationPropertiesVwModel">
+                <CustomProperties>
+                  <OID>76</OID>
+                  <Parent>66</Parent>
+                </CustomProperties>
+                <Children />
+                <Location>
+                  <X>0 px</X>
+                  <Y>144 px</Y>
+                </Location>
+                <Size>
+                  <Width>145 px</Width>
+                  <Height>19 px</Height>
+                </Size>
+                <MaxSize>
+                  <Width>0 px</Width>
+                  <Height>19 px</Height>
+                </MaxSize>
+                <Hidden>false</Hidden>
+              </Model>
+            </Children>
+            <Location>
+              <X>384 px</X>
+              <Y>0 px</Y>
+            </Location>
+            <Size>
+              <Width>150 px</Width>
+              <Height>212 px</Height>
+            </Size>
+            <MinSize>
+              <Width>100 px</Width>
+              <Height>212 px</Height>
+            </MinSize>
+            <MaxSize>
+              <Width>800 px</Width>
+              <Height>212 px</Height>
+            </MaxSize>
+            <Ports />
+            <Oid xsi:type="SchemaModelOID">
+              <Path>27faa6e0-6285-48ab-ac0b-2a6228c92630</Path>
+              <TypeName>EntityDeveloper.NHibernate.HibernateClass</TypeName>
+            </Oid>
+            <FixedHeight>22 px</FixedHeight>
+          </Model>
+        </Children>
+        <GridSize>8 px</GridSize>
+        <ViewPort>
+          <ScaleMode>Free</ScaleMode>
+          <Scale>1</Scale>
+          <Location>
+            <X>-113 px</X>
+            <Y>-23 px</Y>
+          </Location>
+        </ViewPort>
+        <Oid xsi:type="SchemaModelOID">
+          <Path>2af366c8-8582-4020-b242-01a2fc148040</Path>
+          <TypeName>EntityDeveloper.NHibernate.HibernateContextModel</TypeName>
+        </Oid>
+      </Model>
+    </DiagramModel>
+  </Diagram>
+  <DiagramOptions Version="v2.0">
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="PageOptions">
+      <TopLeftMargins>
+        <Width>39.3700787401575 in/100</Width>
+        <Height>39.3700787401575 in/100</Height>
+      </TopLeftMargins>
+      <BottomRightMargins>
+        <Width>39.3700787401575 in/100</Width>
+        <Height>39.3700787401575 in/100</Height>
+      </BottomRightMargins>
+      <PaperSize>
+        <Width>827 in/100</Width>
+        <Height>1169 in/100</Height>
+      </PaperSize>
+    </Options>
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="PrintOptions" />
+    <Options xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:type="ViewOptions">
+      <ShadowOffset>
+        <X>4 px</X>
+        <Y>4 px</Y>
+      </ShadowOffset>
+      <CustomProperties />
+    </Options>
+    <EdDiagramOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+      <CustomProperties />
+    </EdDiagramOptions>
+  </DiagramOptions>
+</EntityDeveloperDiagram>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.EVENT.cs b/ORModel/EOS/DataModel-EOS.EVENT.cs
new file mode 100644
index 0000000..c9dc6af
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENT.cs
@@ -0,0 +1,93 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENT in the schema.
+    /// </summary>
+    public partial class EVENT {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENT constructor in the schema.
+        /// </summary>
+        public EVENT()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASESTATUS in the schema.
+        /// </summary>
+        public virtual int CASESTATUS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for COUNT in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> COUNT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASETYPE in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> CASETYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for MERGECASECOUNT in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> MERGECASECOUNT
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.EVENT.hbm.xml b/ORModel/EOS/DataModel-EOS.EVENT.hbm.xml
new file mode 100644
index 0000000..ad5b47d
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENT.hbm.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENT" table="EVENTS" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="CASESTATUS" type="Int32">
+      <column name="CASESTATUS" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="COUNT" type="Int32">
+      <column name="COUNT" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="CASETYPE" type="Int32">
+      <column name="CASETYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="MERGECASECOUNT" type="Int32">
+      <column name="MERGECASECOUNT" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.EVENTFACILITY.cs b/ORModel/EOS/DataModel-EOS.EVENTFACILITY.cs
new file mode 100644
index 0000000..db17402
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENTFACILITY.cs
@@ -0,0 +1,133 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENTFACILITY in the schema.
+    /// </summary>
+    public partial class EVENTFACILITY {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTFACILITY constructor in the schema.
+        /// </summary>
+        public EVENTFACILITY()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual int FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual long UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR1 in the schema.
+        /// </summary>
+        public virtual string FDR1
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR2 in the schema.
+        /// </summary>
+        public virtual string FDR2
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for AFFECTCUSTMS in the schema.
+        /// </summary>
+        public virtual string AFFECTCUSTMS
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CAPACITY in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> CAPACITY
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for OPENTIME in the schema.
+        /// </summary>
+        public virtual System.DateTime OPENTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CLOSETIME in the schema.
+        /// </summary>
+        public virtual System.Nullable<System.DateTime> CLOSETIME
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.EVENTFACILITY.hbm.xml b/ORModel/EOS/DataModel-EOS.EVENTFACILITY.hbm.xml
new file mode 100644
index 0000000..308b456
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENTFACILITY.hbm.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTFACILITY" table="EVENTFACILITY" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="FSC" type="Int32">
+      <column name="FSC" not-null="true" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="UFID" type="Int64">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="FDR1" type="String">
+      <column name="FDR1" not-null="true" length="4" sql-type="VARCHAR2(4 CHAR)" />
+    </property>
+    <property name="FDR2" type="String">
+      <column name="FDR2" not-null="false" length="4" sql-type="VARCHAR2(4 CHAR)" />
+    </property>
+    <property name="AFFECTCUSTMS" type="String">
+      <column name="AFFECTCUSTMS" not-null="true" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="CAPACITY" type="Int64">
+      <column name="CAPACITY" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="OPENTIME" type="DateTime">
+      <column name="OPENTIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="CLOSETIME" type="DateTime">
+      <column name="CLOSETIME" not-null="false" sql-type="DATE" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.EVENTRECORD.cs b/ORModel/EOS/DataModel-EOS.EVENTRECORD.cs
new file mode 100644
index 0000000..92b9f26
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENTRECORD.cs
@@ -0,0 +1,243 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENTRECORD in the schema.
+    /// </summary>
+    public partial class EVENTRECORD {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTRECORD constructor in the schema.
+        /// </summary>
+        public EVENTRECORD()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERNAME in the schema.
+        /// </summary>
+        public virtual string CUSTOMERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERMETER in the schema.
+        /// </summary>
+        public virtual string CUSTOMERMETER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTEL in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERADDR in the schema.
+        /// </summary>
+        public virtual string CUSTOMERADDR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for EVENTBRIEF in the schema.
+        /// </summary>
+        public virtual string EVENTBRIEF
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DEPT in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> DEPT
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECORDER in the schema.
+        /// </summary>
+        public virtual string RECORDER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTNUM in the schema.
+        /// </summary>
+        public virtual string ACCEPTNUM
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ACCEPTTIME in the schema.
+        /// </summary>
+        public virtual System.DateTime ACCEPTTIME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDRID in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FDRID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TRACEFINISH in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> TRACEFINISH
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for IMPORTCASE in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> IMPORTCASE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for NOTE in the schema.
+        /// </summary>
+        public virtual string NOTE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for ISRECALL in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> ISRECALL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLTEL in the schema.
+        /// </summary>
+        public virtual string RECALLTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for RECALLNAME in the schema.
+        /// </summary>
+        public virtual string RECALLNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASELEVEL in the schema.
+        /// </summary>
+        public virtual System.Nullable<bool> CASELEVEL
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.EVENTRECORD.hbm.xml b/ORModel/EOS/DataModel-EOS.EVENTRECORD.hbm.xml
new file mode 100644
index 0000000..9057d43
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENTRECORD.hbm.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTRECORD" table="EVENTRECORD" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="CUSTOMERNAME" type="String">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="CUSTOMERMETER" type="String">
+      <column name="CUSTOMERMETER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CUSTOMERTEL" type="String">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="CUSTOMERADDR" type="String">
+      <column name="CUSTOMERADDR" not-null="true" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="EVENTBRIEF" type="String">
+      <column name="EVENTBRIEF" not-null="true" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="DEPT" type="Int32">
+      <column name="DEPT" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="RECORDER" type="String">
+      <column name="RECORDER" not-null="false" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="ACCEPTNUM" type="String">
+      <column name="ACCEPTNUM" not-null="true" length="10" sql-type="VARCHAR2(10 CHAR)" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime">
+      <column name="ACCEPTTIME" not-null="true" sql-type="DATE" />
+    </property>
+    <property name="FSC" type="Int32">
+      <column name="FSC" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="UFID" type="Int64">
+      <column name="UFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="FDRID" type="Int32">
+      <column name="FDRID" not-null="false" precision="5" scale="0" sql-type="NUMBER(5)" />
+    </property>
+    <property name="TRACEFINISH" type="Int32">
+      <column name="TRACE_FINISH" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="IMPORTCASE" type="Boolean">
+      <column name="IMPORTCASE" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="NOTE" type="String">
+      <column name="NOTE" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="ISRECALL" type="Boolean">
+      <column name="ISRECALL" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+    <property name="RECALLTEL" type="String">
+      <column name="RECALLTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="RECALLNAME" type="String">
+      <column name="RECALLNAME" not-null="false" length="20" sql-type="VARCHAR2(20 CHAR)" />
+    </property>
+    <property name="CASELEVEL" type="Boolean">
+      <column name="CASELEVEL" not-null="false" precision="1" scale="0" sql-type="NUMBER(1)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.EVENTRECORDEX.cs b/ORModel/EOS/DataModel-EOS.EVENTRECORDEX.cs
new file mode 100644
index 0000000..d30ee31
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENTRECORDEX.cs
@@ -0,0 +1,127 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.EVENTRECORDEX in the schema.
+    /// </summary>
+    public partial class EVENTRECORDEX {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+
+        public override bool Equals(object obj)
+        {
+          EVENTRECORDEX toCompare = obj as EVENTRECORDEX;
+          if (toCompare == null)
+          {
+            return false;
+          }
+
+          if (!Object.Equals(this.CASEID, toCompare.CASEID))
+            return false;
+          if (!Object.Equals(this.DSUFID, toCompare.DSUFID))
+            return false;
+          
+          return true;
+        }
+
+        public override int GetHashCode()
+        {
+          int hashCode = 13;
+          hashCode = (hashCode * 7) + CASEID.GetHashCode();
+          hashCode = (hashCode * 7) + DSUFID.GetHashCode();
+          return hashCode;
+        }
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for EVENTRECORDEX constructor in the schema.
+        /// </summary>
+        public EVENTRECORDEX()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for DSUFID in the schema.
+        /// </summary>
+        public virtual long DSUFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FSC in the schema.
+        /// </summary>
+        public virtual System.Nullable<int> FSC
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for UFID in the schema.
+        /// </summary>
+        public virtual System.Nullable<long> UFID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCLID in the schema.
+        /// </summary>
+        public virtual string TPCLID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for FDR in the schema.
+        /// </summary>
+        public virtual string FDR
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.EVENTRECORDEX.hbm.xml b/ORModel/EOS/DataModel-EOS.EVENTRECORDEX.hbm.xml
new file mode 100644
index 0000000..214ab48
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.EVENTRECORDEX.hbm.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="EVENTRECORDEX" table="EVENTRECORD_EX" schema="EOS">
+    <composite-id>
+      <key-property name="CASEID" type="Int64">
+        <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+      <key-property name="DSUFID" type="Int64">
+        <column name="DSUFID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      </key-property>
+    </composite-id>
+    <property name="FSC" type="Int32">
+      <column name="FSC" not-null="false" precision="3" scale="0" sql-type="NUMBER(3)" />
+    </property>
+    <property name="UFID" type="Int64">
+      <column name="UFID" not-null="false" precision="10" scale="0" sql-type="NUMBER(10)" />
+    </property>
+    <property name="TPCLID" type="String">
+      <column name="TPCLID" not-null="false" length="12" sql-type="VARCHAR2(12 CHAR)" />
+    </property>
+    <property name="FDR" type="String">
+      <column name="FDR" not-null="false" length="5" sql-type="VARCHAR2(5 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.cs b/ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.cs
new file mode 100644
index 0000000..7451a8d
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.cs
@@ -0,0 +1,123 @@
+//------------------------------------------------------------------------------
+// This is auto-generated code.
+//------------------------------------------------------------------------------
+// This code was generated by Entity Developer tool using NHibernate template.
+// Code is generated on: 2016/4/29 下午 04:39:04
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Linq;
+using System.Text;
+using System.Collections.Generic;
+
+namespace TaiPower.Dmm.Model.EOS
+{
+
+    /// <summary>
+    /// There are no comments for TaiPower.Dmm.Model.EOS.TMPAFFECTCUSTM in the schema.
+    /// </summary>
+    public partial class TMPAFFECTCUSTM {
+    
+        #region Extensibility Method Definitions
+        
+        /// <summary>
+        /// There are no comments for OnCreated in the schema.
+        /// </summary>
+        partial void OnCreated();
+        
+        #endregion
+        /// <summary>
+        /// There are no comments for TMPAFFECTCUSTM constructor in the schema.
+        /// </summary>
+        public TMPAFFECTCUSTM()
+        {
+            OnCreated();
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CASEID in the schema.
+        /// </summary>
+        public virtual long CASEID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERNAME in the schema.
+        /// </summary>
+        public virtual string CUSTOMERNAME
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTEL in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTEL
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERMETER in the schema.
+        /// </summary>
+        public virtual string CUSTOMERMETER
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERADDR in the schema.
+        /// </summary>
+        public virtual string CUSTOMERADDR
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for TPCLIDGROUPID in the schema.
+        /// </summary>
+        public virtual string TPCLIDGROUPID
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERTYPE in the schema.
+        /// </summary>
+        public virtual string CUSTOMERTYPE
+        {
+            get;
+            set;
+        }
+
+    
+        /// <summary>
+        /// There are no comments for CUSTOMERKIND in the schema.
+        /// </summary>
+        public virtual string CUSTOMERKIND
+        {
+            get;
+            set;
+        }
+    }
+
+}
diff --git a/ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.hbm.xml b/ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.hbm.xml
new file mode 100644
index 0000000..51f8a0d
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.TMPAFFECTCUSTM.hbm.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="TMPAFFECTCUSTM" table="TMPAFFECTCUSTMS" schema="EOS">
+    <id name="CASEID" type="Int64">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER(10)" />
+      <generator class="assigned" />
+    </id>
+    <property name="CUSTOMERNAME" type="String">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2(50 CHAR)" />
+    </property>
+    <property name="CUSTOMERTEL" type="String">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2(24 CHAR)" />
+    </property>
+    <property name="CUSTOMERMETER" type="String">
+      <column name="CUSTOMERMETER" not-null="false" length="11" sql-type="VARCHAR2(11 CHAR)" />
+    </property>
+    <property name="CUSTOMERADDR" type="String">
+      <column name="CUSTOMERADDR" not-null="false" length="255" sql-type="VARCHAR2(255 CHAR)" />
+    </property>
+    <property name="TPCLIDGROUPID" type="String">
+      <column name="TPCLIDGROUPID" not-null="false" length="17" sql-type="VARCHAR2(17 CHAR)" />
+    </property>
+    <property name="CUSTOMERTYPE" type="String">
+      <column name="CUSTOMERTYPE" not-null="false" length="1" sql-type="VARCHAR2(1 CHAR)" />
+    </property>
+    <property name="CUSTOMERKIND" type="String">
+      <column name="CUSTOMERKIND" not-null="false" length="1" sql-type="VARCHAR2(1 CHAR)" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.edps b/ORModel/EOS/DataModel-EOS.edps
new file mode 100644
index 0000000..385564f
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.edps
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<EntityDeveloper Version="5.8.841.0">
+  <ModelSettings xmlns:ed="http://devart.com/schemas/EntityDeveloper/1.0" ConnectionStringInAppConfig="False" DetectTPTInheritance="True">
+    <Connection ConnectionString="USER ID=basedb;PASSWORD=basedb000;DATA SOURCE=TCTPC;PERSIST SECURITY INFO=True" Provider="Oracle.ManagedDataAccess.Client" />
+    <Generation />
+    <generator class="assigned" />
+    <DatabaseFirstNamingRules>
+      <EntitySet PluralizationName="Pluralize" />
+      <Class UseSchemaAsPrefix="False" PluralizeCollectionNavigationPropertyName="True" RemoveUnderscores="True" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Singularize" />
+      <Property RemoveUnderscores="True" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Unchanged" />
+    </DatabaseFirstNamingRules>
+    <ModelFirst StorageSynchronizationEnabled="False" TargetSchema="BASEDB" TargetProviderName="Oracle.ManagedDataAccess.Client">
+      <TargetServer Server="Oracle" ServerVersion="10gR2" />
+      <ModelFirstNamingRules>
+        <Table RemoveUnderscores="False" RemoveInvalidCharacters="True" CodeCase="Unchanged" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Pluralize" />
+        <Column RemoveUnderscores="False" RemoveInvalidCharacters="True" CodeCase="Unchanged" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Unchanged" />
+      </ModelFirstNamingRules>
+    </ModelFirst>
+    <Diagrams>
+      <Diagram Name="Diagram1" DefaultDiagram="True" />
+    </Diagrams>
+    <Templates>
+      <Template Name="NHibernate" Description="Use this template to generate classes and xml mappings for an NHibernate model." Enabled="True" PredefinedTemplateName="NHibernate C#">
+        <ed:Property Name="ValidationFramework" Type="EntityDeveloper.TemplateEngine.ValidationFramework, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <ValidationFramework>None</ValidationFramework>
+        </ed:Property>
+        <ed:Property Name="ValidationErrorMessages" Type="EntityDeveloper.TemplateEngine.ValidationErrorMessages, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <ValidationErrorMessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
+        </ed:Property>
+        <ed:Property Name="FilePerClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="ModelNameAsFilesPrefix" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="HeaderTimestampVersionControlTag" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <string d6p1:nil="true" xmlns:d6p1="http://www.w3.org/2001/XMLSchema-instance" />
+        </ed:Property>
+        <ed:Property Name="EntitiesOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <Project />
+            <ProjectFolder />
+            <DestinationFolder />
+          </OutputInfo>
+        </ed:Property>
+        <ed:Property Name="NHibernateV3Compatible" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="PropertyChangeNotifiers" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="PropertyChangePartialMethods" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementValidatable" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementEquals" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="ImplementCloneable" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GeneratePartialClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateDataContracts" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateDummyComments" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+        <ed:Property Name="GenerateSerializableAttributes" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>false</boolean>
+        </ed:Property>
+        <ed:Property Name="XmlMappingOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+            <Project />
+            <ProjectFolder />
+            <DestinationFolder />
+          </OutputInfo>
+        </ed:Property>
+        <ed:Property Name="XmlMappingAction" Type="EntityDeveloper.MetadataArtifactProcessing, EntityDeveloper.Orm.Common, Version=5.8.841.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
+          <MetadataArtifactProcessing>CopyToOutputDirectory</MetadataArtifactProcessing>
+        </ed:Property>
+        <ed:Property Name="XmlMappingFilePerClass" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+          <boolean>true</boolean>
+        </ed:Property>
+      </Template>
+    </Templates>
+    <AttributeAssemblies />
+    <Configuration SeparateConfigFile="False" />
+  </ModelSettings>
+</EntityDeveloper>
\ No newline at end of file
diff --git a/ORModel/EOS/DataModel-EOS.hbml b/ORModel/EOS/DataModel-EOS.hbml
new file mode 100644
index 0000000..c99b8d4
--- /dev/null
+++ b/ORModel/EOS/DataModel-EOS.hbml
@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="utf-8"?>
+<hibernate-mapping namespace="TaiPower.Dmm.Model.EOS" p1:Guid="2af366c8-8582-4020-b242-01a2fc148040" xmlns:p1="http://devart.com/schemas/EntityDeveloper/1.0" xmlns="urn:nhibernate-mapping-2.2">
+  <class name="CODELIST" table="CODELIST" schema="EOS" p1:Guid="10f505fe-857f-43cf-b7fc-e355fb1a8f2f">
+    <composite-id>
+      <key-property name="INDEXID" type="Int32" p1:ValidateRequired="true" p1:Guid="4a2216f9-e085-48e8-8d88-2d67e0a532a1">
+        <column name="INDEXID" not-null="true" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+      <key-property name="KEYID" type="Int32" p1:ValidateRequired="true" p1:Guid="a2e9c912-f94d-40f5-afab-03819d288019">
+        <column name="KEYID" not-null="true" precision="4" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+    <property name="ITEM" type="String" p1:ValidateMaxLength="20" p1:ValidateRequired="true" p1:Guid="7c441a26-28db-4298-ab33-e8858988204d">
+      <column name="ITEM" not-null="true" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CONTENT" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="2f811ecd-d143-4792-bc53-b99fc1975537">
+      <column name="CONTENT" not-null="false" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="CRTAPOLOGY" table="CRTAPOLOGY" schema="EOS" p1:Guid="a72e922c-2054-49ce-968d-33dc231c7361">
+    <id name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="db4cc35d-81a0-42dd-9733-bad91e7b4bfa">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="EVENTSTATE" type="Int32" p1:ValidateRequired="true" p1:Guid="b57ef969-75f2-4701-a0f7-e9d39328b2df">
+      <column name="EVENTSTATE" not-null="true" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="RELAYACTION" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="2d3a0fa2-f6f3-4736-aae5-da2f4d704421">
+      <column name="RELAYACTION" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="EVENTFACILITY" table="EVENTFACILITY" schema="EOS" p1:Guid="0f393b0a-1e67-4bdf-93b3-e056cb3d1954">
+    <id name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="506db6f9-d343-4e29-8bcb-a156164677eb">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="FSC" type="Int32" p1:ValidateRequired="true" p1:Guid="bd03951a-e5ee-4ea1-8bef-11b59f60e74b">
+      <column name="FSC" not-null="true" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="UFID" type="Int64" p1:ValidateRequired="true" p1:Guid="68cdcc60-4dcb-4ee9-aec6-e4152c1bc411">
+      <column name="UFID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="FDR1" type="String" p1:ValidateMaxLength="4" p1:ValidateRequired="true" p1:Guid="cae68dfe-b9ff-4b77-991e-72945a95e97f">
+      <column name="FDR1" not-null="true" length="4" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="FDR2" type="String" p1:nullable="true" p1:ValidateMaxLength="4" p1:ValidateRequired="false" p1:Guid="7e2fa5e0-112a-4dd8-b7cc-95fc3b17943a">
+      <column name="FDR2" not-null="false" length="4" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="AFFECTCUSTMS" type="String" p1:ValidateMaxLength="10" p1:ValidateRequired="true" p1:Guid="3c48f0ab-5fad-430a-b1dc-82f26edde33e">
+      <column name="AFFECTCUSTMS" not-null="true" length="10" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CAPACITY" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="96ddd015-63eb-4987-9d8c-b5a2492af420">
+      <column name="CAPACITY" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="OPENTIME" type="DateTime" p1:ValidateRequired="true" p1:Guid="50e1fd72-003d-4e04-b225-39b272c73cc5">
+      <column name="OPENTIME" not-null="true" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="CLOSETIME" type="DateTime" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="85255ccd-cf1f-4ed0-95a5-a3f07894943c">
+      <column name="CLOSETIME" not-null="false" sql-type="DATE" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="EVENTRECORD" table="EVENTRECORD" schema="EOS" p1:Guid="8c2b1de7-7af8-44b9-abb9-2596c3b02bd0">
+    <id name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="8b580b4e-5f29-4528-bc3e-0d45e5825458">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="CUSTOMERNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="50" p1:ValidateRequired="false" p1:Guid="96ad1e0f-11e7-426f-b24c-e9c5659f5e41">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERMETER" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="8a74d2cc-9388-48ea-8221-413de337afdd">
+      <column name="CUSTOMERMETER" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERTEL" type="String" p1:nullable="true" p1:ValidateMaxLength="24" p1:ValidateRequired="false" p1:Guid="633e1937-5ade-42f0-ae3a-3f711b7a0cb5">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERADDR" type="String" p1:ValidateMaxLength="255" p1:ValidateRequired="true" p1:Guid="ac281153-f797-48a5-a731-fcb94caf4321">
+      <column name="CUSTOMERADDR" not-null="true" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="EVENTBRIEF" type="String" p1:ValidateMaxLength="50" p1:ValidateRequired="true" p1:Guid="38ccbd2b-9195-4a59-8325-27c143515f67">
+      <column name="EVENTBRIEF" not-null="true" length="50" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="DEPT" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="45549848-fd8c-4426-af10-6800bc3c4d76">
+      <column name="DEPT" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="RECORDER" type="String" p1:nullable="true" p1:ValidateMaxLength="10" p1:ValidateRequired="false" p1:Guid="73c5c143-07de-4efb-8eaf-3e097dc649dc">
+      <column name="RECORDER" not-null="false" length="10" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ACCEPTNUM" type="String" p1:ValidateMaxLength="10" p1:ValidateRequired="true" p1:Guid="43210d64-0608-4af8-8a93-de7f933b5efe">
+      <column name="ACCEPTNUM" not-null="true" length="10" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ACCEPTTIME" type="DateTime" p1:ValidateRequired="true" p1:Guid="dc837db5-1930-4e04-a700-cfc8c2f66f12">
+      <column name="ACCEPTTIME" not-null="true" sql-type="DATE" p1:unicode="false" />
+    </property>
+    <property name="FSC" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="0c705904-ad06-47e6-81c1-1497d4977cb0">
+      <column name="FSC" not-null="false" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="UFID" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="fa834c91-b4be-46f9-b444-34e76db51429">
+      <column name="UFID" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="FDRID" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="ed698d30-333c-4047-b37b-854120c4aebb">
+      <column name="FDRID" not-null="false" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="TRACEFINISH" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="2f2a35aa-d245-4b9c-aa44-24c9edd1eb5e">
+      <column name="TRACE_FINISH" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="IMPORTCASE" type="Boolean" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="62c93b79-c5cf-4bdc-b5ee-5c64dcb83f07">
+      <column name="IMPORTCASE" not-null="false" precision="1" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="NOTE" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="a4ee8192-c3dc-4c82-957a-cb2063c6b7cf">
+      <column name="NOTE" not-null="false" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="ISRECALL" type="Boolean" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="e384fa68-2afc-479a-a5bd-4b4d7803445a">
+      <column name="ISRECALL" not-null="false" precision="1" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="RECALLTEL" type="String" p1:nullable="true" p1:ValidateMaxLength="24" p1:ValidateRequired="false" p1:Guid="69971afb-079a-479d-beab-a5185455829b">
+      <column name="RECALLTEL" not-null="false" length="24" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="RECALLNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="20" p1:ValidateRequired="false" p1:Guid="240c7893-5ada-47ed-849b-ad8972093c64">
+      <column name="RECALLNAME" not-null="false" length="20" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CASELEVEL" type="Boolean" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="acffabae-ef9f-44e2-b4e9-5b234ebaa7ee">
+      <column name="CASELEVEL" not-null="false" precision="1" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="EVENTRECORDEX" table="EVENTRECORD_EX" schema="EOS" p1:Guid="c46acf5a-7fa6-4577-9daa-e41567a8e026">
+    <composite-id>
+      <key-property name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="af333d66-8a66-4f25-b394-1ded37284bda">
+        <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+      <key-property name="DSUFID" type="Int64" p1:ValidateRequired="true" p1:Guid="64553f10-4cce-46aa-a592-e54cac9612cb">
+        <column name="DSUFID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+      </key-property>
+    </composite-id>
+    <property name="FSC" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="57131f86-12a6-46b0-a9c7-98b2e936f9f9">
+      <column name="FSC" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="UFID" type="Int64" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="88151504-56cf-441b-bcef-6dcff2a43ef2">
+      <column name="UFID" not-null="false" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="TPCLID" type="String" p1:nullable="true" p1:ValidateMaxLength="12" p1:ValidateRequired="false" p1:Guid="15e3f6e6-1a74-4cb8-a61b-f5f3a700ebae">
+      <column name="TPCLID" not-null="false" length="12" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="FDR" type="String" p1:nullable="true" p1:ValidateMaxLength="5" p1:ValidateRequired="false" p1:Guid="0147aa75-f8df-4ac7-83a7-6c0d60bbd495">
+      <column name="FDR" not-null="false" length="5" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="EVENT" table="EVENTS" schema="EOS" p1:Guid="8645232b-b525-4ac4-b484-9fc757c111d5">
+    <id name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="5c6338b9-ed63-479b-aa6c-55e38029486e">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="CASESTATUS" type="Int32" p1:ValidateRequired="true" p1:Guid="b9f319d8-2df2-4a02-b962-de58856823f8">
+      <column name="CASESTATUS" not-null="true" precision="5" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="COUNT" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="58a90b2d-da9e-4f28-b896-aee5b8eabfc6">
+      <column name="COUNT" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="CASETYPE" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="383d4845-1fad-4976-a7d7-2f09823cd1fe">
+      <column name="CASETYPE" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+    <property name="MERGECASECOUNT" type="Int32" p1:nullable="true" p1:ValidateRequired="false" p1:Guid="700a90a9-95fa-4dae-80ca-a70d47192938">
+      <column name="MERGECASECOUNT" not-null="false" precision="3" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </property>
+  </class>
+  <class name="TMPAFFECTCUSTM" table="TMPAFFECTCUSTMS" schema="EOS" p1:Guid="27faa6e0-6285-48ab-ac0b-2a6228c92630">
+    <id name="CASEID" type="Int64" p1:ValidateRequired="true" p1:Guid="c02aeab5-fe0f-4eba-ac8f-9173c16567b0">
+      <column name="CASEID" not-null="true" precision="10" scale="0" sql-type="NUMBER" p1:unicode="false" />
+    </id>
+    <property name="CUSTOMERNAME" type="String" p1:nullable="true" p1:ValidateMaxLength="50" p1:ValidateRequired="false" p1:Guid="d5e85820-8008-490b-a852-02094e3ef254">
+      <column name="CUSTOMERNAME" not-null="false" length="50" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERTEL" type="String" p1:nullable="true" p1:ValidateMaxLength="24" p1:ValidateRequired="false" p1:Guid="28d5d3da-bf2b-40f0-8f93-1e8a6a510d76">
+      <column name="CUSTOMERTEL" not-null="false" length="24" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERMETER" type="String" p1:nullable="true" p1:ValidateMaxLength="11" p1:ValidateRequired="false" p1:Guid="c7d1ff5f-bc28-46e6-ac52-de113666b295">
+      <column name="CUSTOMERMETER" not-null="false" length="11" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERADDR" type="String" p1:nullable="true" p1:ValidateMaxLength="255" p1:ValidateRequired="false" p1:Guid="bb16d740-266c-4805-8cd1-2aaec2d01b8c">
+      <column name="CUSTOMERADDR" not-null="false" length="255" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="TPCLIDGROUPID" type="String" p1:nullable="true" p1:ValidateMaxLength="17" p1:ValidateRequired="false" p1:Guid="495526f1-9bc3-4f62-b4e5-af4ad75d0bc8">
+      <column name="TPCLIDGROUPID" not-null="false" length="17" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERTYPE" type="String" p1:nullable="true" p1:ValidateMaxLength="1" p1:ValidateRequired="false" p1:Guid="42a88bbc-454b-47bf-8940-a9d1b6821dd6">
+      <column name="CUSTOMERTYPE" not-null="false" length="1" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+    <property name="CUSTOMERKIND" type="String" p1:nullable="true" p1:ValidateMaxLength="1" p1:ValidateRequired="false" p1:Guid="db7e87a1-3646-46e0-9b92-e52949e75612">
+      <column name="CUSTOMERKIND" not-null="false" length="1" sql-type="VARCHAR2" p1:unicode="false" />
+    </property>
+  </class>
+</hibernate-mapping>
\ No newline at end of file

--
Gitblit v0.0.0-SNAPSHOT