Add mass insert
This commit is contained in:
parent
63d68aa142
commit
146eba94f6
@ -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()
|
||||
// {
|
||||
//
|
||||
|
||||
Loading…
Reference in New Issue
Block a user