Click or drag to resize
IDbFactoryPageSqlT Method
返回一个分页列表对象

Namespace: Adf.Db
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
List<T> PageSql<T>(
	int pageindex,
	int pagesize,
	string fields,
	string tablename,
	string condition,
	string orderby,
	string key = "",
	string groupby = "",
	bool distinct = false
)
where T : IDbEntity

Parameters

pageindex
Type: SystemInt32
页序
pagesize
Type: SystemInt32
页大小
fields
Type: SystemString
字段值,前后不带空格,位于 Select 与 From 之间的字段部表示
tablename
Type: SystemString
要进行查询的数据表,可为多个
condition
Type: SystemString
要进行查询的查询串,Where的后缀,如果未有,请设置为 null
orderby
Type: SystemString
排序方法,如果未有排序则为null
key (Optional)
Type: SystemString
groupby (Optional)
Type: SystemString
分组,分组请设置为null
distinct (Optional)
Type: SystemBoolean

[Missing <param name="distinct"/> documentation for "M:Adf.Db.IDbFactory.PageSql``1(System.Int32,System.Int32,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Adf.Db.IDbFactory.PageSql``1(System.Int32,System.Int32,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean)"]

Return Value

Type: ListT
返回生成后的Sql语句
See Also