Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ForeignKeyAttribute.cs
Go to the documentation of this file.
1
namespace
System.ComponentModel.DataAnnotations.Schema
;
2
3
[AttributeUsage(
AttributeTargets
.Property |
AttributeTargets
.Field, AllowMultiple =
false
)]
4
public
class
ForeignKeyAttribute
:
Attribute
5
{
6
public
string
Name
{
get
; }
7
8
public
ForeignKeyAttribute
(
string
name)
9
{
10
if
(
string
.IsNullOrWhiteSpace(name))
11
{
12
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
ArgumentIsNullOrWhitespace
,
"name"
),
"name"
);
13
}
14
Name
= name;
15
}
16
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute.ForeignKeyAttribute
ForeignKeyAttribute(string name)
Definition
ForeignKeyAttribute.cs:8
System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute.Name
string Name
Definition
ForeignKeyAttribute.cs:6
System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute
Definition
ForeignKeyAttribute.cs:5
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:118
System.SR.ArgumentIsNullOrWhitespace
static string ArgumentIsNullOrWhitespace
Definition
SR.cs:14
System.SR
Definition
SR.cs:7
System.ComponentModel.DataAnnotations.Schema
Definition
ColumnAttribute.cs:3
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
System
Definition
BlockingCollection.cs:8
source
System.ComponentModel.Annotations
System.ComponentModel.DataAnnotations.Schema
ForeignKeyAttribute.cs
Generated by
1.10.0