SqliteMigrationsSqlGenerator.ComputedColumnDefinition 方法

定义

为给定列元数据的计算列定义生成 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 片段的命令生成器。

适用于