Freigeben über


EdmExtension.CreateAndValidateEdmItemCollection-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.]

Konvertiert eine Zeichenfolgendarstellung der konzeptionellen Schemadefinitionssprache (CSDL) in eine EdmItemCollection und überprüft sie.

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

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "Edm")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "csdl")> _
Public Shared Function CreateAndValidateEdmItemCollection ( _
    csdl As String, _
    targetFrameworkVersion As Version _
) As EdmItemCollection
'Usage
Dim csdl As String 
Dim targetFrameworkVersion As Version 
Dim returnValue As EdmItemCollection 

returnValue = EdmExtension.CreateAndValidateEdmItemCollection(csdl, _
    targetFrameworkVersion)
[SuppressMessageAttribute("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")]
public static EdmItemCollection CreateAndValidateEdmItemCollection(
    string csdl,
    Version targetFrameworkVersion
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2202:Do not dispose objects multiple times")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"Edm")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"csdl")]
public:
static EdmItemCollection^ CreateAndValidateEdmItemCollection(
    String^ csdl, 
    Version^ targetFrameworkVersion
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "csdl")>]
static member CreateAndValidateEdmItemCollection : 
        csdl:string * 
        targetFrameworkVersion:Version -> EdmItemCollection
public static function CreateAndValidateEdmItemCollection(
    csdl : String, 
    targetFrameworkVersion : Version
) : EdmItemCollection

Parameter

  • csdl
    Typ: System.String
    Metadaten des konzeptionellen Modells als Zeichenfolge.
  • targetFrameworkVersion
    Typ: System.Version
    Die Zielversion des Entity Framework.

Rückgabewert

Typ: System.Data.Entity.Core.Metadata.Edm.EdmItemCollection
CSDL als EdmItemCollection.

Siehe auch

Verweis

EdmExtension Klasse

Microsoft.Data.Entity.Design.DatabaseGeneration-Namespace