using System; using System.Collections.Generic; using ChaosBot.Database.Entity; namespace ChaosBot.Database.Repository { public static class RaffleRepository { private static readonly string Table = "RaffleTable"; // public static Raffle[] all() // { // // } public static void insert(Raffle raffle) { Dictionary dict = new Dictionary(); dict.Add("userId", raffle.userId); Controller.InsertQuery(Table, dict); } public static void massInsert(List raffles) { foreach (var raf in raffles) { Dictionary dict = new Dictionary(); dict.Add("userId", raf.userId); Controller.InsertQuery(Table, dict); } } // public static void delete() // { // // } } }