C# Класс Signum.Engine.SqlBuilder

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

Открытые свойства

Свойство Тип Описание
SystemSchemas List

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

Метод Описание
AddDefaultConstraint ( ObjectName tableName, string columnName, string definition ) : SqlPreCommandSimple
AlterSchema ( ObjectName oldName, SchemaName schemaName ) : SqlPreCommandSimple
AlterTableAddColumn ( ITable table, IColumn column ) : SqlPreCommand
AlterTableAddConstraintForeignKey ( ITable table, string fieldName, ITable foreignTable ) : SqlPreCommand
AlterTableAddDefaultConstraint ( ObjectName tableName, string column, string constraintName, string definition ) : SqlPreCommand
AlterTableAlterColumn ( ITable table, IColumn column ) : SqlPreCommand
AlterTableDropColumn ( ITable table, string columnName ) : SqlPreCommand
AlterTableDropConstraint ( ObjectName tableName, ObjectName constraintName ) : SqlPreCommand
AlterTableForeignKeys ( ITable t ) : SqlPreCommand
CreateAllIndices ( ITable t ) : SqlPreCommand
CreateColumn ( IColumn c ) : string
CreateColumn ( string name, SqlDbType type, string udtTypeName, int size, int scale, bool nullable, bool identity, string @default ) : string
CreateIndex ( Index index ) : SqlPreCommand
CreateSchema ( SchemaName schemaName ) : SqlPreCommand
CreateTableSql ( ITable t ) : SqlPreCommandSimple
DisableForeignKey ( ObjectName tableName, string foreignKey ) : SqlPreCommandSimple
DisableIndex ( ObjectName tableName, string indexName ) : SqlPreCommandSimple
DropDefaultConstraint ( ObjectName tableName, string columnName ) : SqlPreCommandSimple
DropIndex ( ObjectName tableName, DiffIndex index ) : SqlPreCommand
DropIndex ( ObjectName objectName, string indexName ) : SqlPreCommand
DropIndex ( UniqueIndex ix ) : SqlPreCommand
DropPrimaryKeyConstraint ( ObjectName tableName ) : SqlPreCommandSimple
DropSchema ( SchemaName schemaName ) : SqlPreCommand
DropTable ( ObjectName tableName ) : SqlPreCommand
DropView ( ObjectName viewName ) : SqlPreCommand
EnableForeignKey ( ObjectName tableName, string foreignKey ) : SqlPreCommandSimple
EnableIndex ( ObjectName tableName, string indexName ) : SqlPreCommandSimple
ForeignKeyName ( string table, string fieldName ) : string
GetSizeScale ( int size, int scale ) : string
IsDate ( SqlDbType sqlDbType ) : bool
IsNumber ( SqlDbType sqlDbType ) : bool
IsString ( SqlDbType sqlDbType ) : bool
MakeSnapshotIsolationDefault ( string databaseName, bool value ) : SqlPreCommandSimple
MoveRows ( ObjectName oldTable, ObjectName newTable, IEnumerable columnNames ) : SqlPreCommand
ReCreateFreeIndex ( ITable table, DiffIndex index, string oldTable, string>.Dictionary tableReplacements ) : SqlPreCommand
RenameColumn ( ITable table, string oldName, string newName ) : SqlPreCommand
RenameForeignKey ( ObjectName foreignKeyName, string newName ) : SqlPreCommand
RenameIndex ( ITable table, string oldName, string newName ) : SqlPreCommand
RenameOrMove ( DiffTable oldTable, ITable newTable ) : SqlPreCommand
RenameTable ( ObjectName oldName, string newName ) : SqlPreCommand
SP_RENAME ( DatabaseName database, string oldName, string newName, string objectType ) : SqlPreCommandSimple
SelectRowCount ( ) : SqlPreCommandSimple
SetIdentityInsert ( ObjectName tableName, bool value ) : SqlPreCommandSimple
SetMultiUser ( string databaseName ) : SqlPreCommandSimple
SetSingleUser ( string databaseName ) : SqlPreCommandSimple
SetSnapshotIsolation ( string databaseName, bool value ) : SqlPreCommandSimple

