RuntimeAnnotatableBase.SetRuntimeAnnotation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetRuntimeAnnotation(String, Object) |
設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 |
| SetRuntimeAnnotation(String, Annotation, Annotation) |
設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 |
SetRuntimeAnnotation(String, Object)
設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。
public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation SetRuntimeAnnotation(string name, object? value);
abstract member SetRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.SetRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Public Overridable Function SetRuntimeAnnotation (name As String, value As Object) As Annotation
參數
- name
- String
註解的鍵要加入。
- value
- Object
註解中要儲存的值。
傳回
適用於
SetRuntimeAnnotation(String, Annotation, Annotation)
設定在指定鍵值下儲存的執行時註解。 若已有指定名稱的註解存在,則會覆寫現有註解。
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation SetRuntimeAnnotation(string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? oldAnnotation);
abstract member SetRuntimeAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.SetRuntimeAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function SetRuntimeAnnotation (name As String, annotation As Annotation, oldAnnotation As Annotation) As Annotation
參數
- name
- String
註解的鍵要加入。
- annotation
- Annotation
註解要設定。
- oldAnnotation
- Annotation
註解正在被替換。
傳回
那個註解。