Esempio n. 1
0
        public async Task <InsertResponse> Create(List <Patient> items)
        {
            var sWatch = new Stopwatch();

            sWatch.Start();

            db.BulkInsert(items);
            sWatch.Stop();
            var response = new InsertResponse
            {
                Count       = items.Count,
                ElapsedTime = sWatch.ElapsedMilliseconds.ToString()
            };

            return(response);
        }
Esempio n. 2
0
 public void Save(IList <TEntity> entities)
 {
     _context.BulkInsert(entities);
 }