CSharpMigrationCodeGenerator.GenerateInline Method

 

CSharpMigrationCodeGenerator.GenerateInline Method (AddForeignKeyOperation, IndentedTextWriter)

Generates code to perform an AddForeignKeyOperation as part of a CreateTableOperation.

protected virtual void GenerateInline(
	AddForeignKeyOperation addForeignKeyOperation,
	IndentedTextWriter writer
)

Parameters

addForeignKeyOperation
Type: System.Data.Entity.Migrations.Model.AddForeignKeyOperation

The operation to generate code for.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

Text writer to add the generated code to.


CSharpMigrationCodeGenerator.GenerateInline Method (AddPrimaryKeyOperation, IndentedTextWriter)

Generates code to perform an AddPrimaryKeyOperation as part of a CreateTableOperation.

protected virtual void GenerateInline(
	AddPrimaryKeyOperation addPrimaryKeyOperation,
	IndentedTextWriter writer
)

Parameters

addPrimaryKeyOperation
Type: System.Data.Entity.Migrations.Model.AddPrimaryKeyOperation

The operation to generate code for.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

Text writer to add the generated code to.


CSharpMigrationCodeGenerator.GenerateInline Method (CreateIndexOperation, IndentedTextWriter)

Generates code to perform a CreateIndexOperation as part of a CreateTableOperation.

protected virtual void GenerateInline(
	CreateIndexOperation createIndexOperation,
	IndentedTextWriter writer
)

Parameters

createIndexOperation
Type: System.Data.Entity.Migrations.Model.CreateIndexOperation

The operation to generate code for.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

Text writer to add the generated code to.