Share via


ManyToManyAssociationMappingConfiguration.HasTableAnnotation Method

Definition

Sets an annotation in the model for the join table. The annotation value can later be used when processing the table such as when creating migrations.

public System.Data.Entity.ModelConfiguration.Configuration.ManyToManyAssociationMappingConfiguration HasTableAnnotation (string name, object value);
member this.HasTableAnnotation : string * obj -> System.Data.Entity.ModelConfiguration.Configuration.ManyToManyAssociationMappingConfiguration
Public Function HasTableAnnotation (name As String, value As Object) As ManyToManyAssociationMappingConfiguration

Parameters

name
String

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 IMetadataAnnotationSerializer

Returns

The same configuration instance so that multiple calls can be chained.

Remarks

It will likely be necessary to register a IMetadataAnnotationSerializer if the type of the annotation value is anything other than a string. Passing a null value clears any annotation with the given name on the column that had been previously set.

Applies to