Partager via


AdoDotNetSourceInformation Class

Provides information about an ADO.NET data source in the form of properties passed as name/value pairs.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<IVsDataConnection>
    Microsoft.VisualStudio.Data.Framework.DataSourceInformation
      Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetSourceInformation

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

Syntax

'Declaration
Public Class AdoDotNetSourceInformation _
    Inherits DataSourceInformation _
    Implements IVsDataSourceInformation
public class AdoDotNetSourceInformation : DataSourceInformation, 
    IVsDataSourceInformation
public ref class AdoDotNetSourceInformation : public DataSourceInformation, 
    IVsDataSourceInformation
type AdoDotNetSourceInformation =  
    class 
        inherit DataSourceInformation 
        interface IVsDataSourceInformation 
    end
public class AdoDotNetSourceInformation extends DataSourceInformation implements IVsDataSourceInformation

The AdoDotNetSourceInformation type exposes the following members.

Constructors

  Name Description
Protected method AdoDotNetSourceInformation() Initializes a new instance of the AdoDotNetDataSourceInformation class.
Public method AdoDotNetSourceInformation(IVsDataConnection) Initializes a new instance of the AdoDotNetDataSourceInformation class with a data connection object.

Top

Properties

  Name Description
Protected property Connection Gets the underlying DbConnection object instance used in the class.
Public property Item Gets a data source information property with the specified name. (Inherited from DataSourceInformation.)
Public property Site Gets or sets the object site. (Inherited from DataSiteableObject<T>.)
Protected property SourceInformation Gets in-memory data source information provided by an implementation of the DataTable class to represent a table of in-memory data.

Top

Methods

  Name Description
Protected method AddProperty(String) Adds a property to the list of supported properties. (Inherited from DataSourceInformation.)
Protected method AddProperty(String, Object) Adds a property and its value to the list of supported properties. (Inherited from DataSourceInformation.)
Public method Contains Retrieves a Boolean value indicating whether a specified property is contained in this data source information instance. (Inherited from DataSourceInformation.)
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 the default hash function. (Inherited from Object.)
Public method GetType() Gets the Type of the current instance. (Inherited from Object.)
Protected method GetType(String) Retrieves the Type value indicating the type of a specified property, thus enabling appropriate conversion of a retrieved value to the correct type. (Inherited from DataSourceInformation.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnSiteChanged Raises the SiteChanged event. (Overrides DataSiteableObject<T>.OnSiteChanged(EventArgs).)
Protected method RetrieveValue Retrieves a value for a specified data source information property. (Overrides DataSourceInformation.RetrieveValue(String).)
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 IVsDataSourceInformation.Contains Retrieves a Boolean value indicating whether the specified property is contained in the data source information instance.
Explicit interface implemetationPrivate property IVsDataSourceInformation.Item Gets a data source information property with the specified name.

Top

Remarks

Following is a list of supported data source information properties:

Property

Description

DataSourceName

Value of the DataSource property.

DataSourceProduct

Value of the DataSourceProductName column in the ADO.NET data source information data table.

DataSourceVersion

Value of the DataSourceProductVersion column in the ADO.NET data source information data table.

SupportsNestedTransactions

Defaults to false.

CommandPrepareSupport

Text only.

CommandDeriveParametersSupport

Text only.

CommandDeriveSchemaSupport

Text only.

CommandExecuteSupport

Text only.

CommandParameterSupport

InOut and ReturnValue.

SupportsCommandTimeout

Defaults to true.

DefaultCatalog

Value of Database, if non-null and not empty.

SupportsAnsi92Sql

Heuristic based on the SupportedJoinOperators column in the ADO.NET data source information; if any outer join is supported, returns true, otherwise returns false.

IdentifierPartsCaseSensitive

true if the value of the IdentifierCase column in the ADO.NET data source information includes Sensitive; false if the value is Insensitive; nulla null reference (Nothing in Visual Basic) if neither.

QuotedIdentifierPartsCaseSensitive

true if the value of the QuotedIdentifierCase column in the ADO.NET data source information includes Sensitive; false if the value is Insensitive; nulla null reference (Nothing in Visual Basic) if neither.

ReservedWords

Calls the GetSchema method with ReservedWords and creates a comma-delimited list of reserved words from each row in the result set.

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