SqlCeMigrationSqlGenerator.Generate Method

 

Generates SQL to specify a constant bool default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

Namespace:   System.Data.Entity.SqlServerCompact
Assembly:  EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)

NameDescription
System_CAPS_protmethodGenerate(AddColumnOperation)

Generates SQL for a AddColumnOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(AddForeignKeyOperation)

Generates SQL for a AddForeignKeyOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(AddPrimaryKeyOperation)

Generates SQL for a AddPrimaryKeyOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(AlterColumnOperation)

Generates SQL for a AlterColumnOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(AlterProcedureOperation)

Generates the specified alter procedure operation.

System_CAPS_protmethodGenerate(AlterTableOperation)

Override this method to generate SQL when the definition of a table or its attributes are changed. The default implementation of this method does nothing.

System_CAPS_protmethodGenerate(Boolean)

Generates SQL to specify a constant bool default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(Byte[])

Generates SQL to specify a constant byte[] default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(ColumnModel, IndentedTextWriter)

Generates SQL for the given column model. This method is called by other methods that process columns and can be overridden to change the SQL generated.

System_CAPS_protmethodGenerate(CreateIndexOperation)

Generates SQL for a CreateIndexOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(CreateProcedureOperation)

Generates the specified create procedure operation.

System_CAPS_protmethodGenerate(CreateTableOperation)

Generates SQL for a CreateTableOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(DateTime)

Generates SQL to specify a constant DateTime default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(DateTimeOffset)

Generates SQL to specify a constant DateTimeOffset default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(DbGeography)

Generates SQL to specify a constant geogrpahy default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(DbGeometry)

Generates SQL to specify a constant geometry default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(DropColumnOperation)

Generates SQL for a DropColumnOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(DropForeignKeyOperation)

Generates SQL for a DropForeignKeyOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(DropIndexOperation)

Generates SQL for a DropIndexOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(DropPrimaryKeyOperation)

Generates SQL for a DropPrimaryKeyOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(DropProcedureOperation)

Generates the specified drop procedure operation.

System_CAPS_protmethodGenerate(DropTableOperation)

Generates SQL for a DropTableOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(Guid)

Generates SQL to specify a constant Guid default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(HistoryOperation)

Generates SQL for a HistoryOperation. Generated SQL should be added using the Statement method.

System_CAPS_pubmethodGenerate(IEnumerable<MigrationOperation>, String)

Converts a set of migration operations into Microsoft SQL Server specific SQL.(Overrides MigrationSqlGenerator.Generate(IEnumerable<MigrationOperation>, String).)

System_CAPS_protmethodGenerate(MigrationOperation)

Generates SQL for a MigrationOperation. Allows derived providers to handle additional operation types. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(MoveProcedureOperation)

Generates the specified move procedure operation.

System_CAPS_protmethodGenerate(MoveTableOperation)

Generates SQL for a MoveTableOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(Object)

Generates SQL to specify a constant default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(RenameColumnOperation)

Generates SQL for a RenameColumnOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(RenameIndexOperation)

Generates SQL for a RenameIndexOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(RenameProcedureOperation)

Generates the specified rename procedure operation.

System_CAPS_protmethodGenerate(RenameTableOperation)

Generates SQL for a RenameTableOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(SqlOperation)

Generates SQL for a SqlOperation. Generated SQL should be added using the Statement method.

System_CAPS_protmethodGenerate(String)

Generates SQL to specify a constant string default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(TimeSpan)

Generates SQL to specify a constant TimeSpan default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

System_CAPS_protmethodGenerate(UpdateDatabaseOperation)

Generates the specified update database operation which represents applying a series of migrations. The generated script is idempotent, meaning it contains conditional logic to check if individual migrations have already been applied and only apply the pending ones.


SqlCeMigrationSqlGenerator.Generate Method (AddColumnOperation)

Generates SQL for a AddColumnOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	AddColumnOperation addColumnOperation
)

Parameters

addColumnOperation
Type: System.Data.Entity.Migrations.Model.AddColumnOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (AddForeignKeyOperation)

Generates SQL for a AddForeignKeyOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	AddForeignKeyOperation addForeignKeyOperation
)

Parameters

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

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (AddPrimaryKeyOperation)

Generates SQL for a AddPrimaryKeyOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	AddPrimaryKeyOperation addPrimaryKeyOperation
)

Parameters

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

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (AlterColumnOperation)

Generates SQL for a AlterColumnOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	AlterColumnOperation alterColumnOperation
)

