DbSyncColumnMapping Class

Maps a column in the local database to a column in the remote database.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.Data.DbSyncColumnMapping

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public Class DbSyncColumnMapping
'Usage
Dim instance As DbSyncColumnMapping
public class DbSyncColumnMapping
public ref class DbSyncColumnMapping
type DbSyncColumnMapping =  class end
public class DbSyncColumnMapping

The DbSyncColumnMapping type exposes the following members.

Constructors

  Name Description
Public method DbSyncColumnMapping() Initializes a new instance of the DbSyncColumnMapping class by using default values.
Public method DbSyncColumnMapping(String, String) Initializes a new instance of the DbSyncColumnMapping class by using local column and remote column parameters.

Top

Properties

  Name Description
Public property LocalColumn Gets or sets the name of the column in the local database.
Public property RemoteColumn Gets or sets the name of the column in the remote database.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string that represents the DbSyncColumnMapping object. (Overrides Object.ToString().)

Top

Remarks

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.

Thread Safety

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

See Also

Reference

Microsoft.Synchronization.Data Namespace