MetadataProperty 类

定义

表示项的元数据属性的类

public class MetadataProperty : System.Data.Entity.Core.Metadata.Edm.MetadataItem
type MetadataProperty = class
    inherit MetadataItem
Public Class MetadataProperty
Inherits MetadataItem
继承
MetadataProperty

属性

BuiltInTypeKind

获取此 MetadataProperty 的内置类型种类。

Documentation

获取或设置与此类型关联的文档。

(继承自 MetadataItem)
IsAnnotation

获取一个布尔值,该值指示元数据属性是否为注释。

MetadataProperties

获取当前类型的属性列表。

(继承自 MetadataItem)
Name

获取此 MetadataProperty 的名称。

PropertyKind

获取此 PropertyKind 的值。

TypeUsage

获取既包含此 TypeUsage 的类型又包含该类型的各个方面的 MetadataProperty 类实例。

Value

获取此 MetadataProperty 的值。

方法

AddAnnotation(String, Object)

添加或更新具有指定名称和值的批注。

(继承自 MetadataItem)
Create(String, TypeUsage, Object)

用于构造 MetadataProperty 对象的工厂方法。

CreateAnnotation(String, Object)

创建具有指定名称和值的元数据注释。

RemoveAnnotation(String)

删除具有指定名称的批注。

(继承自 MetadataItem)

适用于