Share via


MetadataWorkspaceExtensions.GetAllReferentialConstraints Method

Returns an enumerable collection of all ReferentialConstraint objects in the specified StoreItemCollection.

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 GetAllReferentialConstraints ( _
    storeItemCollection As StoreItemCollection _
) As IEnumerable(Of ReferentialConstraint)
'Usage
Dim storeItemCollection As StoreItemCollection
Dim returnValue As IEnumerable(Of ReferentialConstraint)

returnValue = storeItemCollection.GetAllReferentialConstraints()
public static IEnumerable<ReferentialConstraint> GetAllReferentialConstraints(
    this StoreItemCollection storeItemCollection
)
[ExtensionAttribute]
public:
static IEnumerable<ReferentialConstraint^>^ GetAllReferentialConstraints(
    StoreItemCollection^ storeItemCollection
)
public static function GetAllReferentialConstraints(
    storeItemCollection : StoreItemCollection
) : IEnumerable<ReferentialConstraint>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ReferentialConstraint>
An enumerable collection of all ReferentialConstraint objects in the specified StoreItemCollection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StoreItemCollection. 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 GetAllReferentialConstraints() 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