Sdílet prostřednictvím


ComplexPropertyBuilder.HasPropertyAnnotation(String, Object) Metoda

Definice

Přidá nebo aktualizuje poznámku ke komplexní vlastnosti. Pokud anotaci s klíčem zadaným v annotation již existuje, její hodnota se aktualizuje.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder HasPropertyAnnotation (string annotation, object? value);
abstract member HasPropertyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
override this.HasPropertyAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexPropertyBuilder
Public Overridable Function HasPropertyAnnotation (annotation As String, value As Object) As ComplexPropertyBuilder

Parametry

annotation
String

Klíč poznámky, která se má přidat nebo aktualizovat.

value
Object

Hodnota, která má být uložena v poznámce.

Návraty

Stejná instance tvůrce, aby bylo možné zřetězených více volání konfigurace.

Platí pro