Class ConnectionInfo
Information pertaining to a unique connection instance.
Inheritance
System.Object
ConnectionInfo
Namespace:Microsoft.SqlTools.ServiceLayer.Connection
Assembly:Microsoft.SqlTools.ServiceLayer.dll
Syntax
public class ConnectionInfo
Constructors
| Improve this Doc View SourceConnectionInfo(ISqlConnectionFactory, String, ConnectionDetails)
Constructor
Declaration
public ConnectionInfo(ISqlConnectionFactory factory, string ownerUri, ConnectionDetails details)
Parameters
Type | Name | Description |
---|---|---|
ISqlConnectionFactory | factory | |
System.String | ownerUri | |
ConnectionDetails | details |
Properties
| Improve this Doc View SourceConnectionDetails
Properties used for creating/opening the SQL connection.
Declaration
public ConnectionDetails ConnectionDetails { get; }
Type | Description |
---|---|
ConnectionDetails |
ConnectionId
Unique Id, helpful to identify a connection info object
Declaration
public Guid ConnectionId { get; }
Type | Description |
---|---|
System.Guid |
Factory
Factory used for creating the SQL connection associated with the connection info.
Declaration
public ISqlConnectionFactory Factory { get; }
Type | Description |
---|---|
ISqlConnectionFactory |
IntellisenseMetrics
Intellisense Metrics
Declaration
public InteractionMetrics<double> IntellisenseMetrics { get; }
Type | Description |
---|---|
InteractionMetrics<System.Double> |
IsAzure
Returns true is the db connection is to a SQL db
Declaration
public bool IsAzure { get; set; }
Type | Description |
---|---|
System.Boolean |
OwnerUri
URI identifying the owner/user of the connection. Could be a file, service, resource, etc.
Declaration
public string OwnerUri { get; }
Type | Description |
---|---|
System.String |
SqlConnection
The connection to the SQL database that commands will be run against.
Declaration
public DbConnection SqlConnection { get; set; }
Type | Description |
---|---|
System.Data.Common.DbConnection |