I'm currently working on WPF app that is architectured as follows:
- MVVM
- Entity Framwork 4 (with LINQ).
- WCF service that pool Database to get data (Oracle).
- I Make my WFC call in my View Model Class and put my data in an ObsevableCollections.
- Db Changes occurs from a another app.
So my app does not do any write actions on the DB what-so-ever (Zéro), it only reads data and displays it on the UI.
How can I make my app to be quickly responsive to DB changes, I read about the following solutions but I'm confused and don't know what to use:
- Pooling DB every n seconds with a DispatcherTimer (seems to be too much work cause data changes every millisecond)
- SqlDependency, searched all over the internet but didn't find a proper implementation with EF.
As I said, db changes every millisecond (financial data from other sources),
How can resolve this?
Thank you.