MetadataProperty.Create(String, TypeUsage, Object) 方法

定义

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

public static System.Data.Entity.Core.Metadata.Edm.MetadataProperty Create (string name, System.Data.Entity.Core.Metadata.Edm.TypeUsage typeUsage, object value);
static member Create : string * System.Data.Entity.Core.Metadata.Edm.TypeUsage * obj -> System.Data.Entity.Core.Metadata.Edm.MetadataProperty

参数

name
String

元数据属性的名称。

typeUsage
TypeUsage

元数据属性的类型用法。

value
Object

元数据属性的值。

返回

MetadataProperty 对象。

例外

引发 typeUsage 的 为 null

注解

新创建的 MetadataProperty 将是只读的。

适用于