Приватные методы

Метод Описание
DropStatistics ( string tn, List list ) : SqlPreCommand
DropViewIndex ( ObjectName viewName, string index ) : SqlPreCommand
Quote ( SqlDbType type, string @default ) : string
UpdateTrim ( ITable tab, IColumn tabCol ) : SqlPreCommand

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

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

public static AddDefaultConstraint ( ObjectName tableName, string columnName, string definition ) : SqlPreCommandSimple
tableName ObjectName
columnName string
definition string
Результат SqlPreCommandSimple

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

public static AlterSchema ( ObjectName oldName, SchemaName schemaName ) : SqlPreCommandSimple
oldName ObjectName
schemaName SchemaName
Результат SqlPreCommandSimple

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

public static AlterTableAddColumn ( ITable table, IColumn column ) : SqlPreCommand
table ITable
column IColumn
Результат SqlPreCommand

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

public static AlterTableAddConstraintForeignKey ( ITable table, string fieldName, ITable foreignTable ) : SqlPreCommand
table ITable
fieldName string
foreignTable ITable
Результат SqlPreCommand

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

public static AlterTableAddDefaultConstraint ( ObjectName tableName, string column, string constraintName, string definition ) : SqlPreCommand
tableName ObjectName
column string
constraintName string
definition string
Результат SqlPreCommand

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

public static AlterTableAlterColumn ( ITable table, IColumn column ) : SqlPreCommand
table ITable
column IColumn
Результат SqlPreCommand

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

public static AlterTableDropColumn ( ITable table, string columnName ) : SqlPreCommand
table ITable
columnName string
Результат SqlPreCommand

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

public static AlterTableDropConstraint ( ObjectName tableName, ObjectName constraintName ) : SqlPreCommand
tableName ObjectName
constraintName ObjectName
Результат SqlPreCommand

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

public static AlterTableForeignKeys ( ITable t ) : SqlPreCommand
t ITable
Результат SqlPreCommand

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

public static CreateAllIndices ( ITable t ) : SqlPreCommand
t ITable
Результат SqlPreCommand

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

public static CreateColumn ( IColumn c ) : string
c IColumn
Результат string

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

public static CreateColumn ( string name, SqlDbType type, string udtTypeName, int size, int scale, bool nullable, bool identity, string @default ) : string
name string
type SqlDbType
udtTypeName string
size int
scale int
nullable bool
identity bool
@default string
Результат string

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

public static CreateIndex ( Index index ) : SqlPreCommand
index Signum.Engine.Maps.Index
Результат SqlPreCommand

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

public static CreateSchema ( SchemaName schemaName ) : SqlPreCommand
schemaName SchemaName
Результат SqlPreCommand

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

public static CreateTableSql ( ITable t ) : SqlPreCommandSimple
t ITable
Результат SqlPreCommandSimple

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

public static DisableForeignKey ( ObjectName tableName, string foreignKey ) : SqlPreCommandSimple
tableName ObjectName
foreignKey string
Результат SqlPreCommandSimple

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

public static DisableIndex ( ObjectName tableName, string indexName ) : SqlPreCommandSimple
tableName ObjectName
indexName string
Результат SqlPreCommandSimple

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

public static DropDefaultConstraint ( ObjectName tableName, string columnName ) : SqlPreCommandSimple
tableName ObjectName
columnName string
Результат SqlPreCommandSimple

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

public static DropIndex ( ObjectName tableName, DiffIndex index ) : SqlPreCommand
tableName ObjectName
index DiffIndex
Результат SqlPreCommand

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

public static DropIndex ( ObjectName objectName, string indexName ) : SqlPreCommand
objectName ObjectName
indexName string
Результат SqlPreCommand

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

public static DropIndex ( UniqueIndex ix ) : SqlPreCommand
ix Signum.Engine.Maps.UniqueIndex
Результат SqlPreCommand

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

