src/Shared/EntityFramework/Core/Metadata/Edm/MetadataProperty.cs
/// <summary>
/// Creates a metadata annotation having the specified name and value.
/// </summary>
/// <param name="name">The annotation name.</param>
/// <param name="value">The annotation value.</param>
/// <returns>A MetadataProperty instance representing the created annotation.</returns>
Creates a metadata annotation having the specified name and value.
Creates a metadata annotation having the specified name and value .
public static MetadataProperty CreateAnnotation(string name, object value)
        {
            Check.NotEmpty(name, "name");
            return new MetadataProperty(name, value);
        }
public static MetadataProperty CreateAnnotation ( string name , object value ) { Check . NotEmpty ( name , " " ) ; return new MetadataProperty ( name , value ) ; }
Creates a metadata annotation having the specified name and value.
Creates a metadata annotation having the specified name and value .
A MetadataProperty instance representing the created annotation.
A MetadataProperty instance representing the created annotation .
name
string
The annotation name.
The annotation name .
value
object
The annotation value.
The annotation value .