MetadataWorkspaceExtensions.ToStoreType Method (EdmProperty)

 

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)

[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static string ToStoreType(
	this EdmProperty property
)

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.