MetadataWorkspaceExtensions.ToStoreType-Methode
[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]
Übersetzt einen EDM-Typ unter Berücksichtigung von Facets in einen SQL-Typen. Beachten Sie, dass bestimmte Facets bereits berücksichtigt wurden, als sie vom DbProviderManifest abgerufen wurden (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
Parameter
- property
Typ: System.Data.Entity.Core.Metadata.Edm.EdmProperty
Eine Eigenschaft, aus der der EDM-Typ ermittelt wird.
Rückgabewert
Typ: System.String
Der entsprechende SQL-Typ.
Hinweis zur Verwendung
In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ EdmProperty aufrufen. Bei Verwendung der Syntax für Instanzenmethoden lassen Sie den ersten Parameter aus. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.113) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.113).