IModelFinalizedConvention.ProcessModelFinalized 方法

定义

重载

ProcessModelFinalized(IModel)

在模型完成且无法再发生更改后调用。

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在模型完成后调用。

ProcessModelFinalized(IModel)

Source:
IModelFinalizedConvention.cs
Source:
IModelFinalizedConvention.cs
Source:
IModelFinalizedConvention.cs

在模型完成且无法再发生更改后调用。

public Microsoft.EntityFrameworkCore.Metadata.IModel ProcessModelFinalized (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member ProcessModelFinalized : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Function ProcessModelFinalized (model As IModel) As IModel

参数

model
IModel

模型。

返回

注解

实现必须是线程安全的。

适用于

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

在模型完成后调用。

public void ProcessModelFinalized (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder> context);
abstract member ProcessModelFinalized : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder> -> unit
Public Sub ProcessModelFinalized (modelBuilder As IConventionModelBuilder, context As IConventionContext(Of IConventionModelBuilder))

参数

modelBuilder
IConventionModelBuilder

模型的生成器。

context
IConventionContext<IConventionModelBuilder>

与约定执行关联的其他信息。

适用于