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"]; }