代码改变世界

How to Create a Basic Plugin

2015-11-13 17:04 by Spring.Guo, 240 阅读, 0 推荐, 收藏, 编辑
摘要:Sometimes you want to make a piece of functionality available throughout your code. For example, perhaps you want a single method you can call on a jQuery selection that performs a series of operation... 阅读全文

Introduction to CQRS

2015-10-16 09:53 by Spring.Guo, 342 阅读, 0 推荐, 收藏, 编辑
摘要:原文链接: http://www.codeproject.com/Articles/555855/Introduction-to-CQRS What is CQRS CQRS means Command Query Responsibility Segregation. Many people think that CQRS is an entire architecture, but the... 阅读全文

促销规则 promotion rule

2015-09-22 21:22 by Spring.Guo, 1240 阅读, 0 推荐, 收藏, 编辑
摘要:参考:http://www.cnblogs.com/winstonyan/archive/2012/10/29/b2c_research_promotion_engine_and_rule_1.html 首先,让我们整理一下常见的促销规则和对应的例子。 整张订单消费满 x 节省百分比 或 数值 y适合全站促销。 从指定的目录或者产品集合里 面选购满 x 减百分比 或 数值比如图书分类,满10... 阅读全文

如何选择Html.RenderPartial和Html.RenderAction

2015-09-21 22:27 by Spring.Guo, 248 阅读, 0 推荐, 收藏, 编辑
摘要:(转帖) Html.RenderPartial与Html.RenderAction这两个方法都是用来在界面上嵌入用户控件的。 Html.RenderPartial是直接将用户控件嵌入到界面上: 或 注意:用第一种方法时,用户控件必须放在调用者同一目录下,也可以放在View/Shared中。 Html.RenderAction则通过Controller中的Action来调用用户控件 Contro... 阅读全文

Dapper.net ORM

2015-09-18 12:47 by Spring.Guo, 800 阅读, 0 推荐, 收藏, 编辑
摘要:参考链接:https://github.com/StackExchange/dapper-dot-net Dapper - a simple object mapper for .Net Dapper is a single file you can drop in to your project that will extend your IDbConnection interface. ... 阅读全文

Dependency Injection in ASP.NET Web API 2 (在web api2 中使用依赖注入)

2015-09-14 12:53 by Spring.Guo, 558 阅读, 0 推荐, 收藏, 编辑
摘要:原文:http://www.asp.net/web-api/overview/advanced/dependency-injection1 什么是依赖注入(Dependency Injection)依赖,简单来说就是一个对象需要的任何其他对象。具体解释请Google或百度。在我们使用Web api2... 阅读全文

autofac 注册

2015-08-28 17:48 by Spring.Guo, 1449 阅读, 1 推荐, 收藏, 编辑
摘要:1 注册的概念和方式 使用autofac 的ContainerBuilder 来注册组件(components---通常指实现类),并把它的服务(service---通常指接口,抽象类,类实例)暴露给调用方。 autofac 通过相似的 Register() 方法来进行注册,通过As() 方法来公开... 阅读全文

Autofac QuickStart

2015-08-28 11:34 by Spring.Guo, 319 阅读, 0 推荐, 收藏, 编辑
摘要:1 构建应用程序示例: 我们期望有一个输出工具类,当前希望通过控制台(console)输出,但是又希望仅能在控制台模式下输出。所以我们把输出抽象为一个接口using System;namespace AutofacDemo{ public interface IOutput { ... 阅读全文

ASP.NET MVC Cookie 身份验证

2015-08-03 16:57 by Spring.Guo, 3925 阅读, 0 推荐, 收藏, 编辑
摘要:1 创建一个ASP.NET MVC 项目 添加一个 AccountController 类。public class AccountController : Controller { [HttpGet] public ActionResult Login(string returnUrl) { ViewBag.R... 阅读全文

概念整理

2015-07-22 12:27 by Spring.Guo, 400 阅读, 0 推荐, 收藏, 编辑
摘要:前段划分:网站,Wap,IOS,Android,WeChat公众号网站,是否需要按区域划分: 全国站,重庆站,北京站,上海站等。网站元素:Banner,广告,公告(有时间段),文章内容,站内搜索,专题(特定时间段),评论(文章评论,商品评论…)营销概念:抢购商品(秒杀)团购: 量贩团,阶梯团,促销规... 阅读全文
上一页 1 2 3 4 5 6 7 ··· 9 下一页