Exemplo n.º 1
0
        public void AddRangeJSONToDatabase(List <Result> results)
        {
            using (SomeDotesDbContext db = new SomeDotesDbContext())
            {
                db
                .Results
                .AddRange(results);

                db.SaveChanges();
            }
        }
Exemplo n.º 2
0
        public void AddJSONToDatabase(Result result)
        {
            using (SomeDotesDbContext db = new SomeDotesDbContext())
            {
                db
                .Results
                .Add(result);

                db.SaveChanges();
            }
        }