c# - How to stop creating database again in the windows phone when the emulator is closed -


i working on windows phone. problem facing whenever emulator closed database created me destroyed , next time emulator starts again, new database created.

what want database should created once , data not erased when re-open emulator.

please me.

thank you.

here code creating database in windows phone

 public class personaldatacontext : datacontext {     public static string dbconnectionstring = "data source=isostore:/personalreminderdatabase.sdf";      public personaldatacontext(string connectionstring)         : base(connectionstring)     {         if (this.databaseexists() == false)         {             this.createdatabase();         }     } 

when ever closed emulator, application have deployed on emulator gets uninstalled & on restarting emulator gets re-installed, database create doesn't stay on emulator if close , reopen. , there no way can database restarting emulator. best possible way test application on external database or on device. here links understand; windows phone emulators & how deploy & run app on emulator. hope helps.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -