Share via


MetadataWorkspaceExtensions.GetOnDelete Method

Returns the value of the OnDelete element 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 GetOnDelete ( _
    end As AssociationEndMember _
) As OperationAction
'Usage
Dim end As AssociationEndMember
Dim returnValue As OperationAction

returnValue = end.GetOnDelete()
public static OperationAction GetOnDelete(
    this AssociationEndMember end
)
[ExtensionAttribute]
public:
static OperationAction GetOnDelete(
    AssociationEndMember^ end
)
public static function GetOnDelete(
    end : AssociationEndMember
) : OperationAction

Parameters

Return Value

Type: System.Data.Metadata.Edm.OperationAction
The value of the OnDelete element 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 AssociationEndMember. 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 GetOnDelete() method will return None if the multiplicity of the specified association end is many (*) or if both ends of the association specify OnDelete="Cascade".

The GetOnDelete() 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