SqliteMigrationsSqlGenerator.ComputedColumnDefinition 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生一個 SQL 片段,用於計算出給定欄位中繼資料的欄位定義。
protected override void ComputedColumnDefinition(string? schema, string table, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void ComputedColumnDefinition(string schema, string table, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.ComputedColumnDefinition : string * string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub ComputedColumnDefinition (schema As String, table As String, name As String, operation As ColumnOperation, model As IModel, builder As MigrationCommandListBuilder)
參數
- schema
- String
包含該表格的結構,或 null 使用預設架構。
- table
- String
包含該欄位的表格。
- name
- String
數據行名稱。
- operation
- ColumnOperation
欄位元資料。
- model
- IModel
目標模型,如果操作存在且沒有模型,則可能是目標 null 模型。
- builder
- MigrationCommandListBuilder
用來新增 SQL 片段的指令建構器。