SqlCeMigrationSqlGenerator.Generate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Generate(AlterColumnOperation) |
Generates SQL for a AlterColumnOperation. Generated SQL should be added using the Statement method. |
Generate(DropColumnOperation) |
Generates SQL for a DropColumnOperation. Generated SQL should be added using the Statement method. |
Generate(DropIndexOperation) |
Generates SQL for a DropIndexOperation. Generated SQL should be added using the Statement method. |
Generate(MoveTableOperation) |
Generates SQL for a MoveTableOperation. Generated SQL should be added using the Statement method. |
Generate(RenameColumnOperation) |
Generates SQL for a RenameColumnOperation. Generated SQL should be added using the Statement method. |
Generate(RenameTableOperation) |
Generates SQL for a RenameTableOperation. Generated SQL should be added using the Statement method. |
Generate(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. |
Generate(AlterColumnOperation)
Generates SQL for a AlterColumnOperation. Generated SQL should be added using the Statement method.
protected override void Generate (System.Data.Entity.Migrations.Model.AlterColumnOperation alterColumnOperation);
override this.Generate : System.Data.Entity.Migrations.Model.AlterColumnOperation -> unit
Parameters
- alterColumnOperation
- AlterColumnOperation
The operation to produce SQL for.
Applies to
Generate(DropColumnOperation)
Generates SQL for a DropColumnOperation. Generated SQL should be added using the Statement method.
protected override void Generate (System.Data.Entity.Migrations.Model.DropColumnOperation dropColumnOperation);
override this.Generate : System.Data.Entity.Migrations.Model.DropColumnOperation -> unit
Parameters
- dropColumnOperation
- DropColumnOperation
The operation to produce SQL for.
Applies to
Generate(DropIndexOperation)
Generates SQL for a DropIndexOperation. Generated SQL should be added using the Statement method.
protected override void Generate (System.Data.Entity.Migrations.Model.DropIndexOperation dropIndexOperation);
override this.Generate : System.Data.Entity.Migrations.Model.DropIndexOperation -> unit
Parameters
- dropIndexOperation
- DropIndexOperation
The operation to produce SQL for.
Applies to
Generate(MoveTableOperation)
Generates SQL for a MoveTableOperation. Generated SQL should be added using the Statement method.
protected override void Generate (System.Data.Entity.Migrations.Model.MoveTableOperation moveTableOperation);
override this.Generate : System.Data.Entity.Migrations.Model.MoveTableOperation -> unit
Parameters
- moveTableOperation
- MoveTableOperation
The operation to produce SQL for.
Applies to
Generate(RenameColumnOperation)
Generates SQL for a RenameColumnOperation. Generated SQL should be added using the Statement method.
protected override void Generate (System.Data.Entity.Migrations.Model.RenameColumnOperation renameColumnOperation);
override this.Generate : System.Data.Entity.Migrations.Model.RenameColumnOperation -> unit
Parameters
- renameColumnOperation
- RenameColumnOperation
The operation to produce SQL for.
Applies to
Generate(RenameTableOperation)
Generates SQL for a RenameTableOperation. Generated SQL should be added using the Statement method.
protected override void Generate (System.Data.Entity.Migrations.Model.RenameTableOperation renameTableOperation);
override this.Generate : System.Data.Entity.Migrations.Model.RenameTableOperation -> unit
Parameters
- renameTableOperation
- RenameTableOperation
The operation to produce SQL for.
Applies to
Generate(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 override string Generate (DateTime defaultValue);
override this.Generate : DateTime -> string
Protected Overrides Function Generate (defaultValue As DateTime) As String
Parameters
- defaultValue
- DateTime
The value to be set.
Returns
SQL representing the default value.
Applies to
Entity Framework