AssociationType Class
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.
Describes an association/relationship between two entities in the conceptual model or a foreign key relationship between two tables in the store model. In the conceptual model the dependant class may or may not define a foreign key property. If a foreign key is defined the IsForeignKey property will be true and the Constraint property will contain details of the foreign keys
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")]
public class AssociationType : System.Data.Entity.Core.Metadata.Edm.RelationshipType
type AssociationType = class
inherit RelationshipType
Public Class AssociationType
Inherits RelationshipType
- Inheritance
-
AssociationType
- Attributes
Properties
Abstract |
Gets a value indicating whether this type is abstract or not. (Inherited from EdmType) |
AssociationEndMembers |
Gets the list of ends for this AssociationType. |
BaseType |
Gets the base type of this type. (Inherited from EdmType) |
BuiltInTypeKind |
Gets the built-in type kind for this AssociationType. |
Constraint |
Gets or sets the referential constraint. |
Documentation |
Gets or sets the documentation associated with this type. (Inherited from MetadataItem) |
FullName |
Gets the full name of this type. (Inherited from EdmType) |
IsForeignKey |
Gets the Boolean property value that specifies whether the column is a foreign key. |
KeyMembers |
Gets the list of all the key members for the current entity or relationship type. (Inherited from EntityTypeBase) |
KeyProperties |
Gets the list of all the key properties for this entity type. (Inherited from EntityTypeBase) |
Members |
Gets the list of members on this type. (Inherited from StructuralType) |
MetadataProperties |
Gets the list of properties of the current type. (Inherited from MetadataItem) |
Name |
Gets the name of this type. (Inherited from EdmType) |
NamespaceName |
Gets the namespace of this type. (Inherited from EdmType) |
ReferentialConstraints |
Gets the list of constraints for this AssociationType. |
RelationshipEndMembers |
Gets the list of ends for this relationship type. (Inherited from RelationshipType) |
Methods
AddAnnotation(String, Object) |
Adds or updates an annotation with the specified name and value. (Inherited from MetadataItem) |
AddKeyMember(EdmMember) |
Adds the specified property to the list of keys for the current entity. (Inherited from EntityTypeBase) |
AddMember(EdmMember) |
Adds a member to this type (Inherited from StructuralType) |
Create(String, String, Boolean, DataSpace, AssociationEndMember, AssociationEndMember, ReferentialConstraint, IEnumerable<MetadataProperty>) |
Creates a read-only AssociationType instance from the specified parameters. |
GetCollectionType() |
Returns an instance of the CollectionType whose element type is this type. (Inherited from EdmType) |
RemoveAnnotation(String) |
Removes an annotation with the specified name. (Inherited from MetadataItem) |
RemoveMember(EdmMember) |
Removes the specified key member from the collection. (Inherited from EntityTypeBase) |
ToString() |
Returns the full name of this type. (Inherited from EdmType) |
Extension Methods
Navigate(RelationshipType, String, String, DbExpression) |
Creates a new DbRelationshipNavigationExpression representing the navigation of a composition or association relationship. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for