Share via


MetadataWorkspaceExtensions.GetStoreType Method

Returns the storage type that corresponds to the specified EdmMember by examining the specified DbProviderManifest.

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 GetStoreType ( _
    edmMember As EdmMember, _
    providerManifest As DbProviderManifest _
) As String
'Usage
Dim edmMember As EdmMember
Dim providerManifest As DbProviderManifest
Dim returnValue As String

returnValue = edmMember.GetStoreType(providerManifest)
public static string GetStoreType(
    this EdmMember edmMember,
    DbProviderManifest providerManifest
)
[ExtensionAttribute]
public:
static String^ GetStoreType(
    EdmMember^ edmMember, 
    DbProviderManifest^ providerManifest
)
public static function GetStoreType(
    edmMember : EdmMember, 
    providerManifest : DbProviderManifest
) : String

Parameters

Return Value

Type: System.String
The storage type that corresponds to the specified EdmMember.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EdmMember. 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 GetStoreType() method returns the storage type that corresponds to the specified EdmMember by calling the GetStoreType method of the specified DbProviderManifest.

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