MetadataProperty.Create Method (String, TypeUsage, Object)

 

The factory method for constructing the MetadataProperty object.

Namespace:   System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

public static MetadataProperty Create(
	string name,
	TypeUsage typeUsage,
	object value
)

Parameters

name
Type: System.String

The name of the metadata property.

typeUsage
Type: System.Data.Entity.Core.Metadata.Edm.TypeUsage

The type usage of the metadata property.

value
Type: System.Object

The value of the metadata property.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.MetadataProperty

The MetadataProperty object.

Exception Condition
NullReferenceException

Thrown typeUsage is null.

The newly created MetadataProperty will be read only.