commit
e843f2dcd2
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IDAL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public abstract class BaseService<T> : IDisposable where T : class, new()
|
||||
{
|
||||
|
||||
protected IBaseDao<T> CurrentDao;
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{B870B085-52FE-4C4F-A775-E38D05A56B5D}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Cappuccino.BLL</RootNamespace>
|
||||
<AssemblyName>Cappuccino.BLL</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
@ -0,0 +1,15 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Cappuccino.BLL")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Cappuccino.BLL")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysActionButtonService : BaseService<SysActionButton>, ISysActionButtonService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Cappuccino.ViewModel;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysActionMenuService : BaseService<SysActionMenu>, ISysActionMenuService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysActionService : BaseService<SysAction>, ISysActionService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysDictService : BaseService<SysDict>, ISysDictService
|
||||
{
|
||||
#region 依赖注入
|
||||
ISysDictDao dao;
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysDictTypeService : BaseService<SysDictType>, ISysDictTypeService
|
||||
{
|
||||
#region 依赖注入
|
||||
ISysDictTypeDao dao;
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysFileService : BaseService<SysFile>, ISysFileService
|
||||
{
|
||||
#region 依赖注入
|
||||
ISysFileDao dao;
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Net;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysLogLogonService : BaseService<SysLogLogon>, ISysLogLogonService
|
||||
{
|
||||
#region 依赖注入
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysRoleService : BaseService<SysRole>, ISysRoleService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel.System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysUserActionService : BaseService<SysUserAction>, ISysUserActionService
|
||||
{
|
||||
#region 依赖注入
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.Common.Util;
|
||||
using Cappuccino.ViewModel;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class SysUserService : BaseService<SysUser>, ISysUserService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class ProductCategoryService : BaseService<WebProductCategory>, IProductCategoryService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebAccessService : BaseService<WebAccess>, IWebAccessService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebBannerService : BaseService<WebBanner>, IWebBannerService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebDownloadCategoryService : BaseService<WebDownloadCategory>, IWebDownloadCategoryService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebDownloadService : BaseService<WebDownload>, IWebDownloadService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebInformationService : BaseService<WebInformation>, IWebInformationService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebInquiryService : BaseService<WebInquiry>, IWebInquiryService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebNavigationService : BaseService<WebNavigation>, IWebNavigationService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebNewsCategoryService : BaseService<WebNewsCategory>, IWebNewsCategoryService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebNewsService : BaseService<WebNews>, IWebNewsService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebProductService : BaseService<WebProduct>, IWebProductService
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Enum;
|
||||
using Cappuccino.IBLL;
|
||||
using Cappuccino.IDAL;
|
||||
using Cappuccino.Model;
|
||||
using Cappuccino.ViewModel;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.BLL
|
||||
{
|
||||
public class WebSeoService : BaseService<WebSeo>, IWebSeoService
|
||||
{
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>EntityFramework</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Data.Entity.Core.Mapping.FunctionImportResultMapping">
|
||||
<summary>
|
||||
Represents a result mapping for a function import.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Data.Entity.Core.Mapping.MappingItem">
|
||||
<summary>
|
||||
Base class for items in the mapping space (DataSpace.CSSpace)
|
||||
</summary>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Newtonsoft.Json</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Newtonsoft.Json.Bson.BsonObjectId">
|
||||
<summary>
|
||||
Represents a BSON Oid (object id).
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Newtonsoft.Json.Bson.BsonObjectId.Value">
|
||||
<summary>
|
||||
Gets or sets the value of the Oid.
|
||||
</summary>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>log4net</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:log4net.Appender.AdoNetAppender">
|
||||
<summary>
|
||||
Appender that logs to a database.
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
<see cref="T:log4net.Appender.AdoNetAppender"/> appends logging events to a table within a
|
||||
database. The appender can be configured to specify the connection
|
||||
string by setting the <see cref="P:log4net.Appender.AdoNetAppender.ConnectionString"/> property.
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
@ -0,0 +1,15 @@
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Web\bin\Cappuccino.BLL.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Web\bin\Cappuccino.BLL.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.csproj.AssemblyReference.cache
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.csproj.CoreCompileInputs.cache
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.csproj.CopyComplete
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.pdb
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.Web\bin\Cappuccino.BLL.dll
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.Web\bin\Cappuccino.BLL.pdb
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.csproj.AssemblyReference.cache
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.csproj.CoreCompileInputs.cache
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.csproj.CopyComplete
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.dll
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.BLL\obj\Debug\Cappuccino.BLL.pdb
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.dlchem.com\Cappuccino.Web\bin\Cappuccino.BLL.dll
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
@ -0,0 +1,15 @@
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.BLL.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.BLL.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.Common.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.IBLL.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.IDAL.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.Model.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.ViewModel.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Newtonsoft.Json.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\log4net.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\EntityFramework.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\AutoMapper.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.Common.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.IBLL.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.IDAL.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.BLL\bin\Release\Cappuccino.IDAL.dll.config
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
namespace Cappuccino.Common.Caching
|
||||
{
|
||||
/// <summary>
|
||||
/// 缓存管理类
|
||||
/// </summary>
|
||||
public class CacheManager
|
||||
{
|
||||
public static ICacheManager Cache { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
namespace Cappuccino.Common.Caching
|
||||
{
|
||||
public class HttpRuntimeCacheManager : ICacheManager
|
||||
{
|
||||
public void Clear()
|
||||
{
|
||||
var cache = HttpRuntime.Cache;
|
||||
var CacheEnum = cache.GetEnumerator();
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Caching
|
||||
{
|
||||
public interface ICacheManager
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置与指定键关联的值。
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Type</typeparam>
|
||||
/// <param name="key">要获取的值的键。</param>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{471E7F22-FDC4-4F8C-B985-3336D4B14E0B}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Cappuccino.Common</RootNamespace>
|
||||
<AssemblyName>Cappuccino.Common</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Cappuccino.Common
|
||||
{
|
||||
public class Common
|
||||
{
|
||||
#region 自动生成编号
|
||||
/// <summary>
|
||||
/// 表示全局唯一标识符 (GUID)。
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string GuId()
|
||||
{
|
||||
return Guid.NewGuid().ToString();
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
public enum ActionTypeEnum
|
||||
{
|
||||
[Display(Name = "菜单")]
|
||||
Menu = 0,
|
||||
[Display(Name = "按钮")]
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
/// <summary>
|
||||
/// Ajax请求状态枚举
|
||||
/// </summary>
|
||||
public enum AjaxStateEnum
|
||||
{
|
||||
[Description("成功")]
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
public enum DbLogType
|
||||
{
|
||||
[Display(Name = "其他")]
|
||||
Other = 0,
|
||||
[Display(Name = "登录")]
|
||||
Login = 1,
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
/// <summary>
|
||||
/// 启用标志枚举
|
||||
/// </summary>
|
||||
public enum EnabledMarkEnum
|
||||
{
|
||||
[Description("有效")]
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
public enum IsCheckEnum
|
||||
{
|
||||
[Display(Name = "审核不通过")]
|
||||
NoCheck = 0,
|
||||
[Display(Name = "审核通过")]
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
public enum IsHotEnum
|
||||
{
|
||||
[Display(Name = "不置顶")]
|
||||
NoHot = 0,
|
||||
[Display(Name = "置顶")]
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
public enum IsShowEnum
|
||||
{
|
||||
[Display(Name = "显示")]
|
||||
Show = 0,
|
||||
[Display(Name = "隐藏")]
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Enum
|
||||
{
|
||||
/// <summary>
|
||||
/// 显示位置枚举
|
||||
/// </summary>
|
||||
public enum PositionEnum
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Extensions
|
||||
{
|
||||
public class DateTimeExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// 自动生成编号
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string CreateNo()
|
@ -0,0 +1,15 @@
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common
|
||||
{
|
||||
public static class JsonExtensions
|
||||
{
|
||||
public static object ToJson(this string Json)
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web.UI;
|
||||
|
||||
namespace Cappuccino.Common.Extensions
|
||||
{
|
||||
public static class Controls
|
||||
{
|
||||
#region +获得功能页码条
|
||||
/// <summary>
|
||||
/// 获得功能页码条
|
||||
/// </summary>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Extensions
|
||||
{
|
||||
public static class StringExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否为空
|
||||
/// </summary>
|
||||
/// <param name="value">值</param>
|
||||
public static bool IsEmpty(this string value)
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
namespace Cappuccino.Common.Helper
|
||||
{
|
||||
public class CookieHelper
|
||||
{
|
||||
#region Cookie操作
|
||||
/// <summary>
|
||||
/// 写cookie值
|
||||
/// </summary>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Cappuccino.Common.Helper
|
||||
{
|
||||
/// <summary>
|
||||
/// 对象的深度拷贝(序列化的方式)
|
||||
/// </summary>
|
||||
public static class DeepCopyHelper
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Extensions;
|
||||
using System.Web;
|
||||
|
||||
namespace Cappuccino.Common.Helper
|
||||
{
|
||||
public class SessionHelper
|
||||
{
|
||||
#region Session操作
|
||||
/// <summary>
|
||||
/// 写Session
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Session键值的类型</typeparam>
|
||||
/// <param name="key">Session的键名</param>
|
||||
/// <param name="value">Session的键值</param>
|
||||
public static void Set<T>(string key, T value)
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Helper
|
||||
{
|
||||
/// <summary>
|
||||
/// 时间帮助类
|
||||
/// </summary>
|
||||
public class StartEndDateHelper
|
||||
{
|
||||
public static DateTime GteStartDate(string startEndDate)
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Globalization;
|
||||
using System.Threading;
|
||||
|
||||
namespace Cappuccino.Common.Helper
|
||||
{
|
||||
public sealed class TypeParser
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 字符串转换为整数
|
||||
/// </summary>
|
||||
/// <param name="str">字符串</param>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common
|
||||
{
|
||||
public class KeyManager
|
||||
{
|
||||
public const string UserInfo = "Cappuccino@UserInfo";
|
||||
|
||||
/// <summary>
|
||||
/// 用于存放登录成功后用户的id的cookie Key
|
||||
/// </summary>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common
|
||||
{
|
||||
public class Query
|
||||
{
|
||||
public enum Operators
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Log
|
||||
{
|
||||
public static class Log4netHelper
|
||||
{
|
||||
private static readonly log4net.ILog log = log4net.LogManager.GetLogger("LogHelper");
|
||||
public static void Debug(string message)
|
||||
{
|
||||
if (log.IsDebugEnabled)
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Security;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
|
||||
namespace Cappuccino.Common.Net
|
||||
{
|
||||
class HttpMethods
|
||||
{
|
||||
#region POST
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Common.Extensions;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.NetworkInformation;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
namespace Cappuccino.Common.Net
|
||||
{
|
||||
public class NetHelper
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("Cappuccino.Common")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Cappuccino.Common")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
@ -0,0 +1,15 @@
|
||||
using System.Configuration;
|
||||
using System.Web;
|
||||
|
||||
namespace Cappuccino.Common.Util
|
||||
{
|
||||
public class ConfigUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据Key取Value值
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
public static string GetValue(string key)
|
||||
{
|
||||
return ConfigurationManager.AppSettings[key].ToString().Trim();
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Util
|
||||
{
|
||||
/// <summary>
|
||||
/// DES加密解密
|
||||
/// </summary>
|
||||
public class DESUtils
|
||||
{
|
||||
private static string DESKey = "Cappuccino@DESKey";
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Util
|
||||
{
|
||||
/// <summary>
|
||||
/// MD5加密工具类
|
||||
/// </summary>
|
||||
public class Md5Utils
|
||||
{
|
||||
/// <summary>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.Common.Util
|
||||
{
|
||||
public class VerifyCodeUtils
|
||||
{
|
||||
public static string CreateVerifyCode(int len)
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Newtonsoft.Json</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Newtonsoft.Json.Bson.BsonObjectId">
|
||||
<summary>
|
||||
Represents a BSON Oid (object id).
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Newtonsoft.Json.Bson.BsonObjectId.Value">
|
||||
<summary>
|
||||
Gets or sets the value of the Oid.
|
||||
</summary>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>log4net</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:log4net.Appender.AdoNetAppender">
|
||||
<summary>
|
||||
Appender that logs to a database.
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
<see cref="T:log4net.Appender.AdoNetAppender"/> appends logging events to a table within a
|
||||
database. The appender can be configured to specify the connection
|
||||
string by setting the <see cref="P:log4net.Appender.AdoNetAppender.ConnectionString"/> property.
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>Newtonsoft.Json</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:Newtonsoft.Json.Bson.BsonObjectId">
|
||||
<summary>
|
||||
Represents a BSON Oid (object id).
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:Newtonsoft.Json.Bson.BsonObjectId.Value">
|
||||
<summary>
|
||||
Gets or sets the value of the Oid.
|
||||
</summary>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>log4net</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:log4net.Appender.AdoNetAppender">
|
||||
<summary>
|
||||
Appender that logs to a database.
|
||||
</summary>
|
||||
<remarks>
|
||||
<para>
|
||||
<see cref="T:log4net.Appender.AdoNetAppender"/> appends logging events to a table within a
|
||||
database. The appender can be configured to specify the connection
|
||||
string by setting the <see cref="P:log4net.Appender.AdoNetAppender.ConnectionString"/> property.
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
@ -0,0 +1,15 @@
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Debug\Cappuccino.Common.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Debug\Cappuccino.Common.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Debug\log4net.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Debug\Newtonsoft.Json.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Debug\log4net.xml
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Debug\Newtonsoft.Json.xml
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Debug\Cappuccino.Common.csproj.CoreCompileInputs.cache
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Debug\Cappuccino.Common.csproj.CopyComplete
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Debug\Cappuccino.Common.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Debug\Cappuccino.Common.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Debug\Cappuccino.Common.csproj.AssemblyReference.cache
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.Common\bin\Debug\Cappuccino.Common.dll
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.Common\bin\Debug\Cappuccino.Common.pdb
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.Common\bin\Debug\log4net.dll
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.chemgroup.cn\Cappuccino.Common\bin\Debug\Newtonsoft.Json.dll
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
@ -0,0 +1,15 @@
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Release\Cappuccino.Common.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Release\Cappuccino.Common.pdb
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Release\log4net.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Release\Newtonsoft.Json.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Release\log4net.xml
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\bin\Release\Newtonsoft.Json.xml
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Release\Cappuccino.Common.csproj.AssemblyReference.cache
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Release\Cappuccino.Common.csproj.CoreCompileInputs.cache
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Release\Cappuccino.Common.csproj.CopyComplete
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Release\Cappuccino.Common.dll
|
||||
G:\Source\Cappuccino.Net-main\Cappuccino.Common\obj\Release\Cappuccino.Common.pdb
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.dlchem.com\Cappuccino.Common\bin\Release\Cappuccino.Common.dll
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.dlchem.com\Cappuccino.Common\bin\Release\Cappuccino.Common.pdb
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.dlchem.com\Cappuccino.Common\bin\Release\log4net.dll
|
||||
G:\Source\GoogleAdsWebsite_ALL\www.dlchem.com\Cappuccino.Common\bin\Release\Newtonsoft.Json.dll
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="log4net" version="2.0.11" targetFramework="net48" />
|
||||
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net48" />
|
||||
</packages>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
|
||||
<providers>
|
||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
</configuration>
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IDAL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Cappuccino.DAL
|
||||
{
|
||||
public class BaseDao<T> : IDisposable where T : class, new()
|
||||
{
|
||||
private DbContext Db
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F122A9BC-F278-408F-B1DB-E0BF92923C56}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Cappuccino.DAL</RootNamespace>
|
||||
<AssemblyName>Cappuccino.DAL</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IDAL;
|
||||
using System.Data.Entity;
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
|
||||
namespace Cappuccino.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// 当前EF上下文的抽象工厂
|
||||
/// </summary>
|
||||
public class DbContextFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取当前EF上下文的唯一实例
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.IDAL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.ModelConfiguration.Conventions;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL
|
||||
{
|
||||
/// <summary>
|
||||
/// EF上下文类
|
||||
/// </summary>
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysActionButtonMap : EntityTypeConfiguration<SysActionButton>
|
||||
{
|
||||
public SysActionButtonMap()
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysActionMap : EntityTypeConfiguration<SysAction>
|
||||
{
|
||||
public SysActionMap()
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysActionMenuMap : EntityTypeConfiguration<SysActionMenu>
|
||||
{
|
||||
public SysActionMenuMap()
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysDictMap : EntityTypeConfiguration<SysDict>
|
||||
{
|
||||
public SysDictMap()
|
||||
{
|
||||
this.ToTable("SysDict");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysDictTypeMap : EntityTypeConfiguration<SysDictType>
|
||||
{
|
||||
public SysDictTypeMap()
|
||||
{
|
||||
this.ToTable("SysDictType");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysFileMap : EntityTypeConfiguration<SysFile>
|
||||
{
|
||||
public SysFileMap()
|
||||
{
|
||||
this.ToTable("SysFile");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysLogLogonMap : EntityTypeConfiguration<SysLogLogon>
|
||||
{
|
||||
public SysLogLogonMap()
|
||||
{
|
||||
this.ToTable("SysLogLogon");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysRoleMap : EntityTypeConfiguration<SysRole>
|
||||
{
|
||||
public SysRoleMap()
|
||||
{
|
||||
this.ToTable("SysRole");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysUserActionMap : EntityTypeConfiguration<SysUserAction>
|
||||
{
|
||||
public SysUserActionMap()
|
||||
{
|
||||
this.ToTable("SysUserAction");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class SysUserMap : EntityTypeConfiguration<SysUser>
|
||||
{
|
||||
public SysUserMap()
|
||||
{
|
||||
this.ToTable("SysUser");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebAccessMap : EntityTypeConfiguration<WebAccess>
|
||||
{
|
||||
public WebAccessMap()
|
||||
{
|
||||
this.ToTable("WebAccess");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebBannerMap : EntityTypeConfiguration<WebBanner>
|
||||
{
|
||||
public WebBannerMap()
|
||||
{
|
||||
this.ToTable("WebBanner");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebDownloadCategoryMap : EntityTypeConfiguration<WebDownloadCategory>
|
||||
{
|
||||
public WebDownloadCategoryMap()
|
||||
{
|
||||
this.ToTable("WebDownloadCategory");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebDownloadMap : EntityTypeConfiguration<WebDownload>
|
||||
{
|
||||
public WebDownloadMap()
|
||||
{
|
||||
this.ToTable("WebDownload");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebDynamicsMap : EntityTypeConfiguration<WebDynamics>
|
||||
{
|
||||
public WebDynamicsMap()
|
||||
{
|
||||
this.ToTable("WebDynamics");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebInformationMap : EntityTypeConfiguration<WebInformation>
|
||||
{
|
||||
public WebInformationMap()
|
||||
{
|
||||
this.ToTable("WebInformation");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebInquiryMap : EntityTypeConfiguration<WebInquiry>
|
||||
{
|
||||
public WebInquiryMap()
|
||||
{
|
||||
this.ToTable("WebInquiry");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebNavigationMap : EntityTypeConfiguration<WebNavigation>
|
||||
{
|
||||
public WebNavigationMap()
|
||||
{
|
||||
this.ToTable("WebNavigation");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebNewsCategoryMap : EntityTypeConfiguration<WebNewsCategory>
|
||||
{
|
||||
public WebNewsCategoryMap()
|
||||
{
|
||||
this.ToTable("WebNewsCategory");
|
@ -0,0 +1,15 @@
|
||||
using Cappuccino.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.Entity.ModelConfiguration;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Cappuccino.DAL.Mapping
|
||||
{
|
||||
public class WebNewsMap : EntityTypeConfiguration<WebNews>
|
||||
{
|
||||
public WebNewsMap()
|
||||
{
|
||||
this.ToTable("WebNews");
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue