MetadataWorkspaceExtensions.GetNamespace Method (ItemCollection)

 

Retrieves the namespace of this ItemCollection by examining the first-found StructuralType

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

public static string GetNamespace(
	this ItemCollection itemCollection
)

Parameters

itemCollection
Type: System.Data.Entity.Core.Metadata.Edm.ItemCollection

The ItemCollection.

Return Value

Type: System.String

The namespace as a string, or null if there are no StructuralTypes to retrieve the namespace