05 2013 档案
摘要:在Asp.netMvc中当你有以下及类似以下需求时你可以使用Filter功能判断登录与否或用户权限决策输出缓存防盗链防蜘蛛本地化与国际化设置实现动态ActionFilter是一种声明式编程方式,在Asp.net MVC中它只能限制于Action(或它的Controller)。Filter要继承于ActionFilterAttribute抽象类,并可以覆写void OnActionExecuting(ActionExecutingContext)和void OnActionExecuted(ActionExecutedContext)以及void OnResultExecuting(Result
阅读全文
摘要:修改ParametersHelper类,添加ExpandoObject的类型判断吧,修改后的代码如下:// PetaPoco - A Tiny ORMish thing for your POCO's.// Copyright © 2011-2012 Topten Software. All Rights Reserved. using System;using System.Collections.Generic;using System.Text.RegularExpressions;using System.Text;namespace PetaPoco.Interna
阅读全文