上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页
摘要: 引 Web API 和SignalR都是在服务层。 If you are familiar with ASP.NET MVC, Web API routing is very similar to MVC routing. The main difference is that Web API us 阅读全文
posted @ 2015-10-22 17:52 _DN 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1.学习步骤总结 学习网址:http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api 主要的步骤路线: 2.分析 VS2013,WebApi。 2.1异步模式的响应 public interface IHttpActi... 阅读全文
posted @ 2015-10-22 10:20 _DN 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 第一次练习就直接没效果: "后不能直接以 function XXXcontroller (){ code......}这样的方式直接注册监听器了。 以后必须angular.module('phonecatApp', []).controller('PhoneListCtrl',function($scope) {}这样来将controller注册到对应的模型上。" 以下是标准的:... 阅读全文
posted @ 2015-10-08 17:26 _DN 阅读(989) 评论(0) 推荐(0) 编辑
摘要: 本文旨在演示ActionBlock的使用。 大致流程: 输入路径——读取字节——计算——传输到打印 // Demonstrates how to provide delegates to exectution dataflow blocks. class DataflowExecutionBlocks { // 计算文件中包含零字节的总数 static ... 阅读全文
posted @ 2015-09-25 11:55 _DN 阅读(177) 评论(0) 推荐(0) 编辑
摘要: producer把消息发送到消息块,consumer从块读取消息。 安装: Install-Package Microsoft.Tpl.Dataflow using System.Threading.Tasks.Dataflow; 解释: Produce方法随机生成字节,并Post到ITargetBlock对象; Consumer方法从ISourceBlock对象读取字节; 可以使用B... 阅读全文
posted @ 2015-09-25 11:06 _DN 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 本文主要演示使用TPL 数据流库从数据流块(dataflow block)读写消息。 提供了同步方法和异步方法。 主要使用BufferBlock,其既能作为message source,有能作为message target。 Install-Package Microsoft.Tpl.Dataflow using System.Threading.Tasks.Dataflow; 1.同... 阅读全文
posted @ 2015-09-25 10:28 _DN 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1.索引使用原则 不要对索引使用全模糊,但是 LIKE 'asdf%'是可以的,即不要Contains,可用StartWith 不要对索引进行函数,表达式操作,或者使用is null判断,否则将会使用全表扫描 不等于也会造成全表扫描,使用column 'a' 来替代 如果一个列有索引,另一个无索引,那么 c1 or c2 ,则将会造成全表扫描; 组合索引查询,如果包含前导索引,则会生效,... 阅读全文
posted @ 2015-09-23 17:38 _DN 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 直接上步骤: 生成一个options,选项包含了一些基本的配置,如标题,坐标刻度,serial等; 配置X轴显示的Category数据,为一个数组; 配置Y轴显示的数据,也为一个数据; 用生成option构建一个Hightcharts对象,即可以自动画出一个折线图了; 1.配置BundleConfig bundles.Add(new ScriptBundle("~/bund... 阅读全文
posted @ 2015-09-23 17:10 _DN 阅读(1419) 评论(2) 推荐(0) 编辑
摘要: 思路描述:主要使用正则表达式解析。 返回一个跟踪步骤列表。 public class TrackingData { public string time { get; set; } public string context { get; set; } } public class DHLExp... 阅读全文
posted @ 2015-09-23 16:55 _DN 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 1.引导程序 使用ng-app开始引导一个程序:标记了AngularJS应用的作用域 <!doctype html> <html lang="en" ng-app> 双括号绑定表达式: <p>Nothing here {{'yet' + '!'}}</p> 2.视图和模板 其核心为MVC模式 原理: 阅读全文
posted @ 2015-09-23 15:24 _DN 阅读(165) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 24 下一页