Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TableAttribute.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.ComponentModel.DataAnnotations.Schema
;
4
5
[AttributeUsage(
AttributeTargets
.Class, AllowMultiple =
false
)]
6
public
class
TableAttribute
:
Attribute
7
{
8
private
string
_schema
;
9
10
public
string
Name
{
get
; }
11
12
public
string
? Schema
13
{
14
get
15
{
16
return
_schema
;
17
}
18
[param: DisallowNull]
19
set
20
{
21
if
(
string
.IsNullOrWhiteSpace(
value
))
22
{
23
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
ArgumentIsNullOrWhitespace
,
"value"
),
"value"
);
24
}
25
_schema
=
value
;
26
}
27
}
28
29
public
TableAttribute
(
string
name)
30
{
31
if
(
string
.IsNullOrWhiteSpace(name))
32
{
33
throw
new
ArgumentException
(
System
.
SR
.
Format
(
System
.
SR
.
ArgumentIsNullOrWhitespace
,
"name"
),
"name"
);
34
}
35
Name
= name;
36
}
37
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Attribute
Definition
Attribute.cs:12
System.ComponentModel.DataAnnotations.Schema.TableAttribute.TableAttribute
TableAttribute(string name)
Definition
TableAttribute.cs:29
System.ComponentModel.DataAnnotations.Schema.TableAttribute.Name
string Name
Definition
TableAttribute.cs:10
System.ComponentModel.DataAnnotations.Schema.TableAttribute._schema
string _schema
Definition
TableAttribute.cs:8
System.ComponentModel.DataAnnotations.Schema.TableAttribute
Definition
TableAttribute.cs:7
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.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.ExceptionArgument.value
@ value
System.AttributeTargets
AttributeTargets
Definition
AttributeTargets.cs:5
System
Definition
BlockingCollection.cs:8
source
System.ComponentModel.Annotations
System.ComponentModel.DataAnnotations.Schema
TableAttribute.cs
Generated by
1.10.0