摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///二叉树的应用///</summary>///<typeparamname="T"></typeparam>publiccl... 阅读全文
摘要:
代码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) 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//泛型约束接口usingSystem;usingSystem.Collections.Generic;usingCuyahoga.Core.Domain;usingNHibernate.Criter... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--在Cuyahoga项目中,NHibernate中关联关系在权限中得到了很好的体现。User用户Role角色:比如管理员,会员,游客等Right权限:比如文章的增,删,改Site站点项目中的三者之间的关... 阅读全文
摘要:
代码 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属性交叉相同。例如: 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--NHibernate主键生成方式映射文件的Generator节点Hibernate主键生成方式KeyGenerator主键产生器可选项说明:1)assigned主键由外部程序负责生成,无需Hibern... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingNHibernate;usingN... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--NHibernate.cfg.xml文件配置<?xmlversion="1.0"encoding="utf-8"?><hibernate-configurationxmlns="ur... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//接口publicinterfaceIQueue<T>{intGetLength();//求队列的长度boolIsEmpty();//判断对列是否为空voidClear();//清空队列... 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//可枚举对象并非必须实现IEnumerable接口。该职责可以委托给第三个类来实现。publicclassPersons{string[]m_Names;publicPersons(paramsst... 阅读全文