C# Class System.Data.Entity.Migrations.Sql.PostgreSqlMigrationSqlGenerator

Inheritance: System.Data.Entity.Migrations.Sql.SqlServerMigrationSqlGenerator
Afficher le fichier Open project: darionato/PostgreSqlMigrationSqlGenerator Class Usage Examples

Méthodes publiques

Méthode Description
PostgreSqlMigrationSqlGenerator ( ) : System.Collections.Generic

Méthodes protégées

Méthode Description
BuildColumnType ( System.Data.Entity.Migrations.Model.ColumnModel column ) : string
CreateConnection ( ) : DbConnection
Generate ( bool defaultValue ) : string
Generate ( byte defaultValue ) : string
Generate ( System.Data.Entity.Migrations.Model.AddColumnOperation addColumnOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.AddForeignKeyOperation addForeignKeyOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation addPrimaryKeyOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.AlterColumnOperation alterColumnOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.CreateIndexOperation createIndexOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.CreateTableOperation createTableOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.DeleteHistoryOperation deleteHistoryOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.DropColumnOperation dropColumnOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.DropForeignKeyOperation dropForeignKeyOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.DropIndexOperation dropIndexOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation dropPrimaryKeyOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.DropTableOperation dropTableOperation ) : void
Generate ( System.Data.Entity.Migrations.Model.InsertHistoryOperation insertHistoryOperation ) : void

Must implement this method

GenerateCreateSchema ( string schema ) : void
IndexName ( IndexOperation index, bool withSchema ) : string
Quote ( string identifier ) : string

Private Methods

Méthode Description
Generate ( System.Data.Entity.Migrations.Model.ColumnModel column, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, bool isAlter = false ) : void
WriteCreateTable ( CreateTableOperation createTableOperation, IndentedTextWriter writer ) : void

Method Details

BuildColumnType() protected méthode

protected BuildColumnType ( System.Data.Entity.Migrations.Model.ColumnModel column ) : string
column System.Data.Entity.Migrations.Model.ColumnModel
Résultat string

CreateConnection() protected méthode

protected CreateConnection ( ) : DbConnection
Résultat System.Data.Common.DbConnection

Generate() protected méthode

protected Generate ( bool defaultValue ) : string
defaultValue bool
Résultat string

Generate() protected méthode

protected Generate ( byte defaultValue ) : string
defaultValue byte
Résultat string

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.AddColumnOperation addColumnOperation ) : void
addColumnOperation System.Data.Entity.Migrations.Model.AddColumnOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.AddForeignKeyOperation addForeignKeyOperation ) : void
addForeignKeyOperation System.Data.Entity.Migrations.Model.AddForeignKeyOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation addPrimaryKeyOperation ) : void
addPrimaryKeyOperation System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.AlterColumnOperation alterColumnOperation ) : void
alterColumnOperation System.Data.Entity.Migrations.Model.AlterColumnOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.CreateIndexOperation createIndexOperation ) : void
createIndexOperation System.Data.Entity.Migrations.Model.CreateIndexOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.CreateTableOperation createTableOperation ) : void
createTableOperation System.Data.Entity.Migrations.Model.CreateTableOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.DeleteHistoryOperation deleteHistoryOperation ) : void
deleteHistoryOperation System.Data.Entity.Migrations.Model.DeleteHistoryOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.DropColumnOperation dropColumnOperation ) : void
dropColumnOperation System.Data.Entity.Migrations.Model.DropColumnOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.DropForeignKeyOperation dropForeignKeyOperation ) : void
dropForeignKeyOperation System.Data.Entity.Migrations.Model.DropForeignKeyOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.DropIndexOperation dropIndexOperation ) : void
dropIndexOperation System.Data.Entity.Migrations.Model.DropIndexOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation dropPrimaryKeyOperation ) : void
dropPrimaryKeyOperation System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation
Résultat void

Generate() protected méthode

protected Generate ( System.Data.Entity.Migrations.Model.DropTableOperation dropTableOperation ) : void
dropTableOperation System.Data.Entity.Migrations.Model.DropTableOperation
Résultat void

Generate() protected méthode

Must implement this method
protected Generate ( System.Data.Entity.Migrations.Model.InsertHistoryOperation insertHistoryOperation ) : void
insertHistoryOperation System.Data.Entity.Migrations.Model.InsertHistoryOperation
Résultat void

GenerateCreateSchema() protected méthode

protected GenerateCreateSchema ( string schema ) : void
schema string
Résultat void

IndexName() protected méthode

protected IndexName ( IndexOperation index, bool withSchema ) : string
index IndexOperation
withSchema bool
Résultat string

PostgreSqlMigrationSqlGenerator() public méthode

public PostgreSqlMigrationSqlGenerator ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Quote() protected méthode

protected Quote ( string identifier ) : string
identifier string
Résultat string