How to deploy SqlCe database in singleStorage for a Windows phone

let's say I want to use an existing SqlCe database that has HAS data in it. I am not sure if this is the best way to do this.

1) here is a normal way to create a SqlCe phone for Windows

using (CountryDataContext context = new CountryDataContext (ConnectionString))    
    {         
        if (! context.DatabaseExists ())        
        {            

        // create database if it does not exist            
            context.CreateDatabase ();        
        }    
    }   

But this database has data in it, so I do not want to create it. I want to deploy it or save it in isolated storage.

How should I do it? I want to use the data already in the database.

thank

+5
3

, XAP .

?

: , ( XAP).

: , . .
+3

.

, , . . . Windows Phone MSDN.

, ISETool, / :

# Copy data from IS to directory
ISETool.exe ts xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"

# Copy data to IS from directory
ISETool.exe rs xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"
+3

All Articles