0

Windows 8 store apps do not allow other projects within one's solution to perform CRUD operations even though these projects can have the proper reference to the SQLite DLL that's required.

As a result of my finding, I am duplicating my Data Access Layer code in all my Windows Store apps. Thus, development time is increasing dramatically as a result of updating all my apps each time I need to account for recently added tables for the multi app solution that I am building.

NOTE: I heard that implementing SkyDrive integration is an alternative approach that may solve this issue. However, I made the decision early on to implement sync operations with SQLite and cannot afford to swap out data access layers at this stage of development.

Any suggestions?

Thanks, Scott Nimrod

4

1 回答 1

1

您可以将通用数据访问代码放在 Windows 应用商店类库 (dll) 项目中。然后,您的每个应用程序都可以重用此 dll。

请注意,您的共享 dll 项目不需要对 Sqlite3 二进制 dll(sqlite3 Visual Studio 扩展)的引用。它应该只引用 sqlite api(例如 Sqlite-net)。对于您的主应用程序,应该颠倒引用 - 它应该引用扩展,而不是 api。

于 2013-04-21T17:31:43.220 回答