2011年12月30日
摘要: 基本的软件环境如下:1.NHibernatewww.nhibernate.org当前版本是1.0.22.Code Smithhttp://www.codesmithtools.com/3.NHibernate模板点击这里下载当然,少不了VS2005跟SQLServer了,我这里用的是SQLServer2005,教程用在SQLServer2000上应该没有问题,默认情况下,我将建立并使用一个叫NHibernate的数据库。首先,我们先建立一个最简单的Person表,如下完整脚本(你可以进行修改以适合自己的数据库):USE[NHibernate]GOSETANSI_NULLSONGOSETQUOT 阅读全文
posted @ 2011-12-30 15:12 cw_volcano 阅读(113) 评论(0) 推荐(0) 编辑
  2011年11月18日
摘要: 1.因为建了索引,修改该字段值时还要修改索引,所以更新该字段的操作比没有索引更慢2.如果一个表有两万条记录,建议不使用函数;如果一个表有五万条以上记录,严格禁止使用函数!两万条记录以下没有限制。3.测试证明,特别要避免一个查询里既使用join又使用group by,速度会非常慢!4.多union all,少union5.多Exists、not exists,少in、not in6.少用select *7.能用一句sql,千万别用2句sql8. 用 >= 替代 > :高效 :SELECT * FROM EMP WHERE DEPTNO >=4低效 :SELECT * FROM 阅读全文
posted @ 2011-11-18 11:12 cw_volcano 阅读(218) 评论(0) 推荐(0) 编辑
  2011年11月10日
摘要: 1.Window>CustomizePerspective2.选择Shortcuts标签3.在Submenus选择ShowView4.在ShortcutCategories选择Android5.在右边勾上LogCat,然后确定。6.Window>ShowView>LogCat就可以打开LogCatView点击绿色加号,增加一个filter在LogCatView中,包括了Value、DEBUG、INFO、WARN、ERROR。 阅读全文
posted @ 2011-11-10 13:35 cw_volcano 阅读(316) 评论(0) 推荐(0) 编辑
  2011年10月18日
摘要: c#中加一个@符号就可以保存字符串的格式如:private const string TableStructureStatement = @"SELECT TABLE_NAME AS TableName , COLUMN_NAME As ColumnName, CHARACTER_MAXIMUM_LENGTH As MaxCharacters FROM INFORMATION_SCHEMA.COLUMNS ... 阅读全文
posted @ 2011-10-18 15:26 cw_volcano 阅读(284) 评论(0) 推荐(0) 编辑
摘要: aspx:<ul id="productTree"></ul>js:var productTreeInfo = { tree: null, setting: null, nodes: null, treeId: "productTree", nodeId: "", nodeName: "", nodeLevel: 0};jQuery(function ($) { initTree();});//强制刷新树菜单var refresh = "no";function refr 阅读全文
posted @ 2011-10-18 15:18 cw_volcano 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: 1.public JsonResult JudgeHisList(JqGridParameter jqGridParameter, string hid){try{iPAL.Models.Pub.iPAL_ManagerDataContext Qualitydb = new iPAL_ManagerDataContext();var list = from a in Qualitydb.MANAGER_QUALITY_HIS_COMMENT join b in Qualitydb.MANAGER_CFG_QUALITY_HIS on a.hid equals b.Id where a.hid 阅读全文
posted @ 2011-10-18 15:14 cw_volcano 阅读(893) 评论(0) 推荐(0) 编辑
摘要: DBLogController.cs:#region 全局变量及构造器IDBLogRepository dblog;public DBLogController(): this(new DBLogRepository()){}public DBLogController(DBLogRepository dblog){this.dblog = dblog;}#endregionDBLogRepository.cs:public class DBLogRepository : IDBLogRepository{DBLogDataContext dblog;public DBLogRepositor 阅读全文
posted @ 2011-10-18 15:13 cw_volcano 阅读(1477) 评论(0) 推荐(0) 编辑
  2011年9月25日
摘要: <!--[if lt IE 7]><body class="ie ie6"><![endif]--><!--[if IE 7]><body class="ie ie7"><![endif]--><!--[if IE 8]><body class="ie ie8"><![endif]--><!--[if !IE]><!--><body class="standard">< 阅读全文
posted @ 2011-09-25 20:45 cw_volcano 阅读(244) 评论(0) 推荐(0) 编辑
  2011年9月11日
摘要: 2. 目录权限设置部署目录:右健属性→安全选项→添加两个用户.ASPNET_USER_RES.NETWORK SERVICE并赋予上述用户足够的操作权限。同时点击“高级”按键,在弹出的窗口中的“权限”分页中,选中第一个checkbox,否则可能会因为子目录没有权限导致访问失败。iis主目录配置:先尝试右侧两个框内不作任何配置,如果不行,则“插入”“C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll”(具体路径示安装情况而定),如果还不行,则再尝试备注中的操作备注:如果.NET Framework实在装IIS之前就已经装好 阅读全文
posted @ 2011-09-11 10:28 cw_volcano 阅读(761) 评论(0) 推荐(0) 编辑
摘要: aspx页面:<script type="text/javascript" charset="utf-8" src="./../Content/ckeditor/ckeditor.js"></script><style type="text/css"> .editor,.editorDiv { width: 450px; height: 60px; overflow: auto; text-align: left; border:1px solid #ccc; padding:5 阅读全文
posted @ 2011-09-11 10:25 cw_volcano 阅读(623) 评论(0) 推荐(0) 编辑