Freigeben über


AssociationEndMember.Create-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.]

Erstellt eine schreibgeschützte AssociationEndMember-Instanz.

Namespace:  System.Data.Entity.Core.Metadata.Edm
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Shared Function Create ( _
    name As String, _
    endRefType As RefType, _
    multiplicity As RelationshipMultiplicity, _
    deleteAction As OperationAction, _
    metadataProperties As IEnumerable(Of MetadataProperty) _
) As AssociationEndMember
'Usage
Dim name As String 
Dim endRefType As RefType 
Dim multiplicity As RelationshipMultiplicity 
Dim deleteAction As OperationAction 
Dim metadataProperties As IEnumerable(Of MetadataProperty)
Dim returnValue As AssociationEndMember 

returnValue = AssociationEndMember.Create(name, endRefType, _
    multiplicity, deleteAction, metadataProperties)
public static AssociationEndMember Create(
    string name,
    RefType endRefType,
    RelationshipMultiplicity multiplicity,
    OperationAction deleteAction,
    IEnumerable<MetadataProperty> metadataProperties
)
public:
static AssociationEndMember^ Create(
    String^ name, 
    RefType^ endRefType, 
    RelationshipMultiplicity multiplicity, 
    OperationAction deleteAction, 
    IEnumerable<MetadataProperty^>^ metadataProperties
)
static member Create : 
        name:string * 
        endRefType:RefType * 
        multiplicity:RelationshipMultiplicity * 
        deleteAction:OperationAction * 
        metadataProperties:IEnumerable<MetadataProperty> -> AssociationEndMember
public static function Create(
    name : String, 
    endRefType : RefType, 
    multiplicity : RelationshipMultiplicity, 
    deleteAction : OperationAction, 
    metadataProperties : IEnumerable<MetadataProperty>
) : AssociationEndMember

Parameter

  • name
    Typ: System.String
    Der Name des Endes des Zuordnungsendelements.

Rückgabewert

Typ: System.Data.Entity.Core.Metadata.Edm.AssociationEndMember
Die neu erstellte AssociationEndMember-Instanz.

Ausnahmen

Ausnahme Bedingung
ArgumentException

Der angegebene Name ist NULL oder leer.

ArgumentNullException

Der angegebene Verweistyp ist NULL.

Siehe auch

Verweis

AssociationEndMember Klasse

System.Data.Entity.Core.Metadata.Edm-Namespace