语言

ConventionAnnotatable.IMutableAnnotatable.SetAnnotation 方法

定义

设置存储在给定键下的批注。 如果已存在具有指定名称的批注,则覆盖现有批注。

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

参数

name
String

要添加的批注的名称。

value
Object

要存储在批注中的值。

实现

特性

适用于