09 2016 档案

摘要:泛型类型的注册和使用public interface IRepository where T:class { } public interface ISchoolDetailRepository : IRepository { } public abstract class RepositoryBase where T : class { private LearningCompactPi... 阅读全文
posted @ 2016-09-28 09:00 霍旭东 阅读(896) 评论(0) 推荐(0) 编辑
摘要:引言 有时我们会在IIS中启用一些定时服务,但是你必须清楚IIS会定期回收Asp.net的应用程序的。首先来看IIS啥时候回收APPDomain. APPDomain 回收时机 There are several things that can cause ASP.NET to tear down your AppDomain. When you modify web.conf... 阅读全文
posted @ 2016-09-27 10:04 霍旭东 阅读(795) 评论(0) 推荐(1) 编辑
摘要:Navigation Timing(javascript) 参考 https://www.w3.org/TR/navigation-timing/ 阅读全文
posted @ 2016-09-27 09:21 霍旭东 阅读(327) 评论(0) 推荐(0) 编辑
摘要:指定值只会执行一次 public class MomanBaseProfile : Profile { public MomanBaseProfile() { CreateMap() .ForMember(d => d.ID, op => op.Ignore()) ... 阅读全文
posted @ 2016-09-26 16:06 霍旭东 阅读(1441) 评论(1) 推荐(0) 编辑
摘要:在发送通知邮件的时候, 假如可以有漂亮的邮件模板就更好了,但是出于安全的原因, 邮件一般不支持 link 或者 style 样式,只能通过内联的方式。找到了 The Automatic CSS Inliner Tool。有了自动转换工具,那就简单了。首先,编写普通的 html 代码,把 css 样式放到 style 标签中 邮件模板 ... 阅读全文
posted @ 2016-09-26 16:04 霍旭东 阅读(803) 评论(0) 推荐(0) 编辑
摘要:From http://codefine.co/1549.html 继续翻老文章,首先是从Jeff Dean的一篇PPT演示文稿中看到了这一页,觉得对这些数值形成概念还是挺有用的,就转过来了,经常拿出来看一下,最终能做到熟记于心,并能在理论分析和程序设计时用上。 尽管是大神给出的数据,也还是想考证一下数字的出处,于是又在搜索引擎中找了一下。找到了对这个数据比较好的总结和归纳... 阅读全文
posted @ 2016-09-22 10:09 霍旭东 阅读(645) 评论(0) 推荐(0) 编辑
摘要:C 盘的报告内容既然上GB的空间 操作系统版本 原来是微软这个查找解决异常关闭解决方案生成的报告 参考 How To Disable Vista Error Reporting Feature Losing space on Drive C? Check your WER ReportQueue 阅读全文
posted @ 2016-09-19 15:43 霍旭东 阅读(203) 评论(0) 推荐(0) 编辑
摘要:错误 E:\Github\AutoMapper\src\AutoMapper\AutoMapper.CoreCLR.kproj : error : 未找到导入的项目“C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AspNet\Microsoft.Web.AspNet.Props”。请确认 声明中的路径正确,且磁盘上存... 阅读全文
posted @ 2016-09-18 16:02 霍旭东 阅读(378) 评论(0) 推荐(0) 编辑
摘要:简单类型参数 Example 1: Sending a simple parameter in the Url [RoutePrefix("api/values")] public class ValuesController : ApiController { // http://localhost:49407/api/values/example1?id=2 [Route("exa... 阅读全文
posted @ 2016-09-14 10:48 霍旭东 阅读(2262) 评论(0) 推荐(0) 编辑
摘要:现在项目开发时总有时需要在X64下开发,这样我们就需要IIS Express中调试。不要总是放在IIS中,在Attach这样好慢。 如果不设置直接调试X64的程序,我们有可能会受到以下类似的错误 “未能加载文件或程序集“MvcApplication2”或它的某一个依赖项。试图加载格式不正确的程序。” 图形化 修改注册表 打开“运行”,输入“RegEdi... 阅读全文
posted @ 2016-09-12 15:21 霍旭东 阅读(3198) 评论(1) 推荐(1) 编辑
摘要:WINDOWS系统由于安全考虑,当开启防火墙时,默认不允许外主机对其进行ping功能,即别的电脑ping不通本机。别的主机ping不通本机是因为本机的防火墙关闭了ICMP回显功能,只要把这回显功能打开就行了。 具体做法: 以管理员身份运行CMD,输入以下命令 netsh firewall set icmpsetting 8 注: netsh firewall set icmpset... 阅读全文
posted @ 2016-09-06 17:16 霍旭东 阅读(10803) 评论(0) 推荐(0) 编辑
摘要:彩色Console target Nlog Configuration f... 阅读全文
posted @ 2016-09-02 10:49 霍旭东 阅读(1334) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示