摘要:
摘要:使用HQL返回自定义类型的结果集。 前提:已经定义好Customer类及其Nhibernate映射文件xml。 表结构及数据 自定义类 Mapping文件 条件查询(Criteria Query) 输出SQL 说明CustomerFirstnameCounter中的Count属性必须定义为long类型,如果定义为int类型,则会报如下错误: 阅读全文
posted @ 2010-08-25 21:32
.net's
阅读(1055)
评论(4)
推荐(0)