예제 #1
0
        public void AddRangeJSONToDatabase(List <Result> results)
        {
            using (SomeDotesDbContext db = new SomeDotesDbContext())
            {
                db
                .Results
                .AddRange(results);

                db.SaveChanges();
            }
        }
예제 #2
0
        public void AddJSONToDatabase(Result result)
        {
            using (SomeDotesDbContext db = new SomeDotesDbContext())
            {
                db
                .Results
                .Add(result);

                db.SaveChanges();
            }
        }