Esempio n. 1
0
        /// <summary>
        /// Saves the bulk.
        /// </summary>
        /// <param name="batchSize">Size of the batch.</param>
        public virtual void SaveBulk(ushort batchSize = 50000)
        {
            if (batchSize <= 20000)
            {
                batchSize = 20000;
            }

            DbContext.BulkSaveChanges(false, operation => { operation.BatchSize = batchSize; });
        }