MetadataWorkspaceExtensions.GetStoreGeneratedPatternValue Method
Returns the value of the StoreGeneratedPattern annotation or facet of a property in the conceptual or storage model.
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
)
public static function GetStoreGeneratedPatternValue(
property : EdmMember,
targetVersion : Version,
dataSpace : DataSpace
) : StoreGeneratedPattern
Parameters
- property
Type: System.Data.Metadata.Edm.EdmMember
The property that contains the StoreGeneratedPattern facet.
- targetVersion
Type: System.Version
The targeted version of the Entity Framework.
- dataSpace
Type: System.Data.Metadata.Edm.DataSpace
The model (conceptual or storage) in which the specified property exists.
Return Value
Type: System.Data.Metadata.Edm.StoreGeneratedPattern
The value of the StoreGeneratedPattern annotation or facet of a property in the conceptual or storage model.
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
StoreGeneratedPattern is represented as a structural annotation in the conceptual model and as a facet in the storage model.
The GetStoreGeneratedPattern() method is used by the Generate Database Wizard when generating a database from a conceptual model.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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)