Question

I have a Windows Phone app which uses Linq to Sql to store and retrieve data from the DataBase which resides in Isolated Storage. Now if I create a background service for my app, whether the DataBase can be accessed by the background service? According to MSDN:

A local database runs in the Windows Phone application’s process. Unlike a client-server database such as Microsoft SQL Server, it does not run continuously as a background service.

Était-ce utile?

La solution

Yes, you can access that DB from Background Agent!

A local database runs in the Windows Phone application’s process.

That means your database is not running unless any part of your app is actually running. It can be either you app or background agent created by that app.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top