摘要: Iesi.Collections.Generic.Iset<T>使用 Iset集合中,每个对象唯一。 在NHibernate中,在父类中对应子类的Iset集合时,因为Set类为抽象类,所以不能实例化Set类。 Iset<T> list=new Set<T>()将报‘无法创建抽象类或接口“Iesi.Collections.Generic.Set<>”的实例’错误。 HashedSet<T>继承于DictionarySet<T>抽象类;DictionarySet<T>抽象类继承于Set<T>抽象类;Se 阅读全文
posted @ 2012-10-09 23:56 蒹葭白露 阅读(2087) 评论(0) 推荐(0) 编辑
摘要: NHProfiler是一个针对Nhibernate运行分析的工具。使用如下:(1)在创建ISessionFactory的项目中引用NHProfiler安装目录下的HibernatingRhinos.NHibernate.Profiler.Appender.dll(2)在创建ISessionFactory语句前(new Configuration()).Configure().BuildSessionFactory();)加入HibernatingRhinos.NHibernate.Profiler.Appender.NHibernateProfiler.Initialize();(3)然后打. 阅读全文
posted @ 2012-10-09 23:20 蒹葭白露 阅读(2288) 评论(1) 推荐(0) 编辑