Table of Contents

CursorBase 类

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

范围筛选基类

public abstract class CursorBase : TableViewBase, ICursor, ITableView, ISqlEntity
继承
object
CursorBase
实现
衍生
继承成员
扩展方法

构造函数

CursorBase(int, int)

范围筛选基类

protected CursorBase(int limit, int offset)

参数

limit int

筛选数量

offset int

跳过数量

字段

_limit

获取数量

protected int _limit

字段值

int

_offset

跳过数量

protected int _offset

字段值

int

属性

Limit

获取数量

public int Limit { get; }

属性值

int

Offset

跳过数量

public int Offset { get; }

属性值

int

方法

CheckAsc(string)

确认正序

protected IOrderView CheckAsc(string fieldName)

参数

fieldName string

字段名

返回

IOrderView

CheckDesc(string)

确认倒序

protected IOrderView CheckDesc(string fieldName)

参数

fieldName string

字段名

返回

IOrderView

WriteOrderBy(ISqlEngine, StringBuilder)

拼写sql

protected bool WriteOrderBy(ISqlEngine engine, StringBuilder sql)

参数

engine ISqlEngine

数据库引擎

sql StringBuilder

sql

返回

bool