Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
283 lines (279 sloc) 17.3 KB
<Type Name="AssociationAttribute" FullName="System.ComponentModel.DataAnnotations.AssociationAttribute">
<TypeSignature Language="C#" Value="public sealed class AssociationAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AssociationAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:System.ComponentModel.DataAnnotations.AssociationAttribute" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class AssociationAttribute&#xA;Inherits Attribute" />
<TypeSignature Language="C++ CLI" Value="public ref class AssociationAttribute sealed : Attribute" />
<TypeSignature Language="F#" Value="type AssociationAttribute = class&#xA; inherit Attribute" />
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;dotnet-uwp-10.0">
<AttributeName>System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netcore-1.0;netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;dotnet-uwp-10.0;netcore-3.0">
<AttributeName>System.Obsolete("This attribute is no longer in use and will be ignored if applied.")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="xamarinandroid-7.1;xamarinios-10.8;netcore-1.0;netcore-1.1;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;xamarinmac-3.0;netcore-3.0">
<AttributeName>System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field, AllowMultiple=false, Inherited=true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Specifies that an entity member represents a data relationship, such as a foreign key relationship.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public AssociationAttribute (string name, string thisKey, string otherKey);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name, string thisKey, string otherKey) cil managed" />
<MemberSignature Language="DocId" Value="M:System.ComponentModel.DataAnnotations.AssociationAttribute.#ctor(System.String,System.String,System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (name As String, thisKey As String, otherKey As String)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; AssociationAttribute(System::String ^ name, System::String ^ thisKey, System::String ^ otherKey);" />
<MemberSignature Language="F#" Value="new System.ComponentModel.DataAnnotations.AssociationAttribute : string * string * string -&gt; System.ComponentModel.DataAnnotations.AssociationAttribute" Usage="new System.ComponentModel.DataAnnotations.AssociationAttribute (name, thisKey, otherKey)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="name" Type="System.String" />
<Parameter Name="thisKey" Type="System.String" />
<Parameter Name="otherKey" Type="System.String" />
</Parameters>
<Docs>
<param name="name">The name of the association.</param>
<param name="thisKey">A comma-separated list of the property names of the key values on the <paramref name="thisKey" /> side of the association.</param>
<param name="otherKey">A comma-separated list of the property names of the key values on the <paramref name="otherKey" /> side of the association.</param>
<summary>Initializes a new instance of the <see cref="T:System.ComponentModel.DataAnnotations.AssociationAttribute" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the association is bi-directional, the name must be the same on both sides of the association.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="IsForeignKey">
<MemberSignature Language="C#" Value="public bool IsForeignKey { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsForeignKey" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.DataAnnotations.AssociationAttribute.IsForeignKey" />
<MemberSignature Language="VB.NET" Value="Public Property IsForeignKey As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsForeignKey { bool get(); void set(bool value); };" />
<MemberSignature Language="F#" Value="member this.IsForeignKey : bool with get, set" Usage="System.ComponentModel.DataAnnotations.AssociationAttribute.IsForeignKey" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value that indicates whether the association member represents a foreign key.</summary>
<value>
<see langword="true" /> if the association represents a foreign key; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Name">
<MemberSignature Language="C#" Value="public string Name { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Name" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.DataAnnotations.AssociationAttribute.Name" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Name As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::String ^ Name { System::String ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Name : string" Usage="System.ComponentModel.DataAnnotations.AssociationAttribute.Name" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the name of the association.</summary>
<value>The name of the association.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the association is bi-directional, the name must be the same on both sides of the association.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="OtherKey">
<MemberSignature Language="C#" Value="public string OtherKey { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string OtherKey" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKey" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property OtherKey As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::String ^ OtherKey { System::String ^ get(); };" />
<MemberSignature Language="F#" Value="member this.OtherKey : string" Usage="System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKey" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the property names of the key values on the OtherKey side of the association.</summary>
<value>A comma-separated list of the property names that represent the key values on the OtherKey side of the association.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OtherKeyMembers">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable&lt;string&gt; OtherKeyMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IEnumerable`1&lt;string&gt; OtherKeyMembers" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKeyMembers" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property OtherKeyMembers As IEnumerable(Of String)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Collections::Generic::IEnumerable&lt;System::String ^&gt; ^ OtherKeyMembers { System::Collections::Generic::IEnumerable&lt;System::String ^&gt; ^ get(); };" />
<MemberSignature Language="F#" Value="member this.OtherKeyMembers : seq&lt;string&gt;" Usage="System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKeyMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable&lt;System.String&gt;</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of individual key members that are specified in the <see cref="P:System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKey" /> property.</summary>
<value>A collection of individual key members that are specified in the <see cref="P:System.ComponentModel.DataAnnotations.AssociationAttribute.OtherKey" /> property.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ThisKey">
<MemberSignature Language="C#" Value="public string ThisKey { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ThisKey" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKey" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ThisKey As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::String ^ ThisKey { System::String ^ get(); };" />
<MemberSignature Language="F#" Value="member this.ThisKey : string" Usage="System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKey" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the property names of the key values on the ThisKey side of the association.</summary>
<value>A comma-separated list of the property names that represent the key values on the ThisKey side of the association.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ThisKeyMembers">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable&lt;string&gt; ThisKeyMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IEnumerable`1&lt;string&gt; ThisKeyMembers" />
<MemberSignature Language="DocId" Value="P:System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKeyMembers" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ThisKeyMembers As IEnumerable(Of String)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Collections::Generic::IEnumerable&lt;System::String ^&gt; ^ ThisKeyMembers { System::Collections::Generic::IEnumerable&lt;System::String ^&gt; ^ get(); };" />
<MemberSignature Language="F#" Value="member this.ThisKeyMembers : seq&lt;string&gt;" Usage="System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKeyMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.Annotations</AssemblyName>
<AssemblyVersion>4.0.10.0</AssemblyVersion>
<AssemblyVersion>4.1.0.0</AssemblyVersion>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.ComponentModel.DataAnnotations</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable&lt;System.String&gt;</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a collection of individual key members that are specified in the <see cref="P:System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKey" /> property.</summary>
<value>A collection of individual key members that are specified in the <see cref="P:System.ComponentModel.DataAnnotations.AssociationAttribute.ThisKey" /> property.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.