tgstation-server
6.12.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.Types.Relay;
4
5
namespace
Tgstation.Server.Host.GraphQL.Types
6
{
10
public
abstract
class
Entity
11
{
15
[ID]
16
public
required
long
Id
{
get
; init; }
17
21
protected
Entity
()
22
{
23
}
24
29
[SetsRequiredMembers]
30
protected
Entity
(
long
id
)
31
{
32
Id
= id;
33
}
34
}
35
}
Tgstation.Server.Host.GraphQL.Types.Entity
Represents a database entity.
Definition
Entity.cs:11
Tgstation.Server.Host.GraphQL.Types.Entity.Id
required long Id
The ID of the Entity.
Definition
Entity.cs:16
Tgstation.Server.Host.GraphQL.Types.Entity.Entity
Entity()
Initializes a new instance of the Entity class.
Definition
Entity.cs:21
Tgstation.Server.Host.GraphQL.Types.Entity.Entity
Entity(long id)
Initializes a new instance of the Entity class.
Definition
Entity.cs:30
Tgstation.Server.Host.GraphQL.Types
Definition
Entity.cs:6
Generated by
1.9.8