Beispiel #1
0
        public static void RaffleConfig(RaffleApiContext dbContext)
        {
            if (!dbContext.RaffleCounter.Any())
            {
                var rafflecounter = new RaffleCounter
                {
                    Counter = 1,
                    Cicle   = 1
                };
                dbContext.Set <RaffleCounter>().Add(rafflecounter);
            }

            dbContext.SaveChanges();
        }
Beispiel #2
0
 public static void Initialize(RaffleApiContext dbContext)
 {
     RaffleConfig(dbContext);
 }