SqlCeMigrationSqlGenerator.Generate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Generate(AlterColumnOperation) |
產生 的 AlterColumnOperation SQL。 應該使用 Statement 方法新增產生的 SQL。 |
Generate(DropColumnOperation) |
產生 的 DropColumnOperation SQL。 應該使用 Statement 方法新增產生的 SQL。 |
Generate(DropIndexOperation) |
產生 的 DropIndexOperation SQL。 應該使用 Statement 方法新增產生的 SQL。 |
Generate(MoveTableOperation) |
產生 的 MoveTableOperation SQL。 應該使用 Statement 方法新增產生的 SQL。 |
Generate(RenameColumnOperation) |
產生 的 RenameColumnOperation SQL。 應該使用 Statement 方法新增產生的 SQL。 |
Generate(RenameTableOperation) |
產生 的 RenameTableOperation SQL。 應該使用 Statement 方法新增產生的 SQL。 |
Generate(DateTime) |
產生 SQL 以指定要在資料行上設定的常數 DateTime 預設值。 這個方法只會產生實際值,而不是要設定預設值的 SQL。 |
Generate(AlterColumnOperation)
產生 的 AlterColumnOperation SQL。 應該使用 Statement 方法新增產生的 SQL。
protected override void Generate (System.Data.Entity.Migrations.Model.AlterColumnOperation alterColumnOperation);
override this.Generate : System.Data.Entity.Migrations.Model.AlterColumnOperation -> unit
參數
- alterColumnOperation
- AlterColumnOperation
要為其產生 SQL 的作業。
適用於
Generate(DropColumnOperation)
產生 的 DropColumnOperation SQL。 應該使用 Statement 方法新增產生的 SQL。
protected override void Generate (System.Data.Entity.Migrations.Model.DropColumnOperation dropColumnOperation);
override this.Generate : System.Data.Entity.Migrations.Model.DropColumnOperation -> unit
參數
- dropColumnOperation
- DropColumnOperation
要為其產生 SQL 的作業。
適用於
Generate(DropIndexOperation)
產生 的 DropIndexOperation SQL。 應該使用 Statement 方法新增產生的 SQL。
protected override void Generate (System.Data.Entity.Migrations.Model.DropIndexOperation dropIndexOperation);
override this.Generate : System.Data.Entity.Migrations.Model.DropIndexOperation -> unit
參數
- dropIndexOperation
- DropIndexOperation
要為其產生 SQL 的作業。
適用於
Generate(MoveTableOperation)
產生 的 MoveTableOperation SQL。 應該使用 Statement 方法新增產生的 SQL。
protected override void Generate (System.Data.Entity.Migrations.Model.MoveTableOperation moveTableOperation);
override this.Generate : System.Data.Entity.Migrations.Model.MoveTableOperation -> unit
參數
- moveTableOperation
- MoveTableOperation
要為其產生 SQL 的作業。
適用於
Generate(RenameColumnOperation)
產生 的 RenameColumnOperation SQL。 應該使用 Statement 方法新增產生的 SQL。
protected override void Generate (System.Data.Entity.Migrations.Model.RenameColumnOperation renameColumnOperation);
override this.Generate : System.Data.Entity.Migrations.Model.RenameColumnOperation -> unit
參數
- renameColumnOperation
- RenameColumnOperation
要為其產生 SQL 的作業。
適用於
Generate(RenameTableOperation)
產生 的 RenameTableOperation SQL。 應該使用 Statement 方法新增產生的 SQL。
protected override void Generate (System.Data.Entity.Migrations.Model.RenameTableOperation renameTableOperation);
override this.Generate : System.Data.Entity.Migrations.Model.RenameTableOperation -> unit
參數
- renameTableOperation
- RenameTableOperation
要為其產生 SQL 的作業。
適用於
Generate(DateTime)
產生 SQL 以指定要在資料行上設定的常數 DateTime 預設值。 這個方法只會產生實際值,而不是要設定預設值的 SQL。
protected override string Generate (DateTime defaultValue);
override this.Generate : DateTime -> string
Protected Overrides Function Generate (defaultValue As DateTime) As String
參數
- defaultValue
- DateTime
要設定的值。
傳回
代表預設值的 SQL。