Share via


MetadataWorkspaceExtensions.InferSsdlFacetsForCsdlProperty-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.]

Leitet SSDL-Facets aus einer CSDL-Eigenschaft ab

Namespace:  Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly:  Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)

Syntax

'Declaration
<ExtensionAttribute> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "csdl")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Csdl")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Ssdl")> _
Public Shared Function InferSsdlFacetsForCsdlProperty ( _
    csdlProperty As EdmProperty, _
    providerManifest As DbProviderManifest _
) As IEnumerable(Of Facet)
'Usage
Dim csdlProperty As EdmProperty 
Dim providerManifest As DbProviderManifest 
Dim returnValue As IEnumerable(Of Facet)

returnValue = csdlProperty.InferSsdlFacetsForCsdlProperty(providerManifest)
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")]
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Csdl")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ssdl")]
public static IEnumerable<Facet> InferSsdlFacetsForCsdlProperty(
    this EdmProperty csdlProperty,
    DbProviderManifest providerManifest
)
[ExtensionAttribute]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"csdl")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Csdl")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Ssdl")]
public:
static IEnumerable<Facet^>^ InferSsdlFacetsForCsdlProperty(
    EdmProperty^ csdlProperty, 
    DbProviderManifest^ providerManifest
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Csdl")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ssdl")>]
static member InferSsdlFacetsForCsdlProperty : 
        csdlProperty:EdmProperty * 
        providerManifest:DbProviderManifest -> IEnumerable<Facet> 
public static function InferSsdlFacetsForCsdlProperty(
    csdlProperty : EdmProperty, 
    providerManifest : DbProviderManifest
) : IEnumerable<Facet>

Parameter

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<Facet>
Die Liste der Facets.

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).

Siehe auch

Verweis

MetadataWorkspaceExtensions Klasse

Microsoft.Data.Entity.Design.DatabaseGeneration-Namespace