TableCursor<TEntity> 类
- 程序集
- ShadowSql.Expressions.dll
表范围筛选游标
public sealed class TableCursor<TEntity> : CursorBase<ITableView>, ICursor, ITableView, ISqlEntity
类型参数
TEntity
- 继承
-
TableCursor<TEntity>
- 实现
- 继承成员
- 扩展方法
构造函数
TableCursor(IAliasTable, ISqlLogic, int, int)
别名表范围筛选游标
public TableCursor(IAliasTable source, ISqlLogic where, int limit, int offset)
参数
source
IAliasTablewhere
ISqlLogiclimit
intoffset
int
TableCursor(ITable, ISqlLogic, int, int)
表范围筛选游标
public TableCursor(ITable source, ISqlLogic where, int limit, int offset)
参数
属性
Where
where查询条件
public ISqlLogic Where { get; }
属性值
方法
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)
拼写数据源(表)sql
protected override void WriteSource(ISqlEngine engine, StringBuilder sql)
参数
engine
ISqlEnginesql
StringBuilder