Bagikan melalui


IMutableAnnotatable.AddAnnotation(String, Object) Metode

Definisi

Menambahkan anotasi ke objek ini. Melemparkan jika anotasi dengan nama yang ditentukan sudah ada.

public Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddAnnotation (string name, object value);
public Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation AddAnnotation (string name, object value);
public Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation AddAnnotation (string name, object? value);
abstract member AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
abstract member AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
Public Function AddAnnotation (name As String, value As Object) As Annotation
Public Function AddAnnotation (name As String, value As Object) As IAnnotation

Parameter

name
String

Nama anotasi yang akan ditambahkan.

value
Object

Nilai yang akan disimpan dalam anotasi.

Mengembalikan

Anotasi yang baru ditambahkan.

Berlaku untuk