代码改变世界

随笔分类 -  MVC

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序使用高级功能

2014-05-16 09:29 by Bce, 3193 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第十二篇:为ASP.NET MVC应用程序使用高级功能原文:Advanced Entity Framework 6 Scenarios fo... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序实现继承

2014-05-15 09:02 by Bce, 2227 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第十一篇:为ASP.NET MVC应用程序实现继承原文:Implementing Inheritance with the Entity F... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序处理并发

2014-05-14 08:37 by Bce, 3088 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第十篇:为ASP.NET MVC应用程序处理并发原文:Handling Concurrency with the Entity Framew... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序使用异步及存储过程

2014-05-13 16:32 by Bce, 2918 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第九篇:为ASP.NET MVC应用程序使用异步及存储过程原文:Async and Stored Procedures with the E... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序更新相关数据

2014-05-13 10:23 by Bce, 2546 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第八篇:为ASP.NET MVC应用程序更新相关数据原文:Updating Related Data with the Entity Fra... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序读取相关数据

2014-05-08 18:24 by Bce, 3174 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第七篇:为ASP.NET MVC应用程序读取相关数据原文:Reading Related Data with the Entity Fram... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:为ASP.NET MVC应用程序创建更复杂的数据模型

2014-05-07 18:27 by Bce, 3497 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第六篇:为ASP.NET MVC应用程序创建更复杂的数据模型原文:Creating a More Complex Data Model fo... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:MVC程序中实体框架的Code First迁移和部署

2014-05-05 23:57 by Bce, 3343 阅读, 收藏, 编辑
摘要: 这是微软官方SignalR 2.0教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第五篇:MVC程序中实体框架的Code First迁移和部署原文:Code First Migrations and ... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:MVC程序中实体框架的连接恢复和命令拦截

2014-05-01 08:00 by Bce, 3882 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第四篇:MVC程序中实体框架的连接恢复和命令拦截原文:Connection Resiliency and Command Intercept... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:排序、筛选和分页

2014-04-29 16:29 by Bce, 4637 阅读, 收藏, 编辑
摘要: 这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第三篇:排序、筛选和分页原文:Sorting, Filtering, and Paging with the Entity Framewor... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:实现基本的CRUD功能

2014-04-28 16:29 by Bce, 4849 阅读, 收藏, 编辑
摘要: 英文渣水平,大伙凑合着看吧……这是微软官方SignalR 2.0教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第二篇:实现基本的CRUD功能原文:Implementing Basic CRUD Fu... 阅读全文

[渣译文] 使用 MVC 5 的 EF6 Code First 入门 系列:建立一个EF数据模型

2014-04-24 14:50 by Bce, 9580 阅读, 收藏, 编辑
摘要: 英文渣水平,大伙凑合着看吧……这是微软官方教程Getting Started with Entity Framework 6 Code First using MVC 5 系列的翻译,这里是第一篇:建立一个EF数据模型原文:Creating an Entity Framework Data Mode... 阅读全文

jQuery UI 中Tabs Ajax载入时出现Http 304的问题

2013-07-03 15:33 by Bce, 974 阅读, 收藏, 编辑
摘要: 最近发现jQueryUI中tabs的ajax载入,总是会出现304未修改的情况,明明数据有变化的么~应该返回200才对。于是尝试在beforeLoad中设置: ui.ajaxSettings.cache = false;无果,第二次点击tab依然是 http 304,转换了一下思路,改在控制器上禁用页面缓存: [OutputCache(Location = System.Web.UI.OutputCacheLocation.None)] public class MyController很好,全变成http 200了。也没有深究下去到底tabs中应该怎... 阅读全文

MVC4中使用反射来生成TryUpdateModel中允许更新的白名单

2013-04-11 17:34 by Bce, 339 阅读, 收藏, 编辑
只有注册用户登录后才能阅读该文。 阅读全文

MVC4下 飞天诚信 EPass1000加密狗采用PRI冲击响应身份验证开发(下)

2013-04-10 09:43 by Bce, 362 阅读, 收藏, 编辑
只有注册用户登录后才能阅读该文。 阅读全文

MVC4下 飞天诚信 EPass1000加密狗采用PRI冲击响应身份验证开发(上)

2013-04-09 17:24 by Bce, 376 阅读, 收藏, 编辑
只有注册用户登录后才能阅读该文。 阅读全文

jquery Validation的本地化文件

2013-01-04 16:53 by Bce, 966 阅读, 收藏, 编辑
摘要: 其实不少人应该都知道了,这里还是放个备份提个醒。默认的验证信息都是英文的,如果你想本地化一下,要么替换掉 messages: { required: "This field is required.", remote: "Please fix this field.", email: "Please enter a valid email address.", url: "Please enter a valid URL.", date: "Please enter a valid date." 阅读全文

VS2012 MVC4中jquery validate的日期验证bug

2012-11-21 14:20 by Bce, 1044 阅读, 收藏, 编辑
摘要: 好吧,刚发现这个问题Model中[Display(Name = "成立时间"), DisplayFormat(ApplyFormatInEditMode = true,DataFormatString = "{0:yyyy-MM-dd}"), DataType(DataType.Date)]public DateTime EnterpriseEstablishDate { get; set; }结果你会发现这样validate 你是肿么了?一看js就发现问题了关于时间验证,jquery用的是这个 // http://docs.jquery.com/Plu 阅读全文

[渣译文]Ninject:Dependency injection for filters

2012-08-06 16:58 by Bce, 874 阅读, 收藏, 编辑
摘要: 咱鸟语很差,文采为0,重在概述,请多包涵...使用新版的Ninject MVC3时发现过滤器的DI跟原来(kernel.BindFilter)不一样了,某度上没找到中文的,遂摸到Ninject老家找到相关文档,看了半天,干脆在这里留个底,方便自己将来回味,也给后来人指个路...写到一半突发奇想,既然文言文咱写不好,干脆写个口语卖萌的吧.....想看渣文言文的同学请反白...环境:MVC3 + Ninject 3.0.1.10 + Ninject.MVC3 3.0.0.6Dependency injection for filters依赖注入到MVC过滤器MVC3 introduced a co 阅读全文