Share via


SerializationExtensionMethods.SetAssociationSetName Method

Sets the name used for the association set serialized for a navigation property of an entity set.

Namespace:  Microsoft.Data.Edm.Csdl
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetAssociationSetName ( _
    model As IEdmModel, _
    entitySet As IEdmEntitySet, _
    property As IEdmNavigationProperty, _
    associationSet As String _
)
'Usage
Dim model As IEdmModel 
Dim entitySet As IEdmEntitySet 
Dim property As IEdmNavigationProperty 
Dim associationSet As String 

model.SetAssociationSetName(entitySet, _
    property, associationSet)
public static void SetAssociationSetName(
    this IEdmModel model,
    IEdmEntitySet entitySet,
    IEdmNavigationProperty property,
    string associationSet
)
[ExtensionAttribute]
public:
static void SetAssociationSetName(
    IEdmModel^ model, 
    IEdmEntitySet^ entitySet, 
    IEdmNavigationProperty^ property, 
    String^ associationSet
)
static member SetAssociationSetName : 
        model:IEdmModel * 
        entitySet:IEdmEntitySet * 
        property:IEdmNavigationProperty * 
        associationSet:string -> unit
public static function SetAssociationSetName(
    model : IEdmModel, 
    entitySet : IEdmEntitySet, 
    property : IEdmNavigationProperty, 
    associationSet : String
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

SerializationExtensionMethods Class

Microsoft.Data.Edm.Csdl Namespace