MetadataWorkspaceExtensions.GetOtherEnd Method
Returns the other association End for the specified association End.
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 GetOtherEnd ( _
assoc As AssociationType, _
end As AssociationEndMember _
) As AssociationEndMember
'Usage
Dim assoc As AssociationType
Dim end As AssociationEndMember
Dim returnValue As AssociationEndMember
returnValue = assoc.GetOtherEnd(end)
public static AssociationEndMember GetOtherEnd(
this AssociationType assoc,
AssociationEndMember end
)
[ExtensionAttribute]
public:
static AssociationEndMember^ GetOtherEnd(
AssociationType^ assoc,
AssociationEndMember^ end
)
public static function GetOtherEnd(
assoc : AssociationType,
end : AssociationEndMember
) : AssociationEndMember
Parameters
- assoc
Type: System.Data.Metadata.Edm.AssociationType
The association that is traversed.
- end
Type: System.Data.Metadata.Edm.AssociationEndMember
One end of the specified association.
Return Value
Type: System.Data.Metadata.Edm.AssociationEndMember
The other association End for the specified association End.
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 GetOtherEnd() method is used by the Generate Database Wizard when generating a database from a conceptual model.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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)