AssociationEndMember.Create Method (String, RefType, RelationshipMultiplicity, OperationAction, IEnumerable<MetadataProperty>)

 

Creates a read-only AssociationEndMember instance.

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

public static AssociationEndMember Create(
	string name,
	RefType endRefType,
	RelationshipMultiplicity multiplicity,
	OperationAction deleteAction,
	IEnumerable<MetadataProperty> metadataProperties
)

Parameters

name
Type: System.String

The name of the association end member.

endRefType
Type: System.Data.Entity.Core.Metadata.Edm.RefType

The reference type for the end.

multiplicity
Type: System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity

The multiplicity of the end.

deleteAction
Type: System.Data.Entity.Core.Metadata.Edm.OperationAction

Flag that indicates the delete behavior of the end.

metadataProperties
Type: System.Collections.Generic.IEnumerable<MetadataProperty>

Metadata properties to be associated with the instance.

Return Value

Type: System.Data.Entity.Core.Metadata.Edm.AssociationEndMember

The newly created AssociationEndMember instance.

Exception Condition
ArgumentException

The specified name is null or empty.

ArgumentNullException

The specified reference type is null.