Database Utilities
Whereas DataContext
enables you to create and delete a database file, a custom class, called DatabaseUtility
, is used to directly create and delete the database in isolated storage and to build the connection string for the database.
TwitterDatabaseUtility
extends the DatabaseUtility
class, providing the default database filename. TwitterDatabaseUtility
is used in various locations to create a DataContext
for the Twitter database.
DatabaseUtility
includes an InitializeDatabase
method that creates the isolated storage file for the database. When it is called, if the wipe
parameter is true and the database already exists, it ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.