MetadataProperty.CreateAnnotation Method (String, Object)

 

Creates a metadata annotation having the specified name and value.

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

public static MetadataProperty CreateAnnotation(
	string name,
	object value
)

Parameters

name
Type: System.String

The annotation name.

value
Type: System.Object

The annotation value.

Return Value

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

A MetadataProperty instance representing the created annotation.