I have a requirement to select bulk data (million rows) and then update the DB Table. Now, I am reading the data chunk by chunk in a BackgroundWorker (as the usage being specified in MSDN)
I have a ViewModel class which implements INotifyPropertyChanged and all the public properties are bound to GUI via the BindingSource component – the classic WinForms way:
Problem is that all my logic is in one ViewModel class. How do I segregate my logic in a much better way ? The data fetching and update logic is in a loop in the DoWork() method and it signals the UI via the ReportProgress method of BackgroundWorker.
EDIT – I do not have to display any kind of data on the GUI other than the progress. Its just a one time tool. Suggestions?
EDIT – Solution –
http://www.codeproject.com/KB/architecture/MVPVMWindowsForms.aspx
1 Answer