语言

Annotation 类

定义

可在实现 IReadOnlyAnnotatable的对象上存储的任意元数据片段。

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

public class Annotation : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
[System.Runtime.CompilerServices.Nullable(0)]
public class Annotation : Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
type Annotation = class
    interface IAnnotation
[<System.Runtime.CompilerServices.Nullable(0)>]
type Annotation = class
    interface IAnnotation
Public Class Annotation
Implements IAnnotation
继承
Annotation
特性
实现

注解

有关详细信息和示例,请参阅 数据库提供程序和扩展的实现 。

构造函数

名称 说明
Annotation(String, Object)

初始化 Annotation 类的新实例。

属性

名称 说明
Name

获取此批注的键。

Value

获取分配给此批注的值。

适用于