Table of Contents

TableUpdate 类

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

修改表

public class TableUpdate : UpdateBase, IUpdate, IExecuteSql, ISqlEntity
继承
TableUpdate
实现
继承成员
扩展方法

构造函数

TableUpdate(IUpdateTable, ISqlLogic)

修改表

public TableUpdate(IUpdateTable table, ISqlLogic filter)

参数

table IUpdateTable
filter ISqlLogic

TableUpdate(string, ISqlLogic)

查询表

public TableUpdate(string tableName, ISqlLogic filter)

参数

tableName string
filter ISqlLogic

字段

_filter

过滤条件

protected readonly ISqlLogic _filter

字段值

ISqlLogic

_table

源表

protected IUpdateTable _table

字段值

IUpdateTable

属性

Filter

过滤条件

public ISqlLogic Filter { get; }

属性值

ISqlLogic

Table

源表

public IUpdateTable Table { get; }

属性值

IUpdateTable

方法

Create(string, ISqlLogic)

按表名修改

public static TableUpdate Create(string tableName, ISqlLogic filter)

参数

tableName string
filter ISqlLogic

返回

TableUpdate

WriteSource(ISqlEngine, StringBuilder)

拼写数据源sql

protected override void WriteSource(ISqlEngine engine, StringBuilder sql)

参数

engine ISqlEngine
sql StringBuilder