Castle ActiveRecord的distinct过滤重复数据
2013-08-07 15:33
369 查看
public static string[] GetFundType()
{
SimpleQuery query = new SimpleQuery(
typeof(BusinessAccount), typeof(string),
@"select distinct(business.CFundType) from BusinessAccount business where
business.BISDelete=false "
);
return (string[])ExecuteQuery(query);
}
网上Castle ActiveRecord的资料太少了 我这小小菜鸟把这几天遇到的问题整理下 为和我一样的小小菜鸟服务
{
SimpleQuery query = new SimpleQuery(
typeof(BusinessAccount), typeof(string),
@"select distinct(business.CFundType) from BusinessAccount business where
business.BISDelete=false "
);
return (string[])ExecuteQuery(query);
}
网上Castle ActiveRecord的资料太少了 我这小小菜鸟把这几天遇到的问题整理下 为和我一样的小小菜鸟服务
相关文章推荐
- Oracle中通过distinct为什么过滤不了重复的数据?
- Castle ActiveRecord 在GridView数据绑定时候的一个问题
- 连表查询,distinct过滤重复数据
- C# datatable过滤某一列的重复数据(相当于distinct)
- IList.Distinct() 根据字段过滤重复的数据
- Castle ActiveRecord Hands On Lab(1):基本数据访问
- 基于Castle ActiveRecord开发Domain Model详解(一)对象关系到数据表的映射
- 手动过滤重复字段数据(因为distinct关键字无法使用。。。)
- Castle ActiveRecord 在查询时会自行更新数据库数据的问题 (ZT)
- Castle ActiveRecord Hands On Lab(1):基本数据访问 [转]
- Castle.ActiveRecord 子表查询、排序
- C#.Net Castle ActiveRecord学习实践(4):实现One-Many关系的映射
- 常用SQL语句实例(含过滤及删除重复数据、导入导出数据等)
- Sql查询语句过滤重复的数据
- Castle ActiveRecord使用笔记
- Castle.ActiveRecord (V3.0.0.130)
- 常用sql语句实例(含过滤及删除重复数据、导入导出数据等)
- 过滤重复数据 JavaScript push() 方法
- Castle Active Record for .NET2.0快速入门示例
- Castle ActiveRecord Generator 使用示例