Condividi tramite


Metodo SerializationExtensionMethods.SetAssociationSetAnnotations

Imposta le annotazioni per il set di associazioni serializzato per una destinazione di navigazione di un set di entità.

Spazio dei nomi  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Sintassi

'Dichiarazione
<ExtensionAttribute> _
Public Shared Sub SetAssociationSetAnnotations ( _
    model As IEdmModel, _
    entitySet As IEdmEntitySet, _
    property As IEdmNavigationProperty, _
    annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
    end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
    end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation) _
)
'Utilizzo
Dim model As IEdmModel
Dim entitySet As IEdmEntitySet
Dim property As IEdmNavigationProperty
Dim annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation)

model.SetAssociationSetAnnotations(entitySet, _
    property, annotations, end1Annotations, _
    end2Annotations)
public static void SetAssociationSetAnnotations(
    this IEdmModel model,
    IEdmEntitySet entitySet,
    IEdmNavigationProperty property,
    IEnumerable<IEdmDirectValueAnnotation> annotations,
    IEnumerable<IEdmDirectValueAnnotation> end1Annotations,
    IEnumerable<IEdmDirectValueAnnotation> end2Annotations
)
[ExtensionAttribute]
public:
static void SetAssociationSetAnnotations(
    IEdmModel^ model, 
    IEdmEntitySet^ entitySet, 
    IEdmNavigationProperty^ property, 
    IEnumerable<IEdmDirectValueAnnotation^>^ annotations, 
    IEnumerable<IEdmDirectValueAnnotation^>^ end1Annotations, 
    IEnumerable<IEdmDirectValueAnnotation^>^ end2Annotations
)
static member SetAssociationSetAnnotations : 
        model:IEdmModel * 
        entitySet:IEdmEntitySet * 
        property:IEdmNavigationProperty * 
        annotations:IEnumerable<IEdmDirectValueAnnotation> * 
        end1Annotations:IEnumerable<IEdmDirectValueAnnotation> * 
        end2Annotations:IEnumerable<IEdmDirectValueAnnotation> -> unit 
public static function SetAssociationSetAnnotations(
    model : IEdmModel, 
    entitySet : IEdmEntitySet, 
    property : IEdmNavigationProperty, 
    annotations : IEnumerable<IEdmDirectValueAnnotation>, 
    end1Annotations : IEnumerable<IEdmDirectValueAnnotation>, 
    end2Annotations : IEnumerable<IEdmDirectValueAnnotation>
)

Parametri

Nota sull'utilizzo

In Visual Basic e C# questo metodo può essere chiamato come metodo di istanza su qualsiasi oggetto di tipo IEdmModel. Quando si utilizza la sintassi del metodo di istanza per chiamare questo metodo, omettere il primo parametro. Per ulteriori informazioni, vedere https://msdn.microsoft.com/it-it/library/bb384936(v=vs.103) o https://msdn.microsoft.com/it-it/library/bb383977(v=vs.103).

Vedere anche

Riferimento

SerializationExtensionMethods Classe

Spazio dei nomi Microsoft.Data.Edm.Csdl