EdmRelationshipAttribute 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.
Defines a relationship between two entity types based on an association in the conceptual model.
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public sealed class EdmRelationshipAttribute : Attribute
type EdmRelationshipAttribute = class
inherit Attribute
Public NotInheritable Class EdmRelationshipAttribute
Inherits Attribute
- Inheritance
-
EdmRelationshipAttribute
- Attributes
Constructors
EdmRelationshipAttribute(String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type) |
Creates an instance of the EdmRelationshipAttribute class. |
EdmRelationshipAttribute(String, String, String, RelationshipMultiplicity, Type, String, RelationshipMultiplicity, Type, Boolean) |
Initializes a new instance of the EdmRelationshipAttribute class. |
Properties
IsForeignKey |
Gets a Boolean value that indicates whether the relationship is based on the foreign key value. |
RelationshipName |
Name of the relationship. |
RelationshipNamespaceName |
The namespace for the relationship. |
Role1Multiplicity |
Multiplicity at one end of the relationship. |
Role1Name |
Name of the role at one end of the relationship. |
Role1Type |
Type of the entity at one end of the relationship. |
Role2Multiplicity |
Multiplicity at the other end of the relationship. |
Role2Name |
Name of the role at the other end of the relationship. |
Role2Type |
Type of the entity at the other end of the 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