I'm using local database
to store my data. My code is based on a tutorial: How to create a basic local database app for Windows Phone Everything was right, but I had to add some more data to my database and now when I'm trying to do so I get info "Your phone is low on storage space". Is it possible that my database is too big?
This is how I create my database:
using (TablesDataContext db = new TablesDataContext(TablesDataContext.DBConnectionString))
{
if (db.DatabaseExists() == false)
{
//Create the database
db.CreateDatabase();
}
}
And my DataContext
:
public class TablesDataContext : DataContext
{
// Specify the connection string as a static, used in main page and app.xaml.
public static string DBConnectionString = "Data Source=isostore:/Customers.sdf";
// Pass the connection string to the base class.
public TablesDataContext(string connectionString)
: base(connectionString)
{ }
// Specify a single table for the to-do items.
public Table<CustomerItem> CustomersTable;
public Table<CategorieItem> CategoriesTable;
public Table<ProductItem> ProductsTable;
public Table<CustomerPricesItem> CustomerPricesTable;
}