AdoDotNetConnectionSupport Members
Provides an implementation of the IVsDataConnectionSupport interface, and an indirect implementation of the IVsDataCommand, IVsDataAsyncCommand, and IVsDataTransaction interfaces, by using appropriate ADO.NET objects.
The AdoDotNetConnectionSupport type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AdoDotNetConnectionSupport | Initializes an instance of the AdoDotNetConnectionSupport class. |
Top
Methods
Name | Description | |
---|---|---|
AddService | Overloaded. | |
BeginTransactionCore | Initiates a transaction. | |
Close | Closes the current data connection. (Overrides DataConnectionSupport.Close().) | |
CommitTransactionCore | Commits a transaction. | |
CreateParameterCore | Creates a new data parameter with interface IVsDataProvider. | |
CreateParameterFrom | Creates a new data parameter with interface IVsDataProvider, using a copy of the specified data parameter. | |
CreateService | Creates a new service object based on the specified interface service type. (Overrides DataConnectionSupport.CreateService(IServiceContainer, Type).) | |
DeriveParametersCore | Derives parameters that can be specified for a given command. | |
DeriveParametersOn | Override to derive parameters from the given command. | |
DeriveSchemaCore | Derives the schema returned from a specified command, indicating the layout of items and blocks in a given data reader. | |
Dispose | Overloaded. Releases all resources held by the data connection. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
ExecuteCore | Executes a specified command, optionally with parameters, and returns results as an IVsDataReader object. | |
ExecuteWithoutResultsCore | Executes a specified command, optionally with parameters. Does not return any query results. | |
Finalize | Releases all resources held by the data connection when the data connection support object is destroyed. (Inherited from DataConnectionSupport.) | |
GetCommand | Constructs a DbCommand object from the given command string. | |
GetCommandType | Converts an enumeration value from DataCommandType to its corresponding value in the CommandType enumeration. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetService | Overloaded. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize | Initializes the specified ADO.NET connection, using a specified provider. (Overrides DataConnectionSupport.Initialize(Object).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnMessageReceived | Handles the MessageReceived event. (Inherited from DataConnectionSupport.) | |
OnSiteChanged | Raises the SiteChanged() event. (Inherited from DataSiteableServiceProvider<T>.) | |
OnStateChanged | Handles the StateChanged event. (Inherited from DataConnectionSupport.) | |
Open | Opens the specified data connection. (Overrides DataConnectionSupport.Open(Boolean).) | |
PrepareCore | Prepares the specified command on the data source to be executed; the command can be executed multiple times, with varying parameters. | |
RemoveService | Overloaded. | |
RollbackTransactionCore | Rolls back, or voids, a transaction and returns the new current transaction level. | |
SetParameters | Adds new parameters to the given DbCommand command from the specified array of IVsDataParameter parameters. | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Top
Properties
Name | Description | |
---|---|---|
Connection | Gets the DbConnection object being used by the current connection support instance. | |
ConnectionString | Gets or sets a string representation of information required to establish a specified data source connection. (Overrides DataConnectionSupport.ConnectionString.) | |
ConnectionTimeout | Gets or sets the amount of time, in seconds, to wait to establish a connection before terminating the attempt and generating a time-out error. (Overrides DataConnectionSupport.ConnectionTimeout.) | |
CurrentCommand | Gets the DbCommand object currently being used by the current connection support instance. | |
CurrentTransaction | Gets the DbTransaction object currently being used by the current connection support instance. | |
InAsyncMode | Gets a value indicating whether the connection is in an asynchronous mode. | |
ParentProvider | Gets the current instance of the parent service provider. (Inherited from ServiceProvider.) | |
ProviderObject | Gets the underlying provider object for the specified connection. (Overrides DataConnectionSupport.ProviderObject.) | |
ServiceProvider | Gets the global Visual Studio service provider. (Inherited from DataConnectionSupport.) | |
Site | Gets or sets the site. (Inherited from DataSiteableServiceProvider<T>.) | |
State | Gets the state of the data connection. (Overrides DataConnectionSupport.State.) |
Top
Events
Name | Description | |
---|---|---|
MessageReceived | Occurs when a message is received from the data source. (Inherited from DataConnectionSupport.) | |
SiteChanged | (Inherited from DataSiteableServiceProvider<T>.) | |
StateChanged | Occurs when the state of the data connection has changed. (Inherited from DataConnectionSupport.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IServiceProvider.QueryService | Performs as a factory for services that are exposed through an implementation of IServiceProvider. (Inherited from ServiceProvider.) | |
IVsDataSiteableObject<IVsDataProvider>.Site | Gets the IVsDataProvider object currently being used by the current connection support instance. |
Top