摘要: 安装完成后, 到安装目录下修改watcher.conf.注意,任何路径都不可包含空格,中文,特殊字符,且全部使用绝对路径配置文件中文注释exepath --> redis-server.exe的路径, 注意!!! 必须使用单文件版的,不要用cygwin之类的建议的下载地址: https://github.com/MSOpenTech/redis/tree/2.6/bin/releaseexepat... 阅读全文
posted @ 2014-12-02 09:08 hornet_team 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 在日常的开发过程中我们经常需要为我们的类文件添加注释和版权等信息,以前都是将信息文本复制、粘贴,要是添加一两个个还好,要是添加很多就显得很麻烦了。为了减少这种重复性的工作,有没有好的解决办法呢?答案是肯定的,其实我们每次添加的文件都是按照类库模板自动生成的,所以只需要修改Visual Studio的类库模板就可以了。 首先找到Visual Studio(2005、20... 阅读全文
posted @ 2014-12-01 13:24 hornet_team 阅读(225) 评论(0) 推荐(0) 编辑
摘要: public class Calc { public long? Number { get; set; } public long Number1 { get; set; } public long Number2 { get; set; } } var calc = new Calc(); calc.Number1 = 100; ... 阅读全文
posted @ 2014-12-01 11:32 hornet_team 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.遇到的最多的问题就是跨域问题,这个时间需要我们添加如下代码解决跨域的问题 第一步:在服务类加Attribute [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] 第二步:在构造函数中添加 if (WebOperationContext.Current... 阅读全文
posted @ 2014-11-29 13:29 hornet_team 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 查找空行:^(?([^\r\n])\s)*\r?$\r?\n 查找多余的空行:^(?([^\r\n])\s)*\r?$\r?\n^(?([^\r\n])\s)*\r?$\r?\n 阅读全文
posted @ 2014-11-29 11:26 hornet_team 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 在另一个Visual Studio项目(议会mm.k.Infrastructure)我有我的映射文件(一个映射目录),我的hibernate.cfg.xml和一些仓库。 这是我的映射文件: 当我配置我的会议,我这样做:_configuration 。AddAssembly (typeof运算(毫米。ķ 。域名。... 阅读全文
posted @ 2014-11-28 13:44 hornet_team 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 一、在学习枚举之前,首先来听听枚举的优点。 1、枚举能够使代码更加清晰,它允许使用描述性的名称表示整数值。 2、枚举使代码更易于维护,有助于确保给变量指定合法的、期望的值。 3、枚举使代码更易输入。 二、枚举说明 1、简单枚举 枚举使用enum关键字来声明,与类同级。枚举本身可以有修饰符,但枚举的成员始终是公共的,不能有访问修饰符。枚举本身的修饰符仅能使用public和interna... 阅读全文
posted @ 2014-11-27 19:36 hornet_team 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ----- 阅读全文
posted @ 2014-11-21 22:54 hornet_team 阅读(91) 评论(0) 推荐(0) 编辑
摘要: One of the things that make NHibernate easy to use is that it fully support the POCO model. But one of the things that most people do not consider is that since NHibernate did the hard work of opening... 阅读全文
posted @ 2014-11-19 12:28 hornet_team 阅读(345) 评论(0) 推荐(0) 编辑
摘要: NHibernate Profiler是一款可以监视NHibernate里的sql语句的工具 1、下载NHibernate Profiler,可在此网站下载http://nhprof.com/。 2、在你的NHibernate项目中添加引用,我的引用是添加到了这里,如下图所示: 3、添加代码: [SetUp] public void Init() ... 阅读全文
posted @ 2014-11-18 14:22 hornet_team 阅读(457) 评论(0) 推荐(0) 编辑