C# Class Signum.Engine.SqlBuilder

Afficher le fichier Open project: signumsoftware/framework

Méthodes publiques

Свойство Type Description
SystemSchemas List

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
DropStatistics ( string tn, List list ) : SqlPreCommand
DropViewIndex ( ObjectName viewName, string index ) : SqlPreCommand
Quote ( SqlDbType type, string @default ) : string
UpdateTrim ( ITable tab, IColumn tabCol ) : SqlPreCommand

Method Details

AddDefaultConstraint() public static méthode

public static AddDefaultConstraint ( ObjectName tableName, string columnName, string definition ) : SqlPreCommandSimple
tableName ObjectName
columnName string
definition string
Résultat SqlPreCommandSimple

AlterSchema() public static méthode

public static AlterSchema ( ObjectName oldName, SchemaName schemaName ) : SqlPreCommandSimple
oldName ObjectName
schemaName SchemaName
Résultat SqlPreCommandSimple

AlterTableAddColumn() public static méthode

public static AlterTableAddColumn ( ITable table, IColumn column ) : SqlPreCommand
table ITable
column IColumn
Résultat SqlPreCommand

AlterTableAddConstraintForeignKey() public static méthode

public static AlterTableAddConstraintForeignKey ( ITable table, string fieldName, ITable foreignTable ) : SqlPreCommand
table ITable
fieldName string
foreignTable ITable
Résultat SqlPreCommand

AlterTableAddDefaultConstraint() public static méthode

public static AlterTableAddDefaultConstraint ( ObjectName tableName, string column, string constraintName, string definition ) : SqlPreCommand
tableName ObjectName
column string
constraintName string
definition string
Résultat SqlPreCommand

AlterTableAlterColumn() public static méthode

public static AlterTableAlterColumn ( ITable table, IColumn column ) : SqlPreCommand
table ITable
column IColumn
Résultat SqlPreCommand

AlterTableDropColumn() public static méthode

public static AlterTableDropColumn ( ITable table, string columnName ) : SqlPreCommand
table ITable
columnName string
Résultat SqlPreCommand

AlterTableDropConstraint() public static méthode

public static AlterTableDropConstraint ( ObjectName tableName, ObjectName constraintName ) : SqlPreCommand
tableName ObjectName
constraintName ObjectName
Résultat SqlPreCommand

AlterTableForeignKeys() public static méthode

public static AlterTableForeignKeys ( ITable t ) : SqlPreCommand
t ITable
Résultat SqlPreCommand

CreateAllIndices() public static méthode

public static CreateAllIndices ( ITable t ) : SqlPreCommand
t ITable
Résultat SqlPreCommand

CreateColumn() public static méthode

public static CreateColumn ( IColumn c ) : string
c IColumn
Résultat string

CreateColumn() public static méthode

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
Résultat string

CreateIndex() public static méthode

public static CreateIndex ( Index index ) : SqlPreCommand
index Signum.Engine.Maps.Index
Résultat SqlPreCommand

CreateSchema() public static méthode

public static CreateSchema ( SchemaName schemaName ) : SqlPreCommand
schemaName SchemaName
Résultat SqlPreCommand

CreateTableSql() public static méthode

public static CreateTableSql ( ITable t ) : SqlPreCommandSimple
t ITable
Résultat SqlPreCommandSimple

DisableForeignKey() public static méthode

public static DisableForeignKey ( ObjectName tableName, string foreignKey ) : SqlPreCommandSimple
tableName ObjectName
foreignKey string
Résultat SqlPreCommandSimple

DisableIndex() public static méthode

public static DisableIndex ( ObjectName tableName, string indexName ) : SqlPreCommandSimple
tableName ObjectName
indexName string
Résultat SqlPreCommandSimple

DropDefaultConstraint() public static méthode

public static DropDefaultConstraint ( ObjectName tableName, string columnName ) : SqlPreCommandSimple
tableName ObjectName
columnName string
Résultat SqlPreCommandSimple

DropIndex() public static méthode

public static DropIndex ( ObjectName tableName, DiffIndex index ) : SqlPreCommand
tableName ObjectName
index DiffIndex
Résultat SqlPreCommand

DropIndex() public static méthode

public static DropIndex ( ObjectName objectName, string indexName ) : SqlPreCommand
objectName ObjectName
indexName string
Résultat SqlPreCommand

DropIndex() public static méthode

public static DropIndex ( UniqueIndex ix ) : SqlPreCommand
ix Signum.Engine.Maps.UniqueIndex
Résultat SqlPreCommand

DropPrimaryKeyConstraint() public static méthode

public static DropPrimaryKeyConstraint ( ObjectName tableName ) : SqlPreCommandSimple
tableName ObjectName
Résultat SqlPreCommandSimple

