C# Класс TShockAPI.DB.GenericQueryCreator

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
rand System.Random

Открытые методы

Метод Описание
AlterTable ( SqlTable from, SqlTable to ) : string

Alter a table from source to destination

CreateTable ( SqlTable table ) : string
DeleteRow ( string table, List wheres ) : string
InsertValues ( string table, List values ) : string
ReadColumn ( string table, List wheres ) : string
RenameTable ( string from, string to ) : string
UpdateValue ( string table, List values, List wheres ) : string

Защищенные методы

Метод Описание
BuildWhere ( List wheres ) : string
EscapeTableName ( string table ) : string

Описание методов

AlterTable() публичный Метод

Alter a table from source to destination
public AlterTable ( SqlTable from, SqlTable to ) : string
from SqlTable Must have name and column names. Column types are not required
to SqlTable Must have column names and column types.
Результат string

BuildWhere() защищенный статический Метод

protected static BuildWhere ( List wheres ) : string
wheres List
Результат string

CreateTable() публичный абстрактный Метод

public abstract CreateTable ( SqlTable table ) : string
table SqlTable
Результат string

DeleteRow() публичный Метод

public DeleteRow ( string table, List wheres ) : string
table string
wheres List
Результат string

EscapeTableName() защищенный абстрактный Метод

protected abstract EscapeTableName ( string table ) : string
table string
Результат string

InsertValues() публичный Метод

public InsertValues ( string table, List values ) : string
table string
values List
Результат string

ReadColumn() публичный Метод

public ReadColumn ( string table, List wheres ) : string
table string
wheres List
Результат string

RenameTable() публичный абстрактный Метод

public abstract RenameTable ( string from, string to ) : string
from string
to string
Результат string

UpdateValue() публичный Метод

public UpdateValue ( string table, List values, List wheres ) : string
table string
values List
wheres List
Результат string

Описание свойств

rand защищенное статическое свойство

protected static Random,System rand
Результат System.Random