RelationalDbFunctionAttributeConvention.ProcessModelAnnotationChanged 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在模型上的批注更改后调用。
public virtual void ProcessModelAnnotationChanged (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation annotation, Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation oldAnnotation, Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> context);
abstract member ProcessModelAnnotationChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> -> unit
override this.ProcessModelAnnotationChanged : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation * Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionContext<Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation> -> unit
Public Overridable Sub ProcessModelAnnotationChanged (modelBuilder As IConventionModelBuilder, name As String, annotation As IConventionAnnotation, oldAnnotation As IConventionAnnotation, context As IConventionContext(Of IConventionAnnotation))
参数
- modelBuilder
- IConventionModelBuilder
模型的生成器。
- name
- String
批注名称。
- annotation
- IConventionAnnotation
新批注。
- oldAnnotation
- IConventionAnnotation
旧批注。
- context
- IConventionContext<IConventionAnnotation>
与约定执行关联的其他信息。