ValidatingConvention.ProcessModelFinalized 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ProcessModelFinalized(IModel) |
在模型最终确定后调用,并且无法再发生更改。 |
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
在模型最终确定后调用。 |
ProcessModelFinalized(IModel)
- Source:
- ValidatingConvention.cs
- Source:
- ValidatingConvention.cs
在模型最终确定后调用,并且无法再发生更改。
public virtual Microsoft.EntityFrameworkCore.Metadata.IModel ProcessModelFinalized (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member ProcessModelFinalized : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IModel
override this.ProcessModelFinalized : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IModel
Public Overridable Function ProcessModelFinalized (model As IModel) As IModel
参数
- model
- IModel
模型。
返回
实现
适用于
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
- Source:
- ValidatingConvention.cs
- Source:
- ValidatingConvention.cs
在模型最终确定后调用。
public virtual 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
override this.ProcessModelFinalized : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder> -> unit
Public Overridable Sub ProcessModelFinalized (modelBuilder As IConventionModelBuilder, context As IConventionContext(Of IConventionModelBuilder))
参数
- modelBuilder
- IConventionModelBuilder
模型的生成器。
与约定执行关联的其他信息。