AssociationEndMember.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a read-only AssociationEndMember instance.
public static System.Data.Entity.Core.Metadata.Edm.AssociationEndMember Create (string name, System.Data.Entity.Core.Metadata.Edm.RefType endRefType, System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity multiplicity, System.Data.Entity.Core.Metadata.Edm.OperationAction deleteAction, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * System.Data.Entity.Core.Metadata.Edm.RefType * System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity * System.Data.Entity.Core.Metadata.Edm.OperationAction * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.AssociationEndMember
Public Shared Function Create (name As String, endRefType As RefType, multiplicity As RelationshipMultiplicity, deleteAction As OperationAction, metadataProperties As IEnumerable(Of MetadataProperty)) As AssociationEndMember
Parameters
- name
- String
The name of the association end member.
- endRefType
- RefType
The reference type for the end.
- multiplicity
- RelationshipMultiplicity
The multiplicity of the end.
- deleteAction
- OperationAction
Flag that indicates the delete behavior of the end.
- metadataProperties
- IEnumerable<MetadataProperty>
Metadata properties to be associated with the instance.
Returns
The newly created AssociationEndMember instance.
Exceptions
The specified name is null or empty.
The specified reference type is null.
Applies to
Entity Framework