ConventionAnnotatable.IConventionAnnotatable.SetAnnotation Yöntem

Tanım

Verilen ad altında depolanan ek açıklamayı ayarlar. Belirtilen ada sahip bir ek açıklama zaten varsa mevcut ek açıklamanın üzerine yazar.

[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation IConventionAnnotatable.SetAnnotation (string name, object value, bool fromDataAnnotation);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation? IConventionAnnotatable.SetAnnotation (string name, object? value, bool fromDataAnnotation);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable.SetAnnotation : string * obj * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
override this.Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable.SetAnnotation : string * obj * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotation
Function SetAnnotation (name As String, value As Object, fromDataAnnotation As Boolean) As IConventionAnnotation Implements IConventionAnnotatable.SetAnnotation

Parametreler

name
String

Ayarlanacak ek açıklamanın adı.

value
Object

Ek açıklamaya depolanacak değer.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Yeni ek açıklama.

Uygulamalar

Öznitelikler

Şunlara uygulanır