src/Shared/EntityFramework/ModelConfiguration/Configuration/Types/ConventionTypeConfiguration.cs
/// <summary>
/// Sets an annotation in the model for the table to which this entity is mapped. The annotation
/// value can later be used when processing the table such as when creating migrations.
/// </summary>
/// <remarks>
/// It will likely be necessary to register a <see cref="IMetadataAnnotationSerializer"/> if the type of
/// the annotation value is anything other than a string. Calling this method will have no effect if the 
/// annotation with the given name has already been configured.
/// </remarks>
/// <param name="name">The annotation name, which must be a valid C#/EDM identifier.</param>
/// <param name="value">The annotation value, which may be a string or some other type that
/// can be serialized with an <see cref="IMetadataAnnotationSerializer"/></param>.
/// <returns>The same configuration instance so that multiple calls can be chained.</returns>
Sets an annotation in the model for the table to which this entity is mapped. The annotation
value can later be used when processing the table such as when creating migrations.
Sets an annotation in the model for the table to which this entity is mapped . The annotation value can later be used when processing the table such as when creating migrations .
public ConventionTypeConfiguration HasTableAnnotation(string name, object value)
        {
            Check.NotEmpty(name, "name");
            ValidateConfiguration(ConfigurationAspect.HasTableAnnotation);
            if (_entityTypeConfiguration != null
                && !_entityTypeConfiguration().Annotations.ContainsKey(name))
            {
                _entityTypeConfiguration().SetAnnotation(name, value);
            }
            return this;
        }
public ConventionTypeConfiguration HasTableAnnotation ( string name , object value ) { Check . NotEmpty ( name , " " ) ; ValidateConfiguration ( ConfigurationAspect . HasTableAnnotation ) ; if ( _entityTypeConfiguration != null && ! _entityTypeConfiguration ( ) . Annotations . ContainsKey ( name ) ) { _entityTypeConfiguration ( ) . SetAnnotation ( name , value ) ; } return this ; }
Sets an annotation in the model for the table to which this entity is mapped.
Sets an annotation in the model for the table to which this entity is mapped .
The same configuration instance so that multiple calls can be chained.
The same configuration instance so that multiple calls can be chained .
name
string
The annotation name, which must be a valid C#/EDM identifier.
The annotation name which must be a valid C# / EDM identifier .
value
object
The annotation value, which may be a string or some other type that
can be serialized with an .
The annotation value which may be a string or some other type that can be serialized with an .
remarks
It will likely be necessary to register a  if the type of
the annotation value is anything other than a string. Calling this method will have no effect if the
annotation with the given name has already been configured.
It will likely be necessary to register a if the type of the annotation value is anything other than a string . Calling this method will have no effect if the annotation with the given name has already been configured .