-
Notifications
You must be signed in to change notification settings - Fork 40
/
PrimaryKeyAttribute.xml
96 lines (96 loc) · 5.47 KB
/
PrimaryKeyAttribute.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<Type Name="PrimaryKeyAttribute" FullName="Microsoft.EntityFrameworkCore.PrimaryKeyAttribute">
<TypeSignature Language="C#" Value="public sealed class PrimaryKeyAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit PrimaryKeyAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:Microsoft.EntityFrameworkCore.PrimaryKeyAttribute" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class PrimaryKeyAttribute
Inherits Attribute" />
<TypeSignature Language="F#" Value="type PrimaryKeyAttribute = class
 inherit Attribute" />
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore.Abstractions</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.AttributeUsage(System.AttributeTargets.Class)]</AttributeName>
<AttributeName Language="F#">[<System.AttributeUsage(System.AttributeTargets.Class)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>
Specifies a primary key for the entity type mapped to this CLR type.
</summary>
<remarks>
<para>
This attribute can be used for both keys made up of a
single property, and for composite keys made up of multiple properties. <see cref="T:System.ComponentModel.DataAnnotations.KeyAttribute" />
can be used instead for single-property keys, in which case the behavior is identical. If both attributes are used, then
this attribute takes precedence.
</para>
<para>
See <see href="https://aka.ms/efcore-docs-modeling">Modeling entity types and relationships</see> for more information and
examples.
</para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public PrimaryKeyAttribute (string propertyName, params string[] additionalPropertyNames);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string propertyName, string[] additionalPropertyNames) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.EntityFrameworkCore.PrimaryKeyAttribute.#ctor(System.String,System.String[])" />
<MemberSignature Language="VB.NET" Value="Public Sub New (propertyName As String, ParamArray additionalPropertyNames As String())" />
<MemberSignature Language="F#" Value="new Microsoft.EntityFrameworkCore.PrimaryKeyAttribute : string * string[] -> Microsoft.EntityFrameworkCore.PrimaryKeyAttribute" Usage="new Microsoft.EntityFrameworkCore.PrimaryKeyAttribute (propertyName, additionalPropertyNames)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore.Abstractions</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="propertyName" Type="System.String" />
<Parameter Name="additionalPropertyNames" Type="System.String[]">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ParamArray]</AttributeName>
<AttributeName Language="F#">[<System.ParamArray>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="propertyName">The first (or only) property in the primary key.</param>
<param name="additionalPropertyNames">The additional properties which constitute the primary key, if any, in order.</param>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.EntityFrameworkCore.PrimaryKeyAttribute" /> class.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PropertyNames">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IReadOnlyList<string> PropertyNames { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IReadOnlyList`1<string> PropertyNames" />
<MemberSignature Language="DocId" Value="P:Microsoft.EntityFrameworkCore.PrimaryKeyAttribute.PropertyNames" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property PropertyNames As IReadOnlyList(Of String)" />
<MemberSignature Language="F#" Value="member this.PropertyNames : System.Collections.Generic.IReadOnlyList<string>" Usage="Microsoft.EntityFrameworkCore.PrimaryKeyAttribute.PropertyNames" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.EntityFrameworkCore.Abstractions</AssemblyName>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IReadOnlyList<System.String></ReturnType>
</ReturnValue>
<Docs>
<summary>
The properties which constitute the primary key, in order.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>