Share via


DataMappedObjectConverter Class

Provides the ability to convert restrictions passed to the mapped object selector into underlying restrictions to pass to the data source–specific type selector, thus allowing mapped selection. Also allows conversion of members of an underlying data object to members of a mapped object, resulting in mapped representations of data objects.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataConnection>
    Microsoft.VisualStudio.Data.Framework.DataMappedObjectConverter
      Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetMappedObjectConverter

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public MustInherit Class DataMappedObjectConverter _
    Inherits DataSiteableObject(Of IVsDataConnection) _
    Implements IVsDataMappedObjectConverter, IVsDataSupportObject(Of IVsDataMappedObjectConverter)
public abstract class DataMappedObjectConverter : DataSiteableObject<IVsDataConnection>, 
    IVsDataMappedObjectConverter, IVsDataSupportObject<IVsDataMappedObjectConverter>
public ref class DataMappedObjectConverter abstract : public DataSiteableObject<IVsDataConnection^>, 
    IVsDataMappedObjectConverter, IVsDataSupportObject<IVsDataMappedObjectConverter^>
[<AbstractClass>]
type DataMappedObjectConverter =  
    class
        inherit DataSiteableObject<IVsDataConnection>
        interface IVsDataMappedObjectConverter
        interface IVsDataSupportObject<IVsDataMappedObjectConverter>
    end
public abstract class DataMappedObjectConverter extends DataSiteableObject<IVsDataConnection> implements IVsDataMappedObjectConverter, IVsDataSupportObject<IVsDataMappedObjectConverter>

The DataMappedObjectConverter type exposes the following members.

Constructors

  Name Description
Protected method DataMappedObjectConverter() Initializes a new instance of the DataMappedObjectConverter class.
Protected method DataMappedObjectConverter(IVsDataConnection) Initializes a new instance of the DataMappedObjectConverter class, along with a data connection.

Top

Properties

  Name Description
Public property Site Gets or sets the object site. (Inherited from DataSiteableObject<T>.)

Top

Methods

  Name Description
Public method ConvertToMappedMember(String, String, array<Object[]) Converts the specified member of an underlying data object to its corresponding mapped member.
Protected method ConvertToMappedMember(String, String, array<Object[], array<Object[]) Converts the specified member of an underlying data object to its corresponding mapped member.
Public method ConvertToUnderlyingRestriction(String, Int32, array<Object[]) Converts the specified mapped restrictions into underlying restrictions that are data source specific.
Protected method ConvertToUnderlyingRestriction(String, Int32, array<Object[], array<Object[]) Converts the specified mapped restrictions into underlying restrictions that are data source specific.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event. (Inherited from DataSiteableObject<T>.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Occurs when the Site property is changed. (Inherited from DataSiteableObject<T>.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IVsDataSupportObject<IVsDataMappedObjectConverter>.Invoke Invokes the specified method on the IVsDataSupportObject<T> interface.

Top

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.VisualStudio.Data.Framework Namespace