示例#1
0
        private static async Task InsertFortunes(JWTTokenContext db)
        {
            var fortunes = GetFortunes();

            foreach (var fortune in fortunes)
            {
                db.JWTTokens.Add(fortune);
            }
            await db.SaveChangesAsync();
        }
示例#2
0
 public JWTTokenRepository(JWTTokenContext db)
 {
     _db = db;
 }