Parameters

alterColumnOperation
Type: System.Data.Entity.Migrations.Model.AlterColumnOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (AlterProcedureOperation)

Generates the specified alter procedure operation.

protected virtual void Generate(
	AlterProcedureOperation alterProcedureOperation
)

Parameters

alterProcedureOperation
Type: System.Data.Entity.Migrations.Model.AlterProcedureOperation

The alter procedure operation.


SqlCeMigrationSqlGenerator.Generate Method (AlterTableOperation)

Override this method to generate SQL when the definition of a table or its attributes are changed. The default implementation of this method does nothing.

protected internal virtual void Generate(
	AlterTableOperation alterTableOperation
)

Parameters

alterTableOperation
Type: System.Data.Entity.Migrations.Model.AlterTableOperation

The operation describing changes to the table.


SqlCeMigrationSqlGenerator.Generate Method (Boolean)

Generates SQL to specify a constant bool default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	bool defaultValue
)

Parameters

defaultValue
Type: System.Boolean

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (Byte[])

Generates SQL to specify a constant byte[] default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	byte[] defaultValue
)

Parameters

defaultValue
Type: System.Byte[]

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (ColumnModel, IndentedTextWriter)

Generates SQL for the given column model. This method is called by other methods that process columns and can be overridden to change the SQL generated.

protected internal void Generate(
	ColumnModel column,
	IndentedTextWriter writer
)

Parameters

column
Type: System.Data.Entity.Migrations.Model.ColumnModel

The column for which SQL is being generated.

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

The writer to which generated SQL should be written.


SqlCeMigrationSqlGenerator.Generate Method (CreateIndexOperation)

Generates SQL for a CreateIndexOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	CreateIndexOperation createIndexOperation
)

Parameters

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

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (CreateProcedureOperation)

Generates the specified create procedure operation.

protected virtual void Generate(
	CreateProcedureOperation createProcedureOperation
)

Parameters

createProcedureOperation
Type: System.Data.Entity.Migrations.Model.CreateProcedureOperation

The create procedure operation.


SqlCeMigrationSqlGenerator.Generate Method (CreateTableOperation)

Generates SQL for a CreateTableOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	CreateTableOperation createTableOperation
)

Parameters

createTableOperation
Type: System.Data.Entity.Migrations.Model.CreateTableOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (DateTime)

Generates SQL to specify a constant DateTime default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	DateTime defaultValue
)

Parameters

defaultValue
Type: System.DateTime

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (DateTimeOffset)

Generates SQL to specify a constant DateTimeOffset default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	DateTimeOffset defaultValue
)

Parameters

defaultValue
Type: System.DateTimeOffset

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (DbGeography)

Generates SQL to specify a constant geogrpahy default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	DbGeography defaultValue
)

Parameters

defaultValue
Type: System.Data.Entity.Spatial.DbGeography

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (DbGeometry)

Generates SQL to specify a constant geometry default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	DbGeometry defaultValue
)

Parameters

defaultValue
Type: System.Data.Entity.Spatial.DbGeometry

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (DropColumnOperation)

Generates SQL for a DropColumnOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	DropColumnOperation dropColumnOperation
)

Parameters

dropColumnOperation
Type: System.Data.Entity.Migrations.Model.DropColumnOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (DropForeignKeyOperation)

Generates SQL for a DropForeignKeyOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	DropForeignKeyOperation dropForeignKeyOperation
)

Parameters

dropForeignKeyOperation
Type: System.Data.Entity.Migrations.Model.DropForeignKeyOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (DropIndexOperation)

Generates SQL for a DropIndexOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	DropIndexOperation dropIndexOperation
)

Parameters

dropIndexOperation
Type: System.Data.Entity.Migrations.Model.DropIndexOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (DropPrimaryKeyOperation)

Generates SQL for a DropPrimaryKeyOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	DropPrimaryKeyOperation dropPrimaryKeyOperation
)

Parameters

dropPrimaryKeyOperation
Type: System.Data.Entity.Migrations.Model.DropPrimaryKeyOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (DropProcedureOperation)

Generates the specified drop procedure operation.

protected virtual void Generate(
	DropProcedureOperation dropProcedureOperation
)

Parameters

dropProcedureOperation
Type: System.Data.Entity.Migrations.Model.DropProcedureOperation

The drop procedure operation.


SqlCeMigrationSqlGenerator.Generate Method (DropTableOperation)

