Share via


MetadataWorkspaceExtensions.ToStoreType Method

Translates the conceptual model data type of the specified property to a SQL Server data type.

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 ToStoreType ( _
    property As EdmProperty _
) As String
'Usage
Dim property As EdmProperty
Dim returnValue As String

returnValue = property.ToStoreType()
public static string ToStoreType(
    this EdmProperty property
)
[ExtensionAttribute]
public:
static String^ ToStoreType(
    EdmProperty^ property
)
public static function ToStoreType(
    property : EdmProperty
) : String

Parameters

Return Value

Type: System.String
The name of the SQL Server data type that corresponds to the conceptual model data type of the specified property.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EdmProperty. 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 ToStoreType() 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