├── .gitattributes
├── .gitignore
├── README.md
├── SQL脚本 for Demo
├── 1-CREATE Order TABLE.sql
├── 2-INSERT INTO Order.sql
└── Readme.txt
├── TripOrderService
├── BusinessLayer
│ └── Trip.Order.Business
│ │ ├── BusinessFacade.cs
│ │ ├── Convert
│ │ └── Class1.cs
│ │ ├── Helpers
│ │ └── Class2.cs
│ │ ├── Logic
│ │ └── OrderLogic.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── Trip.Order.Business.csproj
│ │ └── Verify
│ │ └── Class3.cs
├── CommonLayer
│ └── Trip.Order.Utility
│ │ ├── AppErrorEnum.cs
│ │ ├── AppException.cs
│ │ ├── AppSetting.cs
│ │ ├── Encryption.cs
│ │ ├── EnumHelper.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ └── Trip.Order.Utility.csproj
├── DataLayer
│ ├── Trip.Order.MSSQLDB
│ │ ├── ConnectionString.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Trip.Order.MSSQLDB.csproj
│ │ ├── TripOrderDB
│ │ │ ├── TripOrderDBCMD.cs
│ │ │ ├── TripOrderDBFacade.cs
│ │ │ └── TripOrderDBQuery.cs
│ │ └── TripProductDB
│ │ │ └── Class1.cs
│ ├── Trip.Order.MongoDB
│ │ ├── Class1.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Trip.Order.MongoDB.csproj
│ ├── Trip.Order.MySQLDB
│ │ ├── Class1.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Trip.Order.MySQLDB.csproj
│ └── Trip.Order.WSAgent
│ │ ├── Class1.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ └── Trip.Order.WSAgent.csproj
├── EntityLayer
│ ├── Trip.Order.BO
│ │ ├── OrderModel.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Trip.Order.BO.csproj
│ ├── Trip.Order.DTO
│ │ ├── Common
│ │ │ ├── Order
│ │ │ │ └── Class1.cs
│ │ │ ├── RequestBase.cs
│ │ │ ├── RequestPaging.cs
│ │ │ ├── ResponseBase.cs
│ │ │ └── ResponsePaging.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Request
│ │ │ └── SearchOrderRequest.cs
│ │ ├── Response
│ │ │ └── SearchOrderResponse.cs
│ │ └── Trip.Order.DTO.csproj
│ └── Trip.Order.Entity
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── Trip.Order.Entity.csproj
│ │ ├── TripOrderDB
│ │ └── OrderEntity.cs
│ │ └── TripProductDB
│ │ └── xxxEntity.cs
├── PresentationLayer
│ └── Trip.Order.Services
│ │ ├── Config
│ │ ├── AppSetting.Dev.config
│ │ ├── AppSetting.Prod.config
│ │ ├── AppSetting.Test.config
│ │ ├── Database.Dev.config
│ │ ├── Database.Prod.config
│ │ ├── Database.Test.config
│ │ ├── ServiceModel.Behaviors.config
│ │ ├── ServiceModel.Bindings.config
│ │ ├── ServiceModel.Services.config
│ │ └── log4net.config
│ │ ├── Global.asax
│ │ ├── Global.asax.cs
│ │ ├── OrderService.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── Trip.Order.Services.csproj
│ │ ├── Web.Debug.config
│ │ ├── Web.Release.config
│ │ └── Web.config
├── TripOrderService.sln
└── packages
│ ├── Dapper.dll
│ ├── Dapper.xml
│ ├── FxCommon.dll
│ ├── FxCommon.xml
│ ├── MSA.dll
│ └── MSA.xml
└── TripSellerSite
├── BusinessLayer
└── Trip.Seller.Business
│ ├── OrderLogic.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ └── Trip.Seller.Business.csproj
├── CommonLayer
└── Trip.Seller.Utility
│ ├── AppSetting.cs
│ ├── ConvertHelper.cs
│ ├── Encryption.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ └── Trip.Seller.Utility.csproj
├── DataLayer
├── Trip.Seller.MSSQLDB
│ ├── ConnectionString.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Trip.Seller.MSSQLDB.csproj
│ ├── TripOrderDB
│ │ ├── TripOrderDBCMD.cs
│ │ ├── TripOrderDBFacade.cs
│ │ └── TripOrderDBQuery.cs
│ └── TripProductDB
│ │ └── Class1.cs
└── Trip.Seller.WSAgent
│ ├── OrderServiceAgent.cs
│ ├── OrderServiceNS.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ └── Trip.Seller.WSAgent.csproj
├── EntityLayer
├── Trip.Seller.Entity
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Trip.Seller.Entity.csproj
│ ├── TripOrderDB
│ │ └── OrderEntity.cs
│ └── TripProductDB
│ │ └── xxxEntity.cs
└── Trip.Seller.ViewModel
│ ├── Order
│ ├── CreateOrderInput.cs
│ ├── SearchOrderInput.cs
│ └── SearchOrderOutput.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── Shared
│ └── Class1.cs
│ └── Trip.Seller.ViewModel.csproj
├── PresentationLayer
└── Trip.Seller.MVCSite
│ ├── App_Start
│ └── RouteConfig.cs
│ ├── Config
│ ├── AppSetting.Dev.config
│ ├── AppSetting.Prod.config
│ ├── AppSetting.Test.config
│ ├── Database.Dev.config
│ ├── Database.Prod.config
│ ├── Database.Test.config
│ ├── ServiceModel.Behaviors.config
│ ├── ServiceModel.Bindings.config
│ ├── ServiceModel.Client.config
│ └── log4net.config
│ ├── Controllers
│ └── OrderController.cs
│ ├── Global.asax
│ ├── Global.asax.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── Trip.Seller.MVCSite.csproj
│ ├── Views
│ ├── Order
│ │ └── Order.cshtml
│ ├── Shared
│ │ └── _Layout.cshtml
│ └── web.config
│ ├── Web.Debug.config
│ ├── Web.Release.config
│ ├── Web.config
│ ├── error.html
│ ├── js
│ └── order.js
│ └── packages.config
├── TripSellerSite.sln
└── packages
├── Dapper.dll
├── Dapper.xml
├── EmitMapper.XML
├── EmitMapper.dll
├── FxCommon.dll
├── FxCommon.xml
├── MSA.dll
├── MSA.xml
├── Microsoft.AspNet.Mvc.5.2.2
├── Content
│ ├── Web.config.install.xdt
│ └── Web.config.uninstall.xdt
├── Microsoft.AspNet.Mvc.5.2.2.nupkg
└── lib
│ └── net45
│ ├── System.Web.Mvc.dll
│ ├── System.Web.Mvc.xml
│ └── zh-Hans
│ ├── System.Web.Mvc.resources.dll
│ └── System.Web.Mvc.xml
├── Microsoft.AspNet.Mvc.zh-Hans.5.2.2
├── Microsoft.AspNet.Mvc.zh-Hans.5.2.2.nupkg
└── lib
│ └── net45
│ └── zh-Hans
│ ├── System.Web.Mvc.resources.dll
│ └── System.Web.Mvc.xml
├── Microsoft.AspNet.Razor.3.2.2
├── Microsoft.AspNet.Razor.3.2.2.nupkg
└── lib
│ └── net45
│ ├── System.Web.Razor.dll
│ ├── System.Web.Razor.xml
│ └── zh-Hans
│ ├── System.Web.Razor.resources.dll
│ └── system.web.razor.xml
├── Microsoft.AspNet.Razor.zh-Hans.3.2.2
├── Microsoft.AspNet.Razor.zh-Hans.3.2.2.nupkg
└── lib
│ └── net45
│ └── zh-Hans
│ ├── System.Web.Razor.resources.dll
│ └── system.web.razor.xml
├── Microsoft.AspNet.WebPages.3.2.2
├── Content
│ ├── Web.config.install.xdt
│ └── Web.config.uninstall.xdt
├── Microsoft.AspNet.WebPages.3.2.2.nupkg
└── lib
│ └── net45
│ ├── System.Web.Helpers.dll
│ ├── System.Web.Helpers.xml
│ ├── System.Web.WebPages.Deployment.dll
│ ├── System.Web.WebPages.Deployment.xml
│ ├── System.Web.WebPages.Razor.dll
│ ├── System.Web.WebPages.Razor.xml
│ ├── System.Web.WebPages.dll
│ ├── System.Web.WebPages.xml
│ └── zh-Hans
│ ├── System.Web.Helpers.resources.dll
│ ├── System.Web.WebPages.Deployment.resources.dll
│ ├── System.Web.WebPages.Razor.resources.dll
│ ├── System.Web.WebPages.resources.dll
│ ├── system.web.helpers.xml
│ ├── system.web.webpages.deployment.xml
│ ├── system.web.webpages.razor.xml
│ └── system.web.webpages.xml
├── Microsoft.AspNet.WebPages.zh-Hans.3.2.2
├── Microsoft.AspNet.WebPages.zh-Hans.3.2.2.nupkg
└── lib
│ └── net45
│ └── zh-Hans
│ ├── System.Web.Helpers.resources.dll
│ ├── System.Web.WebPages.Deployment.resources.dll
│ ├── System.Web.WebPages.Razor.resources.dll
│ ├── System.Web.WebPages.resources.dll
│ ├── system.web.helpers.xml
│ ├── system.web.webpages.deployment.xml
│ ├── system.web.webpages.razor.xml
│ └── system.web.webpages.xml
├── Microsoft.Web.Infrastructure.1.0.0.0
├── Microsoft.Web.Infrastructure.1.0.0.0.nupkg
└── lib
│ └── net40
│ └── Microsoft.Web.Infrastructure.dll
├── Newtonsoft.Json.dll
├── Newtonsoft.Json.xml
└── repositories.config
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.sln.docstates
8 |
9 | # Build results
10 | [Dd]ebug/
11 | [Dd]ebugPublic/
12 | [Rr]elease/
13 | x64/
14 | build/
15 | bld/
16 | [Bb]in/
17 | [Oo]bj/
18 |
19 | # Roslyn cache directories
20 | *.ide/
21 |
22 | # MSTest test Results
23 | [Tt]est[Rr]esult*/
24 | [Bb]uild[Ll]og.*
25 |
26 | #NUNIT
27 | *.VisualState.xml
28 | TestResult.xml
29 |
30 | # Build Results of an ATL Project
31 | [Dd]ebugPS/
32 | [Rr]eleasePS/
33 | dlldata.c
34 |
35 | *_i.c
36 | *_p.c
37 | *_i.h
38 | *.ilk
39 | *.meta
40 | *.obj
41 | *.pch
42 | *.pdb
43 | *.pgc
44 | *.pgd
45 | *.rsp
46 | *.sbr
47 | *.tlb
48 | *.tli
49 | *.tlh
50 | *.tmp
51 | *.tmp_proj
52 | *.log
53 | *.vspscc
54 | *.vssscc
55 | .builds
56 | *.pidb
57 | *.svclog
58 | *.scc
59 |
60 | # Chutzpah Test files
61 | _Chutzpah*
62 |
63 | # Visual C++ cache files
64 | ipch/
65 | *.aps
66 | *.ncb
67 | *.opensdf
68 | *.sdf
69 | *.cachefile
70 |
71 | # Visual Studio profiler
72 | *.psess
73 | *.vsp
74 | *.vspx
75 |
76 | # TFS 2012 Local Workspace
77 | $tf/
78 |
79 | # Guidance Automation Toolkit
80 | *.gpState
81 |
82 | # ReSharper is a .NET coding add-in
83 | _ReSharper*/
84 | *.[Rr]e[Ss]harper
85 | *.DotSettings.user
86 |
87 | # JustCode is a .NET coding addin-in
88 | .JustCode
89 |
90 | # TeamCity is a build add-in
91 | _TeamCity*
92 |
93 | # DotCover is a Code Coverage Tool
94 | *.dotCover
95 |
96 | # NCrunch
97 | _NCrunch_*
98 | .*crunch*.local.xml
99 |
100 | # MightyMoose
101 | *.mm.*
102 | AutoTest.Net/
103 |
104 | # Web workbench (sass)
105 | .sass-cache/
106 |
107 | # Installshield output folder
108 | [Ee]xpress/
109 |
110 | # DocProject is a documentation generator add-in
111 | DocProject/buildhelp/
112 | DocProject/Help/*.HxT
113 | DocProject/Help/*.HxC
114 | DocProject/Help/*.hhc
115 | DocProject/Help/*.hhk
116 | DocProject/Help/*.hhp
117 | DocProject/Help/Html2
118 | DocProject/Help/html
119 |
120 | # Click-Once directory
121 | publish/
122 |
123 | # Publish Web Output
124 | *.[Pp]ublish.xml
125 | *.azurePubxml
126 | ## TODO: Comment the next line if you want to checkin your
127 | ## web deploy settings but do note that will include unencrypted
128 | ## passwords
129 | #*.pubxml
130 |
131 | # NuGet Packages Directory
132 | packages/*
133 | ## TODO: If the tool you use requires repositories.config
134 | ## uncomment the next line
135 | #!packages/repositories.config
136 |
137 | # Enable "build/" folder in the NuGet Packages folder since
138 | # NuGet packages use it for MSBuild targets.
139 | # This line needs to be after the ignore of the build folder
140 | # (and the packages folder if the line above has been uncommented)
141 | !packages/build/
142 |
143 | # Windows Azure Build Output
144 | csx/
145 | *.build.csdef
146 |
147 | # Windows Store app package directory
148 | AppPackages/
149 |
150 | # Others
151 | sql/
152 | *.Cache
153 | ClientBin/
154 | [Ss]tyle[Cc]op.*
155 | ~$*
156 | *~
157 | *.dbmdl
158 | *.dbproj.schemaview
159 | *.pfx
160 | *.publishsettings
161 | node_modules/
162 |
163 | # RIA/Silverlight projects
164 | Generated_Code/
165 |
166 | # Backup & report files from converting an old project file
167 | # to a newer Visual Studio version. Backup files are not needed,
168 | # because we have git ;-)
169 | _UpgradeReport_Files/
170 | Backup*/
171 | UpgradeLog*.XML
172 | UpgradeLog*.htm
173 |
174 | # SQL Server files
175 | *.mdf
176 | *.ldf
177 |
178 | # Business Intelligence projects
179 | *.rdl.data
180 | *.bim.layout
181 | *.bim_*.settings
182 |
183 | # Microsoft Fakes
184 | FakesAssemblies/
185 |
186 | # LightSwitch generated files
187 | GeneratedArtifacts/
188 | _Pvt_Extensions/
189 | ModelManifest.xml
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # LayerDemo
2 | 统一应用分层
3 |
4 | ## 新书上市:
5 | + 京东链接:https://item.jd.com/12477683.html
6 | + 当当链接:http://product.dangdang.com/1436599215.html
7 | + 天猫店铺:https://detail.tmall.com/item.htm?spm=a1z10.3-b.w4011-16861154605.39.46be1b8bGWSsmz&id=585204361262&rn=12e44ccc5bb398b74fdd72e49e2af64e&abbucket=9
8 |
9 | ## 内容简介
10 | 本书结合作者近几年的工作经验,总结了一套可直接落地、基于开源、成本低、可快速搭建的中小研发团队架构实践方法。本书共5篇22章,开篇是本书的导读;架构篇是设计思想的提升,包括企业总体架构、应用架构设计、统一应用分层等;框架篇主讲中间件和工具的使用,包括消息队列、缓存、Job、集中式日志、应用监控和微服务等;公共应用篇是技术与业务的结合,包括单点登录和企业支付网关;进阶篇是从架构到管理,包括技改案例、技术与业务的匹配与融合等。从架构、框架、公共应用,到案例实战和技术管理,本书将大公司的工程理念压缩应用到中小研发团队,使小团队也能构建大网站。
11 |
12 | ## 全书目录
13 |
14 | 第1篇 开篇
15 | 1 可参考的才是有价值的(含案例和代码)
16 | 1.1 框架篇—工欲善其事,必先利其器
17 | 1.2 架构篇—思想提升
18 | 1.3 公共应用篇—业务与技术的结合
19 | 1.4 进阶篇—从架构到管理
20 | 1.5 案例参考和Demo下载
21 | 第2篇 架构篇
22 | 2 企业总体架构
23 | 2.1 企业商务模型
24 | 2.2 架构现状
25 | 2.3 领域模型
26 | 2.4 架构规划
27 | 2.5 架构实施
28 | 2.6 案例参考
29 | 3 应用架构设计
30 | 3.1 初识架构设计
31 | 3.2 应用架构设计案例
32 | 3.3 更多知识探讨
33 | 3.4 互联网公司的架构设计要怎么落地
34 | 3.5 你给技术打个分
35 | 3.6 案例参考
36 | 4 统一应用分层
37 | 4.1 为什么要统一应用分层
38 | 4.2 统一应用逻辑架构
39 | 4.3 分层规范实践
40 | 4.4 互动问答
41 | 4.5 Demo下载
42 | 5 生产环境诊断工具WinDbg
43 | 5.1 诊断工具简介
44 | 5.2 获取异常进程的Dump文件
45 | 5.3 WinDbg的使用方法
46 | 5.4 一个真实案例
47 | 5.5 Demo下载
48 | 第3篇 框架篇
49 | 6 RabbitMQ快速入门及应用
50 | 6.1 为什么要用消息队列RabbitMQ
51 | 6.2 RabbitMQ简介
52 | 6.3 RabbitMQ的工作原理
53 | 6.4 RabbitMQ的基本用法
54 | 6.5 Demo下载
55 | 7 Redis快速入门及应用
56 | 7.1 Redis简介
57 | 7.2 Redis的数据结构
58 | 7.3 Redis的重要特性
59 | 7.4 使用方法
60 | 7.5 Redis Key命名规范与常见问题
61 | 7.6 Demo下载
62 | 8 任务调度Job
63 | 8.1 Job简介
64 | 8.2 WinJob
65 | 8.3 HttpJob
66 | 8.4 Cron表达式
67 | 8.5 Demo下载
68 | 9 应用监控系统Metrics
69 | 9.1 Metrics简介
70 | 9.2 埋点Metrics.NET的方法
71 | 9.3 Grafana配置
72 | 9.3.1 设置仪表盘(Dashboard)
73 | 9.3.2 设置面板(Panel)
74 | 9.3.3 设置模板Templating
75 | 9.3.4 设置Time Range
76 | 9.3.5 告警设置
77 | 9.4 其他说明
78 | 9.5 Metrics的使用价值
79 | 9.6 Demo下载
80 | 10 集中式日志ELK
81 | 10.1 集中式日志
82 | 10.2 配置方法
83 | 10.3 使用方法
84 | 10.4 Demo下载
85 | 11 微服务架构MSA
86 | 11.1 MSA简介
87 | 11.2 MSA框架的使用
88 | 11.3 微服务治理
89 | 11.4 微服务网关API Gateway
90 | 11.5 Demo下载
91 | 12 搜索服务Solr
92 | 12.1 Solr简介
93 | 12.2 Solr的工作原理
94 | 12.3 Solr的特性
95 | 12.4 Demo下载
96 | 13 分布式协调器ZooKeeper
97 | 13.1 ZooKeeper是什么
98 | 13.2 ZooKeeper的工作原理简介
99 | 13.3 ZooKeeper的典型应用场景
100 | 13.4 Demo下载
101 | 14 小工具合集
102 | 14.1 ORM工具
103 | 14.2 对象映射工具
104 | 14.3 IoC工具
105 | 14.4 DLL包管理工具
106 | 14.5 Demo下载
107 | 15 一键发布和测试之持续集成工具Jenkins
108 | 15.1 Jenkins简介
109 | 15.2 Jenkins插件与相关工具
110 | 15.3 Jenkins关键配置
111 | 15.4 Jenkins的使用价值
112 | 第4篇 公共应用篇
113 | 16 单点登录
114 | 16.1 单点登录简介
115 | 16.2 SSO技术实现
116 | 16.3 JWT规范
117 | 17 企业支付网关
118 | 17.1 企业支付网关介绍
119 | 17.2 统一支付服务
120 | 17.3 统一支付通知
121 | 17.4 Demo下载
122 | 第5篇 进阶篇
123 | 18 技改之路:从单体应用到微服务
124 | 18.1 系统背景
125 | 18.2 前期工作
126 | 18.3 技改实施
127 | 18.4 总结
128 | 18.5 互动问答
129 | 19 机票垂直搜索引擎之性能优化
130 | 19.1 行业背景与垂直搜索
131 | 19.2 主要问题与解决方案
132 | 19.3 静态数据与任务打底
133 | 19.4 缓存策略与数据一致
134 | 19.5 实时查询与三段超时
135 | 19.6 政策匹配与算法优化
136 | 19.7 小结
137 | 20 上云纪要
138 | 20.1 为什么要上云
139 | 20.2 内部虚拟化和外部云化
140 | 20.3 云选型
141 | 20.4 上云八条
142 | 20.5 成功上云
143 | 20.6 上云总结
144 | 21 技术与业务的匹配与融合
145 | 21.1 技术人员与业务人员的抱怨
146 | 21.2 问题出在哪里
147 | 21.3 理解源于彼此的了解
148 | 21.4 如何去匹配与融合
149 | 21.5 什么在驱动公司的发展
150 | 22 研发团队文化是怎么“长”出来的
151 | 22.1 神秘的文化
152 | 22.2 遇到的问题
153 | 22.3 解决之道
154 | 22.4 总结与提升
155 | 22.5 “长”出来的团队文化
156 | 后记
157 | 架构师进阶之路
158 | 谈谈互联网公司的技术架构和管理
159 | 短评
160 |
161 |
--------------------------------------------------------------------------------
/SQL脚本 for Demo/1-CREATE Order TABLE.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/SQL脚本 for Demo/1-CREATE Order TABLE.sql
--------------------------------------------------------------------------------
/SQL脚本 for Demo/2-INSERT INTO Order.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/SQL脚本 for Demo/2-INSERT INTO Order.sql
--------------------------------------------------------------------------------
/SQL脚本 for Demo/Readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/SQL脚本 for Demo/Readme.txt
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/BusinessFacade.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Trip.Order.DTO;
8 | using Trip.Order.Utility;
9 |
10 | namespace Trip.Order.Business
11 | {
12 | public static class BusinessFacade
13 | {
14 | private static readonly OrderLogic orderLogic = new OrderLogic();
15 |
16 | ///
17 | /// 查询订单
18 | ///
19 | /// 查询条件
20 | ///
21 | public static SearchOrderResponse SearchOrder(SearchOrderRequest request)
22 | {
23 | SearchOrderResponse response = new SearchOrderResponse();
24 | try
25 | {
26 | response = orderLogic.SearchOrder(request);
27 | }
28 | catch (AppException ex)
29 | {
30 | response.ErrorCode = ex.Code;
31 | response.ErrorMsg = ex.Message;
32 | }
33 | catch
34 | {
35 | response.ErrorCode = (int)AppErrorEnum.InternalServerError;
36 | response.ErrorMsg = EnumHelper.GetEnumDescription(AppErrorEnum.InternalServerError);
37 | }
38 | return response;
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/Convert/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.Business
8 | {
9 | class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/Helpers/Class2.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.Business
8 | {
9 | class Class2
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/Logic/OrderLogic.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Trip.Order.Utility;
8 | using Trip.Order.DTO;
9 | using Trip.Order.MSSQLDB;
10 |
11 | namespace Trip.Order.Business
12 | {
13 | public class OrderLogic
14 | {
15 | internal SearchOrderResponse SearchOrder(SearchOrderRequest request)
16 | {
17 | try
18 | {
19 | return TripOrderDBFacade.SearchOrder(request);
20 | }
21 | catch
22 | {
23 | throw new AppException(AppErrorEnum.InternalServerError);
24 | }
25 |
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.Business")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.Business")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("baa8c2a6-c548-4a35-ad2d-35214bb423ee")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/Trip.Order.Business.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {96EA7429-A1E0-4A52-9CD9-9263F523ED21}
8 | Library
9 | Properties
10 | Trip.Order.Business
11 | Trip.Order.Business
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\FxCommon.dll
35 |
36 |
37 | ..\..\packages\MSA.dll
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | {94b25310-8d6a-4e04-81be-0f9be6de0696}
58 | Trip.Order.Utility
59 |
60 |
61 | {eca59bf8-e0c9-4a47-874a-616ddb0e7636}
62 | Trip.Order.MSSQLDB
63 |
64 |
65 | {6bd868bb-d11a-4ea9-a2ad-b10cf818398c}
66 | Trip.Order.DTO
67 |
68 |
69 | {0905c7dd-e7d5-4187-afa7-ead42b98220a}
70 | Trip.Order.Entity
71 |
72 |
73 |
74 |
75 |
82 |
--------------------------------------------------------------------------------
/TripOrderService/BusinessLayer/Trip.Order.Business/Verify/Class3.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.Business
8 | {
9 | class Class3
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/AppErrorEnum.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.ComponentModel;
8 |
9 | namespace Trip.Order.Utility
10 | {
11 | public enum AppErrorEnum
12 | {
13 | ///
14 | /// 成功
15 | ///
16 | [Description("成功")]
17 | Success = 200,
18 | ///
19 | /// 请求要求身份验证
20 | ///
21 | [Description("请求要求身份验证")]
22 | UnAuthorized = 401,
23 | ///
24 | /// 服务器内部错误
25 | ///
26 | [Description("服务器内部错误")]
27 | InternalServerError = 500,
28 | ///
29 | /// 已下单出现价格变动
30 | ///
31 | [Description("已下单出现价格变动")]
32 | OrderCreateChangePrice = 901,
33 | ///
34 | /// 验舱失败
35 | ///
36 | [Description("验舱失败")]
37 | CheckClassFailed = 902
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/AppException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.Utility
8 | {
9 | public class AppException : ApplicationException
10 | {
11 | public int Code { get; private set; }
12 | public new string Message { get; private set; }
13 |
14 | public AppException(AppErrorEnum errorCode)
15 | {
16 | Code = (int)errorCode;
17 | Message = EnumHelper.GetEnumDescription(errorCode);
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/AppSetting.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Configuration;
8 |
9 | namespace Trip.Order.Utility
10 | {
11 | public static class AppSetting
12 | {
13 | public readonly static string AppID = ConfigurationManager.AppSettings["AppID"];
14 | public readonly static string EncryptKey = ConfigurationManager.AppSettings["EncryptKey"];
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/Encryption.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Security.Cryptography;
8 |
9 | namespace Trip.Order.Utility
10 | {
11 | public static class Encryption
12 | {
13 | ///
14 | /// 解密
15 | ///
16 | /// 已加密的内容
17 | /// 密钥
18 | ///
19 | public static string Decrypt(string text, string key)
20 | {
21 | byte[] buff = Convert.FromBase64String(text);
22 | byte[] kb = Encoding.Default.GetBytes(key);
23 |
24 | MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
25 | TripleDESCryptoServiceProvider des = new TripleDESCryptoServiceProvider();
26 | des.Key = md5.ComputeHash(kb);
27 | des.Mode = CipherMode.ECB;
28 | byte[] decryptBytes = des.CreateDecryptor().TransformFinalBlock(buff, 0, buff.Length);
29 |
30 | return Encoding.Default.GetString(decryptBytes);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/EnumHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Reflection;
8 | using System.ComponentModel;
9 |
10 | namespace Trip.Order.Utility
11 | {
12 | public class EnumHelper
13 | {
14 | ///
15 | /// 获取枚举类子项描述信息
16 | ///
17 | /// 枚举类子项
18 | public static string GetEnumDescription(Enum enumSubitem)
19 | {
20 | string strValue = enumSubitem.ToString();
21 | FieldInfo fieldinfo = enumSubitem.GetType().GetField(strValue);
22 | Object[] objs = fieldinfo.GetCustomAttributes(typeof(DescriptionAttribute), false);
23 | if (objs == null || objs.Length == 0)
24 | {
25 | return strValue;
26 | }
27 |
28 | DescriptionAttribute da = (DescriptionAttribute)objs[0];
29 | return da.Description;
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.Utility")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.Utility")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("1bcf8525-a2d9-42e5-b2b6-0bf72fffed21")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/CommonLayer/Trip.Order.Utility/Trip.Order.Utility.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {94B25310-8D6A-4E04-81BE-0F9BE6DE0696}
8 | Library
9 | Properties
10 | Trip.Order.Utility
11 | Trip.Order.Utility
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
59 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/ConnectionString.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Configuration;
8 | using Trip.Order.Utility;
9 |
10 | namespace Trip.Order.MSSQLDB
11 | {
12 | ///
13 | /// 数据库连接字符串
14 | ///
15 | internal class ConnectionString
16 | {
17 | public readonly static string TripOrderDBSelect = ConfigurationManager.ConnectionStrings["TripOrderDB_SELECT"].ConnectionString;
18 | public readonly static string TripOrderDBInsert = ConfigurationManager.ConnectionStrings["TripOrderDB_INSERT"].ConnectionString;
19 |
20 | ///
21 | /// TripOrderDB库读链接
22 | ///
23 | public static string TripOrderDB_SELECT
24 | {
25 | get
26 | {
27 | return Encryption.Decrypt(TripOrderDBSelect, AppSetting.EncryptKey);
28 | }
29 | }
30 |
31 | ///
32 | /// TripOrderDB库写链接
33 | ///
34 | public static string TripOrderDB_INSERT
35 | {
36 | get
37 | {
38 | return Encryption.Decrypt(TripOrderDBInsert, AppSetting.EncryptKey);
39 | }
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.MSSQLDB")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.MSSQLDB")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("e53603e0-f2da-474f-b30f-f132d20d3096")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/Trip.Order.MSSQLDB.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {ECA59BF8-E0C9-4A47-874A-616DDB0E7636}
8 | Library
9 | Properties
10 | Trip.Order.MSSQLDB
11 | Trip.Order.MSSQLDB
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\Dapper.dll
35 |
36 |
37 | ..\..\packages\FxCommon.dll
38 |
39 |
40 | ..\..\packages\MSA.dll
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | {94b25310-8d6a-4e04-81be-0f9be6de0696}
62 | Trip.Order.Utility
63 |
64 |
65 | {6bd868bb-d11a-4ea9-a2ad-b10cf818398c}
66 | Trip.Order.DTO
67 |
68 |
69 | {0905c7dd-e7d5-4187-afa7-ead42b98220a}
70 | Trip.Order.Entity
71 |
72 |
73 |
74 |
81 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/TripOrderDB/TripOrderDBCMD.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Data.SqlClient;
8 | using Dapper;
9 | using Trip.Order.Entity;
10 |
11 | namespace Trip.Order.MSSQLDB
12 | {
13 | public class TripOrderDBCMD
14 | {
15 | internal int CreateOrder(OrderEntity entity)
16 | {
17 | const string sql =
18 | @"INSERT INTO dbo.[Order](OrderStateID, Amount, ProductID, ProductName, MemberID, MemberName, OrderCreatedTime)
19 | VALUES (@OrderStateID, @Amount, @ProductID, @ProductName, @MemberID, @MemberName, @OrderCreatedTime);
20 | SELECT CAST(SCOPE_IDENTITY() AS INT);";
21 |
22 | using (var connection = new SqlConnection(ConnectionString.TripOrderDB_INSERT))
23 | {
24 | connection.Open();
25 | return connection.Query(sql, entity).Single();
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/TripOrderDB/TripOrderDBFacade.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Trip.Order.DTO;
8 | using Trip.Order.Entity;
9 |
10 | namespace Trip.Order.MSSQLDB
11 | {
12 | public static class TripOrderDBFacade
13 | {
14 | private static readonly TripOrderDBCMD CMD = new TripOrderDBCMD();
15 | private static readonly TripOrderDBQuery Query = new TripOrderDBQuery();
16 |
17 | ///
18 | /// 创建订单
19 | ///
20 | ///
21 | ///
22 | public static int CreateOrder(OrderEntity entity)
23 | {
24 | return CMD.CreateOrder(entity);
25 | }
26 |
27 | ///
28 | /// 查询订单
29 | ///
30 | /// 查询条件
31 | ///
32 | public static SearchOrderResponse SearchOrder(SearchOrderRequest request)
33 | {
34 | return Query.SearchOrder(request);
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/TripOrderDB/TripOrderDBQuery.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Data.SqlClient;
8 | using Trip.Order.DTO;
9 | using Dapper;
10 |
11 | namespace Trip.Order.MSSQLDB
12 | {
13 | public class TripOrderDBQuery
14 | {
15 | internal SearchOrderResponse SearchOrder(SearchOrderRequest request)
16 | {
17 | const string sql =
18 | @"SELECT OrderID, OrderStateID, Amount, ProductID, ProductName, MemberID, MemberName, OrderCreatedTime
19 | FROM dbo.[Order] WITH(NOLOCK)
20 | WHERE OrderID = @OrderID";
21 |
22 | using (var connection = new SqlConnection(ConnectionString.TripOrderDB_SELECT))
23 | {
24 | connection.Open();
25 | return connection.QuerySingleOrDefault(sql, new { OrderID = request.OrderID });
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MSSQLDB/TripProductDB/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.MSSQLDB
8 | {
9 | class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MongoDB/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.MongoDB
8 | {
9 | public class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MongoDB/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.MongoDB")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.MongoDB")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("7b71e62b-c3f1-4214-ba10-e0f549d953b1")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MongoDB/Trip.Order.MongoDB.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {586B0892-3950-4C2D-A388-473C2B808C6E}
8 | Library
9 | Properties
10 | Trip.Order.MongoDB
11 | Trip.Order.MongoDB
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
53 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MySQLDB/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.MySQLDB
8 | {
9 | public class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MySQLDB/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.MySQLDB")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.MySQLDB")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("65b61a9f-a732-4cf1-b539-40f352db811d")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.MySQLDB/Trip.Order.MySQLDB.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {170EACFA-37EF-422D-BB85-ECEC83DCC121}
8 | Library
9 | Properties
10 | Trip.Order.MySQLDB
11 | Trip.Order.MySQLDB
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
53 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.WSAgent/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.WSAgent
8 | {
9 | public class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.WSAgent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.WSAgent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.WSAgent")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("746380fd-37a4-43e6-a4c7-0e10c6b8a313")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/DataLayer/Trip.Order.WSAgent/Trip.Order.WSAgent.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {0CF401AB-9705-4630-ABFA-A8269590730E}
8 | Library
9 | Properties
10 | Trip.Order.WSAgent
11 | Trip.Order.WSAgent
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
53 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.BO/OrderModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.BO
8 | {
9 | class OrderModel
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.BO/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.BO")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.BO")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("39eadb4b-9a07-4354-855e-493709ff32e4")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.BO/Trip.Order.BO.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {79B3988E-B7F1-45D9-AD24-3D10B351BF31}
8 | Library
9 | Properties
10 | Trip.Order.BO
11 | Trip.Order.BO
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
53 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Common/Order/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.DTO
8 | {
9 | public class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Common/RequestBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.DTO
8 | {
9 | ///
10 | /// 请求参数DTO实体类的基类
11 | ///
12 | public class RequestBase
13 | {
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Common/RequestPaging.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.Serialization;
5 | using System.Text;
6 |
7 | namespace Trip.Order.DTO
8 | {
9 | ///
10 | /// 分页数据请求类
11 | ///
12 | public class RequestPaging: RequestBase
13 | {
14 | public RequestPaging()
15 | {
16 | PageSize = 1;
17 | PageIndex = 1;
18 | }
19 |
20 | ///
21 | /// 每页最多记录数
22 | ///
23 | public int PageSize { get; set; }
24 |
25 | ///
26 | /// 页索引
27 | ///
28 | public int PageIndex { get; set; }
29 |
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Common/ResponseBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using ServiceStack;
8 |
9 | namespace Trip.Order.DTO
10 | {
11 | ///
12 | /// 响应DTO实体类的基类
13 | ///
14 | public class ResponseBase
15 | {
16 | public ResponseBase()
17 | {
18 | ErrorCode = 200;
19 | ErrorMsg = "成功响应";
20 | }
21 |
22 | ///
23 | /// 返回编码,200之外的值都表示有错误
24 | ///
25 | [ApiMember(Name = "ErrorCode", Description = "返回编码,200之外的值都表示有错误", IsRequired = false)]
26 | public int ErrorCode { get; set; }
27 |
28 | ///
29 | /// 返回的消息
30 | ///
31 | [ApiMember(Name = "ErrorMsg", Description = "返回的消息", IsRequired = false)]
32 | public string ErrorMsg { get; set; }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Common/ResponsePaging.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Runtime.Serialization;
5 | using System.Text;
6 |
7 | namespace Trip.Order.DTO
8 | {
9 | ///
10 | /// 分页数据响应类
11 | ///
12 | public class ResponsePaging : ResponseBase
13 | {
14 | ///
15 | /// 每页最多记录数
16 | ///
17 | public int PageSize { get; set; }
18 |
19 | ///
20 | /// 页索引
21 | ///
22 | public int PageIndex { get; set; }
23 |
24 | ///
25 | /// 总记录数
26 | ///
27 | public int RowCount { get; set; }
28 |
29 | ///
30 | /// 总页数
31 | ///
32 | public int PageCount
33 | {
34 | get
35 | {
36 | if (PageSize > 0 && RowCount > 0)
37 | {
38 | return RowCount % PageSize == 0 ? (RowCount / PageSize) : (RowCount / PageSize + 1);
39 | }
40 | return 0;
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.DTO")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.DTO")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("a93d1252-b7f2-499a-9be5-6969cefc0e13")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Request/SearchOrderRequest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using ServiceStack;
8 |
9 | namespace Trip.Order.DTO
10 | {
11 | ///
12 | /// 请求参数DTO实体类
13 | ///
14 | ///
15 | public class SearchOrderRequest : RequestBase, IReturn
16 | {
17 | [ApiMember(Name = "OrderID", Description = "订单ID号", IsRequired = true)]
18 | public int OrderID { get; set; }
19 |
20 | [ApiMember(Name = "OrderStateID", Description = "订单状态", IsRequired = false)]
21 | public int OrderStateID { get; set; }
22 |
23 | [ApiMember(Name = "MemberID", Description = "会员编号", IsRequired = false)]
24 | public int MemberID { get; set; }
25 |
26 | [ApiMember(Name = "MemberName", Description = "会员名", IsRequired = false)]
27 | public string MemberName { get; set; }
28 |
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Response/SearchOrderResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using ServiceStack;
8 |
9 | namespace Trip.Order.DTO
10 | {
11 | ///
12 | /// 响应DTO实体类
13 | ///
14 | public class SearchOrderResponse : ResponseBase
15 | {
16 | [ApiMember(Name = "OrderID", Description = "订单ID号", IsRequired = true)]
17 | public int OrderID { get; set; }
18 |
19 | [ApiMember(Name = "OrderStateID", Description = "订单状态", IsRequired = false)]
20 | public int OrderStateID { get; set; }
21 |
22 | [ApiMember(Name = "Amount", Description = "订单金额", IsRequired = false)]
23 | public decimal Amount { get; set; }
24 |
25 | [ApiMember(Name = "ProductID", Description = "产品编号", IsRequired = false)]
26 | public int ProductID { get; set; }
27 |
28 | [ApiMember(Name = "ProductName", Description = "产品名称", IsRequired = false)]
29 | public string PrductName { get; set; }
30 |
31 | [ApiMember(Name = "MemberID", Description = "会员编号", IsRequired = false)]
32 | public int MemberID { get; set; }
33 |
34 | [ApiMember(Name = "MemberName", Description = "会员名", IsRequired = false)]
35 | public string MemberName { get; set; }
36 |
37 | [ApiMember(Name = "OrderCreatedTime", Description = "下单时间", IsRequired = false)]
38 | public DateTime OrderCreatedTime { get; set; }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.DTO/Trip.Order.DTO.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {6BD868BB-D11A-4EA9-A2AD-B10CF818398C}
8 | Library
9 | Properties
10 | Trip.Order.DTO
11 | Trip.Order.DTO
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\FxCommon.dll
35 |
36 |
37 | ..\..\packages\MSA.dll
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
66 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.Entity/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.Entity")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.Entity")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("098a2083-4833-4391-b770-49236999b381")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.Entity/Trip.Order.Entity.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {0905C7DD-E7D5-4187-AFA7-EAD42B98220A}
8 | Library
9 | Properties
10 | Trip.Order.Entity
11 | Trip.Order.Entity
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
55 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.Entity/TripOrderDB/OrderEntity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.Entity
8 | {
9 | ///
10 | /// 订单表
11 | ///
12 | public class OrderEntity
13 | {
14 | ///
15 | /// 订单ID号
16 | ///
17 | public int OrderID { get; set; }
18 |
19 | ///
20 | /// 订单状态
21 | ///
22 | public int OrderStateID { get; set; }
23 |
24 | ///
25 | /// 订单金额
26 | ///
27 | public decimal Amount { get; set; }
28 |
29 | ///
30 | /// 产品编号
31 | ///
32 | public int ProductID { get; set; }
33 |
34 | ///
35 | /// 产品名称
36 | ///
37 | public string PrductName { get; set; }
38 |
39 | ///
40 | /// 会员编号
41 | ///
42 | public int MemberID { get; set; }
43 |
44 | ///
45 | /// 会员名
46 | ///
47 | public string MemberName { get; set; }
48 |
49 | ///
50 | /// 下单时间
51 | ///
52 | public DateTime OrderCreatedTime { get; set; }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/TripOrderService/EntityLayer/Trip.Order.Entity/TripProductDB/xxxEntity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Order.Entity
8 | {
9 | class xxxEntity
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/AppSetting.Dev.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/AppSetting.Prod.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/AppSetting.Test.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/Database.Dev.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/Database.Prod.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/Database.Test.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/ServiceModel.Behaviors.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/ServiceModel.Bindings.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
12 |
13 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/ServiceModel.Services.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Config/log4net.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Trip.Order.Services.Global" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Security;
6 | using System.Web.SessionState;
7 |
8 | using System.Text;
9 | using ServiceStack;
10 | using ServiceStack.Host;
11 | using ServiceStack.Text;
12 | using ServiceStack.Api.Swagger;
13 | using Trip.Order.DTO;
14 |
15 | namespace Trip.Order.Services
16 | {
17 | public class Global : System.Web.HttpApplication
18 | {
19 | public class ServiceAppHost : AppHostBase
20 | {
21 | public ServiceAppHost()
22 | : base("MSA API", typeof(ServiceAppHost).Assembly)
23 | {
24 | //配置路由规则:
25 | Routes.Add("/OrderService/SearchOrder", "GET,POST", "查询订单");
26 | Plugins.Add(new SwaggerFeature());
27 | }
28 |
29 | public override void Configure(Funq.Container container)
30 | {
31 | }
32 | }
33 |
34 | protected void Application_Start(object sender, EventArgs e)
35 | {
36 | new ServiceAppHost().Init();
37 | }
38 |
39 | protected void Session_Start(object sender, EventArgs e)
40 | {
41 |
42 | }
43 |
44 | protected void Application_BeginRequest(object sender, EventArgs e)
45 | {
46 |
47 | }
48 |
49 | protected void Application_AuthenticateRequest(object sender, EventArgs e)
50 | {
51 |
52 | }
53 |
54 | protected void Application_Error(object sender, EventArgs e)
55 | {
56 |
57 | }
58 |
59 | protected void Session_End(object sender, EventArgs e)
60 | {
61 |
62 | }
63 |
64 | protected void Application_End(object sender, EventArgs e)
65 | {
66 |
67 | }
68 | }
69 | }
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/OrderService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | using ServiceStack;
7 | using Trip.Order.DTO;
8 | using Trip.Order.Business;
9 |
10 | namespace Trip.Order.Services
11 | {
12 | public class OrderService: Service
13 | {
14 | ///
15 | /// 查询订单
16 | ///
17 | /// 查询条件
18 | ///
19 | public SearchOrderResponse Any(SearchOrderRequest request)
20 | {
21 | return BusinessFacade.SearchOrder(request);
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过下列特性集
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Order.Services")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Order.Services")]
13 | [assembly: AssemblyCopyright("版权所有(C) Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | // 对 COM 组件不可见。如果需要从 COM 访问此程序集中的某个类型,
19 | // 请针对该类型将 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("fee7b124-07cc-43d9-8931-7fff89584f67")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 内部版本号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Trip.Order.Services.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 |
8 |
9 | 2.0
10 | {C91B673D-8381-4A01-94EC-EFCE4DDDA683}
11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
12 | Library
13 | Properties
14 | Trip.Order.Services
15 | Trip.Order.Services
16 | v4.5
17 | true
18 |
19 |
20 |
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\
28 | DEBUG;TRACE
29 | prompt
30 | 4
31 |
32 |
33 | pdbonly
34 | true
35 | bin\
36 | TRACE
37 | prompt
38 | 4
39 |
40 |
41 |
42 | ..\..\packages\FxCommon.dll
43 |
44 |
45 |
46 | ..\..\packages\MSA.dll
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | Global.asax
72 |
73 |
74 |
75 |
76 |
77 |
78 | Designer
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | Web.config
91 |
92 |
93 | Web.config
94 |
95 |
96 |
97 |
98 | {96ea7429-a1e0-4a52-9cd9-9263f523ed21}
99 | Trip.Order.Business
100 |
101 |
102 | {6bd868bb-d11a-4ea9-a2ad-b10cf818398c}
103 | Trip.Order.DTO
104 |
105 |
106 |
107 | 10.0
108 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 | True
118 | True
119 | 41095
120 | /
121 | http://localhost:41054/
122 | False
123 | False
124 |
125 |
126 | False
127 |
128 |
129 |
130 |
131 |
138 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
30 |
31 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
31 |
32 |
--------------------------------------------------------------------------------
/TripOrderService/PresentationLayer/Trip.Order.Services/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/TripOrderService/TripOrderService.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PresentationLayer", "PresentationLayer", "{3F346AF3-E272-4407-9C97-E81F83969A87}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BusinessLayer", "BusinessLayer", "{F3890576-EDDE-4CEC-B9D9-8E746C9F6CA2}"
9 | EndProject
10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CommonLayer", "CommonLayer", "{7E4F8F3A-16A9-48CC-8151-3D3AA9AA75E3}"
11 | EndProject
12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataLayer", "DataLayer", "{16D2CC6E-0EB9-4C94-B324-45B3370D69D7}"
13 | EndProject
14 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EntityLayer", "EntityLayer", "{F003CA25-3E38-47C5-BE98-3ED56263B436}"
15 | EndProject
16 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "packages", "packages", "{6DDD43BF-F2AE-48F0-8353-9C75DA2B1449}"
17 | EndProject
18 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.Services", "PresentationLayer\Trip.Order.Services\Trip.Order.Services.csproj", "{C91B673D-8381-4A01-94EC-EFCE4DDDA683}"
19 | EndProject
20 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.BO", "EntityLayer\Trip.Order.BO\Trip.Order.BO.csproj", "{79B3988E-B7F1-45D9-AD24-3D10B351BF31}"
21 | EndProject
22 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.DTO", "EntityLayer\Trip.Order.DTO\Trip.Order.DTO.csproj", "{6BD868BB-D11A-4EA9-A2AD-B10CF818398C}"
23 | EndProject
24 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.Entity", "EntityLayer\Trip.Order.Entity\Trip.Order.Entity.csproj", "{0905C7DD-E7D5-4187-AFA7-EAD42B98220A}"
25 | EndProject
26 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.Utility", "CommonLayer\Trip.Order.Utility\Trip.Order.Utility.csproj", "{94B25310-8D6A-4E04-81BE-0F9BE6DE0696}"
27 | EndProject
28 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.MSSQLDB", "DataLayer\Trip.Order.MSSQLDB\Trip.Order.MSSQLDB.csproj", "{ECA59BF8-E0C9-4A47-874A-616DDB0E7636}"
29 | EndProject
30 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.WSAgent", "DataLayer\Trip.Order.WSAgent\Trip.Order.WSAgent.csproj", "{0CF401AB-9705-4630-ABFA-A8269590730E}"
31 | EndProject
32 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.MongoDB", "DataLayer\Trip.Order.MongoDB\Trip.Order.MongoDB.csproj", "{586B0892-3950-4C2D-A388-473C2B808C6E}"
33 | EndProject
34 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.MySQLDB", "DataLayer\Trip.Order.MySQLDB\Trip.Order.MySQLDB.csproj", "{170EACFA-37EF-422D-BB85-ECEC83DCC121}"
35 | EndProject
36 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Order.Business", "BusinessLayer\Trip.Order.Business\Trip.Order.Business.csproj", "{96EA7429-A1E0-4A52-9CD9-9263F523ED21}"
37 | EndProject
38 | Global
39 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
40 | Debug|Any CPU = Debug|Any CPU
41 | Release|Any CPU = Release|Any CPU
42 | EndGlobalSection
43 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
44 | {C91B673D-8381-4A01-94EC-EFCE4DDDA683}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
45 | {C91B673D-8381-4A01-94EC-EFCE4DDDA683}.Debug|Any CPU.Build.0 = Debug|Any CPU
46 | {C91B673D-8381-4A01-94EC-EFCE4DDDA683}.Release|Any CPU.ActiveCfg = Release|Any CPU
47 | {C91B673D-8381-4A01-94EC-EFCE4DDDA683}.Release|Any CPU.Build.0 = Release|Any CPU
48 | {79B3988E-B7F1-45D9-AD24-3D10B351BF31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
49 | {79B3988E-B7F1-45D9-AD24-3D10B351BF31}.Debug|Any CPU.Build.0 = Debug|Any CPU
50 | {79B3988E-B7F1-45D9-AD24-3D10B351BF31}.Release|Any CPU.ActiveCfg = Release|Any CPU
51 | {79B3988E-B7F1-45D9-AD24-3D10B351BF31}.Release|Any CPU.Build.0 = Release|Any CPU
52 | {6BD868BB-D11A-4EA9-A2AD-B10CF818398C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53 | {6BD868BB-D11A-4EA9-A2AD-B10CF818398C}.Debug|Any CPU.Build.0 = Debug|Any CPU
54 | {6BD868BB-D11A-4EA9-A2AD-B10CF818398C}.Release|Any CPU.ActiveCfg = Release|Any CPU
55 | {6BD868BB-D11A-4EA9-A2AD-B10CF818398C}.Release|Any CPU.Build.0 = Release|Any CPU
56 | {0905C7DD-E7D5-4187-AFA7-EAD42B98220A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57 | {0905C7DD-E7D5-4187-AFA7-EAD42B98220A}.Debug|Any CPU.Build.0 = Debug|Any CPU
58 | {0905C7DD-E7D5-4187-AFA7-EAD42B98220A}.Release|Any CPU.ActiveCfg = Release|Any CPU
59 | {0905C7DD-E7D5-4187-AFA7-EAD42B98220A}.Release|Any CPU.Build.0 = Release|Any CPU
60 | {94B25310-8D6A-4E04-81BE-0F9BE6DE0696}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
61 | {94B25310-8D6A-4E04-81BE-0F9BE6DE0696}.Debug|Any CPU.Build.0 = Debug|Any CPU
62 | {94B25310-8D6A-4E04-81BE-0F9BE6DE0696}.Release|Any CPU.ActiveCfg = Release|Any CPU
63 | {94B25310-8D6A-4E04-81BE-0F9BE6DE0696}.Release|Any CPU.Build.0 = Release|Any CPU
64 | {ECA59BF8-E0C9-4A47-874A-616DDB0E7636}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
65 | {ECA59BF8-E0C9-4A47-874A-616DDB0E7636}.Debug|Any CPU.Build.0 = Debug|Any CPU
66 | {ECA59BF8-E0C9-4A47-874A-616DDB0E7636}.Release|Any CPU.ActiveCfg = Release|Any CPU
67 | {ECA59BF8-E0C9-4A47-874A-616DDB0E7636}.Release|Any CPU.Build.0 = Release|Any CPU
68 | {0CF401AB-9705-4630-ABFA-A8269590730E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
69 | {0CF401AB-9705-4630-ABFA-A8269590730E}.Debug|Any CPU.Build.0 = Debug|Any CPU
70 | {0CF401AB-9705-4630-ABFA-A8269590730E}.Release|Any CPU.ActiveCfg = Release|Any CPU
71 | {0CF401AB-9705-4630-ABFA-A8269590730E}.Release|Any CPU.Build.0 = Release|Any CPU
72 | {586B0892-3950-4C2D-A388-473C2B808C6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
73 | {586B0892-3950-4C2D-A388-473C2B808C6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
74 | {586B0892-3950-4C2D-A388-473C2B808C6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
75 | {586B0892-3950-4C2D-A388-473C2B808C6E}.Release|Any CPU.Build.0 = Release|Any CPU
76 | {170EACFA-37EF-422D-BB85-ECEC83DCC121}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
77 | {170EACFA-37EF-422D-BB85-ECEC83DCC121}.Debug|Any CPU.Build.0 = Debug|Any CPU
78 | {170EACFA-37EF-422D-BB85-ECEC83DCC121}.Release|Any CPU.ActiveCfg = Release|Any CPU
79 | {170EACFA-37EF-422D-BB85-ECEC83DCC121}.Release|Any CPU.Build.0 = Release|Any CPU
80 | {96EA7429-A1E0-4A52-9CD9-9263F523ED21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
81 | {96EA7429-A1E0-4A52-9CD9-9263F523ED21}.Debug|Any CPU.Build.0 = Debug|Any CPU
82 | {96EA7429-A1E0-4A52-9CD9-9263F523ED21}.Release|Any CPU.ActiveCfg = Release|Any CPU
83 | {96EA7429-A1E0-4A52-9CD9-9263F523ED21}.Release|Any CPU.Build.0 = Release|Any CPU
84 | EndGlobalSection
85 | GlobalSection(SolutionProperties) = preSolution
86 | HideSolutionNode = FALSE
87 | EndGlobalSection
88 | GlobalSection(NestedProjects) = preSolution
89 | {C91B673D-8381-4A01-94EC-EFCE4DDDA683} = {3F346AF3-E272-4407-9C97-E81F83969A87}
90 | {79B3988E-B7F1-45D9-AD24-3D10B351BF31} = {F003CA25-3E38-47C5-BE98-3ED56263B436}
91 | {6BD868BB-D11A-4EA9-A2AD-B10CF818398C} = {F003CA25-3E38-47C5-BE98-3ED56263B436}
92 | {0905C7DD-E7D5-4187-AFA7-EAD42B98220A} = {F003CA25-3E38-47C5-BE98-3ED56263B436}
93 | {94B25310-8D6A-4E04-81BE-0F9BE6DE0696} = {7E4F8F3A-16A9-48CC-8151-3D3AA9AA75E3}
94 | {ECA59BF8-E0C9-4A47-874A-616DDB0E7636} = {16D2CC6E-0EB9-4C94-B324-45B3370D69D7}
95 | {0CF401AB-9705-4630-ABFA-A8269590730E} = {16D2CC6E-0EB9-4C94-B324-45B3370D69D7}
96 | {586B0892-3950-4C2D-A388-473C2B808C6E} = {16D2CC6E-0EB9-4C94-B324-45B3370D69D7}
97 | {170EACFA-37EF-422D-BB85-ECEC83DCC121} = {16D2CC6E-0EB9-4C94-B324-45B3370D69D7}
98 | {96EA7429-A1E0-4A52-9CD9-9263F523ED21} = {F3890576-EDDE-4CEC-B9D9-8E746C9F6CA2}
99 | EndGlobalSection
100 | EndGlobal
101 |
--------------------------------------------------------------------------------
/TripOrderService/packages/Dapper.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripOrderService/packages/Dapper.dll
--------------------------------------------------------------------------------
/TripOrderService/packages/FxCommon.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripOrderService/packages/FxCommon.dll
--------------------------------------------------------------------------------
/TripOrderService/packages/MSA.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripOrderService/packages/MSA.dll
--------------------------------------------------------------------------------
/TripSellerSite/BusinessLayer/Trip.Seller.Business/OrderLogic.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Trip.Seller.Entity;
8 | using Trip.Order.DTO;
9 | using Trip.Seller.ViewModel;
10 | using Trip.Seller.Utility;
11 | using Trip.Seller.MSSQLDB;
12 | using Trip.Seller.WSAgent;
13 |
14 | namespace Trip.Seller.Business
15 | {
16 | public static class OrderLogic
17 | {
18 | public static int CreateOrder(CreateOrderInput input)
19 | {
20 | OrderEntity orderEntity = ConvertHelper.Convert(input);
21 | return TripOrderDBFacade.CreateOrder(orderEntity);
22 | }
23 | public static SearchOrderOutput SearchOrder(int orderId)
24 | {
25 | OrderEntity result = TripOrderDBQuery.SearchOrder(orderId);
26 | return ConvertHelper.Convert(result);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/TripSellerSite/BusinessLayer/Trip.Seller.Business/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.Business")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.Business")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("10991a63-e4c5-4bf6-bef3-fc851443b4ce")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripSellerSite/BusinessLayer/Trip.Seller.Business/Trip.Seller.Business.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {01A00A83-754B-4B6E-B61F-11BB6FCC8CD6}
8 | Library
9 | Properties
10 | Trip.Seller.Business
11 | Trip.Seller.Business
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\FxCommon.dll
35 |
36 |
37 | ..\..\packages\MSA.dll
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | {c8a03bff-fcdd-481c-8cb9-4671ed5c8466}
54 | Trip.Seller.Utility
55 |
56 |
57 | {6e35b53a-d4c1-4453-a625-c6e385ec9e47}
58 | Trip.Seller.MSSQLDB
59 |
60 |
61 | {3294905f-4f05-4fda-bbb5-4352884ccc64}
62 | Trip.Seller.WSAgent
63 |
64 |
65 | {721345af-2c3d-46d5-bc36-52defab70f2e}
66 | Trip.Seller.Entity
67 |
68 |
69 | {7450e8b5-0c07-45a1-a3b1-f554d6398940}
70 | Trip.Seller.ViewModel
71 |
72 |
73 |
74 |
81 |
--------------------------------------------------------------------------------
/TripSellerSite/CommonLayer/Trip.Seller.Utility/AppSetting.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Configuration;
8 |
9 | namespace Trip.Seller.Utility
10 | {
11 | public static class AppSetting
12 | {
13 | public readonly static string EncryptKey = ConfigurationManager.AppSettings["EncryptKey"];
14 | public readonly static string OrderServiceURL = ConfigurationManager.AppSettings["OrderServiceURL"];
15 | public readonly static string StaticFileVersion = ConfigurationManager.AppSettings["StaticFileVersion"];
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/TripSellerSite/CommonLayer/Trip.Seller.Utility/ConvertHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using EmitMapper;
8 |
9 | namespace Trip.Seller.Utility
10 | {
11 | public class ConvertHelper
12 | where TSource : class
13 | where TDestination : class
14 | {
15 | public static TDestination Convert(TSource source)
16 | {
17 | ObjectsMapper mapper = ObjectMapperManager.DefaultInstance.GetMapper();
18 | TDestination destination = mapper.Map(source);
19 | return destination;
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/TripSellerSite/CommonLayer/Trip.Seller.Utility/Encryption.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Security.Cryptography;
8 |
9 | namespace Trip.Seller.Utility
10 | {
11 | public static class Encryption
12 | {
13 | ///
14 | /// 解密
15 | ///
16 | /// 已加密的内容
17 | /// 密钥
18 | ///
19 | public static string Decrypt(string text, string key)
20 | {
21 | byte[] buff = Convert.FromBase64String(text);
22 | byte[] kb = Encoding.Default.GetBytes(key);
23 |
24 | MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
25 | TripleDESCryptoServiceProvider des = new TripleDESCryptoServiceProvider();
26 | des.Key = md5.ComputeHash(kb);
27 | des.Mode = CipherMode.ECB;
28 | byte[] decryptBytes = des.CreateDecryptor().TransformFinalBlock(buff, 0, buff.Length);
29 |
30 | return Encoding.Default.GetString(decryptBytes);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/TripSellerSite/CommonLayer/Trip.Seller.Utility/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.Utility")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.Utility")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("f2de4522-4b4f-4226-8e9d-8cec5fb585b2")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripSellerSite/CommonLayer/Trip.Seller.Utility/Trip.Seller.Utility.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {C8A03BFF-FCDD-481C-8CB9-4671ED5C8466}
8 | Library
9 | Properties
10 | Trip.Seller.Utility
11 | Trip.Seller.Utility
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\EmitMapper.dll
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
59 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/ConnectionString.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Configuration;
8 | using Trip.Seller.Utility;
9 |
10 | namespace Trip.Seller.MSSQLDB
11 | {
12 | ///
13 | /// 数据库连接字符串
14 | ///
15 | internal class ConnectionString
16 | {
17 | public readonly static string TripOrderDBSelect = ConfigurationManager.ConnectionStrings["TripOrderDB_SELECT"].ConnectionString;
18 | public readonly static string TripOrderDBInsert = ConfigurationManager.ConnectionStrings["TripOrderDB_INSERT"].ConnectionString;
19 |
20 | ///
21 | /// TripOrderDB库只读链接
22 | ///
23 | public static string TripOrderDB_SELECT
24 | {
25 | get
26 | {
27 | return Encryption.Decrypt(TripOrderDBSelect, AppSetting.EncryptKey);
28 | }
29 | }
30 |
31 | ///
32 | /// TripOrderDB库写链接
33 | ///
34 | public static string TripOrderDB_INSERT
35 | {
36 | get
37 | {
38 | return Encryption.Decrypt(TripOrderDBInsert, AppSetting.EncryptKey);
39 | }
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.MSSQLDB")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.MSSQLDB")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("775d7537-b5e1-45a1-b92f-b1d8249fbea0")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/Trip.Seller.MSSQLDB.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {6E35B53A-D4C1-4453-A625-C6E385EC9E47}
8 | Library
9 | Properties
10 | Trip.Seller.MSSQLDB
11 | Trip.Seller.MSSQLDB
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\Dapper.dll
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | {c8a03bff-fcdd-481c-8cb9-4671ed5c8466}
56 | Trip.Seller.Utility
57 |
58 |
59 | {721345af-2c3d-46d5-bc36-52defab70f2e}
60 | Trip.Seller.Entity
61 |
62 |
63 |
64 |
71 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/TripOrderDB/TripOrderDBCMD.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Data;
8 | using System.Data.SqlClient;
9 | using Dapper;
10 | using Trip.Seller.Entity;
11 | using Trip.Seller.MSSQLDB;
12 |
13 | namespace Trip.Seller.MSSQLDB
14 | {
15 | public static class TripOrderDBCMD
16 | {
17 | public static int CreateOrder(OrderEntity entity)
18 | {
19 | return 1;
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/TripOrderDB/TripOrderDBFacade.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Trip.Seller.Entity;
8 |
9 | namespace Trip.Seller.MSSQLDB
10 | {
11 | public static class TripOrderDBFacade
12 | {
13 | ///
14 | /// 查找订单
15 | ///
16 | ///
17 | ///
18 | public static OrderEntity SearchOrder(int orderId)
19 | {
20 | return TripOrderDBQuery.SearchOrder(orderId);
21 | }
22 |
23 | ///
24 | /// 创建订单
25 | ///
26 | ///
27 | ///
28 | public static int CreateOrder(OrderEntity entity)
29 | {
30 | return TripOrderDBCMD.CreateOrder(entity);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/TripOrderDB/TripOrderDBQuery.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using System.Data.SqlClient;
8 | using Dapper;
9 | using Trip.Seller.Entity;
10 |
11 | namespace Trip.Seller.MSSQLDB
12 | {
13 | public static class TripOrderDBQuery
14 | {
15 | public static OrderEntity SearchOrder(int orderId)
16 | {
17 | const string sql =
18 | @"SELECT OrderID, OrderStateID, Amount, ProductID, ProductName, MemberID, MemberName, OrderCreatedTime
19 | FROM dbo.[Order] WITH(NOLOCK)
20 | WHERE OrderID = @OrderID";
21 |
22 | using (var connection = new SqlConnection(ConnectionString.TripOrderDB_SELECT))
23 | {
24 | connection.Open();
25 | return connection.QuerySingleOrDefault(sql, new { OrderID = orderId });
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.MSSQLDB/TripProductDB/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.MSSQLDB
8 | {
9 | class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.WSAgent/OrderServiceAgent.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Trip.Order.DTO;
8 | using Trip.Seller.Utility;
9 | using ServiceStack;
10 |
11 | namespace Trip.Seller.WSAgent
12 | {
13 | public static class OrderServiceAgent
14 | {
15 | ///
16 | /// 查找订单
17 | ///
18 | ///
19 | ///
20 | public static SearchOrderResponse SearchOrder(SearchOrderRequest request)
21 | {
22 | using (JsonServiceClient client = new JsonServiceClient(AppSetting.OrderServiceURL))
23 | {
24 | return client.Send(request);
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.WSAgent/OrderServiceNS.cs:
--------------------------------------------------------------------------------
1 | /* Options:
2 | Date: 2017-09-27 19:17:27
3 | Version: 4.00
4 | Tip: To override a DTO option, remove "//" prefix before updating
5 | BaseUrl: http://localhost:41054
6 |
7 | //GlobalNamespace:
8 | //MakePartial: True
9 | //MakeVirtual: True
10 | //MakeDataContractsExtensible: False
11 | //AddReturnMarker: True
12 | //AddDescriptionAsComments: True
13 | //AddDataContractAttributes: False
14 | //AddIndexesToDataMembers: False
15 | //AddGeneratedCodeAttributes: False
16 | //AddResponseStatus: False
17 | //AddImplicitVersion:
18 | //InitializeCollections: True
19 | //IncludeTypes:
20 | //ExcludeTypes:
21 | //AddDefaultXmlNamespace: http://schemas.servicestack.net/types
22 | */
23 |
24 | using System;
25 | using System.Collections;
26 | using System.Collections.Generic;
27 | using System.Runtime.Serialization;
28 | using ServiceStack;
29 | using ServiceStack.DataAnnotations;
30 | using Trip.Order.DTO;
31 |
32 |
33 | namespace Trip.Order.DTO
34 | {
35 |
36 | public partial class RequestBase
37 | {
38 | }
39 |
40 | public partial class ResponseBase
41 | {
42 | ///
43 | ///返回编码,200之外的值都表示有错误
44 | ///
45 | [ApiMember(Name="ErrorCode", Description="返回编码,200之外的值都表示有错误")]
46 | public virtual int ErrorCode { get; set; }
47 |
48 | ///
49 | ///返回的消息
50 | ///
51 | [ApiMember(Name="ErrorMsg", Description="返回的消息")]
52 | public virtual string ErrorMsg { get; set; }
53 | }
54 |
55 | [Route("/OrderService/SearchOrder", "GET,POST")]
56 | public partial class SearchOrderRequest
57 | : RequestBase, IReturn
58 | {
59 | ///
60 | ///订单ID号
61 | ///
62 | [ApiMember(Name="OrderID", Description="订单ID号", IsRequired=true)]
63 | public virtual int OrderID { get; set; }
64 |
65 | ///
66 | ///订单状态
67 | ///
68 | [ApiMember(Name="OrderStateID", Description="订单状态")]
69 | public virtual int OrderStateID { get; set; }
70 |
71 | ///
72 | ///会员编号
73 | ///
74 | [ApiMember(Name="MemberID", Description="会员编号")]
75 | public virtual int MemberID { get; set; }
76 |
77 | ///
78 | ///会员名
79 | ///
80 | [ApiMember(Name="MemberName", Description="会员名")]
81 | public virtual string MemberName { get; set; }
82 | }
83 |
84 | public partial class SearchOrderResponse
85 | : ResponseBase
86 | {
87 | ///
88 | ///订单ID号
89 | ///
90 | [ApiMember(Name="OrderID", Description="订单ID号", IsRequired=true)]
91 | public virtual int OrderID { get; set; }
92 |
93 | ///
94 | ///订单状态
95 | ///
96 | [ApiMember(Name="OrderStateID", Description="订单状态")]
97 | public virtual int OrderStateID { get; set; }
98 |
99 | ///
100 | ///订单金额
101 | ///
102 | [ApiMember(Name="Amount", Description="订单金额")]
103 | public virtual decimal Amount { get; set; }
104 |
105 | ///
106 | ///产品编号
107 | ///
108 | [ApiMember(Name="ProductID", Description="产品编号")]
109 | public virtual int ProductID { get; set; }
110 |
111 | ///
112 | ///产品名称
113 | ///
114 | [ApiMember(Name="ProductName", Description="产品名称")]
115 | public virtual string PrductName { get; set; }
116 |
117 | ///
118 | ///会员编号
119 | ///
120 | [ApiMember(Name="MemberID", Description="会员编号")]
121 | public virtual int MemberID { get; set; }
122 |
123 | ///
124 | ///会员名
125 | ///
126 | [ApiMember(Name="MemberName", Description="会员名")]
127 | public virtual string MemberName { get; set; }
128 |
129 | ///
130 | ///下单时间
131 | ///
132 | [ApiMember(Name="OrderCreatedTime", Description="下单时间")]
133 | public virtual DateTime OrderCreatedTime { get; set; }
134 | }
135 | }
136 |
137 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.WSAgent/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.WSAgent")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.WSAgent")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("208c6885-c7b6-4702-9355-c6e66b59e77c")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripSellerSite/DataLayer/Trip.Seller.WSAgent/Trip.Seller.WSAgent.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {3294905F-4F05-4FDA-BBB5-4352884CCC64}
8 | Library
9 | Properties
10 | Trip.Seller.WSAgent
11 | Trip.Seller.WSAgent
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 | ..\..\packages\FxCommon.dll
35 |
36 |
37 | ..\..\packages\MSA.dll
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | {c8a03bff-fcdd-481c-8cb9-4671ed5c8466}
55 | Trip.Seller.Utility
56 |
57 |
58 |
59 |
66 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.Entity/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.Entity")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.Entity")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("9929cf66-f77b-4a70-8244-db8cee51c520")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.Entity/Trip.Seller.Entity.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {721345AF-2C3D-46D5-BC36-52DEFAB70F2E}
8 | Library
9 | Properties
10 | Trip.Seller.Entity
11 | Trip.Seller.Entity
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
54 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.Entity/TripOrderDB/OrderEntity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.Entity
8 | {
9 | ///
10 | /// 订单表
11 | ///
12 | public class OrderEntity
13 | {
14 | ///
15 | /// 订单ID号
16 | ///
17 | public int OrderID { get; set; }
18 |
19 | ///
20 | /// 订单状态
21 | ///
22 | public int OrderStateID { get; set; }
23 |
24 | ///
25 | /// 订单金额
26 | ///
27 | public decimal Amount { get; set; }
28 |
29 | ///
30 | /// 产品编号
31 | ///
32 | public int ProductID { get; set; }
33 |
34 | ///
35 | /// 产品名称
36 | ///
37 | public string ProductName { get; set; }
38 |
39 | ///
40 | /// 会员编号
41 | ///
42 | public int MemberID { get; set; }
43 |
44 | ///
45 | /// 会员名
46 | ///
47 | public string MemberName { get; set; }
48 |
49 | ///
50 | /// 下单时间
51 | ///
52 | public DateTime OrderCreatedTime { get; set; }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.Entity/TripProductDB/xxxEntity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.Entity
8 | {
9 | class xxxEntity
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.ViewModel/Order/CreateOrderInput.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.ViewModel
8 | {
9 | ///
10 | /// 创建订单的请求参数
11 | ///
12 | public class CreateOrderInput
13 | {
14 | ///
15 | /// 订单状态
16 | ///
17 | public int OrderStateID { get; set; }
18 |
19 | ///
20 | /// 订单金额
21 | ///
22 | public decimal Amount { get; set; }
23 |
24 | ///
25 | /// 产品编号
26 | ///
27 | public int ProductID { get; set; }
28 |
29 | ///
30 | /// 产品名称
31 | ///
32 | public string PrductName { get; set; }
33 |
34 | ///
35 | /// 会员编号
36 | ///
37 | public int MemberID { get; set; }
38 |
39 | ///
40 | /// 会员名
41 | ///
42 | public string MemberName { get; set; }
43 |
44 | ///
45 | /// 下单时间
46 | ///
47 | public DateTime OrderCreatedTime { get; set; }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.ViewModel/Order/SearchOrderInput.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.ViewModel
8 | {
9 | ///
10 | /// 查找订单的请求参数
11 | ///
12 | public class SearchOrderInput
13 | {
14 | ///
15 | /// 订单ID号
16 | ///
17 | public int OrderID { get; set; }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.ViewModel/Order/SearchOrderOutput.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.ViewModel
8 | {
9 | ///
10 | /// 查找订单的返回
11 | ///
12 | public class SearchOrderOutput
13 | {
14 | ///
15 | /// 订单ID号
16 | ///
17 | public int OrderID { get; set; }
18 |
19 | ///
20 | /// 订单状态ID
21 | ///
22 | public int OrderStateID { get; set; }
23 |
24 | ///
25 | /// 订单金额
26 | ///
27 | public decimal Amount { get; set; }
28 |
29 | ///
30 | /// 产品编号
31 | ///
32 | public int ProductID { get; set; }
33 |
34 | ///
35 | /// 产品名称
36 | ///
37 | public string ProductName { get; set; }
38 |
39 | ///
40 | /// 会员编号
41 | ///
42 | public int MemberID { get; set; }
43 |
44 | ///
45 | /// 会员名
46 | ///
47 | public string MemberName { get; set; }
48 |
49 | ///
50 | /// 下单时间
51 | ///
52 | public DateTime OrderCreatedTime { get; set; }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.ViewModel/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.ViewModel")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.ViewModel")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("b5d00597-f7e9-4689-a1ed-e766a4c2936d")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.ViewModel/Shared/Class1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Trip.Seller.ViewModel
8 | {
9 | class Class1
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/TripSellerSite/EntityLayer/Trip.Seller.ViewModel/Trip.Seller.ViewModel.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {7450E8B5-0C07-45A1-A3B1-F554D6398940}
8 | Library
9 | Properties
10 | Trip.Seller.ViewModel
11 | Trip.Seller.ViewModel
12 | v4.5
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 |
24 |
25 | pdbonly
26 | true
27 | bin\Release\
28 | TRACE
29 | prompt
30 | 4
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
56 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/App_Start/RouteConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using System.Web.Routing;
7 |
8 | namespace Trip.Seller.MVCSite
9 | {
10 | public class RouteConfig
11 | {
12 | public static void RegisterRoutes(RouteCollection routes)
13 | {
14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15 |
16 | routes.MapRoute(
17 | name: "Default",
18 | url: "{controller}/{action}/{id}",
19 | defaults: new { controller = "Order", action = "Index", id = UrlParameter.Optional }
20 | );
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/AppSetting.Dev.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/AppSetting.Prod.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/AppSetting.Test.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/Database.Dev.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/Database.Prod.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/Database.Test.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/ServiceModel.Behaviors.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/ServiceModel.Bindings.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
12 |
13 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/ServiceModel.Client.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Config/log4net.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Controllers/OrderController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 |
7 | using Newtonsoft.Json;
8 | using Trip.Seller.ViewModel;
9 | using Trip.Seller.Business;
10 |
11 | namespace Trip.Seller.MVCSite.Controllers
12 | {
13 | public class OrderController : Controller
14 | {
15 | // GET: Order
16 | public ActionResult Index()
17 | {
18 | SearchOrderOutput order = OrderLogic.SearchOrder(1);
19 | return View("Order", order);
20 | }
21 |
22 | public JsonResult CreateOrder(CreateOrderInput input)
23 | {
24 | bool isSuccess = OrderLogic.CreateOrder(input) > 0;
25 | return Json(isSuccess, JsonRequestBehavior.AllowGet);
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Trip.Seller.MVCSite.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using System.Web.Routing;
7 |
8 | using System.Text;
9 |
10 | namespace Trip.Seller.MVCSite
11 | {
12 | public class MvcApplication : System.Web.HttpApplication
13 | {
14 | protected void Application_Start()
15 | {
16 | AreaRegistration.RegisterAllAreas();
17 | RouteConfig.RegisterRoutes(RouteTable.Routes);
18 | }
19 |
20 | protected void Application_Error(object sender, EventArgs e)
21 | {
22 | // 在出现未处理的错误时运行的代码
23 | Exception ex = Server.GetLastError().GetBaseException();
24 |
25 | StringBuilder sb = new StringBuilder();
26 | sb.Append(Environment.NewLine + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
27 | sb.Append(Environment.NewLine + "====异常信息====");
28 | sb.Append(Environment.NewLine + "异常抛出源:" + ex.Source);
29 | sb.Append(Environment.NewLine + "异常方法:" + ex.TargetSite);
30 | sb.Append(Environment.NewLine + "异常信息:" + ex.Message);
31 | sb.Append(Environment.NewLine + "堆栈信息:" + ex.StackTrace);
32 | sb.Append(Environment.NewLine + "--------------------------------------------------------------------------------------------------");
33 | //Logging
34 | Server.ClearError();
35 | Response.Redirect("~/error.html");
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过下列特性集
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Trip.Seller.MVCSite")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("Trip.Seller.MVCSite")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | // 对 COM 组件不可见。如果需要
19 | // 从 COM 访问此程序集中的某个类型,请针对该类型将 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID
23 | [assembly: Guid("e819f5a6-685a-45e0-81d8-463393efe90f")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 内部版本号
30 | // 修订版本
31 | //
32 | // 可以指定所有值,也可以使用“修订号”和“内部版本号”的默认值,
33 | // 方法是按如下所示使用 "*":
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Trip.Seller.MVCSite.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 |
8 |
9 | 2.0
10 | {C08E3132-5CDB-41A3-BE4B-14DC94321D9D}
11 | {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
12 | Library
13 | Properties
14 | Trip.Seller.MVCSite
15 | Trip.Seller.MVCSite
16 | v4.5
17 | true
18 |
19 |
20 |
21 |
22 |
23 |
24 | true
25 | full
26 | false
27 | bin\
28 | DEBUG;TRACE
29 | prompt
30 | 4
31 |
32 |
33 | pdbonly
34 | true
35 | bin\
36 | TRACE
37 | prompt
38 | 4
39 |
40 |
41 |
42 |
43 | False
44 | ..\..\packages\Newtonsoft.Json.dll
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | ..\..\packages\Microsoft.AspNet.Razor.3.2.2\lib\net45\System.Web.Razor.dll
66 |
67 |
68 | ..\..\packages\Microsoft.AspNet.Webpages.3.2.2\lib\net45\System.Web.Webpages.dll
69 |
70 |
71 | ..\..\packages\Microsoft.AspNet.Webpages.3.2.2\lib\net45\System.Web.Webpages.Deployment.dll
72 |
73 |
74 | ..\..\packages\Microsoft.AspNet.Webpages.3.2.2\lib\net45\System.Web.Webpages.Razor.dll
75 |
76 |
77 | ..\..\packages\Microsoft.AspNet.Webpages.3.2.2\lib\net45\System.Web.Helpers.dll
78 |
79 |
80 | ..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll
81 |
82 |
83 | ..\..\packages\Microsoft.AspNet.Mvc.5.2.2\lib\net45\System.Web.Mvc.dll
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 | Designer
92 |
93 |
94 |
95 |
96 |
97 |
98 | Global.asax
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 | Web.config
119 |
120 |
121 | Web.config
122 |
123 |
124 |
125 |
126 |
127 | {01a00a83-754b-4b6e-b61f-11bb6fcc8cd6}
128 | Trip.Seller.Business
129 |
130 |
131 | {c8a03bff-fcdd-481c-8cb9-4671ed5c8466}
132 | Trip.Seller.Utility
133 |
134 |
135 | {7450e8b5-0c07-45a1-a3b1-f554d6398940}
136 | Trip.Seller.ViewModel
137 |
138 |
139 |
140 | 10.0
141 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 | True
151 | True
152 | 60115
153 | /
154 | http://localhost:60115/
155 | False
156 | False
157 |
158 |
159 | False
160 |
161 |
162 |
163 |
164 |
171 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Views/Order/Order.cshtml:
--------------------------------------------------------------------------------
1 | @using Newtonsoft.Json;
2 | @using Trip.Seller.ViewModel;
3 | @using Trip.Seller.Utility;
4 |
5 | @model SearchOrderOutput
6 |
7 | @{
8 | string resultJSON = string.Empty;
9 | if (Model != null)
10 | {
11 | resultJSON = JsonConvert.SerializeObject(Model);
12 | }
13 | Layout = "~/Views/Shared/_Layout.cshtml";
14 | }
15 |
16 |
17 |
18 | @Html.TextAreaFor(m => resultJSON, new { rows = 6, style = "width:600px;" })
19 | @section Scripts {
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 统一分层Demo
11 | @RenderSection("header", required: false)
12 |
13 |
14 | @RenderBody()
15 |
16 | @RenderSection("scripts", required: false)
17 |
18 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Views/web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
30 |
31 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
31 |
32 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 500错误!
9 |
10 |
11 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/js/order.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/TripSellerSite/PresentationLayer/Trip.Seller.MVCSite/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TripSellerSite/TripSellerSite.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.31101.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PresentationLayer", "PresentationLayer", "{C3EA75D0-A524-4E93-91BC-DAA551F6F528}"
7 | EndProject
8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "EntityLayer", "EntityLayer", "{0827A838-6238-4225-AA0D-9E55C4FF291E}"
9 | EndProject
10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BusinessLayer", "BusinessLayer", "{F6BE74AE-FB7C-438A-B9F9-E5DCAA3C9863}"
11 | EndProject
12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CommonLayer", "CommonLayer", "{72218497-3EE3-4E64-9678-DE76BBDF2162}"
13 | EndProject
14 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataLayer", "DataLayer", "{7B2CA687-AE23-4581-9931-1CF7E62DD8FA}"
15 | EndProject
16 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.Utility", "CommonLayer\Trip.Seller.Utility\Trip.Seller.Utility.csproj", "{C8A03BFF-FCDD-481C-8CB9-4671ED5C8466}"
17 | EndProject
18 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.MVCSite", "PresentationLayer\Trip.Seller.MVCSite\Trip.Seller.MVCSite.csproj", "{C08E3132-5CDB-41A3-BE4B-14DC94321D9D}"
19 | EndProject
20 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.Entity", "EntityLayer\Trip.Seller.Entity\Trip.Seller.Entity.csproj", "{721345AF-2C3D-46D5-BC36-52DEFAB70F2E}"
21 | EndProject
22 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.ViewModel", "EntityLayer\Trip.Seller.ViewModel\Trip.Seller.ViewModel.csproj", "{7450E8B5-0C07-45A1-A3B1-F554D6398940}"
23 | EndProject
24 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.WSAgent", "DataLayer\Trip.Seller.WSAgent\Trip.Seller.WSAgent.csproj", "{3294905F-4F05-4FDA-BBB5-4352884CCC64}"
25 | EndProject
26 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.MSSQLDB", "DataLayer\Trip.Seller.MSSQLDB\Trip.Seller.MSSQLDB.csproj", "{6E35B53A-D4C1-4453-A625-C6E385EC9E47}"
27 | EndProject
28 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Trip.Seller.Business", "BusinessLayer\Trip.Seller.Business\Trip.Seller.Business.csproj", "{01A00A83-754B-4B6E-B61F-11BB6FCC8CD6}"
29 | EndProject
30 | Global
31 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
32 | Debug|Any CPU = Debug|Any CPU
33 | Release|Any CPU = Release|Any CPU
34 | EndGlobalSection
35 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
36 | {C8A03BFF-FCDD-481C-8CB9-4671ED5C8466}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37 | {C8A03BFF-FCDD-481C-8CB9-4671ED5C8466}.Debug|Any CPU.Build.0 = Debug|Any CPU
38 | {C8A03BFF-FCDD-481C-8CB9-4671ED5C8466}.Release|Any CPU.ActiveCfg = Release|Any CPU
39 | {C8A03BFF-FCDD-481C-8CB9-4671ED5C8466}.Release|Any CPU.Build.0 = Release|Any CPU
40 | {C08E3132-5CDB-41A3-BE4B-14DC94321D9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41 | {C08E3132-5CDB-41A3-BE4B-14DC94321D9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
42 | {C08E3132-5CDB-41A3-BE4B-14DC94321D9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
43 | {C08E3132-5CDB-41A3-BE4B-14DC94321D9D}.Release|Any CPU.Build.0 = Release|Any CPU
44 | {721345AF-2C3D-46D5-BC36-52DEFAB70F2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
45 | {721345AF-2C3D-46D5-BC36-52DEFAB70F2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
46 | {721345AF-2C3D-46D5-BC36-52DEFAB70F2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
47 | {721345AF-2C3D-46D5-BC36-52DEFAB70F2E}.Release|Any CPU.Build.0 = Release|Any CPU
48 | {7450E8B5-0C07-45A1-A3B1-F554D6398940}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
49 | {7450E8B5-0C07-45A1-A3B1-F554D6398940}.Debug|Any CPU.Build.0 = Debug|Any CPU
50 | {7450E8B5-0C07-45A1-A3B1-F554D6398940}.Release|Any CPU.ActiveCfg = Release|Any CPU
51 | {7450E8B5-0C07-45A1-A3B1-F554D6398940}.Release|Any CPU.Build.0 = Release|Any CPU
52 | {3294905F-4F05-4FDA-BBB5-4352884CCC64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53 | {3294905F-4F05-4FDA-BBB5-4352884CCC64}.Debug|Any CPU.Build.0 = Debug|Any CPU
54 | {3294905F-4F05-4FDA-BBB5-4352884CCC64}.Release|Any CPU.ActiveCfg = Release|Any CPU
55 | {3294905F-4F05-4FDA-BBB5-4352884CCC64}.Release|Any CPU.Build.0 = Release|Any CPU
56 | {6E35B53A-D4C1-4453-A625-C6E385EC9E47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57 | {6E35B53A-D4C1-4453-A625-C6E385EC9E47}.Debug|Any CPU.Build.0 = Debug|Any CPU
58 | {6E35B53A-D4C1-4453-A625-C6E385EC9E47}.Release|Any CPU.ActiveCfg = Release|Any CPU
59 | {6E35B53A-D4C1-4453-A625-C6E385EC9E47}.Release|Any CPU.Build.0 = Release|Any CPU
60 | {01A00A83-754B-4B6E-B61F-11BB6FCC8CD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
61 | {01A00A83-754B-4B6E-B61F-11BB6FCC8CD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
62 | {01A00A83-754B-4B6E-B61F-11BB6FCC8CD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
63 | {01A00A83-754B-4B6E-B61F-11BB6FCC8CD6}.Release|Any CPU.Build.0 = Release|Any CPU
64 | EndGlobalSection
65 | GlobalSection(SolutionProperties) = preSolution
66 | HideSolutionNode = FALSE
67 | EndGlobalSection
68 | GlobalSection(NestedProjects) = preSolution
69 | {C8A03BFF-FCDD-481C-8CB9-4671ED5C8466} = {72218497-3EE3-4E64-9678-DE76BBDF2162}
70 | {C08E3132-5CDB-41A3-BE4B-14DC94321D9D} = {C3EA75D0-A524-4E93-91BC-DAA551F6F528}
71 | {721345AF-2C3D-46D5-BC36-52DEFAB70F2E} = {0827A838-6238-4225-AA0D-9E55C4FF291E}
72 | {7450E8B5-0C07-45A1-A3B1-F554D6398940} = {0827A838-6238-4225-AA0D-9E55C4FF291E}
73 | {3294905F-4F05-4FDA-BBB5-4352884CCC64} = {7B2CA687-AE23-4581-9931-1CF7E62DD8FA}
74 | {6E35B53A-D4C1-4453-A625-C6E385EC9E47} = {7B2CA687-AE23-4581-9931-1CF7E62DD8FA}
75 | {01A00A83-754B-4B6E-B61F-11BB6FCC8CD6} = {F6BE74AE-FB7C-438A-B9F9-E5DCAA3C9863}
76 | EndGlobalSection
77 | EndGlobal
78 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Dapper.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Dapper.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/EmitMapper.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/EmitMapper.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/FxCommon.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/FxCommon.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/MSA.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/MSA.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/Content/Web.config.install.xdt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/Content/Web.config.uninstall.xdt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/Microsoft.AspNet.Mvc.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/Microsoft.AspNet.Mvc.5.2.2.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/lib/net45/System.Web.Mvc.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/lib/net45/System.Web.Mvc.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/lib/net45/zh-Hans/System.Web.Mvc.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Mvc.5.2.2/lib/net45/zh-Hans/System.Web.Mvc.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.zh-Hans.5.2.2/Microsoft.AspNet.Mvc.zh-Hans.5.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Mvc.zh-Hans.5.2.2/Microsoft.AspNet.Mvc.zh-Hans.5.2.2.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Mvc.zh-Hans.5.2.2/lib/net45/zh-Hans/System.Web.Mvc.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Mvc.zh-Hans.5.2.2/lib/net45/zh-Hans/System.Web.Mvc.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Razor.3.2.2/Microsoft.AspNet.Razor.3.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Razor.3.2.2/Microsoft.AspNet.Razor.3.2.2.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Razor.3.2.2/lib/net45/System.Web.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Razor.3.2.2/lib/net45/System.Web.Razor.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Razor.3.2.2/lib/net45/zh-Hans/System.Web.Razor.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Razor.3.2.2/lib/net45/zh-Hans/System.Web.Razor.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Razor.zh-Hans.3.2.2/Microsoft.AspNet.Razor.zh-Hans.3.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Razor.zh-Hans.3.2.2/Microsoft.AspNet.Razor.zh-Hans.3.2.2.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.Razor.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.Razor.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.Razor.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.Razor.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/Content/Web.config.install.xdt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
21 |
22 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/Content/Web.config.uninstall.xdt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/Microsoft.AspNet.WebPages.3.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/Microsoft.AspNet.WebPages.3.2.2.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.Helpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.Helpers.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.Deployment.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.Deployment.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.Deployment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | System.Web.WebPages.Deployment
5 |
6 |
7 |
8 | Provides a registration point for pre-application start code for Web Pages deployment.
9 |
10 |
11 | Registers pre-application start code for Web Pages deployment.
12 |
13 |
14 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Provides methods that are used to get deployment information about the Web application.
15 |
16 |
17 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the assembly path for the Web Pages deployment.
18 | The assembly path for the Web Pages deployment.
19 | The Web Pages version.
20 |
21 |
22 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the Web Pages version from the given binary path.
23 | The Web Pages version.
24 | The binary path for the Web Pages.
25 |
26 |
27 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the assembly references from the given path regardless of the Web Pages version.
28 | The dictionary containing the assembly references of the Web Pages and its version.
29 | The path to the Web Pages application.
30 |
31 |
32 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the maximum version of the Web Pages loaded assemblies.
33 | The maximum version of the Web Pages loaded assemblies.
34 |
35 |
36 | Gets the Web Pages version from the given path.
37 | The Web Pages version.
38 | The path of the root directory for the application.
39 |
40 |
41 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the Web Pages version using the configuration settings with the specified path.
42 | The Web Pages version.
43 | The path to the application settings.
44 |
45 |
46 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Returns the assemblies for this Web Pages deployment.
47 | A list containing the assemblies for this Web Pages deployment.
48 |
49 |
50 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates whether the Web Pages deployment is enabled.
51 | true if the Web Pages deployment is enabled; otherwise, false.
52 | The path to the Web Pages deployment.
53 |
54 |
55 | This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates whether the Web Pages deployment is explicitly disabled.
56 | true if the Web Pages deployment is explicitly disabled; otherwise, false.
57 | The path to the Web Pages deployment.
58 |
59 |
60 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.Razor.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/System.Web.WebPages.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.Helpers.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.Helpers.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Deployment.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Deployment.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Razor.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Razor.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.3.2.2/lib/net45/zh-Hans/system.web.webpages.deployment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | System.Web.WebPages.Deployment
5 |
6 |
7 |
8 | 为 Web Pages 部署应用程序预启动代码提供注册点。
9 |
10 |
11 | 注册 Web Pages 部署应用程序预启动代码。
12 |
13 |
14 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。提供用于获取有关 Web 应用程序的部署信息的方法。
15 |
16 |
17 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。获取 Web Pages 部署的程序集路径。
18 | Web Pages 部署的程序集路径。
19 | Web Pages 版本。
20 |
21 |
22 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。从给定的二进制路径获取 Web Pages 版本。
23 | Web Pages 版本。
24 | Web Pages 的二进制路径。
25 |
26 |
27 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。从给定的路径获取程序集引用,而不管 Web Pages 版本为何。
28 | 包含 Web Pages 及其版本的程序集引用的字典。
29 | Web Pages 应用程序的路径。
30 |
31 |
32 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。获取 Web Pages 加载的程序集的最大版本。
33 | Web Pages 加载的程序集的最大版本。
34 |
35 |
36 | 从给定的路径获取 Web Pages 版本。
37 | Web Pages 版本。
38 | 应用程序根目录的路径。
39 |
40 |
41 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。使用具有指定路径的配置设置获取 Web Pages 版本。
42 | Web Pages 版本。
43 | 应用程序设置的路径。
44 |
45 |
46 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。返回 Web Pages 部署的程序集。
47 | 包含此 Web Pages 部署的程序集的列表。
48 |
49 |
50 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。指示是否启用 Web Pages 部署。
51 | 如果启用了 Web Pages 部署,则为 true;否则为 false。
52 | Web Pages 部署的路径。
53 |
54 |
55 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。指示是否显式禁用 Web Pages 部署。
56 | 如果显式禁用了 Web Pages 部署,则为 true;否则为 false。
57 | Web Pages 部署的路径。
58 |
59 |
60 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/Microsoft.AspNet.WebPages.zh-Hans.3.2.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/Microsoft.AspNet.WebPages.zh-Hans.3.2.2.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.Helpers.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.Helpers.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Deployment.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Deployment.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Razor.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.Razor.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.resources.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/System.Web.WebPages.resources.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.AspNet.WebPages.zh-Hans.3.2.2/lib/net45/zh-Hans/system.web.webpages.deployment.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | System.Web.WebPages.Deployment
5 |
6 |
7 |
8 | 为 Web Pages 部署应用程序预启动代码提供注册点。
9 |
10 |
11 | 注册 Web Pages 部署应用程序预启动代码。
12 |
13 |
14 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。提供用于获取有关 Web 应用程序的部署信息的方法。
15 |
16 |
17 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。获取 Web Pages 部署的程序集路径。
18 | Web Pages 部署的程序集路径。
19 | Web Pages 版本。
20 |
21 |
22 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。从给定的二进制路径获取 Web Pages 版本。
23 | Web Pages 版本。
24 | Web Pages 的二进制路径。
25 |
26 |
27 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。从给定的路径获取程序集引用,而不管 Web Pages 版本为何。
28 | 包含 Web Pages 及其版本的程序集引用的字典。
29 | Web Pages 应用程序的路径。
30 |
31 |
32 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。获取 Web Pages 加载的程序集的最大版本。
33 | Web Pages 加载的程序集的最大版本。
34 |
35 |
36 | 从给定的路径获取 Web Pages 版本。
37 | Web Pages 版本。
38 | 应用程序根目录的路径。
39 |
40 |
41 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。使用具有指定路径的配置设置获取 Web Pages 版本。
42 | Web Pages 版本。
43 | 应用程序设置的路径。
44 |
45 |
46 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。返回 Web Pages 部署的程序集。
47 | 包含此 Web Pages 部署的程序集的列表。
48 |
49 |
50 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。指示是否启用 Web Pages 部署。
51 | 如果启用了 Web Pages 部署,则为 true;否则为 false。
52 | Web Pages 部署的路径。
53 |
54 |
55 | 此类型/成员支持 .NET Framework 基础结构,不能在代码中直接使用。指示是否显式禁用 Web Pages 部署。
56 | 如果显式禁用了 Web Pages 部署,则为 true;否则为 false。
57 | Web Pages 部署的路径。
58 |
59 |
60 |
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
--------------------------------------------------------------------------------
/TripSellerSite/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/das2017/04-LayerDemo/3c8ad164be933357e978954ab6874affec27ef77/TripSellerSite/packages/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/TripSellerSite/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------