Class MySqlMigrationCodeGenerator
Class used to customized code generation
to avoid dbo. prefix added on table names.
Inheritance
System.Object
MySqlMigrationCodeGenerator
Assembly: MySql.Data.EntityFramework.dll
Version: 9.1.0
Syntax
public class MySqlMigrationCodeGenerator : CSharpMigrationCodeGenerator
Methods
Generate(AddColumnOperation, IndentedTextWriter)
Declaration
protected override void Generate(AddColumnOperation addColumnOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
AddColumnOperation |
addColumnOperation |
|
IndentedTextWriter |
writer |
|
Generate(AddForeignKeyOperation, IndentedTextWriter)
Declaration
protected override void Generate(AddForeignKeyOperation addForeignKeyOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
AddForeignKeyOperation |
addForeignKeyOperation |
|
IndentedTextWriter |
writer |
|
Generate(AddPrimaryKeyOperation, IndentedTextWriter)
Declaration
protected override void Generate(AddPrimaryKeyOperation addPrimaryKeyOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
AddPrimaryKeyOperation |
addPrimaryKeyOperation |
|
IndentedTextWriter |
writer |
|
Generate(AlterColumnOperation, IndentedTextWriter)
Declaration
protected override void Generate(AlterColumnOperation alterColumnOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
AlterColumnOperation |
alterColumnOperation |
|
IndentedTextWriter |
writer |
|
Generate(CreateIndexOperation, IndentedTextWriter)
Declaration
protected override void Generate(CreateIndexOperation createIndexOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
CreateIndexOperation |
createIndexOperation |
|
IndentedTextWriter |
writer |
|
Generate(CreateTableOperation, IndentedTextWriter)
Declaration
protected override void Generate(CreateTableOperation createTableOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
CreateTableOperation |
createTableOperation |
|
IndentedTextWriter |
writer |
|
Generate(DropColumnOperation, IndentedTextWriter)
Declaration
protected override void Generate(DropColumnOperation dropColumnOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
DropColumnOperation |
dropColumnOperation |
|
IndentedTextWriter |
writer |
|
Generate(DropForeignKeyOperation, IndentedTextWriter)
Declaration
protected override void Generate(DropForeignKeyOperation dropForeignKeyOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
DropForeignKeyOperation |
dropForeignKeyOperation |
|
IndentedTextWriter |
writer |
|
Generate(DropIndexOperation, IndentedTextWriter)
Declaration
protected override void Generate(DropIndexOperation dropIndexOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
DropIndexOperation |
dropIndexOperation |
|
IndentedTextWriter |
writer |
|
Generate(DropPrimaryKeyOperation, IndentedTextWriter)
Declaration
protected override void Generate(DropPrimaryKeyOperation dropPrimaryKeyOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
DropPrimaryKeyOperation |
dropPrimaryKeyOperation |
|
IndentedTextWriter |
writer |
|
Generate(DropTableOperation, IndentedTextWriter)
Declaration
protected override void Generate(DropTableOperation dropTableOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
DropTableOperation |
dropTableOperation |
|
IndentedTextWriter |
writer |
|
Generate(MoveTableOperation, IndentedTextWriter)
Declaration
protected override void Generate(MoveTableOperation moveTableOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
MoveTableOperation |
moveTableOperation |
|
IndentedTextWriter |
writer |
|
Generate(RenameColumnOperation, IndentedTextWriter)
Declaration
protected override void Generate(RenameColumnOperation renameColumnOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
RenameColumnOperation |
renameColumnOperation |
|
IndentedTextWriter |
writer |
|
Generate(RenameTableOperation, IndentedTextWriter)
Declaration
protected override void Generate(RenameTableOperation renameTableOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
RenameTableOperation |
renameTableOperation |
|
IndentedTextWriter |
writer |
|
Generate(String, IEnumerable<MigrationOperation>, String, String, String, String)
Declaration
public override ScaffoldedMigration Generate(string migrationId, IEnumerable<MigrationOperation> operations, string sourceModel, string targetModel, string namespace, string className)
Parameters
Type |
Name |
Description |
System.String |
migrationId |
|
System.Collections.Generic.IEnumerable<MigrationOperation> |
operations |
|
System.String |
sourceModel |
|
System.String |
targetModel |
|
System.String |
namespace |
|
System.String |
className |
|
Returns
Type |
Description |
ScaffoldedMigration |
|
GenerateInline(AddForeignKeyOperation, IndentedTextWriter)
Declaration
protected override void GenerateInline(AddForeignKeyOperation addForeignKeyOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
AddForeignKeyOperation |
addForeignKeyOperation |
|
IndentedTextWriter |
writer |
|
GenerateInline(CreateIndexOperation, IndentedTextWriter)
Declaration
protected override void GenerateInline(CreateIndexOperation createIndexOperation, IndentedTextWriter writer)
Parameters
Type |
Name |
Description |
CreateIndexOperation |
createIndexOperation |
|
IndentedTextWriter |
writer |
|