DbSyncColumnMapping Class
Maps a column in the local database to a column in the remote database.
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
The DbSyncColumnMapping type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DbSyncColumnMapping() | Initializes a new instance of the DbSyncColumnMapping class by using default values. |
![]() | DbSyncColumnMapping(String, String) | Initializes a new instance of the DbSyncColumnMapping class by using local column and remote column parameters. |
| Name | Description | |
|---|---|---|
![]() | LocalColumn | Gets or sets the name of the column in the local database. |
![]() | RemoteColumn | Gets or sets the name of the column in the remote database. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Returns a string that represents the DbSyncColumnMapping object. (Overrides Object.ToString().) |
This type is similar in functionality to the DataColumnMapping type in ADO.NET. In peer-to-peer scenarios, the schema might differ between peer databases. For example, a table schema at the first peer might use numerical column names that are not easy to read. You can use the DbSyncColumnMapping and DbSyncColumnMappingCollection objects to map the columns to more friendly names for other peers.
Show:
