From 1180aa2bb4432540abb485d3d378bc80a92f032f Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Mon, 8 Jun 2020 23:54:25 +0200 Subject: [PATCH] use right datatype --- ChaosBot/Database/Entity/Raffle.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChaosBot/Database/Entity/Raffle.cs b/ChaosBot/Database/Entity/Raffle.cs index 399de4f..c61e338 100644 --- a/ChaosBot/Database/Entity/Raffle.cs +++ b/ChaosBot/Database/Entity/Raffle.cs @@ -11,7 +11,7 @@ namespace ChaosBot.Database.Entity [DBAutoIncrement] [DBNotNull] [DBUnique] - public Nullable id { get; private set; } + public Nullable id { get; private set; } public long userId { get; private set; } public long guildId { get; private set; } @@ -37,7 +37,7 @@ namespace ChaosBot.Database.Entity public override void SetFromRow(DataRow row) { - id = (int)row["id"]; + id = (long)row["id"]; userId = (long)row["userid"]; guildId = (long) row["guildid"]; }