MetadataWorkspaceExtensions.GetStoreType Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Get the StoreType from an EdmMember's EdmType through the DbProviderManifest

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

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "edm")> _
<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)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "edm")]
public static string GetStoreType(
    this EdmMember edmMember,
    DbProviderManifest providerManifest
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"edm")]
[ExtensionAttribute]
public:
static String^ GetStoreType(
    EdmMember^ edmMember, 
    DbProviderManifest^ providerManifest
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "edm")>]
static member GetStoreType : 
        edmMember:EdmMember * 
        providerManifest:DbProviderManifest -> string
public static function GetStoreType(
    edmMember : EdmMember, 
    providerManifest : DbProviderManifest
) : String

Parameters

Return Value

Type: System.String
The StoreType.

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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also

Reference

MetadataWorkspaceExtensions Class

Microsoft.Data.Entity.Design.DatabaseGeneration Namespace