摘要:
public class BaseRepository:IBaseRepository where T : class { protected EfConnection DbContext = ContextFactory.GetCurrentContext(); ... 阅读全文
摘要:
先从数据库开始,因为是用EF的code frist,所以所有的设计都在解决项目中进行。先是数据模型开始我已经建立了四个模型,user,role,action,actiongroupuser里面有role,role中的ActionIds存储action的id组合字符串,actiongroup作为act... 阅读全文
摘要:
环境:EF6.0.0.0+Autofac3.5.0.0+MVC4.0+pure6.0+Jquery IDE:vs2012,数据库:vs2008r2搭建环境如下:我给它取名字为cactus:仙人球,我喜欢的一种植物。UML图如下(https://www.processon.com提供)360云分享项目... 阅读全文
摘要:
《大型网站技术架构:核心原理与架构分析》阅读心得记录(以下个人理解,如果错误还望指正)1.机器的演化初始架构等级1:一个应用服务器中包含应用程序,文件,数据库都包含等级2:分成三个服务器应用程序服务器,文件服务器,数据库服务器。等级3:建立缓存,将最常用的数据进行缓存,此处分成2.5和3两个等级,2... 阅读全文
摘要:
报错拦截过滤到error页面 [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public class Exception... 阅读全文
摘要:
直接上代码了public static List ToPagedList(this IEnumerable allItems, int pageIndex, int pageSize, Expression> keySelector) { var itemList... 阅读全文
摘要:
//总页数 当前页 可见页 参数 翻页执行后处理的函数function PageTable(totalPages, currentPage, tableobj, url, where, columns) { function PageTableAjax() { initTable... 阅读全文
摘要:
在Model使用的时候很多人回向以前写三层架构一样使用它,将Model作为数据的传递者。比如常见的写法 public int Id { get; set; } public int RoleId { get; set; } public string Nam... 阅读全文
摘要:
http://code.taobao.org/p/upload2/src/ 已经托管至淘宝code源码:http://code.taobao.org/p/upload2/src/jquery.upload2.js案例:无标题文档 我测试的环境是IE10,在IE10的开发... 阅读全文
摘要:
https://github.com/yahoo/pure/issues/502已经提交到github在个select使用字体时出现了高度变化,影响客户的浏览。我直接改官网的例子也是出现了偏差http://purecss.io/forms/ 阅读全文