MetadataWorkspaceExtensions.GetStoreGeneratedPatternValue 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.]

Obtains the StoreGeneratedPattern value of an EdmProperty, given a target version and DataSpace

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 GetStoreGeneratedPatternValue ( _
    property As EdmMember, _
    targetVersion As Version, _
    dataSpace As DataSpace _
) As StoreGeneratedPattern
'Usage
Dim property As EdmMember 
Dim targetVersion As Version 
Dim dataSpace As DataSpace 
Dim returnValue As StoreGeneratedPattern 

returnValue = property.GetStoreGeneratedPatternValue(targetVersion, _
    dataSpace)
public static StoreGeneratedPattern GetStoreGeneratedPatternValue(
    this EdmMember property,
    Version targetVersion,
    DataSpace dataSpace
)
[ExtensionAttribute]
public:
static StoreGeneratedPattern GetStoreGeneratedPatternValue(
    EdmMember^ property, 
    Version^ targetVersion, 
    DataSpace dataSpace
)
static member GetStoreGeneratedPatternValue : 
        property:EdmMember * 
        targetVersion:Version * 
        dataSpace:DataSpace -> StoreGeneratedPattern
public static function GetStoreGeneratedPatternValue(
    property : EdmMember, 
    targetVersion : Version, 
    dataSpace : DataSpace
) : StoreGeneratedPattern

Parameters

  • targetVersion
    Type: System.Version
    Used to correctly look up the StoreGeneratedPattern value in the EdmProperty

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.StoreGeneratedPattern
One of the StoreGeneratedPattern values, or String.Empty if the attribute or value does not exist

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