The project now uses the new source generator package for the ServerDatabase package. This now allows code to read a full row at a time while using the type safety from the column definitions.
16 lines
420 B
C#
16 lines
420 B
C#
using LuskiServer.Enums;
|
|
using ServerDatabase;
|
|
using ServerDatabase.SourceGenerator;
|
|
|
|
namespace LuskiServer.Classes.TableDef;
|
|
|
|
public static class Logs
|
|
{
|
|
public static TableColumn<long> ID { get; } = new("id", true);
|
|
public static TableColumn<LogType> Type { get; } = new("type");
|
|
public static TableColumn<string> Message { get; } = new("message");
|
|
}
|
|
|
|
[TableRow(typeof(Logs))]
|
|
public partial class LogRow
|
|
{} |