Share via


SerializationExtensionMethods.SetAssociationName Method

Sets the name used for the association serialized for a navigation property.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetAssociationName ( _
    model As IEdmModel, _
    property As IEdmNavigationProperty, _
    associationName As String _
)
'Usage
Dim model As IEdmModel 
Dim property As IEdmNavigationProperty 
Dim associationName As String 

model.SetAssociationName(property, _
    associationName)
public static void SetAssociationName(
    this IEdmModel model,
    IEdmNavigationProperty property,
    string associationName
)
[ExtensionAttribute]
public:
static void SetAssociationName(
    IEdmModel^ model, 
    IEdmNavigationProperty^ property, 
    String^ associationName
)
static member SetAssociationName : 
        model:IEdmModel * 
        property:IEdmNavigationProperty * 
        associationName:string -> unit
public static function SetAssociationName(
    model : IEdmModel, 
    property : IEdmNavigationProperty, 
    associationName : 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