Background: I'm getting ready to start a project that has a requirement for mobile first. I'm using AngularJS for the client side, SQL for the DB and .net WEBApi2 for communication. I have read about BreezeJS and would like to use it as my offline data management piece primarily because I'm using EF6 on the .NET side of things and I like the idea of Breeze being able to manage and create entities via the EF metadata.
While designing the application, I got stuck on the idea of how exactly to manage sudden network loss. It is my understanding that BreezeJS stores it's EntityManager in working memory as it is being used. If a user is working online and then the browser crashes or the computer shuts down and then the webapp is re-opened in an offline setting, does Breeze gracefully recover or is that a use case I need to handle?
Question: I guess my question is simply, is there a way that I can force BreezeJS to NOT use working memory but to work off localStorage instead? If not, should I exportEntities to local storage every change or is there a better way to handle this particular use case?