语言

AnnotatableBuilder<TMetadata,TModelBuilder>.IConventionAnnotatableBuilder.CanRemoveAnnotation 方法

定义

返回一个值,该值指示是否可以使用此配置源删除具有给定名称的批注。

[System.Diagnostics.DebuggerStepThrough]
bool IConventionAnnotatableBuilder.CanRemoveAnnotation(string name, bool fromDataAnnotation);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder.CanRemoveAnnotation : string * bool -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder.CanRemoveAnnotation : string * bool -> bool
Function CanRemoveAnnotation (name As String, fromDataAnnotation As Boolean) As Boolean Implements IConventionAnnotatableBuilder.CanRemoveAnnotation

参数

name
String

要删除的批注的名称。

fromDataAnnotation
Boolean

指示是否使用数据注释指定了配置。

返回

如果可以删除批注,则为 ;否则为 /a0>。

实现

特性

适用于