SqlSyncStoreMetadataUpgrade Class
Upgrades the metadata format of the database to the current version.
Assembly: Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)
The SqlSyncStoreMetadataUpgrade type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | SqlSyncStoreMetadataUpgrade(SqlConnection) | Initializes a new instance of the SqlSyncStoreMetadataUpgrade class with the specified connection. |
![]() | SqlSyncStoreMetadataUpgrade(SqlConnection, String) | Initializes a new instance of the SqlSyncStoreMetadataUpgrade class with the specified connection and object prefix. |
![]() | SqlSyncStoreMetadataUpgrade(SqlConnection, String, String) | Initializes a new instance of the SqlSyncStoreMetadataUpgrade class with the specified connection, object prefix, and object schema. |
| Name | Description | |
|---|---|---|
![]() | Connection | Gets or sets the database connection over which the upgrade is performed. |
![]() | ObjectPrefix | Gets or sets the optional prefix that is used to identify objects that Sync Framework creates. |
![]() | ObjectSchema | Gets or sets the database schema in which Sync Framework creates objects. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | NeedsUpgrade | Indicates whether the metadata format of the database needs to be upgraded. |
![]() | ToString | (Inherited from Object.) |
![]() | UpgradeSyncSchema | Upgrades the metadata format to the current version. |
The metadata format for the database providers changed in Sync Framework 2.1. The new metadata format is incompatible with previous versions of the database providers. The SqlSyncStoreMetadataUpgrade class is used to upgrade the metadata to the new format. Be aware that the upgrade to the new metadata format cannot be undone, and when you try to use an earlier version of the database providers to synchronize a database that is in the 2.1 format, Sync Framework throws an exception.
Show:
