hbm2net and collection 映射的类别选择
来源:互联网 发布:淘宝美工工作累吗 编辑:程序博客网 时间:2024/05/21 15:44
在nhibernate映射文件中,有是一对多,多对多时涉及到collection类映射时相对应的.net类型选择
collection类的映射 .net 类型如下:
<list>标识,用IList: ArrayList优先类型
<map>标识,用 IDictionary: Hashtable is 优先类型
<map order-by="">标识,用 IDictionary: Specialized.ListDictionary is 优先类型
<map comparer="">标识,用IDictionary: SortedList is 优先类型
<set>标识,用 IDictionary: Hashtable is 优先类型. 键值对应的值都为null,只取其键值
<set order-by=""> 标识,用IDictionary: Specialized.ListDictionary is 优先类型
<set comparer=""> 标识,用 IDictionary: SortedList is 优先类型
<bag> 标识,用IList: ArrayList is 优先类型
collection类的映射 .net 类型如下:
<list>标识,用IList: ArrayList优先类型
<map>标识,用 IDictionary: Hashtable is 优先类型
<map order-by="">标识,用 IDictionary: Specialized.ListDictionary is 优先类型
<map comparer="">标识,用IDictionary: SortedList is 优先类型
<set>标识,用 IDictionary: Hashtable is 优先类型. 键值对应的值都为null,只取其键值
<set order-by=""> 标识,用IDictionary: Specialized.ListDictionary is 优先类型
<set comparer=""> 标识,用 IDictionary: SortedList is 优先类型
<bag> 标识,用IList: ArrayList is 优先类型
- hbm2net and collection 映射的类别选择
- 关于mybatis的collection映射问题
- css3选择类别
- 从数据库读取可以选择的类别列表
- 仿网易新闻的导航条及其新闻类别选择
- Jquery实现类别的动态选择与删除
- 自定义view:类似今日头条的类别选择功能
- PHP类别管理:类别增加、选择
- 17. Collection映射
- hibernate---->Collection映射
- 映射集合(Mapping a Collection)
- mybatis高级结果映射collection
- Templates and Collection Classes
- Algorithms Collection and Implementation
- XPCollection and Collection
- JDK collection and Map
- QtCreator选择新建项目类别,各项目类别介绍
- CIDR(无类别域际路由选择)
- java辨析(2):Collection和Collections区别
- Rational Robot 基础使用手册(二)
- Apache 2.X + Tomcat 5.X 配置实践 (转)
- Rational Robot 基础使用手册(三)
- 新的学期开始了。。。
- hbm2net and collection 映射的类别选择
- 回调函数快速使用(转载)
- Windows 2003下不注册组件用ASP发邮件
- 对XHTML的一些简要介绍
- 如何彻底删除Oracle 选择自 chensheng913 的 Blog
- wxRuby 0.6.0 发布
- J2ee学习流程(ZT)
- 网页中的日期选择(子窗口显示)
- 下一代社区的帖子加分相关机制