上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 编译你的第一个model 构造document document是model的实例. 创建更新document到数据很容易 查询 model集成了几个内置静态查询方法, 如 find, findById, findOne, where 删除 model集成了静态remove方法 更新 每个model 阅读全文
posted @ 2015-03-12 13:17 irocker 阅读(488) 评论(0) 推荐(1) 编辑
摘要: 原文: http://www.asp.net/mvc/overview/performance/profile-and-debug-your-aspnet-mvc-app-with-glimpse Glimpse为ASP.NET程序提供了详细的性能、调试、诊断功能. 它在每一个页面的下面展示了关键的 阅读全文
posted @ 2015-03-03 17:11 irocker 阅读(434) 评论(1) 推荐(0) 编辑
摘要: 原文: http://gunnarpeipman.com/2014/11/asp-net-5-new-configuration-files-and-containers/ ASP.NET vNext提供了一种新的config文件. 能支持多种格式的config文件可以是.json .ini .xm 阅读全文
posted @ 2015-03-02 17:36 irocker 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 如果你使用MVC5 可以使用下面的包 例子: 在一个属性上应用链式验证 抛出例外 在复杂属性里面使用验证 在集合属性中使用Validator 集合验证的错误信息如下 验证集合 RuleSet能让你选择性的验证某些验证组 忽略某些验证组 下面的代码我们只验证Person的Surname和ForeNam 阅读全文
posted @ 2015-03-02 13:49 irocker 阅读(1970) 评论(0) 推荐(2) 编辑
摘要: UriTemplates 用于处理格式化Uri模板PM> Install-Package Tavis.UriTemplates设置Uri Path Segment[Fact]public void UpdatePathParameter(){ var url = new UriTemplate... 阅读全文
posted @ 2015-03-02 10:17 irocker 阅读(1787) 评论(0) 推荐(0) 编辑
摘要: 非常实用的工具, 即使不是程序员也有必要掌握这个简单的小工具。 这个工具有桌面版和在线版两个版本。桌面版地址:http://nimbletext.com/在线版地址:http://nimbletext.com/Live更多用法和语法 请见http://nimbletext.com/Help 阅读全文
posted @ 2015-02-27 13:41 irocker 阅读(1846) 评论(0) 推荐(2) 编辑
摘要: VSCommands 一个Visual Studio的轻量级扩展工具 地址:http://vscommands.squaredinfinity.com/home1.可以设置自动隐藏显示主菜单栏,设置步骤如下2.比较两个文件在解决方案浏览器选择两个文件右键选择Compare Files3.复制/粘贴 ... 阅读全文
posted @ 2015-02-27 10:50 irocker 阅读(2576) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.strathweb.com/2015/01/asp-net-mvc-6-attribute-routing-controller-action-tokens/ 当在Web API 2或者MVC 5 中使用路由属性很容易发生路由和控制器的名字不同步的情况. 这是因为路由通常 阅读全文
posted @ 2015-02-26 16:16 irocker 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 原文: http://weblogs.asp.net/scottgu/introducing-asp-net-5 ASP.NET 5预览版发布了, 可以在这下载最新的Visual Studio 2015体验 ASP.NET 5开源, 可以在Windows, Linux和Mac上开发并运行. ASP. 阅读全文
posted @ 2015-02-26 13:56 irocker 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 原文: http://www.asp.net/vnext/overview/aspnet-vnext/create-a-web-api-with-mvc-6 ASP.NET 5.0的一个目标是合并MVC和Web API frameworkd. 创建空白ASP.NET 5项目 打开Visual Stu 阅读全文
posted @ 2015-02-25 17:28 irocker 阅读(538) 评论(0) 推荐(1) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页