public static DropPrimaryKeyConstraint ( ObjectName tableName ) : SqlPreCommandSimple
tableName ObjectName
Результат SqlPreCommandSimple

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

public static DropSchema ( SchemaName schemaName ) : SqlPreCommand
schemaName SchemaName
Результат SqlPreCommand

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

public static DropTable ( ObjectName tableName ) : SqlPreCommand
tableName ObjectName
Результат SqlPreCommand

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

public static DropView ( ObjectName viewName ) : SqlPreCommand
viewName ObjectName
Результат SqlPreCommand

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

public static EnableForeignKey ( ObjectName tableName, string foreignKey ) : SqlPreCommandSimple
tableName ObjectName
foreignKey string
Результат SqlPreCommandSimple

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

public static EnableIndex ( ObjectName tableName, string indexName ) : SqlPreCommandSimple
tableName ObjectName
indexName string
Результат SqlPreCommandSimple

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

public static ForeignKeyName ( string table, string fieldName ) : string
table string
fieldName string
Результат string

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

public static GetSizeScale ( int size, int scale ) : string
size int
scale int
Результат string

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

public static IsDate ( SqlDbType sqlDbType ) : bool
sqlDbType SqlDbType
Результат bool

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

public static IsNumber ( SqlDbType sqlDbType ) : bool
sqlDbType SqlDbType
Результат bool

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

public static IsString ( SqlDbType sqlDbType ) : bool
sqlDbType SqlDbType
Результат bool

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

public static MakeSnapshotIsolationDefault ( string databaseName, bool value ) : SqlPreCommandSimple
databaseName string
value bool
Результат SqlPreCommandSimple

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

public static MoveRows ( ObjectName oldTable, ObjectName newTable, IEnumerable columnNames ) : SqlPreCommand
oldTable ObjectName
newTable ObjectName
columnNames IEnumerable
Результат SqlPreCommand

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

public static ReCreateFreeIndex ( ITable table, DiffIndex index, string oldTable, string>.Dictionary tableReplacements ) : SqlPreCommand
table ITable
index DiffIndex
oldTable string
tableReplacements string>.Dictionary
Результат SqlPreCommand

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

public static RenameColumn ( ITable table, string oldName, string newName ) : SqlPreCommand
table ITable
oldName string
newName string
Результат SqlPreCommand

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

public static RenameForeignKey ( ObjectName foreignKeyName, string newName ) : SqlPreCommand
foreignKeyName ObjectName
newName string
Результат SqlPreCommand

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

public static RenameIndex ( ITable table, string oldName, string newName ) : SqlPreCommand
table ITable
oldName string
newName string
Результат SqlPreCommand

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

public static RenameOrMove ( DiffTable oldTable, ITable newTable ) : SqlPreCommand
oldTable DiffTable
newTable ITable
Результат SqlPreCommand

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

public static RenameTable ( ObjectName oldName, string newName ) : SqlPreCommand
oldName ObjectName
newName string
Результат SqlPreCommand

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

public static SP_RENAME ( DatabaseName database, string oldName, string newName, string objectType ) : SqlPreCommandSimple
database DatabaseName
oldName string
newName string
objectType string
Результат SqlPreCommandSimple

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

public static SelectRowCount ( ) : SqlPreCommandSimple
Результат SqlPreCommandSimple

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

public static SetIdentityInsert ( ObjectName tableName, bool value ) : SqlPreCommandSimple
tableName ObjectName
value bool
Результат SqlPreCommandSimple

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

public static SetMultiUser ( string databaseName ) : SqlPreCommandSimple
databaseName string
Результат SqlPreCommandSimple

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

public static SetSingleUser ( string databaseName ) : SqlPreCommandSimple
databaseName string
Результат SqlPreCommandSimple

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

public static SetSnapshotIsolation ( string databaseName, bool value ) : SqlPreCommandSimple
databaseName string
value bool
Результат SqlPreCommandSimple

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

SystemSchemas публичное статическое свойство

public static List SystemSchemas
Результат List