Export (0) Print
Expand All

DatabaseSchemaUpdater Class

Silverlight

Enables local database schema and version changes in Windows Phone applications.

System.Object
  Microsoft.Phone.Data.Linq.DatabaseSchemaUpdater

Namespace:  Microsoft.Phone.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

'Declaration
Public NotInheritable Class DatabaseSchemaUpdater

The DatabaseSchemaUpdater type exposes the following members.

  NameDescription
Public propertySupported by Silverlight for Windows PhoneContextGets the data context object that represents the corresponding local database.
Public propertySupported by Silverlight for Windows PhoneDatabaseSchemaVersionGet or sets the version of the corresponding local database schema.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneAddAssociation(Of T)Adds a database association, such as a foreign key relationship, to a local database.
Public methodSupported by Silverlight for Windows PhoneAddColumn(Of T)Adds a database column to a local database.
Public methodSupported by Silverlight for Windows PhoneAddIndex(Of T)Adds a database index to a local database.
Public methodSupported by Silverlight for Windows PhoneAddTable(Of T)Adds a table to a local database.
Public methodSupported by Silverlight for Windows PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneExecuteSubmits schema changes to the local database in a single transaction.
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The database does not change to reflect updates from the DatabaseSchemaUpdater object until the Execute method is called. When that method is called, all changes are submitted to the local database as a single transaction, including version updates. Using a single transaction helps the database maintain integrity, such as in cases where the user exits the application during an upgrade.

For information about using a local database in your Windows Phone application, see Local Database Overview for Windows Phone.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft