Skip to content
Permalink
Browse files

把 EasyCore 抽离成一个独立的开源项目,通过 nuget 进行管理

  • Loading branch information...
grissomlau committed Mar 2, 2017
1 parent 8166308 commit 8206e52dd414a47ce9a418362653742152c85ea6
Showing with 100 additions and 2,982 deletions.
  1. +4 −0 .gitignore
  2. +29 −13 API/2-Services/2-Services.csproj
  3. +3 −3 API/2-Services/BaseService.cs
  4. +3 −3 API/2-Services/DbHelper.cs
  5. +1 −1 API/2-Services/Trace.cs
  6. +1 −1 API/2-Services/custom/Bas/BasOwnerService.cs
  7. +1 −1 API/2-Services/custom/ModelTemplate.tt
  8. +1 −1 API/2-Services/custom/Sys/SysMenuPointService.cs
  9. +1 −1 API/2-Services/custom/Sys/SysMenuService.cs
  10. +1 −1 API/2-Services/custom/Sys/SysRoleMenuPointService.cs
  11. +1 −1 API/2-Services/custom/Sys/SysRoleMenuService.cs
  12. +1 −1 API/2-Services/custom/Sys/SysRoleService.cs
  13. +1 −1 API/2-Services/custom/Sys/SysUserRoleService.cs
  14. +1 −1 API/2-Services/custom/Sys/SysUserService.cs
  15. +1 −1 API/2-Services/custom/Video/VideoCommentService.cs
  16. +1 −1 API/2-Services/custom/Video/VideoCommentUpdownService.cs
  17. +1 −1 API/2-Services/custom/Video/VideoMainService.cs
  18. +1 −1 API/2-Services/custom/Video/VideoMarkService.cs
  19. +4 −0 API/2-Services/packages.config
  20. +29 −15 API/3-WebAPI/3-WebApi.csproj
  21. +1 −1 API/3-WebAPI/APIs/Sys/RoleController.cs
  22. +1 −1 API/3-WebAPI/APIs/Sys/UserController.cs
  23. +1 −3 API/3-WebAPI/Helper/BaseApiController.cs
  24. +1 −1 API/3-WebAPI/Helper/Commons.cs
  25. +2 −2 API/3-WebAPI/Helper/DataProxyHelper.cs
  26. +1 −1 API/3-WebAPI/HttpParamBindings/ProxyHelperForNVCWrapper.cs
  27. +1 −1 API/3-WebAPI/Web.config
  28. +3 −0 API/3-WebAPI/packages.config
  29. +0 −37 API/Core/Easy.DataProxy/Builders/InsertUpdateDelete/BuilderData.cs
  30. +0 −85 API/Core/Easy.DataProxy/Builders/InsertUpdateDelete/DbBuilder.cs
  31. +0 −22 API/Core/Easy.DataProxy/Builders/InsertUpdateDelete/IDbBuilder.cs
  32. +0 −29 API/Core/Easy.DataProxy/Builders/Select/ISelectBuilder.cs
  33. +0 −135 API/Core/Easy.DataProxy/Builders/Select/SelectBuilder.cs
  34. +0 −36 API/Core/Easy.DataProxy/Builders/Select/SelectBuilderData.cs
  35. +0 −83 API/Core/Easy.DataProxy/Commons/DbField.cs
  36. +0 −33 API/Core/Easy.DataProxy/Commons/Extension.cs
  37. +0 −13 API/Core/Easy.DataProxy/Commons/LogicalKeyType.cs
  38. +0 −18 API/Core/Easy.DataProxy/Commons/OperatorType.cs
  39. +0 −95 API/Core/Easy.DataProxy/Easy.DataProxy.csproj
  40. +0 −36 API/Core/Easy.DataProxy/Properties/AssemblyInfo.cs
  41. +0 −60 API/Core/Easy.DataProxy/Proxy/Proxy.cs
  42. +0 −28 API/Core/Easy.DataProxy/Proxy/ProxyData.cs
  43. +0 −23 API/Core/Easy.DataProxy/Strategies/ConditionParser/ICParser.cs
  44. +0 −215 API/Core/Easy.DataProxy/Strategies/ConditionParser/SqlServerCParser.cs
  45. +0 −130 API/Core/Easy.DataProxy/Strategies/DbStrategy.cs
  46. +0 −14 API/Core/Easy.DataProxy/Strategies/IStrategy.cs
  47. +0 −241 API/Core/Easy.DataProxy/Strategies/InsertUpdateDeleteParser/Parser.cs
  48. +0 −24 API/Core/Easy.DataProxy/Strategies/InsertUpdateDeleteParser/ParserData.cs
  49. +0 −363 API/Core/Easy.DataProxy/Strategies/SelectStrategy.cs
  50. +0 −22 API/Core/Easy.DataProxy/Strategies/StrategyData.cs
  51. +0 −4 API/Core/Easy.DataProxy/packages.config
  52. +0 −84 API/Core/Easy.Office/Easy.Office.csproj
  53. +0 −185 API/Core/Easy.Office/Excel/Excel.cs
  54. +0 −74 API/Core/Easy.Office/Excel/ImportRow.cs
  55. +0 −36 API/Core/Easy.Office/Properties/AssemblyInfo.cs
  56. +0 −5 API/Core/Easy.Office/packages.config
  57. +0 −19 API/Core/Easy.SqlConfig/BillCodeRule.cs
  58. +0 −30 API/Core/Easy.SqlConfig/Delete.cs
  59. +0 −18 API/Core/Easy.SqlConfig/Dependency.cs
  60. +0 −68 API/Core/Easy.SqlConfig/Easy.SqlConfiguration.csproj
  61. +0 −23 API/Core/Easy.SqlConfig/Export.cs
  62. +0 −156 API/Core/Easy.SqlConfig/Field/Field.cs
  63. +0 −40 API/Core/Easy.SqlConfig/Field/ImportField.cs
  64. +0 −21 API/Core/Easy.SqlConfig/GroupBy.cs
  65. +0 −14 API/Core/Easy.SqlConfig/IOperate.cs
  66. +0 −25 API/Core/Easy.SqlConfig/Import.cs
  67. +0 −30 API/Core/Easy.SqlConfig/Insert.cs
  68. +0 −22 API/Core/Easy.SqlConfig/OrderBy.cs
  69. +0 −36 API/Core/Easy.SqlConfig/Properties/AssemblyInfo.cs
  70. +0 −18 API/Core/Easy.SqlConfig/SingleQuery.cs
  71. +0 −203 API/Core/Easy.SqlConfig/SqlConfig.cs
  72. +0 −28 API/Core/Easy.SqlConfig/Update.cs
  73. +0 −18 API/Core/Easy.SqlConfig/Where.cs
  74. +3 −25 API/Grissom.CMS.sln
  75. 0 API/{Core → }/Logger/ILogger/Class1.cs
  76. 0 API/{Core → }/Logger/ILogger/ILogHandle.cs
  77. 0 API/{Core → }/Logger/ILogger/ILogger.csproj
  78. 0 API/{Core → }/Logger/ILogger/LogTypeEnum.cs
  79. 0 API/{Core → }/Logger/ILogger/Properties/AssemblyInfo.cs
  80. 0 API/{Core → }/Logger/Log4netLogger/Class1.cs
  81. 0 API/{Core → }/Logger/Log4netLogger/Log4netLogHandle.cs
  82. 0 API/{Core → }/Logger/Log4netLogger/Log4netLogger.csproj
  83. 0 API/{Core → }/Logger/Log4netLogger/Properties/AssemblyInfo.cs
  84. 0 API/{Core → }/Logger/Log4netLogger/packages.config
@@ -39,3 +39,7 @@
/API/Core/Logger/Log4netLogger/obj
/API/Core/Logger/Log4netLogger/bin
/API/packages
/API/Logger/ILogger/bin/Debug
/API/Logger/ILogger/obj/Debug
/API/Logger/Log4netLogger/bin/Debug
/API/Logger/Log4netLogger/obj/Debug
@@ -33,14 +33,42 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="EasyJsonToSql, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\EasyJsonToSql.1.1.0\lib\net45\EasyJsonToSql.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FluentData, Version=3.0.5.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Ctauto\WebApi.Open.Member\src\Libs\FluentData.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
<HintPath>..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<HintPath>..\packages\MySql.Data.6.9.9\lib\net45\MySql.Data.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI.OOXML, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.OOXML.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI.OpenXml4Net, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.OpenXml4Net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI.OpenXmlFormats, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.OpenXmlFormats.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core" />
@@ -116,23 +144,11 @@
<Compile Include="Trace.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Easy.DataProxy\Easy.DataProxy.csproj">
<Project>{53fd5c32-b7d8-47e1-be37-e00b253b67eb}</Project>
<Name>Easy.DataProxy</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Easy.Office\Easy.Office.csproj">
<Project>{28b83a53-1d0d-4371-b107-d4c19273a1a3}</Project>
<Name>Easy.Office</Name>
</ProjectReference>
<ProjectReference Include="..\1-Model\1-Model.csproj">
<Project>{4c3e417b-58c2-4daf-9106-187156203e4c}</Project>
<Name>1-Model</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Easy.SqlConfig\Easy.SqlConfiguration.csproj">
<Project>{b98fa40f-e68d-4120-a7be-524d486300c1}</Project>
<Name>Easy.SqlConfiguration</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Logger\ILogger\ILogger.csproj">
<ProjectReference Include="..\Logger\ILogger\ILogger.csproj">
<Project>{7827eb2f-07d3-4a82-84b1-7858df5748f7}</Project>
<Name>ILogger</Name>
</ProjectReference>
@@ -6,9 +6,9 @@
using FluentData;
using System.Data.SqlClient;
using System.Data;
using Easy.DataProxy;
using Easy.Office;
using Easy.SqlConfiguration;
using EasyJsonToSql;



