Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Data.Entity / System / Data / Objects / DataClasses / EdmRelationshipNavigationPropertyAttribute.cs
blob3ce5465541b56c235a1a0a0a6592e3de2853d6da
1 //---------------------------------------------------------------------
2 // <copyright file="EdmRelationshipNavigationPropertyAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 //
6 // @owner Microsoft
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
9 using System;
11 namespace System.Data.Objects.DataClasses
13 /// <summary>
14 /// Attribute identifying the Ends defined for a RelationshipSet
15 /// Implied default AttributeUsage properties Inherited=True, AllowMultiple=False,
16 /// The metadata system expects this and will only look at the first of each of these attributes, even if there are more.
17 /// </summary>
18 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
19 [AttributeUsage(AttributeTargets.Property)]
20 public sealed class EdmRelationshipNavigationPropertyAttribute : EdmPropertyAttribute
22 private string _relationshipNamespaceName;
23 private string _relationshipName;
24 private string _targetRoleName;
26 /// <summary>
27 /// Attribute identifying the Ends defined for a RelationshipSet
28 /// </summary>
29 public EdmRelationshipNavigationPropertyAttribute(string relationshipNamespaceName, string relationshipName, string targetRoleName)
31 _relationshipNamespaceName = relationshipNamespaceName;
32 _relationshipName = relationshipName;
33 _targetRoleName = targetRoleName;
36 /// <summary>
37 /// the namespace name of the relationship
38 /// </summary>
39 public string RelationshipNamespaceName
41 get { return _relationshipNamespaceName; }
44 /// <summary>
45 /// the relationship name
46 /// </summary>
47 public string RelationshipName
49 get { return _relationshipName; }
52 /// <summary>
53 /// the target role name
54 /// </summary>
55 public string TargetRoleName
57 get { return _targetRoleName; }