Freigeben über


EdmExtension.CreateStoreItemCollection-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 Datenspeicherschema-Definitionssprache (SSDL) in eine StoreItemCollection.

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 := "ssdl")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId := "3#")> _
<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId := "edm")> _
Public Shared Function CreateStoreItemCollection ( _
    ssdl As String, _
    targetFrameworkVersion As Version, _
    resolver As IDbDependencyResolver, _
    <OutAttribute> ByRef edmErrors As IList(Of EdmSchemaError) _
) As StoreItemCollection
'Usage
Dim ssdl As String 
Dim targetFrameworkVersion As Version 
Dim resolver As IDbDependencyResolver 
Dim edmErrors As IList(Of EdmSchemaError)
Dim returnValue As StoreItemCollection 

returnValue = EdmExtension.CreateStoreItemCollection(ssdl, _
    targetFrameworkVersion, resolver, _
    edmErrors)
[SuppressMessageAttribute("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "ssdl")]
[SuppressMessageAttribute("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "3#")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "edm")]
public static StoreItemCollection CreateStoreItemCollection(
    string ssdl,
    Version targetFrameworkVersion,
    IDbDependencyResolver resolver,
    out IList<EdmSchemaError> edmErrors
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2202:Do not dispose objects multiple times")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"ssdl")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1021:AvoidOutParameters", MessageId = L"3#")]
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = L"edm")]
public:
static StoreItemCollection^ CreateStoreItemCollection(
    String^ ssdl, 
    Version^ targetFrameworkVersion, 
    IDbDependencyResolver^ resolver, 
    [OutAttribute] IList<EdmSchemaError^>^% edmErrors
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "ssdl")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "3#")>]
[<SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "edm")>]
static member CreateStoreItemCollection : 
        ssdl:string * 
        targetFrameworkVersion:Version * 
        resolver:IDbDependencyResolver * 
        edmErrors:IList<EdmSchemaError> byref -> StoreItemCollection
public static function CreateStoreItemCollection(
    ssdl : String, 
    targetFrameworkVersion : Version, 
    resolver : IDbDependencyResolver, 
    edmErrors : IList<EdmSchemaError>
) : StoreItemCollection

Parameter

  • targetFrameworkVersion
    Typ: System.Version
    Die Zielversion des Entity Framework.

Rückgabewert

Typ: System.Data.Entity.Core.Metadata.Edm.StoreItemCollection
SSDL als StoreItemCollection.

Siehe auch

Verweis

EdmExtension Klasse

Microsoft.Data.Entity.Design.DatabaseGeneration-Namespace