tgstation-server 6.19.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Entity.cs
Go to the documentation of this file.
1using System.Diagnostics.CodeAnalysis;
2
3using HotChocolate.Data;
4using HotChocolate.Types.Relay;
5
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}
Represents a database entity.
Definition Entity.cs:12
required long Id
The ID of the Entity.
Definition Entity.cs:18
Entity()
Initializes a new instance of the Entity class.
Definition Entity.cs:23
Entity(long id)
Initializes a new instance of the Entity class.
Definition Entity.cs:32