DropSchema() public static méthode

public static DropSchema ( SchemaName schemaName ) : SqlPreCommand
schemaName SchemaName
Résultat SqlPreCommand

DropTable() public static méthode

public static DropTable ( ObjectName tableName ) : SqlPreCommand
tableName ObjectName
Résultat SqlPreCommand

DropView() public static méthode

public static DropView ( ObjectName viewName ) : SqlPreCommand
viewName ObjectName
Résultat SqlPreCommand

EnableForeignKey() public static méthode

public static EnableForeignKey ( ObjectName tableName, string foreignKey ) : SqlPreCommandSimple
tableName ObjectName
foreignKey string
Résultat SqlPreCommandSimple

EnableIndex() public static méthode

public static EnableIndex ( ObjectName tableName, string indexName ) : SqlPreCommandSimple
tableName ObjectName
indexName string
Résultat SqlPreCommandSimple

ForeignKeyName() public static méthode

public static ForeignKeyName ( string table, string fieldName ) : string
table string
fieldName string
Résultat string

GetSizeScale() public static méthode

public static GetSizeScale ( int size, int scale ) : string
size int
scale int
Résultat string

IsDate() public static méthode

public static IsDate ( SqlDbType sqlDbType ) : bool
sqlDbType SqlDbType
Résultat bool

IsNumber() public static méthode

public static IsNumber ( SqlDbType sqlDbType ) : bool
sqlDbType SqlDbType
Résultat bool

IsString() public static méthode

public static IsString ( SqlDbType sqlDbType ) : bool
sqlDbType SqlDbType
Résultat bool

MakeSnapshotIsolationDefault() public static méthode

public static MakeSnapshotIsolationDefault ( string databaseName, bool value ) : SqlPreCommandSimple
databaseName string
value bool
Résultat SqlPreCommandSimple

MoveRows() public static méthode

public static MoveRows ( ObjectName oldTable, ObjectName newTable, IEnumerable columnNames ) : SqlPreCommand
oldTable ObjectName
newTable ObjectName
columnNames IEnumerable
Résultat SqlPreCommand

ReCreateFreeIndex() public static méthode

public static ReCreateFreeIndex ( ITable table, DiffIndex index, string oldTable, string>.Dictionary tableReplacements ) : SqlPreCommand
table ITable
index DiffIndex
oldTable string
tableReplacements string>.Dictionary
Résultat SqlPreCommand

RenameColumn() public static méthode

public static RenameColumn ( ITable table, string oldName, string newName ) : SqlPreCommand
table ITable
oldName string
newName string
Résultat SqlPreCommand

RenameForeignKey() public static méthode

public static RenameForeignKey ( ObjectName foreignKeyName, string newName ) : SqlPreCommand
foreignKeyName ObjectName
newName string
Résultat SqlPreCommand

RenameIndex() public static méthode

public static RenameIndex ( ITable table, string oldName, string newName ) : SqlPreCommand
table ITable
oldName string
newName string
Résultat SqlPreCommand

RenameOrMove() public static méthode

public static RenameOrMove ( DiffTable oldTable, ITable newTable ) : SqlPreCommand
oldTable DiffTable
newTable ITable
Résultat SqlPreCommand

RenameTable() public static méthode

public static RenameTable ( ObjectName oldName, string newName ) : SqlPreCommand
oldName ObjectName
newName string
Résultat SqlPreCommand

SP_RENAME() public static méthode

public static SP_RENAME ( DatabaseName database, string oldName, string newName, string objectType ) : SqlPreCommandSimple
database DatabaseName
oldName string
newName string
objectType string
Résultat SqlPreCommandSimple

SelectRowCount() public static méthode

public static SelectRowCount ( ) : SqlPreCommandSimple
Résultat SqlPreCommandSimple

SetIdentityInsert() public static méthode

public static SetIdentityInsert ( ObjectName tableName, bool value ) : SqlPreCommandSimple
tableName ObjectName
value bool
Résultat SqlPreCommandSimple

SetMultiUser() public static méthode

public static SetMultiUser ( string databaseName ) : SqlPreCommandSimple
databaseName string
Résultat SqlPreCommandSimple

SetSingleUser() public static méthode

public static SetSingleUser ( string databaseName ) : SqlPreCommandSimple
databaseName string
Résultat SqlPreCommandSimple

SetSnapshotIsolation() public static méthode

public static SetSnapshotIsolation ( string databaseName, bool value ) : SqlPreCommandSimple
databaseName string
value bool
Résultat SqlPreCommandSimple

Property Details

SystemSchemas public_oe static_oe property

public static List SystemSchemas
Résultat List