摘要:
.ContentType .htm,.html Response.ContentType = "text/HTML"; .txt Response.ContentType= "text/plain"; .doc,.rtf, .docx Response.ContentType = "Applicat 阅读全文
posted @ 2017-11-27 18:03
Lulus
阅读(284)
评论(0)
推荐(0)
摘要:
count(1)不要和查询数据混用 非常耗时 例子: 阅读全文
posted @ 2017-11-27 17:57
Lulus
阅读(1131)
评论(0)
推荐(0)
摘要:
public static IEnumerable<T> Parse<T>(IEnumerable<DataRow> rows) where T : class, new() { if (rows == null || Enumerable.FirstOrDefault<DataRow>(rows) 阅读全文
posted @ 2017-11-27 17:55
Lulus
阅读(346)
评论(0)
推荐(0)
摘要:
对象命名规范 字符范围 英文字母、下划线和数字,首位字符必须是英文字母禁止使用空格、中横线、保留字 大小写 每个单词的首字母大写 前缀 相关对象的命名或需要特殊标记时一般与下划线同时使用 存储过程 格式:<Action><Name>Action:Get,Delete,Update,Select等动词 阅读全文
posted @ 2017-11-27 17:49
Lulus
阅读(361)
评论(0)
推荐(0)
摘要:
await&&async 可以返回,返回只有有操作时首选 Task Run/.Factory.StartNew….. 新开一个线程,完成某项工作,不需要返回,没有后续操作首选 回调函数 参考资料:http://blog.csdn.net/friendan/article/details/425863 阅读全文
posted @ 2017-11-27 17:35
Lulus
阅读(322)
评论(0)
推荐(0)
摘要:
不管是Parallel还是Task,最里面都是线程池(里面是线程)当开启多个任务后,系统会根据当前的线程池的资源进行分配,任务则进行等待Parallel可以对系统的CPU进行设置,可以最大程度上榨干系统的资源 参考资料:http://www.cnblogs.com/yunfeifei/p/39934 阅读全文
posted @ 2017-11-27 16:36
Lulus
阅读(1057)
评论(0)
推荐(0)
摘要:
在AngularJs的controller里面进行格式化 在html中进行格式化 示例代码:https://github.com/zLulus/NotePractice/blob/dev3/Website/NotePractice/Views/AngularjsStudy/TimeFormat.cs 阅读全文
posted @ 2017-11-27 16:04
Lulus
阅读(401)
评论(0)
推荐(0)

浙公网安备 33010602011771号