Bagikan melalui


IConventionAnnotatableBuilder.RemoveAnnotation(String, Boolean) Metode

Definisi

Perhatian

Use HasNoAnnotation

Menghapus anotasi dengan nama yang diberikan dari objek ini.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder RemoveAnnotation (string name, bool fromDataAnnotation = false);
[System.Obsolete("Use HasNoAnnotation")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder RemoveAnnotation (string name, bool fromDataAnnotation = false);
[System.Obsolete("Use HasNoAnnotation")]
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder? RemoveAnnotation (string name, bool fromDataAnnotation = false);
abstract member RemoveAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
[<System.Obsolete("Use HasNoAnnotation")>]
abstract member RemoveAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
override this.RemoveAnnotation : string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
Public Function RemoveAnnotation (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotatableBuilder
Public Overridable Function RemoveAnnotation (name As String, Optional fromDataAnnotation As Boolean = false) As IConventionAnnotatableBuilder

Parameter

name
String

Nama anotasi yang akan dihapus.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Untuk IConventionAnnotatableBuilder melanjutkan konfigurasi jika anotasi diatur, null jika tidak.

Atribut

Berlaku untuk