Generates SQL for a DropTableOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	DropTableOperation dropTableOperation
)

Parameters

dropTableOperation
Type: System.Data.Entity.Migrations.Model.DropTableOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (Guid)

Generates SQL to specify a constant Guid default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	Guid defaultValue
)

Parameters

defaultValue
Type: System.Guid

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (HistoryOperation)

Generates SQL for a HistoryOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	HistoryOperation historyOperation
)

Parameters

historyOperation
Type: System.Data.Entity.Migrations.Model.HistoryOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (IEnumerable<MigrationOperation>, String)

Converts a set of migration operations into Microsoft SQL Server specific SQL.

public override IEnumerable<MigrationStatement> Generate(
	IEnumerable<MigrationOperation> migrationOperations,
	string providerManifestToken
)

Parameters

migrationOperations
Type: System.Collections.Generic.IEnumerable<MigrationOperation>

The operations to be converted.

providerManifestToken
Type: System.String

Token representing the version of SQL Server being targeted (i.e. "2005", "2008").

Return Value

Type: System.Collections.Generic.IEnumerable<MigrationStatement>

A list of SQL statements to be executed to perform the migration operations.


SqlCeMigrationSqlGenerator.Generate Method (MigrationOperation)

Generates SQL for a MigrationOperation. Allows derived providers to handle additional operation types. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	MigrationOperation migrationOperation
)

Parameters

migrationOperation
Type: System.Data.Entity.Migrations.Model.MigrationOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (MoveProcedureOperation)

Generates the specified move procedure operation.

protected virtual void Generate(
	MoveProcedureOperation moveProcedureOperation
)

Parameters

moveProcedureOperation
Type: System.Data.Entity.Migrations.Model.MoveProcedureOperation

The move procedure operation.


SqlCeMigrationSqlGenerator.Generate Method (MoveTableOperation)

Generates SQL for a MoveTableOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	MoveTableOperation moveTableOperation
)

Parameters

moveTableOperation
Type: System.Data.Entity.Migrations.Model.MoveTableOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (Object)

Generates SQL to specify a constant default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	object defaultValue
)

Parameters

defaultValue
Type: System.Object

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (RenameColumnOperation)

Generates SQL for a RenameColumnOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	RenameColumnOperation renameColumnOperation
)

Parameters

renameColumnOperation
Type: System.Data.Entity.Migrations.Model.RenameColumnOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (RenameIndexOperation)

Generates SQL for a RenameIndexOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	RenameIndexOperation renameIndexOperation
)

Parameters

renameIndexOperation
Type: System.Data.Entity.Migrations.Model.RenameIndexOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (RenameProcedureOperation)

Generates the specified rename procedure operation.

protected virtual void Generate(
	RenameProcedureOperation renameProcedureOperation
)

Parameters

renameProcedureOperation
Type: System.Data.Entity.Migrations.Model.RenameProcedureOperation

The rename procedure operation.


SqlCeMigrationSqlGenerator.Generate Method (RenameTableOperation)

Generates SQL for a RenameTableOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	RenameTableOperation renameTableOperation
)

Parameters

renameTableOperation
Type: System.Data.Entity.Migrations.Model.RenameTableOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (SqlOperation)

Generates SQL for a SqlOperation. Generated SQL should be added using the Statement method.

protected virtual void Generate(
	SqlOperation sqlOperation
)

Parameters

sqlOperation
Type: System.Data.Entity.Migrations.Model.SqlOperation

The operation to produce SQL for.


SqlCeMigrationSqlGenerator.Generate Method (String)

Generates SQL to specify a constant string default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	string defaultValue
)

Parameters

defaultValue
Type: System.String

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (TimeSpan)

Generates SQL to specify a constant TimeSpan default value being set on a column. This method just generates the actual value, not the SQL to set the default value.

protected virtual string Generate(
	TimeSpan defaultValue
)

Parameters

defaultValue
Type: System.TimeSpan

The value to be set.

Return Value

Type: System.String

SQL representing the default value.


SqlCeMigrationSqlGenerator.Generate Method (UpdateDatabaseOperation)

Generates the specified update database operation which represents applying a series of migrations. The generated script is idempotent, meaning it contains conditional logic to check if individual migrations have already been applied and only apply the pending ones.

protected virtual void Generate(
	UpdateDatabaseOperation updateDatabaseOperation
)

Parameters

updateDatabaseOperation
Type: System.Data.Entity.Migrations.Model.UpdateDatabaseOperation

The update database operation.