Add mass insert

This commit is contained in:
Daniel_I_Am 2020-06-04 01:18:10 +02:00
parent 63d68aa142
commit 146eba94f6
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -22,6 +22,16 @@ namespace ChaosBot.Database.Repository
Controller.InsertQuery(Table, dict);
}
public static void massInsert(Raffle raffle, int amount)
{
Dictionary<string, object> dict = new Dictionary<string, object>();
dict.Add("userId", raffle.userId);
for (int i = 0; i < amount; i++)
Controller.InsertQuery(Table, dict);
}
// public static void delete()
// {
//