linq to sql (Local database for Windows Phone) better ? (OR) A sqlite-net version for mobile better ?? for windows phone 8 local database creation

孤街醉人 提交于 2019-12-03 20:31:39

You can use sqlite with linq to sql and even entity framework. See an article here http://www.codeproject.com/Articles/236918/Using-SQLite-embedded-database-with-entity-framewo

I don't know your design, so you have to estimate your portability there.

What comes to reliability, people who have developed with it say sqlite is ultra-reliable. I couldn't find any studies but knowing for example that firefox uses it internally and I've never heard of a case in which firefox had it's configuration corrupted, I just may agree with the statement. Another well known implementation is in TeamSpeak.

Since you are working on a phone, battery life is really an issue. You say you have lots of data, that leads to a lot of queries. You might need to turn to sqlite just because of that.

If I were you, I would have a DAL which abstracts this layer. Use dependency injection to pick a DAL. Start with sqlite and IF it falls short at some point, you can always switch. However, data migration on the phone may rise an issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!