tgstation-server
6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
GraphQL
Types
Entity.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis;
2
3
using
HotChocolate.Data;
4
using
HotChocolate.Types.Relay;
5
6
namespace
Tgstation.Server.Host.GraphQL.Types
7
{
11
public
abstract
class
Entity
12
{
16
[ID]
17
[IsProjected(
true
)]
18
public
required
long
Id
{
get
;
set
; }
19
23
protected
Entity
()
24
{
25
}
26
31
[SetsRequiredMembers]
32
protected
Entity
(
long
id
)
33
{
34
Id
= id;
35
}
36
}
37
}
Tgstation.Server.Host.GraphQL.Types.Entity
Represents a database entity.
Definition
Entity.cs:12
Tgstation.Server.Host.GraphQL.Types.Entity.Id
required long Id
The ID of the Entity.
Definition
Entity.cs:18
Tgstation.Server.Host.GraphQL.Types.Entity.Entity
Entity()
Initializes a new instance of the Entity class.
Definition
Entity.cs:23
Tgstation.Server.Host.GraphQL.Types.Entity.Entity
Entity(long id)
Initializes a new instance of the Entity class.
Definition
Entity.cs:32
Tgstation.Server.Host.GraphQL.Types
Definition
ChatBot.cs:9
Generated by
1.9.8