Share via


MetadataProperty.Create(String, TypeUsage, Object) Method

Definition

The factory method for constructing the MetadataProperty object.

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

Parameters

name
String

The name of the metadata property.

typeUsage
TypeUsage

The type usage of the metadata property.

value
Object

The value of the metadata property.

Returns

The MetadataProperty object.

Exceptions

Thrown typeUsage is null.

Remarks

The newly created MetadataProperty will be read only.

Applies to