namespace Services
{
@@ -1,6 +1,6 @@
using Easy.DataProxy;
using Easy.Office;
using Easy.SqlConfiguration;
using EasyJsonToSql;


using FluentData;
using Model;
using System;
@@ -1,4 +1,4 @@
using Easy.DataProxy;
using EasyJsonToSql;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -28,7 +28,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;
using ILogger;

namespace Services
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Linq;
using Model;
using Easy.DataProxy;
using EasyJsonToSql;

namespace Services
{
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EasyJsonToSql" version="1.1.0" targetFramework="net45" />
<package id="MySql.Data" version="6.9.9" targetFramework="net45" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
<package id="NPOI" version="2.2.1" targetFramework="net45" />
<package id="SharpZipLib" version="0.86.0" targetFramework="net45" />
</packages>
@@ -63,10 +63,18 @@
<HintPath>..\packages\Castle.Core.3.2.2\lib\net45\Castle.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="EasyJsonToSql, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\EasyJsonToSql.1.1.0\lib\net45\EasyJsonToSql.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FluentData, Version=3.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\Ctauto\WebApi.Open.Member\src\Libs\FluentData.dll</HintPath>
</Reference>
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
<HintPath>..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.AspNet.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.Identity.Core.2.2.1\lib\net45\Microsoft.AspNet.Identity.Core.dll</HintPath>
<Private>True</Private>
@@ -128,6 +136,22 @@
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI.OOXML, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.OOXML.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI.OpenXml4Net, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.OpenXml4Net.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="NPOI.OpenXmlFormats, Version=2.2.1.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
<HintPath>..\packages\NPOI.2.2.1\lib\net40\NPOI.OpenXmlFormats.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
<Private>True</Private>
@@ -294,23 +318,11 @@
<Project>{280559f7-f0ef-4f40-8ef8-4e8d86b4e70b}</Project>
<Name>2-Services</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Easy.DataProxy\Easy.DataProxy.csproj">
<Project>{53fd5c32-b7d8-47e1-be37-e00b253b67eb}</Project>
<Name>Easy.DataProxy</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Easy.Office\Easy.Office.csproj">
<Project>{28b83a53-1d0d-4371-b107-d4c19273a1a3}</Project>
<Name>Easy.Office</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Easy.SqlConfig\Easy.SqlConfiguration.csproj">
<Project>{b98fa40f-e68d-4120-a7be-524d486300c1}</Project>
<Name>Easy.SqlConfiguration</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Logger\ILogger\ILogger.csproj">
<ProjectReference Include="..\Logger\ILogger\ILogger.csproj">
<Project>{7827eb2f-07d3-4a82-84b1-7858df5748f7}</Project>
<Name>ILogger</Name>
</ProjectReference>
<ProjectReference Include="..\Core\Logger\Log4netLogger\Log4netLogger.csproj">
<ProjectReference Include="..\Logger\Log4netLogger\Log4netLogger.csproj">
<Project>{132f2282-f486-4f82-b8ac-8922b87e2c24}</Project>
<Name>Log4netLogger</Name>
</ProjectReference>
@@ -334,12 +346,14 @@
<DevelopmentServerPort>2717</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:2717/</IISUrl>
<OverrideIISAppRootUrl>True</OverrideIISAppRootUrl>
<IISAppRootUrl>http://localhost:2717/</IISAppRootUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
<servers defaultServer="SelfHostServer">
<servers defaultServer="">
<server name="SelfHostServer" exePath="" cmdArgs="" url="http://localhost:2717/" workingDir="" />
</servers>
</WebProjectProperties>
@@ -7,7 +7,7 @@
using System.Web.Http;
using System.Web.Security;
using Services;
using Easy.DataProxy;
using EasyJsonToSql;

namespace WebApi.APIs.Sys
{
@@ -7,7 +7,7 @@
using System.Web.Http;
using System.Web.Security;
using Services;
using Easy.DataProxy;
using EasyJsonToSql;

namespace WebApi.APIs.Sys
{
@@ -15,9 +15,7 @@
using System.Web.Security;
using System.Collections.Specialized;
using Services;
using Easy.SqlConfiguration;
using Easy.Office;
using Easy.DataProxy;
using EasyJsonToSql;
using Model;

namespace WebApi
@@ -8,7 +8,7 @@
using Newtonsoft.Json;
using System.IO;
using System.Text;
using Easy.Office;
using EasyJsonToSql;

namespace WebApi
{
@@ -1,5 +1,5 @@
using Easy.DataProxy;
using Easy.SqlConfiguration;
using EasyJsonToSql;

using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
@@ -5,7 +5,7 @@
using System.Web.Http.Controllers;
using System.Collections.Specialized;
using System.Threading.Tasks;
using Easy.DataProxy;
using EasyJsonToSql;

namespace WebApi
{
@@ -5,7 +5,7 @@
-->
<configuration>
<connectionStrings>
<add name="DefaultConnection" connectionString="server=127.0.0.1;database=video;user=root;pwd=root;Allow User Variables=True" providerName="MySql.Data.MySqlClient" />
<add name="DefaultConnection" connectionString="server=192.168.10.119;database=video;user=root;pwd=root;Allow User Variables=True" providerName="MySql.Data.MySqlClient" />
</connectionStrings>
<appSettings>
<add key="issuer" value="test" />
@@ -6,6 +6,7 @@
<package id="Autofac.WebApi" version="3.1.0" targetFramework="net452" />
<package id="Autofac.WebApi2" version="4.0.0" targetFramework="net452" />
<package id="Castle.Core" version="3.2.2" targetFramework="net452" />
<package id="EasyJsonToSql" version="1.1.0" targetFramework="net452" />
<package id="Microsoft.AspNet.Cors" version="5.2.3" targetFramework="net452" />
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net452" />
<package id="Microsoft.AspNet.Identity.Owin" version="2.2.1" targetFramework="net452" />
@@ -38,7 +39,9 @@
<package id="Modernizr" version="2.6.2" targetFramework="net452" />
<package id="MySql.Data" version="6.9.9" targetFramework="net452" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
<package id="NPOI" version="2.2.1" targetFramework="net452" />
<package id="Owin" version="1.0" targetFramework="net452" />
<package id="SharpZipLib" version="0.86.0" targetFramework="net452" />
<package id="System.IdentityModel.Tokens.Jwt" version="4.0.2.206221351" targetFramework="net452" />
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.0.0" targetFramework="net452" />
<package id="Thinktecture.IdentityModel.Core" version="1.4.0" targetFramework="net452" />

0 comments on commit 8206e52

Please sign in to comment.
You can’t perform that action at this time.