简体   繁体   中英

create database using sqlite for windows phone 8

I am working on windows phone 8 and My process was:

  1. I cloned git repo into my local.
  2. I added that c++ project (Sqlite) into my existing project.
  3. Than i added Sqlite-net ( SQLite.cs and SQLiteAsync.cs) into my project.
  4. Than created USE_WP8_NATIVE_SQLITE compilation symbol successfully.

DB created and records are insert into table also but problem is whenever i start emulator the same name DB is and table is create again...even i had put condition for checking DB File Exists or not.if run apps without closing emulator it working and DB not created twise. so if any one know what is problem please tell me...

你不应该这样做吗?

if (!FileExists(dbPath).Result) ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM