MetadataWorkspaceExtensions.GetStoreGeneratedPatternValue Method (EdmMember, Version, DataSpace)

 

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)

public static StoreGeneratedPattern GetStoreGeneratedPatternValue(
	this EdmMember property,
	Version targetVersion,
	DataSpace dataSpace
)

Parameters

property
Type: System.Data.Entity.Core.Metadata.Edm.EdmMember

The EdmProperty.

targetVersion
Type: System.Version

Used to correctly look up the StoreGeneratedPattern value in the EdmProperty

dataSpace
Type: System.Data.Entity.Core.Metadata.Edm.DataSpace

DataSpace where the EdmProperty lives (either CSDL or SSDL)

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