Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "satish"

Question

Hi, Am very thankful to this forum.This is helps to me in implementation.I have implemented Bulk insertion as you suggested with Custom Repository and my code is public Task InsertBulkList(List<Entity> input) { return Task.Run(() => { using (var transactionScope = new TransactionScope()) {

                var options = new BulkInsertOptions
                {
                    EnableStreaming = true,
                };

                Context.BulkInsert(input, options);
                Context.SaveChanges();
                transactionScope.Complete();
               
            }
        }
            );
    }

Am getting Error Like "An exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in EntityFramework.BulkInsert.dll but was not handled in user code". So please help me to solve this problem".

Thanks a lot

Showing 1 to 1 of 1 entries