I’m using an EDM object along with a dataGridView and bindingSource. After adding many (1000’s) of new elements to my binding source/grid, a call to context.SaveChanges from a button click results in the UI hanging for many seconds. I’ve read that EDM objects are not thread-safe so I don’t think I can put this task on a background worker. Does anybody have any tips so that I can inform the user that work is in progress (like marquee progress bar, etc.)?
I’m using an EDM object along with a dataGridView and bindingSource. After adding many
Share
Sure you can! Not thread-safe means that it’s not safe to access the instances from many threads simultaneously. It’s completely safe to use a single background worker to do the job.