tgstation-server 6.12.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.Types.Relay;
4
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}
Represents a database entity.
Definition Entity.cs:11
required long Id
The ID of the Entity.
Definition Entity.cs:16
Entity()
Initializes a new instance of the Entity class.
Definition Entity.cs:21
Entity(long id)
Initializes a new instance of the Entity class.
Definition Entity.cs:30