项目从旧Nhibernate类库升级到新版本Nhibernate类库
2011-07-30 22:20 Paddle Zhou 阅读(322) 评论(0) 编辑 收藏 举报从旧项目(.net 1.1)升级到.net 4.0
实体类属性都没有virtual熟悉,运行会报错。
如果一个一个实体类修改,工作量挺大的,幸好我们有开源的 virtuosity,帮助把属性改成virtual
修改的原则:
What it actually does to your assembly
- Selects all members that meet the following criteria
- from non sealed classes
- non static members
- non abstract members
- non private members
- non virtual members
- Change them to virtual
- For all (now virtual) members
- change calls to those members to virtual
- change new modifiers to override modifiers