NHibernate中IUserType的使用
摘要:
在NHibernate的使用中有可能遇到无法自动映射的类型,这个时候就需要自己定义类型了,NHibernate提供了IUserType来自定义新的类型。这里以一个可空的时间类型为例:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingNHibernate.UserTypes;usingNHibernate.SqlTypes;usingSystem.Data.OracleClient;namespaceHHSoft.LandSupply.DataEntity.NHibernateTy 阅读全文
posted @ 2011-06-21 11:20 李春良 阅读(651) 评论(2) 推荐(0) 编辑