Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InversePropertyAttribute.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
InversePropertyAttribute
:
Attribute
5
{
6
public
string
Property
{
get
; }
7
8
public
InversePropertyAttribute
(
string
property)
9
{
10
if
(
string
.IsNullOrWhiteSpace(property))
11
{
12
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
ArgumentIsNullOrWhitespace
,
"property"
),
"property"
);
13
}
14
Property
= property;
15
}
16
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute.Property
string Property
Definition
InversePropertyAttribute.cs:6
System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute.InversePropertyAttribute
InversePropertyAttribute(string property)
Definition
InversePropertyAttribute.cs:8
System.ComponentModel.DataAnnotations.Schema.InversePropertyAttribute
Definition
InversePropertyAttribute.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
InversePropertyAttribute.cs
Generated by
1.10.0