上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///二叉树的应用///</summary>///<typeparamname="T"></typeparam>publiccl... 阅读全文
posted @ 2010-04-07 15:34 Blue Sky ...... 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->一.数据访问接口usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingNHibernate.Criterion;namespaceCuyahoga.Core.DataAccess{publicinterfaceICommonDao{objectGetObjectById(Typetype,intid) 阅读全文
posted @ 2010-04-07 15:32 Blue Sky ...... 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//泛型约束接口usingSystem;usingSystem.Collections.Generic;usingCuyahoga.Core.Domain;usingNHibernate.Criter... 阅读全文
posted @ 2010-04-07 15:31 Blue Sky ...... 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--在Cuyahoga项目中,NHibernate中关联关系在权限中得到了很好的体现。User用户Role角色:比如管理员,会员,游客等Right权限:比如文章的增,删,改Site站点项目中的三者之间的关... 阅读全文
posted @ 2010-04-07 15:29 Blue Sky ...... 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Many-To-Many双向关联1.双向N——N关联的两边都需要指定连接表的表名,外键列的列名。2.两个set元素table必须指定,并且必须相同。3.set元素的两个字元素:key和many-to-many都必须指定column属性,key和many-to-many分别制定本持久化类,关联类在连接表中的外键列名,因此两边的key与many-to-many的column属性交叉相同。例如: 阅读全文
posted @ 2010-04-07 15:27 Blue Sky ...... 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--NHibernate主键生成方式映射文件的Generator节点Hibernate主键生成方式KeyGenerator主键产生器可选项说明:1)assigned主键由外部程序负责生成,无需Hibern... 阅读全文
posted @ 2010-04-07 15:26 Blue Sky ...... 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingNHibernate;usingN... 阅读全文
posted @ 2010-04-07 15:23 Blue Sky ...... 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--NHibernate.cfg.xml文件配置<?xmlversion="1.0"encoding="utf-8"?><hibernate-configurationxmlns="ur... 阅读全文
posted @ 2010-04-07 15:22 Blue Sky ...... 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//接口publicinterfaceIQueue<T>{intGetLength();//求队列的长度boolIsEmpty();//判断对列是否为空voidClear();//清空队列... 阅读全文
posted @ 2010-04-07 15:20 Blue Sky ...... 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//可枚举对象并非必须实现IEnumerable接口。该职责可以委托给第三个类来实现。publicclassPersons{string[]m_Names;publicPersons(paramsst... 阅读全文
posted @ 2010-04-07 15:19 Blue Sky ...... 阅读(182) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页