上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 71 下一页
摘要: 直接看代码和注释吧 ASP.NET MVC router ASP.NET Controller 这里可以注意一点,如果使用了 AttributeRoute , routeMap 就不灵了, cshtml Angular 注意 angular 和 base 的冲突 阅读全文
posted @ 2016-03-23 18:16 兴杰 阅读(691) 评论(0) 推荐(0)
摘要: 1.AngularJS route 与 MVC routehttp://www.cnblogs.com/usea/p/4211989.htmlpublic class SingleRoute : RouteBase{ public override RouteData GetRouteData... 阅读全文
posted @ 2016-01-22 12:03 兴杰 阅读(442) 评论(0) 推荐(0)
摘要: 2016年,.net 会有很多大更新 ASP.NET 5 在此之前我都是用着古老的.net做开发的 (WebForm + IIS) 为了接下来应对 .net 的新功能,我特地去学习了一下基本的 MVC Owin 等等. 接下来我会针对主题写一些学习笔记. Setup startup Owin + M 阅读全文
posted @ 2016-01-21 11:44 兴杰 阅读(842) 评论(0) 推荐(0)
摘要: 原文 refer :http://www.cnblogs.com/happyfreelife/p/4240100.html当一个带有username and password 的表单被提交, 游览器会智能的询问用户是否要保存密码。 如果开发人员不希望这“智能”的事儿,可以使用ajax去提交表单,这样... 阅读全文
posted @ 2015-11-28 09:33 兴杰 阅读(386) 评论(1) 推荐(0)
摘要: 更新: 2021-05-13 convert int to am pm https://stackoverflow.com/questions/38329899/convert-integer-value-into-hour-value-am-pm-in-sql-server/38330108#38 阅读全文
posted @ 2015-11-13 20:32 兴杰 阅读(583) 评论(0) 推荐(0)
摘要: refer :https://github.com/angular-ui/ui-router/issues/600$urlRouterProvider.when("/", "/companys") redirect to companys 时,如果被 onStateChange 拦截并且 preve... 阅读全文
posted @ 2015-10-30 18:44 兴杰 阅读(214) 评论(0) 推荐(0)
摘要: 参考 :http://www.cnblogs.com/fish-li/archive/2011/07/03/2096903.html上文结尾有提到一个说法4. HttpRequest.Cookies 与 HttpResponse.Cookies 会有关系(很奇怪吧)。微软官网也是这么说的 :http... 阅读全文
posted @ 2015-10-15 09:36 兴杰 阅读(265) 评论(0) 推荐(0)
摘要: 之前介绍过OData 中实现RPC的写法,今天在来一个批量操作。参考 :https://damienbod.wordpress.com/2014/08/14/web-api-odata-v4-batching-part-10/http://www.odata.org/getting-started/... 阅读全文
posted @ 2015-09-14 09:49 兴杰 阅读(1422) 评论(0) 推荐(0)
摘要: $provide.decorator 是angular 提供的一个功能。目的是让我们可以扩展或装修我们的服务.var app = angular.module("app", []);app.factory("firstService", function () { return { ... 阅读全文
posted @ 2015-09-09 20:59 兴杰 阅读(541) 评论(0) 推荐(0)
摘要: 看到了吧,可以返回一个 Detached 的Entity, 可以帮助提升性能. [NotMapped] prop不要map to sql [DatabaseGenerated(DatabaseGeneratedOption.Computed)] //让sql来generate value [Conc 阅读全文
posted @ 2015-08-20 00:16 兴杰 阅读(209) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 71 下一页