Table of Contents

TableCursor<TEntity> 类

命名空间
ShadowSql.Expressions.Cursors
程序集
ShadowSql.Expressions.dll

表范围筛选游标

public sealed class TableCursor<TEntity> : CursorBase<ITableView>, ICursor, ITableView, ISqlEntity

类型参数

TEntity
继承
object
CursorBase
TableCursor<TEntity>
实现
继承成员
CursorBase.Limit
CursorBase.Offset
扩展方法

构造函数

TableCursor(IAliasTable, ISqlLogic, int, int)

别名表范围筛选游标

public TableCursor(IAliasTable aliasTable, ISqlLogic where, int limit, int offset)

参数

aliasTable IAliasTable

别名表

where ISqlLogic

查询条件

limit int

筛选数量

offset int

跳过数量

TableCursor(ITable, ISqlLogic, int, int)

表范围筛选游标

public TableCursor(ITable table, ISqlLogic where, int limit, int offset)

参数

table ITable

where ISqlLogic

查询条件

limit int

筛选数量

offset int

跳过数量

属性

Where

where查询条件

public ISqlLogic Where { get; }

属性值

ISqlLogic

方法

Asc<TProperty>(Expression<Func<TEntity, TProperty>>)

正序

public TableCursor<TEntity> Asc<TProperty>(Expression<Func<TEntity, TProperty>> select)

参数

select Expression<Func<TEntity, TProperty>>

筛选

返回

TableCursor<TEntity>

类型参数

TProperty

Desc<TProperty>(Expression<Func<TEntity, TProperty>>)

倒序

public TableCursor<TEntity> Desc<TProperty>(Expression<Func<TEntity, TProperty>> select)

参数

select Expression<Func<TEntity, TProperty>>

筛选

返回

TableCursor<TEntity>

类型参数

TProperty

WriteSource(ISqlEngine, StringBuilder)

protected override void WriteSource(ISqlEngine engine, StringBuilder sql)

参数

engine ISqlEngine
sql StringBuilder