MetadataWorkspaceExtensions.GetEnd1 Method

Returns the first AssociationEndMember in the AssociationEndMembers property of the specified AssociationType.

Namespace:  Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetEnd1 ( _
    association As AssociationType _
) As AssociationEndMember
'Usage
Dim association As AssociationType
Dim returnValue As AssociationEndMember

returnValue = association.GetEnd1()
public static AssociationEndMember GetEnd1(
    this AssociationType association
)
[ExtensionAttribute]
public:
static AssociationEndMember^ GetEnd1(
    AssociationType^ association
)
public static function GetEnd1(
    association : AssociationType
) : AssociationEndMember

Parameters

Return Value

Type: System.Data.Metadata.Edm.AssociationEndMember
The first AssociationEndMember in the AssociationEndMembers property of the specified AssociationType.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AssociationType. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

The GetEnd1() method is used by the Generate Database Wizard when generating a database from a conceptual model.

Permissions

See Also

Reference

MetadataWorkspaceExtensions Class

MetadataWorkspaceExtensions Members

Microsoft.Data.Entity.Design.DatabaseGeneration Namespace

Other Resources

How to: Generate a Database from a Conceptual Model (Entity Data Model Tools)

Windows Workflow Foundation