Partager via


AdoDotNetObjectConceptMapper Class

Provides a default implementation of the DataObjectConceptMapper class for ADO.NET data providers.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.ObjectWithSite
    Microsoft.VisualStudio.Data.DataObjectConceptMapper
      Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetObjectConceptMapper

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

Syntax

'Declaration
Public Class AdoDotNetObjectConceptMapper _
    Inherits DataObjectConceptMapper
public class AdoDotNetObjectConceptMapper : DataObjectConceptMapper
public ref class AdoDotNetObjectConceptMapper : public DataObjectConceptMapper
type AdoDotNetObjectConceptMapper =  
    class 
        inherit DataObjectConceptMapper 
    end
public class AdoDotNetObjectConceptMapper extends DataObjectConceptMapper

The AdoDotNetObjectConceptMapper type exposes the following members.

Constructors

  Name Description
Public method AdoDotNetObjectConceptMapper Class constructor. Instantiates a new instance of the DataObjectConceptMapper class.

Top

Properties

  Name Description
Protected property Connection Retrieves the active DataConnection object instance to be used for any code that relies on connection-specific information. (Inherited from DataObjectConceptMapper.)
Protected property DataTypes Retrieves data types as DataTable object instance.
Public property Site Retrieves or sets the object site. (Inherited from ObjectWithSite.)

Top

Methods

  Name Description
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.)
Protected method GetDbTypeFromNativeType Maps a native type to a DbType instance and returns the type value.
Protected method GetFrameworkTypeFromNativeType Maps a native type to .NET Framework data type and returns the appropriate type instance.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetProviderTypeFromNativeType Maps a native type to a provider-specific data type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MapValuesToConcept Maps one or more data-source-specific values to a specified generic concept. (Overrides DataObjectConceptMapper.MapValuesToConcept(String, String, array<Object[]).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event. (Inherited from ObjectWithSite.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event SiteChanged Event that is raised when the Site property is changed. (Inherited from ObjectWithSite.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IObjectWithSite.GetSite Retrieves the last site set using the IObjectWithSite.SetSite method. In cases where there is no known site, the object returns an exception. (Inherited from ObjectWithSite.)
Explicit interface implemetationPrivate method IObjectWithSite.SetSite Provides the site's pointer to the site object. (Inherited from ObjectWithSite.)

Top

Remarks

The implementation maps data-source-specific type names to ProviderDataType, ProviderDbType, and FrameworkDataType concepts using the DataTypes collection retrieved from the ADO.NET data provider using the GetSchema method.

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.AdoDotNet Namespace