Partilhar via


Annotatable.IMutableAnnotatable.AddAnnotation(String, Object) Método

Definição

Adiciona uma anotação a esse objeto . Gerará se já existir uma anotação com o nome especificado.

Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IMutableAnnotatable.AddAnnotation (string name, object value);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IMutableAnnotatable.AddAnnotation (string name, object value);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IMutableAnnotatable.AddAnnotation (string name, object? value);
abstract member Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
override this.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
override this.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
Function AddAnnotation (name As String, value As Object) As IAnnotation Implements IMutableAnnotatable.AddAnnotation

Parâmetros

name
String

O nome da anotação a ser adicionada.

value
Object

O valor a ser armazenado na anotação.

Retornos

A anotação recém-adicionada.

Implementações

Atributos

Aplica-se a