Condividi tramite


Metodo MetadataProperty.CreateAnnotation

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Crea un'annotazione dei metadati con il nome e il valore specificati.

Spazio dei nomi:  System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Shared Function CreateAnnotation ( _
    name As String, _
    value As Object _
) As MetadataProperty
'Utilizzo
Dim name As String 
Dim value As Object 
Dim returnValue As MetadataProperty 

returnValue = MetadataProperty.CreateAnnotation(name, _
    value)
public static MetadataProperty CreateAnnotation(
    string name,
    Object value
)
public:
static MetadataProperty^ CreateAnnotation(
    String^ name, 
    Object^ value
)
static member CreateAnnotation : 
        name:string * 
        value:Object -> MetadataProperty
public static function CreateAnnotation(
    name : String, 
    value : Object
) : MetadataProperty

Parametri

Valore restituito

Tipo: System.Data.Entity.Core.Metadata.Edm.MetadataProperty
Istanza di MetadataProperty che rappresenta l'annotazione creata.

Vedere anche

Riferimento

MetadataProperty Classe

Spazio dei nomi System.Data.Entity.Core.Metadata.Edm