MetadataItem.AddAnnotation Method (String, Object)

 

Adds or updates an annotation with the specified name and value.

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

public void AddAnnotation(
	string name,
	object value
)

Parameters

name
Type: System.String

The name of the annotation property.

value
Type: System.Object

The value of the annotation property.

If an annotation with the given name already exists then the value of that annotation is updated to the given value. If the given value is null then the annotation will be removed.