Click here to Skip to main content
15,904,023 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys, I'm looking to check the progress DataContext.SubmitChanges, my application is inserting 1000's of records in to the database in one go and takes a minute or two. So I want to display to the user the progress using a progress bar but I can't find a way to return this, any help is very much apreciated. Thanks
Posted

1 solution

Try this :

C#
entity.Orders.Count(p => p.EntityState == System.Data.EntityState.Added);
 
Share this answer
 
Comments
frostcox 26-Oct-12 10:45am    
Hey where exactly do I place this code. The DataContext.SubmitChanges is where I want to track the progress but I can't seem to do it.
Jafar Mowlaei 26-Oct-12 10:54am    
If your program type is Winform?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900