MetadataWorkspaceExtensions.ToStoreType 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.]
Translate an EDM Type to a SQL type, taking into account facets. Note that certain facets were already taken into account when we obtained them from the DbProviderManifest (FixedLength, Unicode)
Namespace: Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Syntax
'Declaration
<ExtensionAttribute> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
Public Shared Function ToStoreType ( _
property As EdmProperty _
) As String
'Usage
Dim property As EdmProperty
Dim returnValue As String
returnValue = property.ToStoreType()
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static string ToStoreType(
this EdmProperty property
)
[ExtensionAttribute]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
public:
static String^ ToStoreType(
EdmProperty^ property
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
static member ToStoreType :
property:EdmProperty -> string
public static function ToStoreType(
property : EdmProperty
) : String
Parameters
- property
Type: System.Data.Entity.Core.Metadata.Edm.EdmProperty
A property from which to determine the EDM Type.
Return Value
Type: System.String
The corresponding SQL type.
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).